@linode/validation
Version:
Yup validation schemas for use with the Linode APIv4
32 lines • 1.2 kB
TypeScript
export declare const CreateBucketSchema: import("yup").ObjectSchema<{
label: string;
cluster: string | undefined;
region: string | undefined;
endpoint_type: "E0" | "E1" | "E2" | "E3" | undefined;
cors_enabled: boolean | undefined;
acl: "private" | "public-read" | "authenticated-read" | "public-read-write" | undefined;
s3_endpoint: string | undefined;
}, import("yup").AnyObject, {
label: undefined;
cluster: undefined;
region: undefined;
endpoint_type: undefined;
cors_enabled: undefined;
acl: undefined;
s3_endpoint: undefined;
}, "">;
export declare const UploadCertificateSchema: import("yup").ObjectSchema<{
certificate: string;
private_key: string;
}, import("yup").AnyObject, {
certificate: undefined;
private_key: undefined;
}, "">;
export declare const UpdateBucketAccessSchema: import("yup").ObjectSchema<{
acl: import("yup").Maybe<"private" | "public-read" | "authenticated-read" | "public-read-write" | undefined>;
cors_enabled: import("yup").Maybe<boolean | undefined>;
}, import("yup").AnyObject, {
acl: undefined;
cors_enabled: undefined;
}, "">;
//# sourceMappingURL=buckets.schema.d.ts.map