@linode/validation
Version:
Yup validation schemas for use with the Linode APIv4
110 lines • 3.47 kB
TypeScript
export declare const nodePoolSchema: import("yup").ObjectSchema<{
type: string | undefined;
count: number | undefined;
}, import("yup").AnyObject, {
type: undefined;
count: undefined;
}, "">;
export declare const nodePoolBetaSchema: import("yup").ObjectSchema<{
type: string | undefined;
count: number | undefined;
} & {
upgrade_strategy: string | undefined;
k8_version: string | undefined;
firewall_id: number | undefined;
}, import("yup").AnyObject, {
type: undefined;
count: undefined;
upgrade_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: {
type?: string | undefined;
count?: number | undefined;
}[] | 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, {}, "">;
export declare const kubernetesTaintSchema: import("yup").ObjectSchema<{
key: string;
value: import("yup").Maybe<string | undefined>;
}, import("yup").AnyObject, {
key: undefined;
value: undefined;
}, "">;
//# sourceMappingURL=kubernetes.schema.d.ts.map