UNPKG

@linode/validation

Version:

Yup validation schemas for use with the Linode APIv4

87 lines 3.03 kB
export declare const createServiceMonitorSchema: import("yup").ObjectSchema<{ label: string; service_type: {}; address: string; timeout: number; credentials: import("yup").Maybe<(number | undefined)[] | undefined>; notes: import("yup").Maybe<string | undefined>; consultation_group: import("yup").Maybe<string | undefined>; body: import("yup").Maybe<string | undefined>; }, import("yup").AnyObject, { label: undefined; service_type: undefined; address: undefined; timeout: undefined; credentials: ""; notes: undefined; consultation_group: undefined; body: undefined; }, "">; export declare const sshSettingSchema: import("yup").ObjectSchema<{ access: boolean | undefined; user: string | undefined; ip: string | undefined; port: number | undefined; }, import("yup").AnyObject, { access: undefined; user: undefined; ip: undefined; port: undefined; }, "">; export declare const updateManagedLinodeSchema: import("yup").ObjectSchema<{ ssh: { access?: boolean | undefined; user?: string | undefined; ip?: string | undefined; port?: number | undefined; }; }, import("yup").AnyObject, { ssh: { access: undefined; user: undefined; ip: undefined; port: undefined; }; }, "">; export declare const credentialLabel: import("yup").StringSchema<string | undefined, import("yup").AnyObject, undefined, "">; export declare const credentialPassword: import("yup").StringSchema<import("yup").Maybe<string | undefined>, import("yup").AnyObject, undefined, "">; export declare const credentialUsername: import("yup").StringSchema<import("yup").Maybe<string | undefined>, import("yup").AnyObject, undefined, "">; export declare const createCredentialSchema: import("yup").ObjectSchema<{ label: string; username: import("yup").Maybe<string | undefined>; password: import("yup").Maybe<string | undefined>; }, import("yup").AnyObject, { label: undefined; username: undefined; password: undefined; }, "">; export declare const updateCredentialSchema: import("yup").ObjectSchema<{ label: string; }, import("yup").AnyObject, { label: undefined; }, "">; export declare const updatePasswordSchema: import("yup").ObjectSchema<{ username: import("yup").Maybe<string | undefined>; password: string; }, import("yup").AnyObject, { username: undefined; password: undefined; }, "">; export declare const createContactSchema: import("yup").ObjectSchema<{ name: string; email: string; phone: { primary?: import("yup").Maybe<string | null | undefined>; secondary?: import("yup").Maybe<string | null | undefined>; } | null | undefined; group: import("yup").Maybe<string | undefined>; }, import("yup").AnyObject, { name: undefined; email: undefined; phone: { primary: undefined; secondary: undefined; }; group: undefined; }, "">; //# sourceMappingURL=managed.schema.d.ts.map