@linode/validation
Version:
Yup validation schemas for use with the Linode APIv4
153 lines • 5.08 kB
TypeScript
export declare const kubernetesTaintSchema: import("yup").ObjectSchema<{
key: string;
value: import("yup").Maybe<string | undefined>;
}, import("yup").AnyObject, {
key: undefined;
value: undefined;
}, "">;
export declare const CreateNodePoolSchema: import("yup").ObjectSchema<{
autoscaler: {
max: number;
min: number;
enabled: NonNullable<boolean | undefined>;
} | null | undefined;
type: string;
count: number;
tags: import("yup").Maybe<string[] | undefined>;
disks: import("yup").Maybe<{
type: NonNullable<"raw" | "ext4" | undefined>;
size: number;
}[] | undefined>;
update_strategy: import("yup").Maybe<"rolling_update" | "on_recycle" | undefined>;
k8_version: import("yup").Maybe<string | undefined>;
firewall_id: import("yup").Maybe<number | undefined>;
labels: {} | null | undefined;
taints: import("yup").Maybe<{
value?: import("yup").Maybe<string | undefined>;
key: string;
}[] | undefined>;
}, import("yup").AnyObject, {
autoscaler: undefined;
type: undefined;
count: undefined;
tags: undefined;
disks: undefined;
update_strategy: undefined;
k8_version: undefined;
firewall_id: undefined;
labels: {};
taints: undefined;
}, "">;
export declare const EditNodePoolSchema: import("yup").ObjectSchema<{
type: string | undefined;
count: number | undefined;
update_strategy: string | undefined;
k8_version: string | undefined;
firewall_id: number | undefined;
}, import("yup").AnyObject, {
type: undefined;
count: undefined;
update_strategy: undefined;
k8_version: undefined;
firewall_id: undefined;
}, "">;
export declare const clusterLabelSchema: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
export declare const ipv4Address: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
export declare const ipv6Address: import("yup").StringSchema<string, import("yup").AnyObject, undefined, "">;
export declare const createKubeClusterSchema: import("yup").ObjectSchema<{
label: string;
region: string;
k8s_version: string;
node_pools: {
tags?: import("yup").Maybe<string[] | undefined>;
autoscaler?: {
max: number;
min: number;
enabled: NonNullable<boolean | undefined>;
} | null | undefined;
disks?: import("yup").Maybe<{
type: NonNullable<"raw" | "ext4" | undefined>;
size: number;
}[] | undefined>;
update_strategy?: import("yup").Maybe<"rolling_update" | "on_recycle" | undefined>;
k8_version?: import("yup").Maybe<string | undefined>;
firewall_id?: import("yup").Maybe<number | undefined>;
labels?: {} | null | undefined;
taints?: import("yup").Maybe<{
value?: import("yup").Maybe<string | undefined>;
key: string;
}[] | undefined>;
type: string;
count: number;
}[] | undefined;
}, import("yup").AnyObject, {
label: undefined;
region: undefined;
k8s_version: undefined;
node_pools: "";
}, "">;
export declare const createKubeClusterWithRequiredACLSchema: import("yup").ObjectSchema<{
control_plane: {
high_availability?: boolean | undefined;
acl: {
enabled?: boolean | undefined;
"revision-id"?: string | undefined;
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
};
};
}, import("yup").AnyObject, {
control_plane: {
high_availability: undefined;
acl: {
enabled: undefined;
'revision-id': undefined;
addresses: {
ipv4: "";
ipv6: "";
};
};
};
}, "">;
export declare const kubernetesControlPlaneACLPayloadSchema: import("yup").ObjectSchema<{
acl: {
addresses?: {
ipv4?: string[] | null | undefined;
ipv6?: string[] | null | undefined;
} | null | undefined;
enabled?: boolean | undefined;
"revision-id"?: string | undefined;
};
}, import("yup").AnyObject, {
acl: {
enabled: undefined;
'revision-id': undefined;
addresses: {
ipv4: "";
ipv6: "";
};
};
}, "">;
export declare const kubernetesEnterpriseControlPlaneACLPayloadSchema: import("yup").ObjectSchema<{
acl: {
enabled?: boolean | undefined;
"revision-id"?: string | undefined;
addresses: {
ipv4?: string[] | undefined;
ipv6?: string[] | undefined;
};
};
}, import("yup").AnyObject, {
acl: {
enabled: undefined;
'revision-id': undefined;
addresses: {
ipv4: "";
ipv6: "";
};
};
}, "">;
export declare const kubernetesLabelSchema: import("yup").ObjectSchema<{}, import("yup").AnyObject, {}, "">;
//# sourceMappingURL=kubernetes.schema.d.ts.map