Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions packages/clients/src/api/block/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
import {
marshalCreateSnapshotRequest,
marshalCreateVolumeRequest,
marshalImportSnapshotFromS3Request,
marshalUpdateSnapshotRequest,
marshalUpdateVolumeRequest,
unmarshalListSnapshotsResponse,
Expand All @@ -31,7 +30,6 @@ import type {
DeleteVolumeRequest,
GetSnapshotRequest,
GetVolumeRequest,
ImportSnapshotFromS3Request,
ListSnapshotsRequest,
ListSnapshotsResponse,
ListVolumeTypesRequest,
Expand Down Expand Up @@ -336,22 +334,6 @@ export class API extends ParentAPI {
unmarshalSnapshot,
)

importSnapshotFromS3 = (request: Readonly<ImportSnapshotFromS3Request>) =>
this.client.fetch<Snapshot>(
{
body: JSON.stringify(
marshalImportSnapshotFromS3Request(request, this.client.settings),
),
headers: jsonContentHeaders,
method: 'POST',
path: `/block/v1alpha1/zones/${validatePathParam(
'zone',
request.zone ?? this.client.settings.defaultZone,
)}/snapshots/import-from-s3`,
},
unmarshalSnapshot,
)

/**
* Delete a snapshot. You must specify the `snapshot_id` of the snapshot you
* want to delete. The snapshot must not be in use.
Expand Down
1 change: 0 additions & 1 deletion packages/clients/src/api/block/v1alpha1/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export type {
DeleteVolumeRequest,
GetSnapshotRequest,
GetVolumeRequest,
ImportSnapshotFromS3Request,
ListSnapshotsRequest,
ListSnapshotsRequestOrderBy,
ListSnapshotsResponse,
Expand Down
13 changes: 0 additions & 13 deletions packages/clients/src/api/block/v1alpha1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import type {
CreateVolumeRequest,
CreateVolumeRequestFromEmpty,
CreateVolumeRequestFromSnapshot,
ImportSnapshotFromS3Request,
ListSnapshotsResponse,
ListVolumeTypesResponse,
ListVolumesResponse,
Expand Down Expand Up @@ -263,18 +262,6 @@ export const marshalCreateVolumeRequest = (
...resolveOneOf([{ param: 'perf_iops', value: request.perfIops }]),
})

export const marshalImportSnapshotFromS3Request = (
request: ImportSnapshotFromS3Request,
defaults: DefaultValues,
): Record<string, unknown> => ({
bucket: request.bucket,
key: request.key,
name: request.name,
project_id: request.projectId ?? defaults.defaultProjectId,
size: request.size,
tags: request.tags,
})

export const marshalUpdateSnapshotRequest = (
request: UpdateSnapshotRequest,
defaults: DefaultValues,
Expand Down
11 changes: 0 additions & 11 deletions packages/clients/src/api/block/v1alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,17 +249,6 @@ export type GetVolumeRequest = {
volumeId: string
}

export type ImportSnapshotFromS3Request = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
bucket: string
key: string
name: string
projectId?: string
tags?: string[]
size?: number
}

export type ListSnapshotsRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ export const CreateVolumeRequest = {
},
}

export const ImportSnapshotFromS3Request = {
name: {
minLength: 1,
},
}

export const ListSnapshotsRequest = {
page: {
greaterThan: 0,
Expand Down