github.com/jenkins-x/jx-api@v0.0.24/pkg/client/openapi/k8s_io_api_batch_v1/openapi_generated.go (about) 1 // +build !ignore_autogenerated 2 3 // Code generated by openapi-gen. DO NOT EDIT. 4 5 // This file was autogenerated by openapi-gen. Do not edit it manually! 6 7 package k8s_io_api_batch_v1 8 9 import ( 10 spec "github.com/go-openapi/spec" 11 common "k8s.io/kube-openapi/pkg/common" 12 ) 13 14 func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { 15 return map[string]common.OpenAPIDefinition{ 16 "k8s.io/api/batch/v1.Job": schema_k8sio_api_batch_v1_Job(ref), 17 "k8s.io/api/batch/v1.JobCondition": schema_k8sio_api_batch_v1_JobCondition(ref), 18 "k8s.io/api/batch/v1.JobList": schema_k8sio_api_batch_v1_JobList(ref), 19 "k8s.io/api/batch/v1.JobSpec": schema_k8sio_api_batch_v1_JobSpec(ref), 20 "k8s.io/api/batch/v1.JobStatus": schema_k8sio_api_batch_v1_JobStatus(ref), 21 } 22 } 23 24 func schema_k8sio_api_batch_v1_Job(ref common.ReferenceCallback) common.OpenAPIDefinition { 25 return common.OpenAPIDefinition{ 26 Schema: spec.Schema{ 27 SchemaProps: spec.SchemaProps{ 28 Description: "Job represents the configuration of a single job.", 29 Type: []string{"object"}, 30 Properties: map[string]spec.Schema{ 31 "kind": { 32 SchemaProps: spec.SchemaProps{ 33 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 34 Type: []string{"string"}, 35 Format: "", 36 }, 37 }, 38 "apiVersion": { 39 SchemaProps: spec.SchemaProps{ 40 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 41 Type: []string{"string"}, 42 Format: "", 43 }, 44 }, 45 "metadata": { 46 SchemaProps: spec.SchemaProps{ 47 Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 48 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"), 49 }, 50 }, 51 "spec": { 52 SchemaProps: spec.SchemaProps{ 53 Description: "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 54 Ref: ref("k8s.io/api/batch/v1.JobSpec"), 55 }, 56 }, 57 "status": { 58 SchemaProps: spec.SchemaProps{ 59 Description: "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", 60 Ref: ref("k8s.io/api/batch/v1.JobStatus"), 61 }, 62 }, 63 }, 64 }, 65 }, 66 Dependencies: []string{ 67 "k8s.io/api/batch/v1.JobSpec", "k8s.io/api/batch/v1.JobStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"}, 68 } 69 } 70 71 func schema_k8sio_api_batch_v1_JobCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { 72 return common.OpenAPIDefinition{ 73 Schema: spec.Schema{ 74 SchemaProps: spec.SchemaProps{ 75 Description: "JobCondition describes current state of a job.", 76 Type: []string{"object"}, 77 Properties: map[string]spec.Schema{ 78 "type": { 79 SchemaProps: spec.SchemaProps{ 80 Description: "Type of job condition, Complete or Failed.", 81 Type: []string{"string"}, 82 Format: "", 83 }, 84 }, 85 "status": { 86 SchemaProps: spec.SchemaProps{ 87 Description: "Status of the condition, one of True, False, Unknown.", 88 Type: []string{"string"}, 89 Format: "", 90 }, 91 }, 92 "lastProbeTime": { 93 SchemaProps: spec.SchemaProps{ 94 Description: "Last time the condition was checked.", 95 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 96 }, 97 }, 98 "lastTransitionTime": { 99 SchemaProps: spec.SchemaProps{ 100 Description: "Last time the condition transit from one status to another.", 101 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 102 }, 103 }, 104 "reason": { 105 SchemaProps: spec.SchemaProps{ 106 Description: "(brief) reason for the condition's last transition.", 107 Type: []string{"string"}, 108 Format: "", 109 }, 110 }, 111 "message": { 112 SchemaProps: spec.SchemaProps{ 113 Description: "Human readable message indicating details about last transition.", 114 Type: []string{"string"}, 115 Format: "", 116 }, 117 }, 118 }, 119 Required: []string{"type", "status"}, 120 }, 121 }, 122 Dependencies: []string{ 123 "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 124 } 125 } 126 127 func schema_k8sio_api_batch_v1_JobList(ref common.ReferenceCallback) common.OpenAPIDefinition { 128 return common.OpenAPIDefinition{ 129 Schema: spec.Schema{ 130 SchemaProps: spec.SchemaProps{ 131 Description: "JobList is a collection of jobs.", 132 Type: []string{"object"}, 133 Properties: map[string]spec.Schema{ 134 "kind": { 135 SchemaProps: spec.SchemaProps{ 136 Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", 137 Type: []string{"string"}, 138 Format: "", 139 }, 140 }, 141 "apiVersion": { 142 SchemaProps: spec.SchemaProps{ 143 Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", 144 Type: []string{"string"}, 145 Format: "", 146 }, 147 }, 148 "metadata": { 149 SchemaProps: spec.SchemaProps{ 150 Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", 151 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"), 152 }, 153 }, 154 "items": { 155 SchemaProps: spec.SchemaProps{ 156 Description: "items is the list of Jobs.", 157 Type: []string{"array"}, 158 Items: &spec.SchemaOrArray{ 159 Schema: &spec.Schema{ 160 SchemaProps: spec.SchemaProps{ 161 Ref: ref("k8s.io/api/batch/v1.Job"), 162 }, 163 }, 164 }, 165 }, 166 }, 167 }, 168 Required: []string{"items"}, 169 }, 170 }, 171 Dependencies: []string{ 172 "k8s.io/api/batch/v1.Job", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"}, 173 } 174 } 175 176 func schema_k8sio_api_batch_v1_JobSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { 177 return common.OpenAPIDefinition{ 178 Schema: spec.Schema{ 179 SchemaProps: spec.SchemaProps{ 180 Description: "JobSpec describes how the job execution will look like.", 181 Type: []string{"object"}, 182 Properties: map[string]spec.Schema{ 183 "parallelism": { 184 SchemaProps: spec.SchemaProps{ 185 Description: "Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", 186 Type: []string{"integer"}, 187 Format: "int32", 188 }, 189 }, 190 "completions": { 191 SchemaProps: spec.SchemaProps{ 192 Description: "Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", 193 Type: []string{"integer"}, 194 Format: "int32", 195 }, 196 }, 197 "activeDeadlineSeconds": { 198 SchemaProps: spec.SchemaProps{ 199 Description: "Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer", 200 Type: []string{"integer"}, 201 Format: "int64", 202 }, 203 }, 204 "backoffLimit": { 205 SchemaProps: spec.SchemaProps{ 206 Description: "Specifies the number of retries before marking this job failed. Defaults to 6", 207 Type: []string{"integer"}, 208 Format: "int32", 209 }, 210 }, 211 "selector": { 212 SchemaProps: spec.SchemaProps{ 213 Description: "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", 214 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"), 215 }, 216 }, 217 "manualSelector": { 218 SchemaProps: spec.SchemaProps{ 219 Description: "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector", 220 Type: []string{"boolean"}, 221 Format: "", 222 }, 223 }, 224 "template": { 225 SchemaProps: spec.SchemaProps{ 226 Description: "Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", 227 Ref: ref("k8s.io/api/core/v1.PodTemplateSpec"), 228 }, 229 }, 230 "ttlSecondsAfterFinished": { 231 SchemaProps: spec.SchemaProps{ 232 Description: "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature.", 233 Type: []string{"integer"}, 234 Format: "int32", 235 }, 236 }, 237 }, 238 Required: []string{"template"}, 239 }, 240 }, 241 Dependencies: []string{ 242 "k8s.io/api/core/v1.PodTemplateSpec", "k8s.io/apimachinery/pkg/apis/meta/v1.LabelSelector"}, 243 } 244 } 245 246 func schema_k8sio_api_batch_v1_JobStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { 247 return common.OpenAPIDefinition{ 248 Schema: spec.Schema{ 249 SchemaProps: spec.SchemaProps{ 250 Description: "JobStatus represents the current state of a Job.", 251 Type: []string{"object"}, 252 Properties: map[string]spec.Schema{ 253 "conditions": { 254 VendorExtensible: spec.VendorExtensible{ 255 Extensions: spec.Extensions{ 256 "x-kubernetes-patch-merge-key": "type", 257 "x-kubernetes-patch-strategy": "merge", 258 }, 259 }, 260 SchemaProps: spec.SchemaProps{ 261 Description: "The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", 262 Type: []string{"array"}, 263 Items: &spec.SchemaOrArray{ 264 Schema: &spec.Schema{ 265 SchemaProps: spec.SchemaProps{ 266 Ref: ref("k8s.io/api/batch/v1.JobCondition"), 267 }, 268 }, 269 }, 270 }, 271 }, 272 "startTime": { 273 SchemaProps: spec.SchemaProps{ 274 Description: "Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", 275 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 276 }, 277 }, 278 "completionTime": { 279 SchemaProps: spec.SchemaProps{ 280 Description: "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", 281 Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"), 282 }, 283 }, 284 "active": { 285 SchemaProps: spec.SchemaProps{ 286 Description: "The number of actively running pods.", 287 Type: []string{"integer"}, 288 Format: "int32", 289 }, 290 }, 291 "succeeded": { 292 SchemaProps: spec.SchemaProps{ 293 Description: "The number of pods which reached phase Succeeded.", 294 Type: []string{"integer"}, 295 Format: "int32", 296 }, 297 }, 298 "failed": { 299 SchemaProps: spec.SchemaProps{ 300 Description: "The number of pods which reached phase Failed.", 301 Type: []string{"integer"}, 302 Format: "int32", 303 }, 304 }, 305 }, 306 }, 307 }, 308 Dependencies: []string{ 309 "k8s.io/api/batch/v1.JobCondition", "k8s.io/apimachinery/pkg/apis/meta/v1.Time"}, 310 } 311 }