/* eslint-disable */ // @ts-nocheck /* * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY */ import * as InsightIoApiTypeV1alpha1Page from "../../type/v1alpha1/page.pb" import * as InsightIoApiResourceV1alpha1Type from "./type.pb" export enum CronJobPhase { CRONJOB_STATE_UNSPECIFIED = "CRONJOB_STATE_UNSPECIFIED", CRONJOB_STATE_WAITING = "CRONJOB_STATE_WAITING", CRONJOB_STATE_ACTIVATED = "CRONJOB_STATE_ACTIVATED", CRONJOB_STATE_STOPPED = "CRONJOB_STATE_STOPPED", CRONJOB_STATE_DELETING = "CRONJOB_STATE_DELETING", } export enum JobState { JOB_STATE_UNSPECIFIED = "JOB_STATE_UNSPECIFIED", JOB_STATE_WAITING = "JOB_STATE_WAITING", JOB_STATE_RUNNING = "JOB_STATE_RUNNING", JOB_STATE_COMPLETED = "JOB_STATE_COMPLETED", JOB_STATE_DELETING = "JOB_STATE_DELETING", JOB_STATE_FAILED = "JOB_STATE_FAILED", } export type ListJobsRequest = { cluster?: string namespace?: string phase?: JobState name?: string page?: number pageSize?: number } export type ListCronJobsResponse = { items?: CronJobSummary[] pagination?: InsightIoApiTypeV1alpha1Page.Pagination } export type CronJobSummary = { name?: string namespace?: string phase?: CronJobPhase jobNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary } export type CronJob = { name?: string cluster?: string namespace?: string phase?: CronJobPhase createTimestamp?: string jobNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary conditions?: InsightIoApiResourceV1alpha1Type.Condition[] } export type CronJobSpec = { schedule?: string } export type GetJobRequest = { cluster?: string namespace?: string name?: string } export type ListJobsResponse = { items?: JobSummary[] pagination?: InsightIoApiTypeV1alpha1Page.Pagination } export type JobSummary = { name?: string namespace?: string status?: JobStatus jobPodNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary } export type JobStatus = { active?: number succeed?: number failed?: number phase?: JobState } export type Job = { name?: string cluster?: string namespace?: string status?: JobStatus createTimestamp?: string jobPodNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary conditions?: InsightIoApiResourceV1alpha1Type.Condition[] } export type GetJobPodsRequest = { cluster?: string namespace?: string name?: string pod?: string page?: number pageSize?: number } export type GetCronjobPodsRequest = { cluster?: string namespace?: string name?: string pod?: string page?: number pageSize?: number }