157 lines
4.5 KiB
Go
157 lines
4.5 KiB
Go
// Code generated by ogen, DO NOT EDIT.
|
|
|
|
package rest
|
|
|
|
import (
|
|
"context"
|
|
|
|
ht "github.com/ogen-go/ogen/http"
|
|
)
|
|
|
|
// UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
|
|
type UnimplementedHandler struct{}
|
|
|
|
var _ Handler = UnimplementedHandler{}
|
|
|
|
// CancelDatasetJob implements cancelDatasetJob operation.
|
|
//
|
|
// Cancel a running download job.
|
|
//
|
|
// DELETE /api/v1/admin/jobs/{id}
|
|
func (UnimplementedHandler) CancelDatasetJob(ctx context.Context, params CancelDatasetJobParams) error {
|
|
return ht.ErrNotImplemented
|
|
}
|
|
|
|
// CancelPredictionJob implements cancelPredictionJob operation.
|
|
//
|
|
// Cancel a queued prediction job.
|
|
//
|
|
// DELETE /api/v1/predictions/{id}
|
|
func (UnimplementedHandler) CancelPredictionJob(ctx context.Context, params CancelPredictionJobParams) error {
|
|
return ht.ErrNotImplemented
|
|
}
|
|
|
|
// CreatePredictionJob implements createPredictionJob operation.
|
|
//
|
|
// Enqueue an asynchronous prediction.
|
|
//
|
|
// POST /api/v1/predictions
|
|
func (UnimplementedHandler) CreatePredictionJob(ctx context.Context, req *PredictionV2Request) (r *PredictionJob, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// DeleteDataset implements deleteDataset operation.
|
|
//
|
|
// Delete a stored dataset by filename.
|
|
//
|
|
// DELETE /api/v1/admin/datasets/{name}
|
|
func (UnimplementedHandler) DeleteDataset(ctx context.Context, params DeleteDatasetParams) error {
|
|
return ht.ErrNotImplemented
|
|
}
|
|
|
|
// GetDatasetJob implements getDatasetJob operation.
|
|
//
|
|
// Get a dataset download job.
|
|
//
|
|
// GET /api/v1/admin/jobs/{id}
|
|
func (UnimplementedHandler) GetDatasetJob(ctx context.Context, params GetDatasetJobParams) (r *DownloadJob, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// GetPredictionJob implements getPredictionJob operation.
|
|
//
|
|
// Poll an asynchronous prediction job.
|
|
//
|
|
// GET /api/v1/predictions/{id}
|
|
func (UnimplementedHandler) GetPredictionJob(ctx context.Context, params GetPredictionJobParams) (r *PredictionJob, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// GetServiceStatus implements getServiceStatus operation.
|
|
//
|
|
// Service status summary.
|
|
//
|
|
// GET /api/v1/admin/status
|
|
func (UnimplementedHandler) GetServiceStatus(ctx context.Context) (r *StatusResponse, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// GetWindField implements getWindField operation.
|
|
//
|
|
// Wind-field velocity grid (leaflet-velocity / wind-layer format).
|
|
//
|
|
// GET /api/v1/wind/field
|
|
func (UnimplementedHandler) GetWindField(ctx context.Context, params GetWindFieldParams) (r []WindComponent, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// GetWindMeta implements getWindMeta operation.
|
|
//
|
|
// Wind-field visualization metadata.
|
|
//
|
|
// GET /api/v1/wind/meta
|
|
func (UnimplementedHandler) GetWindMeta(ctx context.Context) (r *WindMeta, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// ListDatasetJobs implements listDatasetJobs operation.
|
|
//
|
|
// List dataset download jobs.
|
|
//
|
|
// GET /api/v1/admin/jobs
|
|
func (UnimplementedHandler) ListDatasetJobs(ctx context.Context) (r []DownloadJob, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// ListDatasets implements listDatasets operation.
|
|
//
|
|
// List stored datasets.
|
|
//
|
|
// GET /api/v1/admin/datasets
|
|
func (UnimplementedHandler) ListDatasets(ctx context.Context) (r *DatasetList, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// PerformPrediction implements performPrediction operation.
|
|
//
|
|
// Tawhiri-compatible prediction.
|
|
//
|
|
// GET /api/v1/prediction
|
|
func (UnimplementedHandler) PerformPrediction(ctx context.Context, params PerformPredictionParams) (r *PredictionResponse, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// PerformPredictionV2 implements performPredictionV2 operation.
|
|
//
|
|
// Profile-driven prediction (synchronous).
|
|
//
|
|
// POST /api/v2/prediction
|
|
func (UnimplementedHandler) PerformPredictionV2(ctx context.Context, req *PredictionV2Request) (r *PredictionV2Response, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// ReadinessCheck implements readinessCheck operation.
|
|
//
|
|
// Readiness check.
|
|
//
|
|
// GET /ready
|
|
func (UnimplementedHandler) ReadinessCheck(ctx context.Context) (r *ReadinessResponse, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// TriggerDatasetDownload implements triggerDatasetDownload operation.
|
|
//
|
|
// Trigger a dataset download.
|
|
//
|
|
// POST /api/v1/admin/datasets
|
|
func (UnimplementedHandler) TriggerDatasetDownload(ctx context.Context, req *DownloadRequest) (r *DownloadAccepted, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// NewError creates *DefaultErrorStatusCode from error returned by handler.
|
|
//
|
|
// Used for common default response.
|
|
func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *DefaultErrorStatusCode) {
|
|
r = new(DefaultErrorStatusCode)
|
|
return r
|
|
}
|