@linode/validation
Version:
Yup validation schemas for use with the Linode APIv4
42 lines • 1.33 kB
TypeScript
export declare const CreateVolumeSchema: import("yup").ObjectSchema<{
region: string | undefined;
linode_id: number | null | undefined;
size: number;
label: string;
config_id: number | null | undefined;
tags: (string | undefined)[] | undefined;
encryption: import("yup").Maybe<"enabled" | "disabled" | undefined>;
}, import("yup").AnyObject, {
region: undefined;
linode_id: undefined;
size: undefined;
label: undefined;
config_id: undefined;
tags: "";
encryption: undefined;
}, "">;
export declare const CloneVolumeSchema: import("yup").ObjectSchema<{
label: string;
}, import("yup").AnyObject, {
label: undefined;
}, "">;
export declare const ResizeVolumeSchema: (minSize?: number) => import("yup").ObjectSchema<{
size: number;
}, import("yup").AnyObject, {
size: undefined;
}, "">;
export declare const UpdateVolumeSchema: import("yup").ObjectSchema<{
label: string | undefined;
tags: (string | undefined)[] | undefined;
}, import("yup").AnyObject, {
label: undefined;
tags: "";
}, "">;
export declare const AttachVolumeSchema: import("yup").ObjectSchema<{
linode_id: number;
config_id: number;
}, import("yup").AnyObject, {
linode_id: undefined;
config_id: undefined;
}, "">;
//# sourceMappingURL=volumes.schema.d.ts.map