From 0f190680820ddcd4dd1810c89b48f984690382a1 Mon Sep 17 00:00:00 2001 From: Marc Nuri Date: Tue, 23 Jul 2024 12:18:16 +0200 Subject: [PATCH] refactor: kubernetes-model-admissionregistration generated from OpenAPI schemas Signed-off-by: Marc Nuri --- Makefile | 1 + kubernetes-model-generator/generateModel.sh | 1 - .../Makefile | 27 - .../cmd/generate/generate.go | 166 ---- .../pom.xml | 61 +- .../kubernetes/api/model/KubeSchema.java | 840 ------------------ .../api/model/ValidationSchema.java | 840 ------------------ .../model/admission/v1/AdmissionReview.java | 43 +- .../admission/v1beta1/AdmissionReview.java | 43 +- .../v1/MatchResources.java | 17 +- .../v1/MutatingWebhook.java | 17 +- .../v1/MutatingWebhookConfiguration.java | 11 +- .../admissionregistration/v1/ParamRef.java | 11 +- .../v1/ValidatingAdmissionPolicy.java | 11 +- .../v1/ValidatingAdmissionPolicyBinding.java | 11 +- .../v1/ValidatingWebhook.java | 17 +- .../v1/ValidatingWebhookConfiguration.java | 11 +- .../v1alpha1/MatchResources.java | 17 +- .../v1alpha1/ParamRef.java | 11 +- .../v1alpha1/ValidatingAdmissionPolicy.java | 11 +- .../ValidatingAdmissionPolicyBinding.java | 11 +- .../v1beta1/MatchResources.java | 17 +- .../v1beta1/MutatingWebhook.java | 34 +- .../v1beta1/MutatingWebhookConfiguration.java | 11 +- .../v1beta1/ParamRef.java | 11 +- .../v1beta1/RuleWithOperations.java | 174 ++++ .../v1beta1/ValidatingAdmissionPolicy.java | 11 +- .../ValidatingAdmissionPolicyBinding.java | 11 +- .../v1beta1/ValidatingWebhook.java | 34 +- .../ValidatingWebhookConfiguration.java | 11 +- .../authentication/SelfSubjectReview.java | 11 +- .../model/authentication/TokenRequest.java | 11 +- .../api/model/authentication/TokenReview.java | 11 +- .../v1alpha1/SelfSubjectReview.java | 11 +- .../v1beta1/SelfSubjectReview.java | 11 +- .../authentication/v1beta1/TokenReview.java | 203 +++++ .../v1beta1/TokenReviewSpec.java | 126 +++ .../v1beta1/TokenReviewStatus.java | 154 ++++ .../authentication/v1beta1/UserInfo.java | 156 ++++ .../v1/LocalSubjectAccessReview.java | 11 +- .../v1/SelfSubjectAccessReview.java | 11 +- .../v1/SelfSubjectRulesReview.java | 11 +- .../authorization/v1/SubjectAccessReview.java | 11 +- .../v1beta1/LocalSubjectAccessReview.java | 11 +- .../v1beta1/SelfSubjectAccessReview.java | 11 +- .../v1beta1/SelfSubjectRulesReview.java | 11 +- .../v1beta1/SubjectAccessReview.java | 11 +- .../generator/model/KubernetesTest.java | 46 - 48 files changed, 1058 insertions(+), 2262 deletions(-) delete mode 100644 kubernetes-model-generator/kubernetes-model-admissionregistration/Makefile delete mode 100644 kubernetes-model-generator/kubernetes-model-admissionregistration/cmd/generate/generate.go delete mode 100644 kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/KubeSchema.java delete mode 100644 kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/ValidationSchema.java create mode 100644 kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/RuleWithOperations.java create mode 100644 kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/TokenReview.java create mode 100644 kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/TokenReviewSpec.java create mode 100644 kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/TokenReviewStatus.java create mode 100644 kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/UserInfo.java diff --git a/Makefile b/Makefile index c537bda12fa..0f2d27d13e3 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,7 @@ generate-openapi-classes: cd kubernetes-model-generator/openapi/maven-plugin && mvn clean verify cd kubernetes-model-generator/kubernetes-model-core && mvn -Pgenerate clean install cd kubernetes-model-generator/kubernetes-model-rbac && mvn -Pgenerate clean install + cd kubernetes-model-generator/kubernetes-model-admissionregistration && mvn -Pgenerate clean install # Legacy generation of the model: TODO: remove .PHONY: generate-model-legacy diff --git a/kubernetes-model-generator/generateModel.sh b/kubernetes-model-generator/generateModel.sh index 4220aceaaa4..6c6d06b3e6b 100755 --- a/kubernetes-model-generator/generateModel.sh +++ b/kubernetes-model-generator/generateModel.sh @@ -22,7 +22,6 @@ ABSOLUTE_BASEDIR=$(realpath "$BASEDIR") # Array for all existing modules declare -a modules=( - "kubernetes-model-admissionregistration" "kubernetes-model-apiextensions" "kubernetes-model-apps" "kubernetes-model-autoscaling" diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/Makefile b/kubernetes-model-generator/kubernetes-model-admissionregistration/Makefile deleted file mode 100644 index c09a7003874..00000000000 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -# -# Copyright (C) 2015 Red Hat, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -SHELL := /bin/bash - -all: build - -build: gobuild - mvn -Pgenerate clean install -DskipTests - -gobuild: - CGO_ENABLED=0 GO15VENDOREXPERIMENT=1 go build -a ./cmd/generate/generate.go - ./generate > src/main/resources/schema/kube-schema.json - ./generate validation > src/main/resources/schema/validation-schema.json diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/cmd/generate/generate.go b/kubernetes-model-generator/kubernetes-model-admissionregistration/cmd/generate/generate.go deleted file mode 100644 index 912c6e797c5..00000000000 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/cmd/generate/generate.go +++ /dev/null @@ -1,166 +0,0 @@ -/** - * Copyright (C) 2015 Red Hat, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package main - -import ( - "bytes" - "encoding/json" - "fmt" - // Dependencies - authenticationapi "k8s.io/api/authentication/v1" - authenticationv1alpha1 "k8s.io/api/authentication/v1alpha1" - authenticationv1beta1 "k8s.io/api/authentication/v1beta1" - "k8s.io/apimachinery/pkg/api/resource" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - apimachineryversion "k8s.io/apimachinery/pkg/version" - - v1admission "k8s.io/api/admission/v1" - v1beta1admission "k8s.io/api/admission/v1beta1" - admissionregistrationv1 "k8s.io/api/admissionregistration/v1" - admissionregistrationv1alpha1 "k8s.io/api/admissionregistration/v1alpha1" - admissionregistration "k8s.io/api/admissionregistration/v1beta1" - k8sauthapi "k8s.io/api/authorization/v1" - k8sauthapiv1beta1 "k8s.io/api/authorization/v1beta1" - - "log" - "reflect" - "strings" - "time" - - "os" - - "github.com/fabric8io/kubernetes-client/kubernetes-model-generator/pkg/schemagen" -) - -type Schema struct { - Info apimachineryversion.Info - APIGroup metav1.APIGroup - APIGroupList metav1.APIGroupList - BaseKubernetesList metav1.List - ObjectMeta metav1.ObjectMeta - TypeMeta metav1.TypeMeta - Status metav1.Status - Patch metav1.Patch - ListOptions metav1.ListOptions - DeleteOptions metav1.DeleteOptions - CreateOptions metav1.CreateOptions - UpdateOptions metav1.UpdateOptions - GetOptions metav1.GetOptions - PatchOptions metav1.PatchOptions - Time metav1.Time - RootPaths metav1.RootPaths - Quantity resource.Quantity - - TokenReview authenticationapi.TokenReview - TokenRequest authenticationapi.TokenRequest - V1Beta1SelfSubjectReview authenticationv1beta1.SelfSubjectReview - SelfSubjectReview authenticationv1alpha1.SelfSubjectReview - V1SelfSubjectReview authenticationapi.SelfSubjectReview - - V1Beta1AdmissionReview v1beta1admission.AdmissionReview - V1Beta1AdmissionRequest v1beta1admission.AdmissionRequest - V1Beta1AdmissionResponse v1beta1admission.AdmissionResponse - V1Beta1PatchType v1beta1admission.PatchType - V1Beta1Operation v1beta1admission.Operation - V1AdmissionReview v1admission.AdmissionReview - V1AdmissionRequest v1admission.AdmissionRequest - V1AdmissionResponse v1admission.AdmissionResponse - V1PatchType v1admission.PatchType - V1Operation v1admission.Operation - ValidatingAdmissionPolicies admissionregistrationv1alpha1.ValidatingAdmissionPolicy - ValidatingAdmissionPoliciesList admissionregistrationv1alpha1.ValidatingAdmissionPolicyList - ValidatingAdmissionPolicyBinding admissionregistrationv1alpha1.ValidatingAdmissionPolicyBinding - ValidatingAdmissionPolicyBindingList admissionregistrationv1alpha1.ValidatingAdmissionPolicyBindingList - V1Beta1ValidatingAdmissionPolicy admissionregistration.ValidatingAdmissionPolicy - V1Beta1ValidatingAdmissionPolicyList admissionregistration.ValidatingAdmissionPolicyList - V1Beta1ValidatingAdmissionPolicyBinding admissionregistration.ValidatingAdmissionPolicyBinding - V1Beta1ValidatingAdmissionPolicyBindingList admissionregistration.ValidatingAdmissionPolicyBindingList - Rule admissionregistration.Rule - ValidatingWebhookConfiguration admissionregistration.ValidatingWebhookConfiguration - ValidatingWebhookConfigurationList admissionregistration.ValidatingWebhookConfigurationList - MutatingWebhookConfiguration admissionregistration.MutatingWebhookConfiguration - MutatingWebhookConfigurationList admissionregistration.MutatingWebhookConfigurationList - RuleWithOperations admissionregistration.RuleWithOperations - ServiceReference admissionregistration.ServiceReference - V1Rule admissionregistrationv1.Rule - V1ValidatingWebhookConfiguration admissionregistrationv1.ValidatingWebhookConfiguration - V1ValidatingWebhookConfigurationList admissionregistrationv1.ValidatingWebhookConfigurationList - V1MutatingWebhookConfiguration admissionregistrationv1.MutatingWebhookConfiguration - V1MutatingWebhookConfigurationList admissionregistrationv1.MutatingWebhookConfigurationList - V1ValidatingAdmissionPolicy admissionregistrationv1.ValidatingAdmissionPolicy - V1ValidatingAdmissionPolicyList admissionregistrationv1.ValidatingAdmissionPolicyList - V1ValidatingAdmissionPolicyBinding admissionregistrationv1.ValidatingAdmissionPolicyBinding - V1ValidatingAdmissionPolicyBindingList admissionregistrationv1.ValidatingAdmissionPolicyBindingList - V1RuleWithOperations admissionregistrationv1.RuleWithOperations - V1ServiceReference admissionregistrationv1.ServiceReference - K8sSubjectAccessReview k8sauthapi.SubjectAccessReview - K8sLocalSubjectAccessReview k8sauthapi.LocalSubjectAccessReview - SelfSubjectRulesReview k8sauthapi.SelfSubjectRulesReview - SelfSubjectAccessReview k8sauthapi.SelfSubjectAccessReview - V1beta1K8sSubjectAccessReview k8sauthapiv1beta1.SubjectAccessReview - V1beta1K8sLocalSubjectAccessReview k8sauthapiv1beta1.LocalSubjectAccessReview - V1beta1SelfSubjectRulesReview k8sauthapiv1beta1.SelfSubjectRulesReview - V1beta1SelfSubjectAccessReview k8sauthapiv1beta1.SelfSubjectAccessReview -} - -func main() { - packages := []schemagen.PackageDescriptor{ - {"k8s.io/api/admission/v1beta1", "admission.k8s.io", "io.fabric8.kubernetes.api.model.admission.v1beta1", "kubernetes_admission_v1beta1_", true}, - {"k8s.io/api/admission/v1", "admission.k8s.io", "io.fabric8.kubernetes.api.model.admission.v1", "kubernetes_admission_v1_", true}, - {"k8s.io/api/admissionregistration/v1alpha1", "admissionregistration.k8s.io", "io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1", "kubernetes_admissionregistration_v1alpha1_", true}, - {"k8s.io/api/admissionregistration/v1beta1", "admissionregistration.k8s.io", "io.fabric8.kubernetes.api.model.admissionregistration.v1beta1", "kubernetes_admissionregistration_v1beta1_", true}, - {"k8s.io/api/admissionregistration/v1", "admissionregistration.k8s.io", "io.fabric8.kubernetes.api.model.admissionregistration.v1", "kubernetes_admissionregistration_v1_", true}, - {"k8s.io/api/authentication/v1", "authentication.k8s.io", "io.fabric8.kubernetes.api.model.authentication", "kubernetes_authentication_", true}, - {"k8s.io/api/authentication/v1alpha1", "authentication.k8s.io", "io.fabric8.kubernetes.api.model.authentication.v1alpha1", "kubernetes_authentication_v1alpha1_", true}, - {"k8s.io/api/authentication/v1beta1", "authentication.k8s.io", "io.fabric8.kubernetes.api.model.authentication.v1beta1", "kubernetes_authentication_v1beta1_", true}, - {"k8s.io/apimachinery/pkg/util/intstr", "", "io.fabric8.kubernetes.api.model", "kubernetes_apimachinery_pkg_util_intstr_", false}, - {"k8s.io/apimachinery/pkg/runtime", "", "io.fabric8.kubernetes.api.model.runtime", "kubernetes_apimachinery_pkg_runtime_", false}, - {"k8s.io/apimachinery/pkg/version", "", "io.fabric8.kubernetes.api.model.version", "kubernetes_apimachinery_pkg_version_", false}, - {"k8s.io/apimachinery/pkg/apis/meta/v1", "", "io.fabric8.kubernetes.api.model", "kubernetes_apimachinery_", false}, - {"k8s.io/api/authorization/v1", "authorization.k8s.io", "io.fabric8.kubernetes.api.model.authorization.v1", "kubernetes_authorization_v1_", true}, - {"k8s.io/api/authorization/v1beta1", "authorization.k8s.io", "io.fabric8.kubernetes.api.model.authorization.v1beta1", "kubernetes_authorization_v1beta1_", true}, - } - - typeMap := map[reflect.Type]reflect.Type{ - reflect.TypeOf(time.Time{}): reflect.TypeOf(""), - reflect.TypeOf(struct{}{}): reflect.TypeOf(""), - } - schema, err := schemagen.GenerateSchema(reflect.TypeOf(Schema{}), packages, typeMap, map[reflect.Type]string{}, "admissionregistration") - if err != nil { - fmt.Fprintf(os.Stderr, "An error occurred: %v", err) - return - } - - args := os.Args[1:] - if len(args) < 1 || args[0] != "validation" { - schema.Resources = nil - } - - b, err := json.Marshal(&schema) - if err != nil { - log.Fatal(err) - } - result := string(b) - result = strings.Replace(result, "\"additionalProperty\":", "\"additionalProperties\":", -1) - - var out bytes.Buffer - err = json.Indent(&out, []byte(result), "", " ") - if err != nil { - log.Fatal(err) - } - - fmt.Println(out.String()) -} diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/pom.xml b/kubernetes-model-generator/kubernetes-model-admissionregistration/pom.xml index abb4a188415..dbf210124ca 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/pom.xml +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/pom.xml @@ -57,52 +57,33 @@ - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - - false - - - - - - - - generate - org.jsonschema2pojo - jsonschema2pojo-maven-plugin - - - maven-antrun-plugin - - - generate-sources - - - removing the duplicate generated class - - - - - - run - - - + io.fabric8 + openapi-model-generator-maven-plugin + + + + ${project.basedir}/../openapi/schemas/kubernetes-1.21.14.json + ${openapi.schema.kubernetes-latest} + ${project.basedir}/../openapi/schemas/admission-registration.json + + + io.fabric8.kubernetes.api.model + io.fabric8.kubernetes.api.model.authentication + + + ^io\.k8s\.api\.admission\..*$ + ^io\.k8s\.api\.admissionregistration\..*$ + ^io\.k8s\.api\.authentication\..*$ + ^io\.k8s\.api\.authorization\..*$ + + + diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/KubeSchema.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/KubeSchema.java deleted file mode 100644 index 74c1de28314..00000000000 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/KubeSchema.java +++ /dev/null @@ -1,840 +0,0 @@ - -package io.fabric8.kubernetes.api.model; - -import java.util.LinkedHashMap; -import java.util.Map; -import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import io.fabric8.kubernetes.api.model.admissionregistration.v1.Rule; -import io.fabric8.kubernetes.api.model.admissionregistration.v1.RuleWithOperations; -import io.fabric8.kubernetes.api.model.authentication.TokenRequest; -import io.fabric8.kubernetes.api.model.authentication.TokenReview; -import io.fabric8.kubernetes.api.model.version.Info; - -@Generated("jsonschema2pojo") -public class KubeSchema { - - private APIGroup aPIGroup; - private APIGroupList aPIGroupList; - private KubernetesList baseKubernetesList; - private CreateOptions createOptions; - private DeleteOptions deleteOptions; - private GetOptions getOptions; - private Info info; - private io.fabric8.kubernetes.api.model.authorization.v1.LocalSubjectAccessReview k8sLocalSubjectAccessReview; - private io.fabric8.kubernetes.api.model.authorization.v1.SubjectAccessReview k8sSubjectAccessReview; - private ListOptions listOptions; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.MutatingWebhookConfiguration mutatingWebhookConfiguration; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.MutatingWebhookConfigurationList mutatingWebhookConfigurationList; - private ObjectMeta objectMeta; - private Patch patch; - private PatchOptions patchOptions; - private Quantity quantity; - private RootPaths rootPaths; - private Rule rule; - private RuleWithOperations ruleWithOperations; - private io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectAccessReview selfSubjectAccessReview; - private io.fabric8.kubernetes.api.model.authentication.v1alpha1.SelfSubjectReview selfSubjectReview; - private io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectRulesReview selfSubjectRulesReview; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ServiceReference serviceReference; - private Status status; - private String time; - private TokenRequest tokenRequest; - private TokenReview tokenReview; - private TypeMeta typeMeta; - private UpdateOptions updateOptions; - private io.fabric8.kubernetes.api.model.admission.v1.AdmissionRequest v1AdmissionRequest; - private io.fabric8.kubernetes.api.model.admission.v1.AdmissionResponse v1AdmissionResponse; - private io.fabric8.kubernetes.api.model.admission.v1.AdmissionReview v1AdmissionReview; - private io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionRequest v1Beta1AdmissionRequest; - private io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionResponse v1Beta1AdmissionResponse; - private io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionReview v1Beta1AdmissionReview; - private String v1Beta1Operation; - private String v1Beta1PatchType; - private io.fabric8.kubernetes.api.model.authentication.v1beta1.SelfSubjectReview v1Beta1SelfSubjectReview; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicy v1Beta1ValidatingAdmissionPolicy; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding v1Beta1ValidatingAdmissionPolicyBinding; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList v1Beta1ValidatingAdmissionPolicyBindingList; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyList v1Beta1ValidatingAdmissionPolicyList; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.MutatingWebhookConfiguration v1MutatingWebhookConfiguration; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.MutatingWebhookConfigurationList v1MutatingWebhookConfigurationList; - private String v1Operation; - private String v1PatchType; - private Rule v1Rule; - private RuleWithOperations v1RuleWithOperations; - private io.fabric8.kubernetes.api.model.authentication.SelfSubjectReview v1SelfSubjectReview; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.ServiceReference v1ServiceReference; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicy v1ValidatingAdmissionPolicy; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyBinding v1ValidatingAdmissionPolicyBinding; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyBindingList v1ValidatingAdmissionPolicyBindingList; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyList v1ValidatingAdmissionPolicyList; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingWebhookConfiguration v1ValidatingWebhookConfiguration; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingWebhookConfigurationList v1ValidatingWebhookConfigurationList; - private io.fabric8.kubernetes.api.model.authorization.v1beta1.LocalSubjectAccessReview v1beta1K8sLocalSubjectAccessReview; - private io.fabric8.kubernetes.api.model.authorization.v1beta1.SubjectAccessReview v1beta1K8sSubjectAccessReview; - private io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectAccessReview v1beta1SelfSubjectAccessReview; - private io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectRulesReview v1beta1SelfSubjectRulesReview; - private io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicy validatingAdmissionPolicies; - private io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList validatingAdmissionPoliciesList; - private io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding validatingAdmissionPolicyBinding; - private io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList validatingAdmissionPolicyBindingList; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingWebhookConfiguration validatingWebhookConfiguration; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingWebhookConfigurationList validatingWebhookConfigurationList; - @JsonIgnore - private Map additionalProperties = new LinkedHashMap(); - - /** - * No args constructor for use in serialization - * - */ - public KubeSchema() { - } - - public KubeSchema(APIGroup aPIGroup, APIGroupList aPIGroupList, KubernetesList baseKubernetesList, CreateOptions createOptions, DeleteOptions deleteOptions, GetOptions getOptions, Info info, io.fabric8.kubernetes.api.model.authorization.v1.LocalSubjectAccessReview k8sLocalSubjectAccessReview, io.fabric8.kubernetes.api.model.authorization.v1.SubjectAccessReview k8sSubjectAccessReview, ListOptions listOptions, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.MutatingWebhookConfiguration mutatingWebhookConfiguration, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.MutatingWebhookConfigurationList mutatingWebhookConfigurationList, ObjectMeta objectMeta, Patch patch, PatchOptions patchOptions, Quantity quantity, RootPaths rootPaths, Rule rule, RuleWithOperations ruleWithOperations, io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectAccessReview selfSubjectAccessReview, io.fabric8.kubernetes.api.model.authentication.v1alpha1.SelfSubjectReview selfSubjectReview, io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectRulesReview selfSubjectRulesReview, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ServiceReference serviceReference, Status status, String time, TokenRequest tokenRequest, TokenReview tokenReview, TypeMeta typeMeta, UpdateOptions updateOptions, io.fabric8.kubernetes.api.model.admission.v1.AdmissionRequest v1AdmissionRequest, io.fabric8.kubernetes.api.model.admission.v1.AdmissionResponse v1AdmissionResponse, io.fabric8.kubernetes.api.model.admission.v1.AdmissionReview v1AdmissionReview, io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionRequest v1Beta1AdmissionRequest, io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionResponse v1Beta1AdmissionResponse, io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionReview v1Beta1AdmissionReview, String v1Beta1Operation, String v1Beta1PatchType, io.fabric8.kubernetes.api.model.authentication.v1beta1.SelfSubjectReview v1Beta1SelfSubjectReview, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicy v1Beta1ValidatingAdmissionPolicy, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding v1Beta1ValidatingAdmissionPolicyBinding, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList v1Beta1ValidatingAdmissionPolicyBindingList, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyList v1Beta1ValidatingAdmissionPolicyList, io.fabric8.kubernetes.api.model.admissionregistration.v1.MutatingWebhookConfiguration v1MutatingWebhookConfiguration, io.fabric8.kubernetes.api.model.admissionregistration.v1.MutatingWebhookConfigurationList v1MutatingWebhookConfigurationList, String v1Operation, String v1PatchType, Rule v1Rule, RuleWithOperations v1RuleWithOperations, io.fabric8.kubernetes.api.model.authentication.SelfSubjectReview v1SelfSubjectReview, io.fabric8.kubernetes.api.model.admissionregistration.v1.ServiceReference v1ServiceReference, io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicy v1ValidatingAdmissionPolicy, io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyBinding v1ValidatingAdmissionPolicyBinding, io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyBindingList v1ValidatingAdmissionPolicyBindingList, io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyList v1ValidatingAdmissionPolicyList, io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingWebhookConfiguration v1ValidatingWebhookConfiguration, io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingWebhookConfigurationList v1ValidatingWebhookConfigurationList, io.fabric8.kubernetes.api.model.authorization.v1beta1.LocalSubjectAccessReview v1beta1K8sLocalSubjectAccessReview, io.fabric8.kubernetes.api.model.authorization.v1beta1.SubjectAccessReview v1beta1K8sSubjectAccessReview, io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectAccessReview v1beta1SelfSubjectAccessReview, io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectRulesReview v1beta1SelfSubjectRulesReview, io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicy validatingAdmissionPolicies, io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList validatingAdmissionPoliciesList, io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding validatingAdmissionPolicyBinding, io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList validatingAdmissionPolicyBindingList, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingWebhookConfiguration validatingWebhookConfiguration, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingWebhookConfigurationList validatingWebhookConfigurationList) { - super(); - this.aPIGroup = aPIGroup; - this.aPIGroupList = aPIGroupList; - this.baseKubernetesList = baseKubernetesList; - this.createOptions = createOptions; - this.deleteOptions = deleteOptions; - this.getOptions = getOptions; - this.info = info; - this.k8sLocalSubjectAccessReview = k8sLocalSubjectAccessReview; - this.k8sSubjectAccessReview = k8sSubjectAccessReview; - this.listOptions = listOptions; - this.mutatingWebhookConfiguration = mutatingWebhookConfiguration; - this.mutatingWebhookConfigurationList = mutatingWebhookConfigurationList; - this.objectMeta = objectMeta; - this.patch = patch; - this.patchOptions = patchOptions; - this.quantity = quantity; - this.rootPaths = rootPaths; - this.rule = rule; - this.ruleWithOperations = ruleWithOperations; - this.selfSubjectAccessReview = selfSubjectAccessReview; - this.selfSubjectReview = selfSubjectReview; - this.selfSubjectRulesReview = selfSubjectRulesReview; - this.serviceReference = serviceReference; - this.status = status; - this.time = time; - this.tokenRequest = tokenRequest; - this.tokenReview = tokenReview; - this.typeMeta = typeMeta; - this.updateOptions = updateOptions; - this.v1AdmissionRequest = v1AdmissionRequest; - this.v1AdmissionResponse = v1AdmissionResponse; - this.v1AdmissionReview = v1AdmissionReview; - this.v1Beta1AdmissionRequest = v1Beta1AdmissionRequest; - this.v1Beta1AdmissionResponse = v1Beta1AdmissionResponse; - this.v1Beta1AdmissionReview = v1Beta1AdmissionReview; - this.v1Beta1Operation = v1Beta1Operation; - this.v1Beta1PatchType = v1Beta1PatchType; - this.v1Beta1SelfSubjectReview = v1Beta1SelfSubjectReview; - this.v1Beta1ValidatingAdmissionPolicy = v1Beta1ValidatingAdmissionPolicy; - this.v1Beta1ValidatingAdmissionPolicyBinding = v1Beta1ValidatingAdmissionPolicyBinding; - this.v1Beta1ValidatingAdmissionPolicyBindingList = v1Beta1ValidatingAdmissionPolicyBindingList; - this.v1Beta1ValidatingAdmissionPolicyList = v1Beta1ValidatingAdmissionPolicyList; - this.v1MutatingWebhookConfiguration = v1MutatingWebhookConfiguration; - this.v1MutatingWebhookConfigurationList = v1MutatingWebhookConfigurationList; - this.v1Operation = v1Operation; - this.v1PatchType = v1PatchType; - this.v1Rule = v1Rule; - this.v1RuleWithOperations = v1RuleWithOperations; - this.v1SelfSubjectReview = v1SelfSubjectReview; - this.v1ServiceReference = v1ServiceReference; - this.v1ValidatingAdmissionPolicy = v1ValidatingAdmissionPolicy; - this.v1ValidatingAdmissionPolicyBinding = v1ValidatingAdmissionPolicyBinding; - this.v1ValidatingAdmissionPolicyBindingList = v1ValidatingAdmissionPolicyBindingList; - this.v1ValidatingAdmissionPolicyList = v1ValidatingAdmissionPolicyList; - this.v1ValidatingWebhookConfiguration = v1ValidatingWebhookConfiguration; - this.v1ValidatingWebhookConfigurationList = v1ValidatingWebhookConfigurationList; - this.v1beta1K8sLocalSubjectAccessReview = v1beta1K8sLocalSubjectAccessReview; - this.v1beta1K8sSubjectAccessReview = v1beta1K8sSubjectAccessReview; - this.v1beta1SelfSubjectAccessReview = v1beta1SelfSubjectAccessReview; - this.v1beta1SelfSubjectRulesReview = v1beta1SelfSubjectRulesReview; - this.validatingAdmissionPolicies = validatingAdmissionPolicies; - this.validatingAdmissionPoliciesList = validatingAdmissionPoliciesList; - this.validatingAdmissionPolicyBinding = validatingAdmissionPolicyBinding; - this.validatingAdmissionPolicyBindingList = validatingAdmissionPolicyBindingList; - this.validatingWebhookConfiguration = validatingWebhookConfiguration; - this.validatingWebhookConfigurationList = validatingWebhookConfigurationList; - } - - @JsonProperty("APIGroup") - public APIGroup getAPIGroup() { - return aPIGroup; - } - - @JsonProperty("APIGroup") - public void setAPIGroup(APIGroup aPIGroup) { - this.aPIGroup = aPIGroup; - } - - @JsonProperty("APIGroupList") - public APIGroupList getAPIGroupList() { - return aPIGroupList; - } - - @JsonProperty("APIGroupList") - public void setAPIGroupList(APIGroupList aPIGroupList) { - this.aPIGroupList = aPIGroupList; - } - - @JsonProperty("BaseKubernetesList") - public KubernetesList getBaseKubernetesList() { - return baseKubernetesList; - } - - @JsonProperty("BaseKubernetesList") - public void setBaseKubernetesList(KubernetesList baseKubernetesList) { - this.baseKubernetesList = baseKubernetesList; - } - - @JsonProperty("CreateOptions") - public CreateOptions getCreateOptions() { - return createOptions; - } - - @JsonProperty("CreateOptions") - public void setCreateOptions(CreateOptions createOptions) { - this.createOptions = createOptions; - } - - @JsonProperty("DeleteOptions") - public DeleteOptions getDeleteOptions() { - return deleteOptions; - } - - @JsonProperty("DeleteOptions") - public void setDeleteOptions(DeleteOptions deleteOptions) { - this.deleteOptions = deleteOptions; - } - - @JsonProperty("GetOptions") - public GetOptions getGetOptions() { - return getOptions; - } - - @JsonProperty("GetOptions") - public void setGetOptions(GetOptions getOptions) { - this.getOptions = getOptions; - } - - @JsonProperty("Info") - public Info getInfo() { - return info; - } - - @JsonProperty("Info") - public void setInfo(Info info) { - this.info = info; - } - - @JsonProperty("K8sLocalSubjectAccessReview") - public io.fabric8.kubernetes.api.model.authorization.v1.LocalSubjectAccessReview getK8sLocalSubjectAccessReview() { - return k8sLocalSubjectAccessReview; - } - - @JsonProperty("K8sLocalSubjectAccessReview") - public void setK8sLocalSubjectAccessReview(io.fabric8.kubernetes.api.model.authorization.v1.LocalSubjectAccessReview k8sLocalSubjectAccessReview) { - this.k8sLocalSubjectAccessReview = k8sLocalSubjectAccessReview; - } - - @JsonProperty("K8sSubjectAccessReview") - public io.fabric8.kubernetes.api.model.authorization.v1.SubjectAccessReview getK8sSubjectAccessReview() { - return k8sSubjectAccessReview; - } - - @JsonProperty("K8sSubjectAccessReview") - public void setK8sSubjectAccessReview(io.fabric8.kubernetes.api.model.authorization.v1.SubjectAccessReview k8sSubjectAccessReview) { - this.k8sSubjectAccessReview = k8sSubjectAccessReview; - } - - @JsonProperty("ListOptions") - public ListOptions getListOptions() { - return listOptions; - } - - @JsonProperty("ListOptions") - public void setListOptions(ListOptions listOptions) { - this.listOptions = listOptions; - } - - @JsonProperty("MutatingWebhookConfiguration") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.MutatingWebhookConfiguration getMutatingWebhookConfiguration() { - return mutatingWebhookConfiguration; - } - - @JsonProperty("MutatingWebhookConfiguration") - public void setMutatingWebhookConfiguration(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.MutatingWebhookConfiguration mutatingWebhookConfiguration) { - this.mutatingWebhookConfiguration = mutatingWebhookConfiguration; - } - - @JsonProperty("MutatingWebhookConfigurationList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.MutatingWebhookConfigurationList getMutatingWebhookConfigurationList() { - return mutatingWebhookConfigurationList; - } - - @JsonProperty("MutatingWebhookConfigurationList") - public void setMutatingWebhookConfigurationList(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.MutatingWebhookConfigurationList mutatingWebhookConfigurationList) { - this.mutatingWebhookConfigurationList = mutatingWebhookConfigurationList; - } - - @JsonProperty("ObjectMeta") - public ObjectMeta getObjectMeta() { - return objectMeta; - } - - @JsonProperty("ObjectMeta") - public void setObjectMeta(ObjectMeta objectMeta) { - this.objectMeta = objectMeta; - } - - @JsonProperty("Patch") - public Patch getPatch() { - return patch; - } - - @JsonProperty("Patch") - public void setPatch(Patch patch) { - this.patch = patch; - } - - @JsonProperty("PatchOptions") - public PatchOptions getPatchOptions() { - return patchOptions; - } - - @JsonProperty("PatchOptions") - public void setPatchOptions(PatchOptions patchOptions) { - this.patchOptions = patchOptions; - } - - @JsonProperty("Quantity") - public Quantity getQuantity() { - return quantity; - } - - @JsonProperty("Quantity") - public void setQuantity(Quantity quantity) { - this.quantity = quantity; - } - - @JsonProperty("RootPaths") - public RootPaths getRootPaths() { - return rootPaths; - } - - @JsonProperty("RootPaths") - public void setRootPaths(RootPaths rootPaths) { - this.rootPaths = rootPaths; - } - - @JsonProperty("Rule") - public Rule getRule() { - return rule; - } - - @JsonProperty("Rule") - public void setRule(Rule rule) { - this.rule = rule; - } - - @JsonProperty("RuleWithOperations") - public RuleWithOperations getRuleWithOperations() { - return ruleWithOperations; - } - - @JsonProperty("RuleWithOperations") - public void setRuleWithOperations(RuleWithOperations ruleWithOperations) { - this.ruleWithOperations = ruleWithOperations; - } - - @JsonProperty("SelfSubjectAccessReview") - public io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectAccessReview getSelfSubjectAccessReview() { - return selfSubjectAccessReview; - } - - @JsonProperty("SelfSubjectAccessReview") - public void setSelfSubjectAccessReview(io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectAccessReview selfSubjectAccessReview) { - this.selfSubjectAccessReview = selfSubjectAccessReview; - } - - @JsonProperty("SelfSubjectReview") - public io.fabric8.kubernetes.api.model.authentication.v1alpha1.SelfSubjectReview getSelfSubjectReview() { - return selfSubjectReview; - } - - @JsonProperty("SelfSubjectReview") - public void setSelfSubjectReview(io.fabric8.kubernetes.api.model.authentication.v1alpha1.SelfSubjectReview selfSubjectReview) { - this.selfSubjectReview = selfSubjectReview; - } - - @JsonProperty("SelfSubjectRulesReview") - public io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectRulesReview getSelfSubjectRulesReview() { - return selfSubjectRulesReview; - } - - @JsonProperty("SelfSubjectRulesReview") - public void setSelfSubjectRulesReview(io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectRulesReview selfSubjectRulesReview) { - this.selfSubjectRulesReview = selfSubjectRulesReview; - } - - @JsonProperty("ServiceReference") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ServiceReference getServiceReference() { - return serviceReference; - } - - @JsonProperty("ServiceReference") - public void setServiceReference(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ServiceReference serviceReference) { - this.serviceReference = serviceReference; - } - - @JsonProperty("Status") - public Status getStatus() { - return status; - } - - @JsonProperty("Status") - public void setStatus(Status status) { - this.status = status; - } - - @JsonProperty("Time") - public String getTime() { - return time; - } - - @JsonProperty("Time") - public void setTime(String time) { - this.time = time; - } - - @JsonProperty("TokenRequest") - public TokenRequest getTokenRequest() { - return tokenRequest; - } - - @JsonProperty("TokenRequest") - public void setTokenRequest(TokenRequest tokenRequest) { - this.tokenRequest = tokenRequest; - } - - @JsonProperty("TokenReview") - public TokenReview getTokenReview() { - return tokenReview; - } - - @JsonProperty("TokenReview") - public void setTokenReview(TokenReview tokenReview) { - this.tokenReview = tokenReview; - } - - @JsonProperty("TypeMeta") - public TypeMeta getTypeMeta() { - return typeMeta; - } - - @JsonProperty("TypeMeta") - public void setTypeMeta(TypeMeta typeMeta) { - this.typeMeta = typeMeta; - } - - @JsonProperty("UpdateOptions") - public UpdateOptions getUpdateOptions() { - return updateOptions; - } - - @JsonProperty("UpdateOptions") - public void setUpdateOptions(UpdateOptions updateOptions) { - this.updateOptions = updateOptions; - } - - @JsonProperty("V1AdmissionRequest") - public io.fabric8.kubernetes.api.model.admission.v1.AdmissionRequest getV1AdmissionRequest() { - return v1AdmissionRequest; - } - - @JsonProperty("V1AdmissionRequest") - public void setV1AdmissionRequest(io.fabric8.kubernetes.api.model.admission.v1.AdmissionRequest v1AdmissionRequest) { - this.v1AdmissionRequest = v1AdmissionRequest; - } - - @JsonProperty("V1AdmissionResponse") - public io.fabric8.kubernetes.api.model.admission.v1.AdmissionResponse getV1AdmissionResponse() { - return v1AdmissionResponse; - } - - @JsonProperty("V1AdmissionResponse") - public void setV1AdmissionResponse(io.fabric8.kubernetes.api.model.admission.v1.AdmissionResponse v1AdmissionResponse) { - this.v1AdmissionResponse = v1AdmissionResponse; - } - - @JsonProperty("V1AdmissionReview") - public io.fabric8.kubernetes.api.model.admission.v1.AdmissionReview getV1AdmissionReview() { - return v1AdmissionReview; - } - - @JsonProperty("V1AdmissionReview") - public void setV1AdmissionReview(io.fabric8.kubernetes.api.model.admission.v1.AdmissionReview v1AdmissionReview) { - this.v1AdmissionReview = v1AdmissionReview; - } - - @JsonProperty("V1Beta1AdmissionRequest") - public io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionRequest getV1Beta1AdmissionRequest() { - return v1Beta1AdmissionRequest; - } - - @JsonProperty("V1Beta1AdmissionRequest") - public void setV1Beta1AdmissionRequest(io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionRequest v1Beta1AdmissionRequest) { - this.v1Beta1AdmissionRequest = v1Beta1AdmissionRequest; - } - - @JsonProperty("V1Beta1AdmissionResponse") - public io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionResponse getV1Beta1AdmissionResponse() { - return v1Beta1AdmissionResponse; - } - - @JsonProperty("V1Beta1AdmissionResponse") - public void setV1Beta1AdmissionResponse(io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionResponse v1Beta1AdmissionResponse) { - this.v1Beta1AdmissionResponse = v1Beta1AdmissionResponse; - } - - @JsonProperty("V1Beta1AdmissionReview") - public io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionReview getV1Beta1AdmissionReview() { - return v1Beta1AdmissionReview; - } - - @JsonProperty("V1Beta1AdmissionReview") - public void setV1Beta1AdmissionReview(io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionReview v1Beta1AdmissionReview) { - this.v1Beta1AdmissionReview = v1Beta1AdmissionReview; - } - - @JsonProperty("V1Beta1Operation") - public String getV1Beta1Operation() { - return v1Beta1Operation; - } - - @JsonProperty("V1Beta1Operation") - public void setV1Beta1Operation(String v1Beta1Operation) { - this.v1Beta1Operation = v1Beta1Operation; - } - - @JsonProperty("V1Beta1PatchType") - public String getV1Beta1PatchType() { - return v1Beta1PatchType; - } - - @JsonProperty("V1Beta1PatchType") - public void setV1Beta1PatchType(String v1Beta1PatchType) { - this.v1Beta1PatchType = v1Beta1PatchType; - } - - @JsonProperty("V1Beta1SelfSubjectReview") - public io.fabric8.kubernetes.api.model.authentication.v1beta1.SelfSubjectReview getV1Beta1SelfSubjectReview() { - return v1Beta1SelfSubjectReview; - } - - @JsonProperty("V1Beta1SelfSubjectReview") - public void setV1Beta1SelfSubjectReview(io.fabric8.kubernetes.api.model.authentication.v1beta1.SelfSubjectReview v1Beta1SelfSubjectReview) { - this.v1Beta1SelfSubjectReview = v1Beta1SelfSubjectReview; - } - - @JsonProperty("V1Beta1ValidatingAdmissionPolicy") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicy getV1Beta1ValidatingAdmissionPolicy() { - return v1Beta1ValidatingAdmissionPolicy; - } - - @JsonProperty("V1Beta1ValidatingAdmissionPolicy") - public void setV1Beta1ValidatingAdmissionPolicy(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicy v1Beta1ValidatingAdmissionPolicy) { - this.v1Beta1ValidatingAdmissionPolicy = v1Beta1ValidatingAdmissionPolicy; - } - - @JsonProperty("V1Beta1ValidatingAdmissionPolicyBinding") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding getV1Beta1ValidatingAdmissionPolicyBinding() { - return v1Beta1ValidatingAdmissionPolicyBinding; - } - - @JsonProperty("V1Beta1ValidatingAdmissionPolicyBinding") - public void setV1Beta1ValidatingAdmissionPolicyBinding(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding v1Beta1ValidatingAdmissionPolicyBinding) { - this.v1Beta1ValidatingAdmissionPolicyBinding = v1Beta1ValidatingAdmissionPolicyBinding; - } - - @JsonProperty("V1Beta1ValidatingAdmissionPolicyBindingList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList getV1Beta1ValidatingAdmissionPolicyBindingList() { - return v1Beta1ValidatingAdmissionPolicyBindingList; - } - - @JsonProperty("V1Beta1ValidatingAdmissionPolicyBindingList") - public void setV1Beta1ValidatingAdmissionPolicyBindingList(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList v1Beta1ValidatingAdmissionPolicyBindingList) { - this.v1Beta1ValidatingAdmissionPolicyBindingList = v1Beta1ValidatingAdmissionPolicyBindingList; - } - - @JsonProperty("V1Beta1ValidatingAdmissionPolicyList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyList getV1Beta1ValidatingAdmissionPolicyList() { - return v1Beta1ValidatingAdmissionPolicyList; - } - - @JsonProperty("V1Beta1ValidatingAdmissionPolicyList") - public void setV1Beta1ValidatingAdmissionPolicyList(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyList v1Beta1ValidatingAdmissionPolicyList) { - this.v1Beta1ValidatingAdmissionPolicyList = v1Beta1ValidatingAdmissionPolicyList; - } - - @JsonProperty("V1MutatingWebhookConfiguration") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.MutatingWebhookConfiguration getV1MutatingWebhookConfiguration() { - return v1MutatingWebhookConfiguration; - } - - @JsonProperty("V1MutatingWebhookConfiguration") - public void setV1MutatingWebhookConfiguration(io.fabric8.kubernetes.api.model.admissionregistration.v1.MutatingWebhookConfiguration v1MutatingWebhookConfiguration) { - this.v1MutatingWebhookConfiguration = v1MutatingWebhookConfiguration; - } - - @JsonProperty("V1MutatingWebhookConfigurationList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.MutatingWebhookConfigurationList getV1MutatingWebhookConfigurationList() { - return v1MutatingWebhookConfigurationList; - } - - @JsonProperty("V1MutatingWebhookConfigurationList") - public void setV1MutatingWebhookConfigurationList(io.fabric8.kubernetes.api.model.admissionregistration.v1.MutatingWebhookConfigurationList v1MutatingWebhookConfigurationList) { - this.v1MutatingWebhookConfigurationList = v1MutatingWebhookConfigurationList; - } - - @JsonProperty("V1Operation") - public String getV1Operation() { - return v1Operation; - } - - @JsonProperty("V1Operation") - public void setV1Operation(String v1Operation) { - this.v1Operation = v1Operation; - } - - @JsonProperty("V1PatchType") - public String getV1PatchType() { - return v1PatchType; - } - - @JsonProperty("V1PatchType") - public void setV1PatchType(String v1PatchType) { - this.v1PatchType = v1PatchType; - } - - @JsonProperty("V1Rule") - public Rule getV1Rule() { - return v1Rule; - } - - @JsonProperty("V1Rule") - public void setV1Rule(Rule v1Rule) { - this.v1Rule = v1Rule; - } - - @JsonProperty("V1RuleWithOperations") - public RuleWithOperations getV1RuleWithOperations() { - return v1RuleWithOperations; - } - - @JsonProperty("V1RuleWithOperations") - public void setV1RuleWithOperations(RuleWithOperations v1RuleWithOperations) { - this.v1RuleWithOperations = v1RuleWithOperations; - } - - @JsonProperty("V1SelfSubjectReview") - public io.fabric8.kubernetes.api.model.authentication.SelfSubjectReview getV1SelfSubjectReview() { - return v1SelfSubjectReview; - } - - @JsonProperty("V1SelfSubjectReview") - public void setV1SelfSubjectReview(io.fabric8.kubernetes.api.model.authentication.SelfSubjectReview v1SelfSubjectReview) { - this.v1SelfSubjectReview = v1SelfSubjectReview; - } - - @JsonProperty("V1ServiceReference") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.ServiceReference getV1ServiceReference() { - return v1ServiceReference; - } - - @JsonProperty("V1ServiceReference") - public void setV1ServiceReference(io.fabric8.kubernetes.api.model.admissionregistration.v1.ServiceReference v1ServiceReference) { - this.v1ServiceReference = v1ServiceReference; - } - - @JsonProperty("V1ValidatingAdmissionPolicy") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicy getV1ValidatingAdmissionPolicy() { - return v1ValidatingAdmissionPolicy; - } - - @JsonProperty("V1ValidatingAdmissionPolicy") - public void setV1ValidatingAdmissionPolicy(io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicy v1ValidatingAdmissionPolicy) { - this.v1ValidatingAdmissionPolicy = v1ValidatingAdmissionPolicy; - } - - @JsonProperty("V1ValidatingAdmissionPolicyBinding") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyBinding getV1ValidatingAdmissionPolicyBinding() { - return v1ValidatingAdmissionPolicyBinding; - } - - @JsonProperty("V1ValidatingAdmissionPolicyBinding") - public void setV1ValidatingAdmissionPolicyBinding(io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyBinding v1ValidatingAdmissionPolicyBinding) { - this.v1ValidatingAdmissionPolicyBinding = v1ValidatingAdmissionPolicyBinding; - } - - @JsonProperty("V1ValidatingAdmissionPolicyBindingList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyBindingList getV1ValidatingAdmissionPolicyBindingList() { - return v1ValidatingAdmissionPolicyBindingList; - } - - @JsonProperty("V1ValidatingAdmissionPolicyBindingList") - public void setV1ValidatingAdmissionPolicyBindingList(io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyBindingList v1ValidatingAdmissionPolicyBindingList) { - this.v1ValidatingAdmissionPolicyBindingList = v1ValidatingAdmissionPolicyBindingList; - } - - @JsonProperty("V1ValidatingAdmissionPolicyList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyList getV1ValidatingAdmissionPolicyList() { - return v1ValidatingAdmissionPolicyList; - } - - @JsonProperty("V1ValidatingAdmissionPolicyList") - public void setV1ValidatingAdmissionPolicyList(io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyList v1ValidatingAdmissionPolicyList) { - this.v1ValidatingAdmissionPolicyList = v1ValidatingAdmissionPolicyList; - } - - @JsonProperty("V1ValidatingWebhookConfiguration") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingWebhookConfiguration getV1ValidatingWebhookConfiguration() { - return v1ValidatingWebhookConfiguration; - } - - @JsonProperty("V1ValidatingWebhookConfiguration") - public void setV1ValidatingWebhookConfiguration(io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingWebhookConfiguration v1ValidatingWebhookConfiguration) { - this.v1ValidatingWebhookConfiguration = v1ValidatingWebhookConfiguration; - } - - @JsonProperty("V1ValidatingWebhookConfigurationList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingWebhookConfigurationList getV1ValidatingWebhookConfigurationList() { - return v1ValidatingWebhookConfigurationList; - } - - @JsonProperty("V1ValidatingWebhookConfigurationList") - public void setV1ValidatingWebhookConfigurationList(io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingWebhookConfigurationList v1ValidatingWebhookConfigurationList) { - this.v1ValidatingWebhookConfigurationList = v1ValidatingWebhookConfigurationList; - } - - @JsonProperty("V1beta1K8sLocalSubjectAccessReview") - public io.fabric8.kubernetes.api.model.authorization.v1beta1.LocalSubjectAccessReview getV1beta1K8sLocalSubjectAccessReview() { - return v1beta1K8sLocalSubjectAccessReview; - } - - @JsonProperty("V1beta1K8sLocalSubjectAccessReview") - public void setV1beta1K8sLocalSubjectAccessReview(io.fabric8.kubernetes.api.model.authorization.v1beta1.LocalSubjectAccessReview v1beta1K8sLocalSubjectAccessReview) { - this.v1beta1K8sLocalSubjectAccessReview = v1beta1K8sLocalSubjectAccessReview; - } - - @JsonProperty("V1beta1K8sSubjectAccessReview") - public io.fabric8.kubernetes.api.model.authorization.v1beta1.SubjectAccessReview getV1beta1K8sSubjectAccessReview() { - return v1beta1K8sSubjectAccessReview; - } - - @JsonProperty("V1beta1K8sSubjectAccessReview") - public void setV1beta1K8sSubjectAccessReview(io.fabric8.kubernetes.api.model.authorization.v1beta1.SubjectAccessReview v1beta1K8sSubjectAccessReview) { - this.v1beta1K8sSubjectAccessReview = v1beta1K8sSubjectAccessReview; - } - - @JsonProperty("V1beta1SelfSubjectAccessReview") - public io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectAccessReview getV1beta1SelfSubjectAccessReview() { - return v1beta1SelfSubjectAccessReview; - } - - @JsonProperty("V1beta1SelfSubjectAccessReview") - public void setV1beta1SelfSubjectAccessReview(io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectAccessReview v1beta1SelfSubjectAccessReview) { - this.v1beta1SelfSubjectAccessReview = v1beta1SelfSubjectAccessReview; - } - - @JsonProperty("V1beta1SelfSubjectRulesReview") - public io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectRulesReview getV1beta1SelfSubjectRulesReview() { - return v1beta1SelfSubjectRulesReview; - } - - @JsonProperty("V1beta1SelfSubjectRulesReview") - public void setV1beta1SelfSubjectRulesReview(io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectRulesReview v1beta1SelfSubjectRulesReview) { - this.v1beta1SelfSubjectRulesReview = v1beta1SelfSubjectRulesReview; - } - - @JsonProperty("ValidatingAdmissionPolicies") - public io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicy getValidatingAdmissionPolicies() { - return validatingAdmissionPolicies; - } - - @JsonProperty("ValidatingAdmissionPolicies") - public void setValidatingAdmissionPolicies(io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicy validatingAdmissionPolicies) { - this.validatingAdmissionPolicies = validatingAdmissionPolicies; - } - - @JsonProperty("ValidatingAdmissionPoliciesList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList getValidatingAdmissionPoliciesList() { - return validatingAdmissionPoliciesList; - } - - @JsonProperty("ValidatingAdmissionPoliciesList") - public void setValidatingAdmissionPoliciesList(io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList validatingAdmissionPoliciesList) { - this.validatingAdmissionPoliciesList = validatingAdmissionPoliciesList; - } - - @JsonProperty("ValidatingAdmissionPolicyBinding") - public io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding getValidatingAdmissionPolicyBinding() { - return validatingAdmissionPolicyBinding; - } - - @JsonProperty("ValidatingAdmissionPolicyBinding") - public void setValidatingAdmissionPolicyBinding(io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding validatingAdmissionPolicyBinding) { - this.validatingAdmissionPolicyBinding = validatingAdmissionPolicyBinding; - } - - @JsonProperty("ValidatingAdmissionPolicyBindingList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList getValidatingAdmissionPolicyBindingList() { - return validatingAdmissionPolicyBindingList; - } - - @JsonProperty("ValidatingAdmissionPolicyBindingList") - public void setValidatingAdmissionPolicyBindingList(io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList validatingAdmissionPolicyBindingList) { - this.validatingAdmissionPolicyBindingList = validatingAdmissionPolicyBindingList; - } - - @JsonProperty("ValidatingWebhookConfiguration") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingWebhookConfiguration getValidatingWebhookConfiguration() { - return validatingWebhookConfiguration; - } - - @JsonProperty("ValidatingWebhookConfiguration") - public void setValidatingWebhookConfiguration(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingWebhookConfiguration validatingWebhookConfiguration) { - this.validatingWebhookConfiguration = validatingWebhookConfiguration; - } - - @JsonProperty("ValidatingWebhookConfigurationList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingWebhookConfigurationList getValidatingWebhookConfigurationList() { - return validatingWebhookConfigurationList; - } - - @JsonProperty("ValidatingWebhookConfigurationList") - public void setValidatingWebhookConfigurationList(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingWebhookConfigurationList validatingWebhookConfigurationList) { - this.validatingWebhookConfigurationList = validatingWebhookConfigurationList; - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - @JsonAnySetter - public void setAdditionalProperty(String name, Object value) { - this.additionalProperties.put(name, value); - } - - public void setAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - } - -} diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/ValidationSchema.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/ValidationSchema.java deleted file mode 100644 index 050eeefdf76..00000000000 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/ValidationSchema.java +++ /dev/null @@ -1,840 +0,0 @@ - -package io.fabric8.kubernetes.api.model; - -import java.util.LinkedHashMap; -import java.util.Map; -import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import io.fabric8.kubernetes.api.model.admissionregistration.v1.Rule; -import io.fabric8.kubernetes.api.model.admissionregistration.v1.RuleWithOperations; -import io.fabric8.kubernetes.api.model.authentication.TokenRequest; -import io.fabric8.kubernetes.api.model.authentication.TokenReview; -import io.fabric8.kubernetes.api.model.version.Info; - -@Generated("jsonschema2pojo") -public class ValidationSchema { - - private APIGroup aPIGroup; - private APIGroupList aPIGroupList; - private KubernetesList baseKubernetesList; - private CreateOptions createOptions; - private DeleteOptions deleteOptions; - private GetOptions getOptions; - private Info info; - private io.fabric8.kubernetes.api.model.authorization.v1.LocalSubjectAccessReview k8sLocalSubjectAccessReview; - private io.fabric8.kubernetes.api.model.authorization.v1.SubjectAccessReview k8sSubjectAccessReview; - private ListOptions listOptions; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.MutatingWebhookConfiguration mutatingWebhookConfiguration; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.MutatingWebhookConfigurationList mutatingWebhookConfigurationList; - private ObjectMeta objectMeta; - private Patch patch; - private PatchOptions patchOptions; - private Quantity quantity; - private RootPaths rootPaths; - private Rule rule; - private RuleWithOperations ruleWithOperations; - private io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectAccessReview selfSubjectAccessReview; - private io.fabric8.kubernetes.api.model.authentication.v1alpha1.SelfSubjectReview selfSubjectReview; - private io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectRulesReview selfSubjectRulesReview; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ServiceReference serviceReference; - private Status status; - private String time; - private TokenRequest tokenRequest; - private TokenReview tokenReview; - private TypeMeta typeMeta; - private UpdateOptions updateOptions; - private io.fabric8.kubernetes.api.model.admission.v1.AdmissionRequest v1AdmissionRequest; - private io.fabric8.kubernetes.api.model.admission.v1.AdmissionResponse v1AdmissionResponse; - private io.fabric8.kubernetes.api.model.admission.v1.AdmissionReview v1AdmissionReview; - private io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionRequest v1Beta1AdmissionRequest; - private io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionResponse v1Beta1AdmissionResponse; - private io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionReview v1Beta1AdmissionReview; - private String v1Beta1Operation; - private String v1Beta1PatchType; - private io.fabric8.kubernetes.api.model.authentication.v1beta1.SelfSubjectReview v1Beta1SelfSubjectReview; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicy v1Beta1ValidatingAdmissionPolicy; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding v1Beta1ValidatingAdmissionPolicyBinding; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList v1Beta1ValidatingAdmissionPolicyBindingList; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyList v1Beta1ValidatingAdmissionPolicyList; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.MutatingWebhookConfiguration v1MutatingWebhookConfiguration; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.MutatingWebhookConfigurationList v1MutatingWebhookConfigurationList; - private String v1Operation; - private String v1PatchType; - private Rule v1Rule; - private RuleWithOperations v1RuleWithOperations; - private io.fabric8.kubernetes.api.model.authentication.SelfSubjectReview v1SelfSubjectReview; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.ServiceReference v1ServiceReference; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicy v1ValidatingAdmissionPolicy; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyBinding v1ValidatingAdmissionPolicyBinding; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyBindingList v1ValidatingAdmissionPolicyBindingList; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyList v1ValidatingAdmissionPolicyList; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingWebhookConfiguration v1ValidatingWebhookConfiguration; - private io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingWebhookConfigurationList v1ValidatingWebhookConfigurationList; - private io.fabric8.kubernetes.api.model.authorization.v1beta1.LocalSubjectAccessReview v1beta1K8sLocalSubjectAccessReview; - private io.fabric8.kubernetes.api.model.authorization.v1beta1.SubjectAccessReview v1beta1K8sSubjectAccessReview; - private io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectAccessReview v1beta1SelfSubjectAccessReview; - private io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectRulesReview v1beta1SelfSubjectRulesReview; - private io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicy validatingAdmissionPolicies; - private io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList validatingAdmissionPoliciesList; - private io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding validatingAdmissionPolicyBinding; - private io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList validatingAdmissionPolicyBindingList; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingWebhookConfiguration validatingWebhookConfiguration; - private io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingWebhookConfigurationList validatingWebhookConfigurationList; - @JsonIgnore - private Map additionalProperties = new LinkedHashMap(); - - /** - * No args constructor for use in serialization - * - */ - public ValidationSchema() { - } - - public ValidationSchema(APIGroup aPIGroup, APIGroupList aPIGroupList, KubernetesList baseKubernetesList, CreateOptions createOptions, DeleteOptions deleteOptions, GetOptions getOptions, Info info, io.fabric8.kubernetes.api.model.authorization.v1.LocalSubjectAccessReview k8sLocalSubjectAccessReview, io.fabric8.kubernetes.api.model.authorization.v1.SubjectAccessReview k8sSubjectAccessReview, ListOptions listOptions, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.MutatingWebhookConfiguration mutatingWebhookConfiguration, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.MutatingWebhookConfigurationList mutatingWebhookConfigurationList, ObjectMeta objectMeta, Patch patch, PatchOptions patchOptions, Quantity quantity, RootPaths rootPaths, Rule rule, RuleWithOperations ruleWithOperations, io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectAccessReview selfSubjectAccessReview, io.fabric8.kubernetes.api.model.authentication.v1alpha1.SelfSubjectReview selfSubjectReview, io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectRulesReview selfSubjectRulesReview, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ServiceReference serviceReference, Status status, String time, TokenRequest tokenRequest, TokenReview tokenReview, TypeMeta typeMeta, UpdateOptions updateOptions, io.fabric8.kubernetes.api.model.admission.v1.AdmissionRequest v1AdmissionRequest, io.fabric8.kubernetes.api.model.admission.v1.AdmissionResponse v1AdmissionResponse, io.fabric8.kubernetes.api.model.admission.v1.AdmissionReview v1AdmissionReview, io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionRequest v1Beta1AdmissionRequest, io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionResponse v1Beta1AdmissionResponse, io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionReview v1Beta1AdmissionReview, String v1Beta1Operation, String v1Beta1PatchType, io.fabric8.kubernetes.api.model.authentication.v1beta1.SelfSubjectReview v1Beta1SelfSubjectReview, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicy v1Beta1ValidatingAdmissionPolicy, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding v1Beta1ValidatingAdmissionPolicyBinding, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList v1Beta1ValidatingAdmissionPolicyBindingList, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyList v1Beta1ValidatingAdmissionPolicyList, io.fabric8.kubernetes.api.model.admissionregistration.v1.MutatingWebhookConfiguration v1MutatingWebhookConfiguration, io.fabric8.kubernetes.api.model.admissionregistration.v1.MutatingWebhookConfigurationList v1MutatingWebhookConfigurationList, String v1Operation, String v1PatchType, Rule v1Rule, RuleWithOperations v1RuleWithOperations, io.fabric8.kubernetes.api.model.authentication.SelfSubjectReview v1SelfSubjectReview, io.fabric8.kubernetes.api.model.admissionregistration.v1.ServiceReference v1ServiceReference, io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicy v1ValidatingAdmissionPolicy, io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyBinding v1ValidatingAdmissionPolicyBinding, io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyBindingList v1ValidatingAdmissionPolicyBindingList, io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyList v1ValidatingAdmissionPolicyList, io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingWebhookConfiguration v1ValidatingWebhookConfiguration, io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingWebhookConfigurationList v1ValidatingWebhookConfigurationList, io.fabric8.kubernetes.api.model.authorization.v1beta1.LocalSubjectAccessReview v1beta1K8sLocalSubjectAccessReview, io.fabric8.kubernetes.api.model.authorization.v1beta1.SubjectAccessReview v1beta1K8sSubjectAccessReview, io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectAccessReview v1beta1SelfSubjectAccessReview, io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectRulesReview v1beta1SelfSubjectRulesReview, io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicy validatingAdmissionPolicies, io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList validatingAdmissionPoliciesList, io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding validatingAdmissionPolicyBinding, io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList validatingAdmissionPolicyBindingList, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingWebhookConfiguration validatingWebhookConfiguration, io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingWebhookConfigurationList validatingWebhookConfigurationList) { - super(); - this.aPIGroup = aPIGroup; - this.aPIGroupList = aPIGroupList; - this.baseKubernetesList = baseKubernetesList; - this.createOptions = createOptions; - this.deleteOptions = deleteOptions; - this.getOptions = getOptions; - this.info = info; - this.k8sLocalSubjectAccessReview = k8sLocalSubjectAccessReview; - this.k8sSubjectAccessReview = k8sSubjectAccessReview; - this.listOptions = listOptions; - this.mutatingWebhookConfiguration = mutatingWebhookConfiguration; - this.mutatingWebhookConfigurationList = mutatingWebhookConfigurationList; - this.objectMeta = objectMeta; - this.patch = patch; - this.patchOptions = patchOptions; - this.quantity = quantity; - this.rootPaths = rootPaths; - this.rule = rule; - this.ruleWithOperations = ruleWithOperations; - this.selfSubjectAccessReview = selfSubjectAccessReview; - this.selfSubjectReview = selfSubjectReview; - this.selfSubjectRulesReview = selfSubjectRulesReview; - this.serviceReference = serviceReference; - this.status = status; - this.time = time; - this.tokenRequest = tokenRequest; - this.tokenReview = tokenReview; - this.typeMeta = typeMeta; - this.updateOptions = updateOptions; - this.v1AdmissionRequest = v1AdmissionRequest; - this.v1AdmissionResponse = v1AdmissionResponse; - this.v1AdmissionReview = v1AdmissionReview; - this.v1Beta1AdmissionRequest = v1Beta1AdmissionRequest; - this.v1Beta1AdmissionResponse = v1Beta1AdmissionResponse; - this.v1Beta1AdmissionReview = v1Beta1AdmissionReview; - this.v1Beta1Operation = v1Beta1Operation; - this.v1Beta1PatchType = v1Beta1PatchType; - this.v1Beta1SelfSubjectReview = v1Beta1SelfSubjectReview; - this.v1Beta1ValidatingAdmissionPolicy = v1Beta1ValidatingAdmissionPolicy; - this.v1Beta1ValidatingAdmissionPolicyBinding = v1Beta1ValidatingAdmissionPolicyBinding; - this.v1Beta1ValidatingAdmissionPolicyBindingList = v1Beta1ValidatingAdmissionPolicyBindingList; - this.v1Beta1ValidatingAdmissionPolicyList = v1Beta1ValidatingAdmissionPolicyList; - this.v1MutatingWebhookConfiguration = v1MutatingWebhookConfiguration; - this.v1MutatingWebhookConfigurationList = v1MutatingWebhookConfigurationList; - this.v1Operation = v1Operation; - this.v1PatchType = v1PatchType; - this.v1Rule = v1Rule; - this.v1RuleWithOperations = v1RuleWithOperations; - this.v1SelfSubjectReview = v1SelfSubjectReview; - this.v1ServiceReference = v1ServiceReference; - this.v1ValidatingAdmissionPolicy = v1ValidatingAdmissionPolicy; - this.v1ValidatingAdmissionPolicyBinding = v1ValidatingAdmissionPolicyBinding; - this.v1ValidatingAdmissionPolicyBindingList = v1ValidatingAdmissionPolicyBindingList; - this.v1ValidatingAdmissionPolicyList = v1ValidatingAdmissionPolicyList; - this.v1ValidatingWebhookConfiguration = v1ValidatingWebhookConfiguration; - this.v1ValidatingWebhookConfigurationList = v1ValidatingWebhookConfigurationList; - this.v1beta1K8sLocalSubjectAccessReview = v1beta1K8sLocalSubjectAccessReview; - this.v1beta1K8sSubjectAccessReview = v1beta1K8sSubjectAccessReview; - this.v1beta1SelfSubjectAccessReview = v1beta1SelfSubjectAccessReview; - this.v1beta1SelfSubjectRulesReview = v1beta1SelfSubjectRulesReview; - this.validatingAdmissionPolicies = validatingAdmissionPolicies; - this.validatingAdmissionPoliciesList = validatingAdmissionPoliciesList; - this.validatingAdmissionPolicyBinding = validatingAdmissionPolicyBinding; - this.validatingAdmissionPolicyBindingList = validatingAdmissionPolicyBindingList; - this.validatingWebhookConfiguration = validatingWebhookConfiguration; - this.validatingWebhookConfigurationList = validatingWebhookConfigurationList; - } - - @JsonProperty("APIGroup") - public APIGroup getAPIGroup() { - return aPIGroup; - } - - @JsonProperty("APIGroup") - public void setAPIGroup(APIGroup aPIGroup) { - this.aPIGroup = aPIGroup; - } - - @JsonProperty("APIGroupList") - public APIGroupList getAPIGroupList() { - return aPIGroupList; - } - - @JsonProperty("APIGroupList") - public void setAPIGroupList(APIGroupList aPIGroupList) { - this.aPIGroupList = aPIGroupList; - } - - @JsonProperty("BaseKubernetesList") - public KubernetesList getBaseKubernetesList() { - return baseKubernetesList; - } - - @JsonProperty("BaseKubernetesList") - public void setBaseKubernetesList(KubernetesList baseKubernetesList) { - this.baseKubernetesList = baseKubernetesList; - } - - @JsonProperty("CreateOptions") - public CreateOptions getCreateOptions() { - return createOptions; - } - - @JsonProperty("CreateOptions") - public void setCreateOptions(CreateOptions createOptions) { - this.createOptions = createOptions; - } - - @JsonProperty("DeleteOptions") - public DeleteOptions getDeleteOptions() { - return deleteOptions; - } - - @JsonProperty("DeleteOptions") - public void setDeleteOptions(DeleteOptions deleteOptions) { - this.deleteOptions = deleteOptions; - } - - @JsonProperty("GetOptions") - public GetOptions getGetOptions() { - return getOptions; - } - - @JsonProperty("GetOptions") - public void setGetOptions(GetOptions getOptions) { - this.getOptions = getOptions; - } - - @JsonProperty("Info") - public Info getInfo() { - return info; - } - - @JsonProperty("Info") - public void setInfo(Info info) { - this.info = info; - } - - @JsonProperty("K8sLocalSubjectAccessReview") - public io.fabric8.kubernetes.api.model.authorization.v1.LocalSubjectAccessReview getK8sLocalSubjectAccessReview() { - return k8sLocalSubjectAccessReview; - } - - @JsonProperty("K8sLocalSubjectAccessReview") - public void setK8sLocalSubjectAccessReview(io.fabric8.kubernetes.api.model.authorization.v1.LocalSubjectAccessReview k8sLocalSubjectAccessReview) { - this.k8sLocalSubjectAccessReview = k8sLocalSubjectAccessReview; - } - - @JsonProperty("K8sSubjectAccessReview") - public io.fabric8.kubernetes.api.model.authorization.v1.SubjectAccessReview getK8sSubjectAccessReview() { - return k8sSubjectAccessReview; - } - - @JsonProperty("K8sSubjectAccessReview") - public void setK8sSubjectAccessReview(io.fabric8.kubernetes.api.model.authorization.v1.SubjectAccessReview k8sSubjectAccessReview) { - this.k8sSubjectAccessReview = k8sSubjectAccessReview; - } - - @JsonProperty("ListOptions") - public ListOptions getListOptions() { - return listOptions; - } - - @JsonProperty("ListOptions") - public void setListOptions(ListOptions listOptions) { - this.listOptions = listOptions; - } - - @JsonProperty("MutatingWebhookConfiguration") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.MutatingWebhookConfiguration getMutatingWebhookConfiguration() { - return mutatingWebhookConfiguration; - } - - @JsonProperty("MutatingWebhookConfiguration") - public void setMutatingWebhookConfiguration(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.MutatingWebhookConfiguration mutatingWebhookConfiguration) { - this.mutatingWebhookConfiguration = mutatingWebhookConfiguration; - } - - @JsonProperty("MutatingWebhookConfigurationList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.MutatingWebhookConfigurationList getMutatingWebhookConfigurationList() { - return mutatingWebhookConfigurationList; - } - - @JsonProperty("MutatingWebhookConfigurationList") - public void setMutatingWebhookConfigurationList(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.MutatingWebhookConfigurationList mutatingWebhookConfigurationList) { - this.mutatingWebhookConfigurationList = mutatingWebhookConfigurationList; - } - - @JsonProperty("ObjectMeta") - public ObjectMeta getObjectMeta() { - return objectMeta; - } - - @JsonProperty("ObjectMeta") - public void setObjectMeta(ObjectMeta objectMeta) { - this.objectMeta = objectMeta; - } - - @JsonProperty("Patch") - public Patch getPatch() { - return patch; - } - - @JsonProperty("Patch") - public void setPatch(Patch patch) { - this.patch = patch; - } - - @JsonProperty("PatchOptions") - public PatchOptions getPatchOptions() { - return patchOptions; - } - - @JsonProperty("PatchOptions") - public void setPatchOptions(PatchOptions patchOptions) { - this.patchOptions = patchOptions; - } - - @JsonProperty("Quantity") - public Quantity getQuantity() { - return quantity; - } - - @JsonProperty("Quantity") - public void setQuantity(Quantity quantity) { - this.quantity = quantity; - } - - @JsonProperty("RootPaths") - public RootPaths getRootPaths() { - return rootPaths; - } - - @JsonProperty("RootPaths") - public void setRootPaths(RootPaths rootPaths) { - this.rootPaths = rootPaths; - } - - @JsonProperty("Rule") - public Rule getRule() { - return rule; - } - - @JsonProperty("Rule") - public void setRule(Rule rule) { - this.rule = rule; - } - - @JsonProperty("RuleWithOperations") - public RuleWithOperations getRuleWithOperations() { - return ruleWithOperations; - } - - @JsonProperty("RuleWithOperations") - public void setRuleWithOperations(RuleWithOperations ruleWithOperations) { - this.ruleWithOperations = ruleWithOperations; - } - - @JsonProperty("SelfSubjectAccessReview") - public io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectAccessReview getSelfSubjectAccessReview() { - return selfSubjectAccessReview; - } - - @JsonProperty("SelfSubjectAccessReview") - public void setSelfSubjectAccessReview(io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectAccessReview selfSubjectAccessReview) { - this.selfSubjectAccessReview = selfSubjectAccessReview; - } - - @JsonProperty("SelfSubjectReview") - public io.fabric8.kubernetes.api.model.authentication.v1alpha1.SelfSubjectReview getSelfSubjectReview() { - return selfSubjectReview; - } - - @JsonProperty("SelfSubjectReview") - public void setSelfSubjectReview(io.fabric8.kubernetes.api.model.authentication.v1alpha1.SelfSubjectReview selfSubjectReview) { - this.selfSubjectReview = selfSubjectReview; - } - - @JsonProperty("SelfSubjectRulesReview") - public io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectRulesReview getSelfSubjectRulesReview() { - return selfSubjectRulesReview; - } - - @JsonProperty("SelfSubjectRulesReview") - public void setSelfSubjectRulesReview(io.fabric8.kubernetes.api.model.authorization.v1.SelfSubjectRulesReview selfSubjectRulesReview) { - this.selfSubjectRulesReview = selfSubjectRulesReview; - } - - @JsonProperty("ServiceReference") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ServiceReference getServiceReference() { - return serviceReference; - } - - @JsonProperty("ServiceReference") - public void setServiceReference(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ServiceReference serviceReference) { - this.serviceReference = serviceReference; - } - - @JsonProperty("Status") - public Status getStatus() { - return status; - } - - @JsonProperty("Status") - public void setStatus(Status status) { - this.status = status; - } - - @JsonProperty("Time") - public String getTime() { - return time; - } - - @JsonProperty("Time") - public void setTime(String time) { - this.time = time; - } - - @JsonProperty("TokenRequest") - public TokenRequest getTokenRequest() { - return tokenRequest; - } - - @JsonProperty("TokenRequest") - public void setTokenRequest(TokenRequest tokenRequest) { - this.tokenRequest = tokenRequest; - } - - @JsonProperty("TokenReview") - public TokenReview getTokenReview() { - return tokenReview; - } - - @JsonProperty("TokenReview") - public void setTokenReview(TokenReview tokenReview) { - this.tokenReview = tokenReview; - } - - @JsonProperty("TypeMeta") - public TypeMeta getTypeMeta() { - return typeMeta; - } - - @JsonProperty("TypeMeta") - public void setTypeMeta(TypeMeta typeMeta) { - this.typeMeta = typeMeta; - } - - @JsonProperty("UpdateOptions") - public UpdateOptions getUpdateOptions() { - return updateOptions; - } - - @JsonProperty("UpdateOptions") - public void setUpdateOptions(UpdateOptions updateOptions) { - this.updateOptions = updateOptions; - } - - @JsonProperty("V1AdmissionRequest") - public io.fabric8.kubernetes.api.model.admission.v1.AdmissionRequest getV1AdmissionRequest() { - return v1AdmissionRequest; - } - - @JsonProperty("V1AdmissionRequest") - public void setV1AdmissionRequest(io.fabric8.kubernetes.api.model.admission.v1.AdmissionRequest v1AdmissionRequest) { - this.v1AdmissionRequest = v1AdmissionRequest; - } - - @JsonProperty("V1AdmissionResponse") - public io.fabric8.kubernetes.api.model.admission.v1.AdmissionResponse getV1AdmissionResponse() { - return v1AdmissionResponse; - } - - @JsonProperty("V1AdmissionResponse") - public void setV1AdmissionResponse(io.fabric8.kubernetes.api.model.admission.v1.AdmissionResponse v1AdmissionResponse) { - this.v1AdmissionResponse = v1AdmissionResponse; - } - - @JsonProperty("V1AdmissionReview") - public io.fabric8.kubernetes.api.model.admission.v1.AdmissionReview getV1AdmissionReview() { - return v1AdmissionReview; - } - - @JsonProperty("V1AdmissionReview") - public void setV1AdmissionReview(io.fabric8.kubernetes.api.model.admission.v1.AdmissionReview v1AdmissionReview) { - this.v1AdmissionReview = v1AdmissionReview; - } - - @JsonProperty("V1Beta1AdmissionRequest") - public io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionRequest getV1Beta1AdmissionRequest() { - return v1Beta1AdmissionRequest; - } - - @JsonProperty("V1Beta1AdmissionRequest") - public void setV1Beta1AdmissionRequest(io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionRequest v1Beta1AdmissionRequest) { - this.v1Beta1AdmissionRequest = v1Beta1AdmissionRequest; - } - - @JsonProperty("V1Beta1AdmissionResponse") - public io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionResponse getV1Beta1AdmissionResponse() { - return v1Beta1AdmissionResponse; - } - - @JsonProperty("V1Beta1AdmissionResponse") - public void setV1Beta1AdmissionResponse(io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionResponse v1Beta1AdmissionResponse) { - this.v1Beta1AdmissionResponse = v1Beta1AdmissionResponse; - } - - @JsonProperty("V1Beta1AdmissionReview") - public io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionReview getV1Beta1AdmissionReview() { - return v1Beta1AdmissionReview; - } - - @JsonProperty("V1Beta1AdmissionReview") - public void setV1Beta1AdmissionReview(io.fabric8.kubernetes.api.model.admission.v1beta1.AdmissionReview v1Beta1AdmissionReview) { - this.v1Beta1AdmissionReview = v1Beta1AdmissionReview; - } - - @JsonProperty("V1Beta1Operation") - public String getV1Beta1Operation() { - return v1Beta1Operation; - } - - @JsonProperty("V1Beta1Operation") - public void setV1Beta1Operation(String v1Beta1Operation) { - this.v1Beta1Operation = v1Beta1Operation; - } - - @JsonProperty("V1Beta1PatchType") - public String getV1Beta1PatchType() { - return v1Beta1PatchType; - } - - @JsonProperty("V1Beta1PatchType") - public void setV1Beta1PatchType(String v1Beta1PatchType) { - this.v1Beta1PatchType = v1Beta1PatchType; - } - - @JsonProperty("V1Beta1SelfSubjectReview") - public io.fabric8.kubernetes.api.model.authentication.v1beta1.SelfSubjectReview getV1Beta1SelfSubjectReview() { - return v1Beta1SelfSubjectReview; - } - - @JsonProperty("V1Beta1SelfSubjectReview") - public void setV1Beta1SelfSubjectReview(io.fabric8.kubernetes.api.model.authentication.v1beta1.SelfSubjectReview v1Beta1SelfSubjectReview) { - this.v1Beta1SelfSubjectReview = v1Beta1SelfSubjectReview; - } - - @JsonProperty("V1Beta1ValidatingAdmissionPolicy") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicy getV1Beta1ValidatingAdmissionPolicy() { - return v1Beta1ValidatingAdmissionPolicy; - } - - @JsonProperty("V1Beta1ValidatingAdmissionPolicy") - public void setV1Beta1ValidatingAdmissionPolicy(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicy v1Beta1ValidatingAdmissionPolicy) { - this.v1Beta1ValidatingAdmissionPolicy = v1Beta1ValidatingAdmissionPolicy; - } - - @JsonProperty("V1Beta1ValidatingAdmissionPolicyBinding") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding getV1Beta1ValidatingAdmissionPolicyBinding() { - return v1Beta1ValidatingAdmissionPolicyBinding; - } - - @JsonProperty("V1Beta1ValidatingAdmissionPolicyBinding") - public void setV1Beta1ValidatingAdmissionPolicyBinding(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding v1Beta1ValidatingAdmissionPolicyBinding) { - this.v1Beta1ValidatingAdmissionPolicyBinding = v1Beta1ValidatingAdmissionPolicyBinding; - } - - @JsonProperty("V1Beta1ValidatingAdmissionPolicyBindingList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList getV1Beta1ValidatingAdmissionPolicyBindingList() { - return v1Beta1ValidatingAdmissionPolicyBindingList; - } - - @JsonProperty("V1Beta1ValidatingAdmissionPolicyBindingList") - public void setV1Beta1ValidatingAdmissionPolicyBindingList(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyBindingList v1Beta1ValidatingAdmissionPolicyBindingList) { - this.v1Beta1ValidatingAdmissionPolicyBindingList = v1Beta1ValidatingAdmissionPolicyBindingList; - } - - @JsonProperty("V1Beta1ValidatingAdmissionPolicyList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyList getV1Beta1ValidatingAdmissionPolicyList() { - return v1Beta1ValidatingAdmissionPolicyList; - } - - @JsonProperty("V1Beta1ValidatingAdmissionPolicyList") - public void setV1Beta1ValidatingAdmissionPolicyList(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingAdmissionPolicyList v1Beta1ValidatingAdmissionPolicyList) { - this.v1Beta1ValidatingAdmissionPolicyList = v1Beta1ValidatingAdmissionPolicyList; - } - - @JsonProperty("V1MutatingWebhookConfiguration") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.MutatingWebhookConfiguration getV1MutatingWebhookConfiguration() { - return v1MutatingWebhookConfiguration; - } - - @JsonProperty("V1MutatingWebhookConfiguration") - public void setV1MutatingWebhookConfiguration(io.fabric8.kubernetes.api.model.admissionregistration.v1.MutatingWebhookConfiguration v1MutatingWebhookConfiguration) { - this.v1MutatingWebhookConfiguration = v1MutatingWebhookConfiguration; - } - - @JsonProperty("V1MutatingWebhookConfigurationList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.MutatingWebhookConfigurationList getV1MutatingWebhookConfigurationList() { - return v1MutatingWebhookConfigurationList; - } - - @JsonProperty("V1MutatingWebhookConfigurationList") - public void setV1MutatingWebhookConfigurationList(io.fabric8.kubernetes.api.model.admissionregistration.v1.MutatingWebhookConfigurationList v1MutatingWebhookConfigurationList) { - this.v1MutatingWebhookConfigurationList = v1MutatingWebhookConfigurationList; - } - - @JsonProperty("V1Operation") - public String getV1Operation() { - return v1Operation; - } - - @JsonProperty("V1Operation") - public void setV1Operation(String v1Operation) { - this.v1Operation = v1Operation; - } - - @JsonProperty("V1PatchType") - public String getV1PatchType() { - return v1PatchType; - } - - @JsonProperty("V1PatchType") - public void setV1PatchType(String v1PatchType) { - this.v1PatchType = v1PatchType; - } - - @JsonProperty("V1Rule") - public Rule getV1Rule() { - return v1Rule; - } - - @JsonProperty("V1Rule") - public void setV1Rule(Rule v1Rule) { - this.v1Rule = v1Rule; - } - - @JsonProperty("V1RuleWithOperations") - public RuleWithOperations getV1RuleWithOperations() { - return v1RuleWithOperations; - } - - @JsonProperty("V1RuleWithOperations") - public void setV1RuleWithOperations(RuleWithOperations v1RuleWithOperations) { - this.v1RuleWithOperations = v1RuleWithOperations; - } - - @JsonProperty("V1SelfSubjectReview") - public io.fabric8.kubernetes.api.model.authentication.SelfSubjectReview getV1SelfSubjectReview() { - return v1SelfSubjectReview; - } - - @JsonProperty("V1SelfSubjectReview") - public void setV1SelfSubjectReview(io.fabric8.kubernetes.api.model.authentication.SelfSubjectReview v1SelfSubjectReview) { - this.v1SelfSubjectReview = v1SelfSubjectReview; - } - - @JsonProperty("V1ServiceReference") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.ServiceReference getV1ServiceReference() { - return v1ServiceReference; - } - - @JsonProperty("V1ServiceReference") - public void setV1ServiceReference(io.fabric8.kubernetes.api.model.admissionregistration.v1.ServiceReference v1ServiceReference) { - this.v1ServiceReference = v1ServiceReference; - } - - @JsonProperty("V1ValidatingAdmissionPolicy") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicy getV1ValidatingAdmissionPolicy() { - return v1ValidatingAdmissionPolicy; - } - - @JsonProperty("V1ValidatingAdmissionPolicy") - public void setV1ValidatingAdmissionPolicy(io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicy v1ValidatingAdmissionPolicy) { - this.v1ValidatingAdmissionPolicy = v1ValidatingAdmissionPolicy; - } - - @JsonProperty("V1ValidatingAdmissionPolicyBinding") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyBinding getV1ValidatingAdmissionPolicyBinding() { - return v1ValidatingAdmissionPolicyBinding; - } - - @JsonProperty("V1ValidatingAdmissionPolicyBinding") - public void setV1ValidatingAdmissionPolicyBinding(io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyBinding v1ValidatingAdmissionPolicyBinding) { - this.v1ValidatingAdmissionPolicyBinding = v1ValidatingAdmissionPolicyBinding; - } - - @JsonProperty("V1ValidatingAdmissionPolicyBindingList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyBindingList getV1ValidatingAdmissionPolicyBindingList() { - return v1ValidatingAdmissionPolicyBindingList; - } - - @JsonProperty("V1ValidatingAdmissionPolicyBindingList") - public void setV1ValidatingAdmissionPolicyBindingList(io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyBindingList v1ValidatingAdmissionPolicyBindingList) { - this.v1ValidatingAdmissionPolicyBindingList = v1ValidatingAdmissionPolicyBindingList; - } - - @JsonProperty("V1ValidatingAdmissionPolicyList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyList getV1ValidatingAdmissionPolicyList() { - return v1ValidatingAdmissionPolicyList; - } - - @JsonProperty("V1ValidatingAdmissionPolicyList") - public void setV1ValidatingAdmissionPolicyList(io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingAdmissionPolicyList v1ValidatingAdmissionPolicyList) { - this.v1ValidatingAdmissionPolicyList = v1ValidatingAdmissionPolicyList; - } - - @JsonProperty("V1ValidatingWebhookConfiguration") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingWebhookConfiguration getV1ValidatingWebhookConfiguration() { - return v1ValidatingWebhookConfiguration; - } - - @JsonProperty("V1ValidatingWebhookConfiguration") - public void setV1ValidatingWebhookConfiguration(io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingWebhookConfiguration v1ValidatingWebhookConfiguration) { - this.v1ValidatingWebhookConfiguration = v1ValidatingWebhookConfiguration; - } - - @JsonProperty("V1ValidatingWebhookConfigurationList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingWebhookConfigurationList getV1ValidatingWebhookConfigurationList() { - return v1ValidatingWebhookConfigurationList; - } - - @JsonProperty("V1ValidatingWebhookConfigurationList") - public void setV1ValidatingWebhookConfigurationList(io.fabric8.kubernetes.api.model.admissionregistration.v1.ValidatingWebhookConfigurationList v1ValidatingWebhookConfigurationList) { - this.v1ValidatingWebhookConfigurationList = v1ValidatingWebhookConfigurationList; - } - - @JsonProperty("V1beta1K8sLocalSubjectAccessReview") - public io.fabric8.kubernetes.api.model.authorization.v1beta1.LocalSubjectAccessReview getV1beta1K8sLocalSubjectAccessReview() { - return v1beta1K8sLocalSubjectAccessReview; - } - - @JsonProperty("V1beta1K8sLocalSubjectAccessReview") - public void setV1beta1K8sLocalSubjectAccessReview(io.fabric8.kubernetes.api.model.authorization.v1beta1.LocalSubjectAccessReview v1beta1K8sLocalSubjectAccessReview) { - this.v1beta1K8sLocalSubjectAccessReview = v1beta1K8sLocalSubjectAccessReview; - } - - @JsonProperty("V1beta1K8sSubjectAccessReview") - public io.fabric8.kubernetes.api.model.authorization.v1beta1.SubjectAccessReview getV1beta1K8sSubjectAccessReview() { - return v1beta1K8sSubjectAccessReview; - } - - @JsonProperty("V1beta1K8sSubjectAccessReview") - public void setV1beta1K8sSubjectAccessReview(io.fabric8.kubernetes.api.model.authorization.v1beta1.SubjectAccessReview v1beta1K8sSubjectAccessReview) { - this.v1beta1K8sSubjectAccessReview = v1beta1K8sSubjectAccessReview; - } - - @JsonProperty("V1beta1SelfSubjectAccessReview") - public io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectAccessReview getV1beta1SelfSubjectAccessReview() { - return v1beta1SelfSubjectAccessReview; - } - - @JsonProperty("V1beta1SelfSubjectAccessReview") - public void setV1beta1SelfSubjectAccessReview(io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectAccessReview v1beta1SelfSubjectAccessReview) { - this.v1beta1SelfSubjectAccessReview = v1beta1SelfSubjectAccessReview; - } - - @JsonProperty("V1beta1SelfSubjectRulesReview") - public io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectRulesReview getV1beta1SelfSubjectRulesReview() { - return v1beta1SelfSubjectRulesReview; - } - - @JsonProperty("V1beta1SelfSubjectRulesReview") - public void setV1beta1SelfSubjectRulesReview(io.fabric8.kubernetes.api.model.authorization.v1beta1.SelfSubjectRulesReview v1beta1SelfSubjectRulesReview) { - this.v1beta1SelfSubjectRulesReview = v1beta1SelfSubjectRulesReview; - } - - @JsonProperty("ValidatingAdmissionPolicies") - public io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicy getValidatingAdmissionPolicies() { - return validatingAdmissionPolicies; - } - - @JsonProperty("ValidatingAdmissionPolicies") - public void setValidatingAdmissionPolicies(io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicy validatingAdmissionPolicies) { - this.validatingAdmissionPolicies = validatingAdmissionPolicies; - } - - @JsonProperty("ValidatingAdmissionPoliciesList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList getValidatingAdmissionPoliciesList() { - return validatingAdmissionPoliciesList; - } - - @JsonProperty("ValidatingAdmissionPoliciesList") - public void setValidatingAdmissionPoliciesList(io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList validatingAdmissionPoliciesList) { - this.validatingAdmissionPoliciesList = validatingAdmissionPoliciesList; - } - - @JsonProperty("ValidatingAdmissionPolicyBinding") - public io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding getValidatingAdmissionPolicyBinding() { - return validatingAdmissionPolicyBinding; - } - - @JsonProperty("ValidatingAdmissionPolicyBinding") - public void setValidatingAdmissionPolicyBinding(io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding validatingAdmissionPolicyBinding) { - this.validatingAdmissionPolicyBinding = validatingAdmissionPolicyBinding; - } - - @JsonProperty("ValidatingAdmissionPolicyBindingList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList getValidatingAdmissionPolicyBindingList() { - return validatingAdmissionPolicyBindingList; - } - - @JsonProperty("ValidatingAdmissionPolicyBindingList") - public void setValidatingAdmissionPolicyBindingList(io.fabric8.kubernetes.api.model.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList validatingAdmissionPolicyBindingList) { - this.validatingAdmissionPolicyBindingList = validatingAdmissionPolicyBindingList; - } - - @JsonProperty("ValidatingWebhookConfiguration") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingWebhookConfiguration getValidatingWebhookConfiguration() { - return validatingWebhookConfiguration; - } - - @JsonProperty("ValidatingWebhookConfiguration") - public void setValidatingWebhookConfiguration(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingWebhookConfiguration validatingWebhookConfiguration) { - this.validatingWebhookConfiguration = validatingWebhookConfiguration; - } - - @JsonProperty("ValidatingWebhookConfigurationList") - public io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingWebhookConfigurationList getValidatingWebhookConfigurationList() { - return validatingWebhookConfigurationList; - } - - @JsonProperty("ValidatingWebhookConfigurationList") - public void setValidatingWebhookConfigurationList(io.fabric8.kubernetes.api.model.admissionregistration.v1beta1.ValidatingWebhookConfigurationList validatingWebhookConfigurationList) { - this.validatingWebhookConfigurationList = validatingWebhookConfigurationList; - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - @JsonAnySetter - public void setAdditionalProperty(String name, Object value) { - this.additionalProperties.put(name, value); - } - - public void setAdditionalProperties(Map additionalProperties) { - this.additionalProperties = additionalProperties; - } - -} diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admission/v1/AdmissionReview.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admission/v1/AdmissionReview.java index 45d6e065cce..e4e3f196f8d 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admission/v1/AdmissionReview.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admission/v1/AdmissionReview.java @@ -22,12 +22,8 @@ import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; import io.fabric8.kubernetes.api.model.PodTemplateSpec; import io.fabric8.kubernetes.api.model.ResourceRequirements; -import io.fabric8.kubernetes.model.annotation.Group; -import io.fabric8.kubernetes.model.annotation.Version; import io.sundr.builder.annotations.Buildable; import io.sundr.builder.annotations.BuildableReference; -import io.sundr.transform.annotations.TemplateTransformation; -import io.sundr.transform.annotations.TemplateTransformations; import lombok.EqualsAndHashCode; import lombok.ToString; import lombok.experimental.Accessors; @@ -57,29 +53,14 @@ @BuildableReference(LocalObjectReference.class), @BuildableReference(PersistentVolumeClaim.class) }) -@TemplateTransformations({ - @TemplateTransformation(value = "/manifest.vm", outputPath = "META-INF/services/io.fabric8.kubernetes.api.model.KubernetesResource", gather = true) -}) -@Version("v1") -@Group("admission.k8s.io") @Generated("jsonschema2pojo") public class AdmissionReview implements Editable , KubernetesResource { - /** - * - * (Required) - * - */ @JsonProperty("apiVersion") - private String apiVersion = "admission.k8s.io/v1"; - /** - * - * (Required) - * - */ + private String apiVersion; @JsonProperty("kind") - private String kind = "AdmissionReview"; + private String kind; @JsonProperty("request") private AdmissionRequest request; @JsonProperty("response") @@ -102,41 +83,21 @@ public AdmissionReview(String apiVersion, String kind, AdmissionRequest request, this.response = response; } - /** - * - * (Required) - * - */ @JsonProperty("apiVersion") public String getApiVersion() { return apiVersion; } - /** - * - * (Required) - * - */ @JsonProperty("apiVersion") public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } - /** - * - * (Required) - * - */ @JsonProperty("kind") public String getKind() { return kind; } - /** - * - * (Required) - * - */ @JsonProperty("kind") public void setKind(String kind) { this.kind = kind; diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admission/v1beta1/AdmissionReview.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admission/v1beta1/AdmissionReview.java index 7cdc1c328d2..f9004890485 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admission/v1beta1/AdmissionReview.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admission/v1beta1/AdmissionReview.java @@ -22,12 +22,8 @@ import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; import io.fabric8.kubernetes.api.model.PodTemplateSpec; import io.fabric8.kubernetes.api.model.ResourceRequirements; -import io.fabric8.kubernetes.model.annotation.Group; -import io.fabric8.kubernetes.model.annotation.Version; import io.sundr.builder.annotations.Buildable; import io.sundr.builder.annotations.BuildableReference; -import io.sundr.transform.annotations.TemplateTransformation; -import io.sundr.transform.annotations.TemplateTransformations; import lombok.EqualsAndHashCode; import lombok.ToString; import lombok.experimental.Accessors; @@ -57,29 +53,14 @@ @BuildableReference(LocalObjectReference.class), @BuildableReference(PersistentVolumeClaim.class) }) -@TemplateTransformations({ - @TemplateTransformation(value = "/manifest.vm", outputPath = "META-INF/services/io.fabric8.kubernetes.api.model.KubernetesResource", gather = true) -}) -@Version("v1beta1") -@Group("admission.k8s.io") @Generated("jsonschema2pojo") public class AdmissionReview implements Editable , KubernetesResource { - /** - * - * (Required) - * - */ @JsonProperty("apiVersion") - private String apiVersion = "admission.k8s.io/v1beta1"; - /** - * - * (Required) - * - */ + private String apiVersion; @JsonProperty("kind") - private String kind = "AdmissionReview"; + private String kind; @JsonProperty("request") private AdmissionRequest request; @JsonProperty("response") @@ -102,41 +83,21 @@ public AdmissionReview(String apiVersion, String kind, AdmissionRequest request, this.response = response; } - /** - * - * (Required) - * - */ @JsonProperty("apiVersion") public String getApiVersion() { return apiVersion; } - /** - * - * (Required) - * - */ @JsonProperty("apiVersion") public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } - /** - * - * (Required) - * - */ @JsonProperty("kind") public String getKind() { return kind; } - /** - * - * (Required) - * - */ @JsonProperty("kind") public void setKind(String kind) { this.kind = kind; diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/MatchResources.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/MatchResources.java index 9116fd255e7..6a1fc5844c9 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/MatchResources.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/MatchResources.java @@ -17,6 +17,7 @@ import io.fabric8.kubernetes.api.model.Container; import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.KubernetesResource; +import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; @@ -46,7 +47,7 @@ }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { @BuildableReference(ObjectMeta.class), - @BuildableReference(io.fabric8.kubernetes.api.model.LabelSelector.class), + @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @BuildableReference(ResourceRequirements.class), @@ -65,9 +66,9 @@ public class MatchResources implements Editable , Kuberne @JsonProperty("matchPolicy") private String matchPolicy; @JsonProperty("namespaceSelector") - private io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector; + private LabelSelector namespaceSelector; @JsonProperty("objectSelector") - private io.fabric8.kubernetes.api.model.LabelSelector objectSelector; + private LabelSelector objectSelector; @JsonProperty("resourceRules") @JsonInclude(JsonInclude.Include.NON_EMPTY) private List resourceRules = new ArrayList<>(); @@ -81,7 +82,7 @@ public class MatchResources implements Editable , Kuberne public MatchResources() { } - public MatchResources(List excludeResourceRules, String matchPolicy, io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector, io.fabric8.kubernetes.api.model.LabelSelector objectSelector, List resourceRules) { + public MatchResources(List excludeResourceRules, String matchPolicy, LabelSelector namespaceSelector, LabelSelector objectSelector, List resourceRules) { super(); this.excludeResourceRules = excludeResourceRules; this.matchPolicy = matchPolicy; @@ -112,22 +113,22 @@ public void setMatchPolicy(String matchPolicy) { } @JsonProperty("namespaceSelector") - public io.fabric8.kubernetes.api.model.LabelSelector getNamespaceSelector() { + public LabelSelector getNamespaceSelector() { return namespaceSelector; } @JsonProperty("namespaceSelector") - public void setNamespaceSelector(io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector) { + public void setNamespaceSelector(LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; } @JsonProperty("objectSelector") - public io.fabric8.kubernetes.api.model.LabelSelector getObjectSelector() { + public LabelSelector getObjectSelector() { return objectSelector; } @JsonProperty("objectSelector") - public void setObjectSelector(io.fabric8.kubernetes.api.model.LabelSelector objectSelector) { + public void setObjectSelector(LabelSelector objectSelector) { this.objectSelector = objectSelector; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/MutatingWebhook.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/MutatingWebhook.java index 9390ae05b5f..d716ad54aa7 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/MutatingWebhook.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/MutatingWebhook.java @@ -17,6 +17,7 @@ import io.fabric8.kubernetes.api.model.Container; import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.KubernetesResource; +import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; @@ -53,7 +54,7 @@ }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { @BuildableReference(ObjectMeta.class), - @BuildableReference(io.fabric8.kubernetes.api.model.LabelSelector.class), + @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @BuildableReference(ResourceRequirements.class), @@ -81,9 +82,9 @@ public class MutatingWebhook implements Editable , Kuber @JsonProperty("name") private String name; @JsonProperty("namespaceSelector") - private io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector; + private LabelSelector namespaceSelector; @JsonProperty("objectSelector") - private io.fabric8.kubernetes.api.model.LabelSelector objectSelector; + private LabelSelector objectSelector; @JsonProperty("reinvocationPolicy") private String reinvocationPolicy; @JsonProperty("rules") @@ -103,7 +104,7 @@ public class MutatingWebhook implements Editable , Kuber public MutatingWebhook() { } - public MutatingWebhook(List admissionReviewVersions, WebhookClientConfig clientConfig, String failurePolicy, List matchConditions, String matchPolicy, String name, io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector, io.fabric8.kubernetes.api.model.LabelSelector objectSelector, String reinvocationPolicy, List rules, String sideEffects, Integer timeoutSeconds) { + public MutatingWebhook(List admissionReviewVersions, WebhookClientConfig clientConfig, String failurePolicy, List matchConditions, String matchPolicy, String name, LabelSelector namespaceSelector, LabelSelector objectSelector, String reinvocationPolicy, List rules, String sideEffects, Integer timeoutSeconds) { super(); this.admissionReviewVersions = admissionReviewVersions; this.clientConfig = clientConfig; @@ -182,22 +183,22 @@ public void setName(String name) { } @JsonProperty("namespaceSelector") - public io.fabric8.kubernetes.api.model.LabelSelector getNamespaceSelector() { + public LabelSelector getNamespaceSelector() { return namespaceSelector; } @JsonProperty("namespaceSelector") - public void setNamespaceSelector(io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector) { + public void setNamespaceSelector(LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; } @JsonProperty("objectSelector") - public io.fabric8.kubernetes.api.model.LabelSelector getObjectSelector() { + public LabelSelector getObjectSelector() { return objectSelector; } @JsonProperty("objectSelector") - public void setObjectSelector(io.fabric8.kubernetes.api.model.LabelSelector objectSelector) { + public void setObjectSelector(LabelSelector objectSelector) { this.objectSelector = objectSelector; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/MutatingWebhookConfiguration.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/MutatingWebhookConfiguration.java index 2e5b93e187a..040ab8f5717 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/MutatingWebhookConfiguration.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/MutatingWebhookConfiguration.java @@ -19,6 +19,7 @@ import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; +import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; import io.fabric8.kubernetes.api.model.PodTemplateSpec; @@ -48,7 +49,7 @@ "" }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { - @BuildableReference(io.fabric8.kubernetes.api.model.ObjectMeta.class), + @BuildableReference(ObjectMeta.class), @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @@ -82,7 +83,7 @@ public class MutatingWebhookConfiguration implements Editable webhooks = new ArrayList<>(); @@ -96,7 +97,7 @@ public class MutatingWebhookConfiguration implements Editable webhooks) { + public MutatingWebhookConfiguration(String apiVersion, String kind, ObjectMeta metadata, List webhooks) { super(); this.apiVersion = apiVersion; this.kind = kind; @@ -145,12 +146,12 @@ public void setKind(String kind) { } @JsonProperty("metadata") - public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata() { + public ObjectMeta getMetadata() { return metadata; } @JsonProperty("metadata") - public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata) { + public void setMetadata(ObjectMeta metadata) { this.metadata = metadata; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/ParamRef.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/ParamRef.java index f4b582b70dc..a1e1823b5a2 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/ParamRef.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/ParamRef.java @@ -15,6 +15,7 @@ import io.fabric8.kubernetes.api.model.Container; import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.KubernetesResource; +import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; @@ -43,7 +44,7 @@ }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { @BuildableReference(ObjectMeta.class), - @BuildableReference(io.fabric8.kubernetes.api.model.LabelSelector.class), + @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @BuildableReference(ResourceRequirements.class), @@ -63,7 +64,7 @@ public class ParamRef implements Editable , KubernetesResource @JsonProperty("parameterNotFoundAction") private String parameterNotFoundAction; @JsonProperty("selector") - private io.fabric8.kubernetes.api.model.LabelSelector selector; + private LabelSelector selector; @JsonIgnore private Map additionalProperties = new LinkedHashMap(); @@ -74,7 +75,7 @@ public class ParamRef implements Editable , KubernetesResource public ParamRef() { } - public ParamRef(String name, String namespace, String parameterNotFoundAction, io.fabric8.kubernetes.api.model.LabelSelector selector) { + public ParamRef(String name, String namespace, String parameterNotFoundAction, LabelSelector selector) { super(); this.name = name; this.namespace = namespace; @@ -113,12 +114,12 @@ public void setParameterNotFoundAction(String parameterNotFoundAction) { } @JsonProperty("selector") - public io.fabric8.kubernetes.api.model.LabelSelector getSelector() { + public LabelSelector getSelector() { return selector; } @JsonProperty("selector") - public void setSelector(io.fabric8.kubernetes.api.model.LabelSelector selector) { + public void setSelector(LabelSelector selector) { this.selector = selector; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/ValidatingAdmissionPolicy.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/ValidatingAdmissionPolicy.java index 81638a05c5e..d14e29ffa6a 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/ValidatingAdmissionPolicy.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/ValidatingAdmissionPolicy.java @@ -17,6 +17,7 @@ import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; +import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; import io.fabric8.kubernetes.api.model.PodTemplateSpec; @@ -47,7 +48,7 @@ "" }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { - @BuildableReference(io.fabric8.kubernetes.api.model.ObjectMeta.class), + @BuildableReference(ObjectMeta.class), @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @@ -81,7 +82,7 @@ public class ValidatingAdmissionPolicy implements Editable , K @JsonProperty("name") private String name; @JsonProperty("namespaceSelector") - private io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector; + private LabelSelector namespaceSelector; @JsonProperty("objectSelector") - private io.fabric8.kubernetes.api.model.LabelSelector objectSelector; + private LabelSelector objectSelector; @JsonProperty("rules") @JsonInclude(JsonInclude.Include.NON_EMPTY) private List rules = new ArrayList<>(); @@ -100,7 +101,7 @@ public class ValidatingWebhook implements Editable , K public ValidatingWebhook() { } - public ValidatingWebhook(List admissionReviewVersions, WebhookClientConfig clientConfig, String failurePolicy, List matchConditions, String matchPolicy, String name, io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector, io.fabric8.kubernetes.api.model.LabelSelector objectSelector, List rules, String sideEffects, Integer timeoutSeconds) { + public ValidatingWebhook(List admissionReviewVersions, WebhookClientConfig clientConfig, String failurePolicy, List matchConditions, String matchPolicy, String name, LabelSelector namespaceSelector, LabelSelector objectSelector, List rules, String sideEffects, Integer timeoutSeconds) { super(); this.admissionReviewVersions = admissionReviewVersions; this.clientConfig = clientConfig; @@ -178,22 +179,22 @@ public void setName(String name) { } @JsonProperty("namespaceSelector") - public io.fabric8.kubernetes.api.model.LabelSelector getNamespaceSelector() { + public LabelSelector getNamespaceSelector() { return namespaceSelector; } @JsonProperty("namespaceSelector") - public void setNamespaceSelector(io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector) { + public void setNamespaceSelector(LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; } @JsonProperty("objectSelector") - public io.fabric8.kubernetes.api.model.LabelSelector getObjectSelector() { + public LabelSelector getObjectSelector() { return objectSelector; } @JsonProperty("objectSelector") - public void setObjectSelector(io.fabric8.kubernetes.api.model.LabelSelector objectSelector) { + public void setObjectSelector(LabelSelector objectSelector) { this.objectSelector = objectSelector; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/ValidatingWebhookConfiguration.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/ValidatingWebhookConfiguration.java index 2f833aded21..562c78cab71 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/ValidatingWebhookConfiguration.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1/ValidatingWebhookConfiguration.java @@ -19,6 +19,7 @@ import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; +import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; import io.fabric8.kubernetes.api.model.PodTemplateSpec; @@ -48,7 +49,7 @@ "" }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { - @BuildableReference(io.fabric8.kubernetes.api.model.ObjectMeta.class), + @BuildableReference(ObjectMeta.class), @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @@ -82,7 +83,7 @@ public class ValidatingWebhookConfiguration implements Editable webhooks = new ArrayList<>(); @@ -96,7 +97,7 @@ public class ValidatingWebhookConfiguration implements Editable webhooks) { + public ValidatingWebhookConfiguration(String apiVersion, String kind, ObjectMeta metadata, List webhooks) { super(); this.apiVersion = apiVersion; this.kind = kind; @@ -145,12 +146,12 @@ public void setKind(String kind) { } @JsonProperty("metadata") - public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata() { + public ObjectMeta getMetadata() { return metadata; } @JsonProperty("metadata") - public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata) { + public void setMetadata(ObjectMeta metadata) { this.metadata = metadata; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1alpha1/MatchResources.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1alpha1/MatchResources.java index 85d39119d48..b1f0276c396 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1alpha1/MatchResources.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1alpha1/MatchResources.java @@ -17,6 +17,7 @@ import io.fabric8.kubernetes.api.model.Container; import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.KubernetesResource; +import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; @@ -46,7 +47,7 @@ }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { @BuildableReference(ObjectMeta.class), - @BuildableReference(io.fabric8.kubernetes.api.model.LabelSelector.class), + @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @BuildableReference(ResourceRequirements.class), @@ -65,9 +66,9 @@ public class MatchResources implements Editable , Kuberne @JsonProperty("matchPolicy") private String matchPolicy; @JsonProperty("namespaceSelector") - private io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector; + private LabelSelector namespaceSelector; @JsonProperty("objectSelector") - private io.fabric8.kubernetes.api.model.LabelSelector objectSelector; + private LabelSelector objectSelector; @JsonProperty("resourceRules") @JsonInclude(JsonInclude.Include.NON_EMPTY) private List resourceRules = new ArrayList<>(); @@ -81,7 +82,7 @@ public class MatchResources implements Editable , Kuberne public MatchResources() { } - public MatchResources(List excludeResourceRules, String matchPolicy, io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector, io.fabric8.kubernetes.api.model.LabelSelector objectSelector, List resourceRules) { + public MatchResources(List excludeResourceRules, String matchPolicy, LabelSelector namespaceSelector, LabelSelector objectSelector, List resourceRules) { super(); this.excludeResourceRules = excludeResourceRules; this.matchPolicy = matchPolicy; @@ -112,22 +113,22 @@ public void setMatchPolicy(String matchPolicy) { } @JsonProperty("namespaceSelector") - public io.fabric8.kubernetes.api.model.LabelSelector getNamespaceSelector() { + public LabelSelector getNamespaceSelector() { return namespaceSelector; } @JsonProperty("namespaceSelector") - public void setNamespaceSelector(io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector) { + public void setNamespaceSelector(LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; } @JsonProperty("objectSelector") - public io.fabric8.kubernetes.api.model.LabelSelector getObjectSelector() { + public LabelSelector getObjectSelector() { return objectSelector; } @JsonProperty("objectSelector") - public void setObjectSelector(io.fabric8.kubernetes.api.model.LabelSelector objectSelector) { + public void setObjectSelector(LabelSelector objectSelector) { this.objectSelector = objectSelector; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1alpha1/ParamRef.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1alpha1/ParamRef.java index 3cdf572408c..67e047debf2 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1alpha1/ParamRef.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1alpha1/ParamRef.java @@ -15,6 +15,7 @@ import io.fabric8.kubernetes.api.model.Container; import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.KubernetesResource; +import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; @@ -43,7 +44,7 @@ }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { @BuildableReference(ObjectMeta.class), - @BuildableReference(io.fabric8.kubernetes.api.model.LabelSelector.class), + @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @BuildableReference(ResourceRequirements.class), @@ -63,7 +64,7 @@ public class ParamRef implements Editable , KubernetesResource @JsonProperty("parameterNotFoundAction") private String parameterNotFoundAction; @JsonProperty("selector") - private io.fabric8.kubernetes.api.model.LabelSelector selector; + private LabelSelector selector; @JsonIgnore private Map additionalProperties = new LinkedHashMap(); @@ -74,7 +75,7 @@ public class ParamRef implements Editable , KubernetesResource public ParamRef() { } - public ParamRef(String name, String namespace, String parameterNotFoundAction, io.fabric8.kubernetes.api.model.LabelSelector selector) { + public ParamRef(String name, String namespace, String parameterNotFoundAction, LabelSelector selector) { super(); this.name = name; this.namespace = namespace; @@ -113,12 +114,12 @@ public void setParameterNotFoundAction(String parameterNotFoundAction) { } @JsonProperty("selector") - public io.fabric8.kubernetes.api.model.LabelSelector getSelector() { + public LabelSelector getSelector() { return selector; } @JsonProperty("selector") - public void setSelector(io.fabric8.kubernetes.api.model.LabelSelector selector) { + public void setSelector(LabelSelector selector) { this.selector = selector; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1alpha1/ValidatingAdmissionPolicy.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1alpha1/ValidatingAdmissionPolicy.java index d3304ab85b6..2bf255f2c2f 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1alpha1/ValidatingAdmissionPolicy.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1alpha1/ValidatingAdmissionPolicy.java @@ -17,6 +17,7 @@ import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; +import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; import io.fabric8.kubernetes.api.model.PodTemplateSpec; @@ -47,7 +48,7 @@ "" }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { - @BuildableReference(io.fabric8.kubernetes.api.model.ObjectMeta.class), + @BuildableReference(ObjectMeta.class), @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @@ -81,7 +82,7 @@ public class ValidatingAdmissionPolicy implements Editable , Kuberne @JsonProperty("matchPolicy") private String matchPolicy; @JsonProperty("namespaceSelector") - private io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector; + private LabelSelector namespaceSelector; @JsonProperty("objectSelector") - private io.fabric8.kubernetes.api.model.LabelSelector objectSelector; + private LabelSelector objectSelector; @JsonProperty("resourceRules") @JsonInclude(JsonInclude.Include.NON_EMPTY) private List resourceRules = new ArrayList<>(); @@ -81,7 +82,7 @@ public class MatchResources implements Editable , Kuberne public MatchResources() { } - public MatchResources(List excludeResourceRules, String matchPolicy, io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector, io.fabric8.kubernetes.api.model.LabelSelector objectSelector, List resourceRules) { + public MatchResources(List excludeResourceRules, String matchPolicy, LabelSelector namespaceSelector, LabelSelector objectSelector, List resourceRules) { super(); this.excludeResourceRules = excludeResourceRules; this.matchPolicy = matchPolicy; @@ -112,22 +113,22 @@ public void setMatchPolicy(String matchPolicy) { } @JsonProperty("namespaceSelector") - public io.fabric8.kubernetes.api.model.LabelSelector getNamespaceSelector() { + public LabelSelector getNamespaceSelector() { return namespaceSelector; } @JsonProperty("namespaceSelector") - public void setNamespaceSelector(io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector) { + public void setNamespaceSelector(LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; } @JsonProperty("objectSelector") - public io.fabric8.kubernetes.api.model.LabelSelector getObjectSelector() { + public LabelSelector getObjectSelector() { return objectSelector; } @JsonProperty("objectSelector") - public void setObjectSelector(io.fabric8.kubernetes.api.model.LabelSelector objectSelector) { + public void setObjectSelector(LabelSelector objectSelector) { this.objectSelector = objectSelector; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/MutatingWebhook.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/MutatingWebhook.java index f966d873db5..75fc22284de 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/MutatingWebhook.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/MutatingWebhook.java @@ -17,13 +17,13 @@ import io.fabric8.kubernetes.api.model.Container; import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.KubernetesResource; +import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; import io.fabric8.kubernetes.api.model.PodTemplateSpec; import io.fabric8.kubernetes.api.model.ResourceRequirements; -import io.fabric8.kubernetes.api.model.admissionregistration.v1.RuleWithOperations; import io.sundr.builder.annotations.Buildable; import io.sundr.builder.annotations.BuildableReference; import lombok.EqualsAndHashCode; @@ -36,7 +36,6 @@ "admissionReviewVersions", "clientConfig", "failurePolicy", - "matchConditions", "matchPolicy", "name", "namespaceSelector", @@ -54,7 +53,7 @@ }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { @BuildableReference(ObjectMeta.class), - @BuildableReference(io.fabric8.kubernetes.api.model.LabelSelector.class), + @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @BuildableReference(ResourceRequirements.class), @@ -74,17 +73,14 @@ public class MutatingWebhook implements Editable , Kuber private WebhookClientConfig clientConfig; @JsonProperty("failurePolicy") private String failurePolicy; - @JsonProperty("matchConditions") - @JsonInclude(JsonInclude.Include.NON_EMPTY) - private List matchConditions = new ArrayList<>(); @JsonProperty("matchPolicy") private String matchPolicy; @JsonProperty("name") private String name; @JsonProperty("namespaceSelector") - private io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector; + private LabelSelector namespaceSelector; @JsonProperty("objectSelector") - private io.fabric8.kubernetes.api.model.LabelSelector objectSelector; + private LabelSelector objectSelector; @JsonProperty("reinvocationPolicy") private String reinvocationPolicy; @JsonProperty("rules") @@ -104,12 +100,11 @@ public class MutatingWebhook implements Editable , Kuber public MutatingWebhook() { } - public MutatingWebhook(List admissionReviewVersions, WebhookClientConfig clientConfig, String failurePolicy, List matchConditions, String matchPolicy, String name, io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector, io.fabric8.kubernetes.api.model.LabelSelector objectSelector, String reinvocationPolicy, List rules, String sideEffects, Integer timeoutSeconds) { + public MutatingWebhook(List admissionReviewVersions, WebhookClientConfig clientConfig, String failurePolicy, String matchPolicy, String name, LabelSelector namespaceSelector, LabelSelector objectSelector, String reinvocationPolicy, List rules, String sideEffects, Integer timeoutSeconds) { super(); this.admissionReviewVersions = admissionReviewVersions; this.clientConfig = clientConfig; this.failurePolicy = failurePolicy; - this.matchConditions = matchConditions; this.matchPolicy = matchPolicy; this.name = name; this.namespaceSelector = namespaceSelector; @@ -151,17 +146,6 @@ public void setFailurePolicy(String failurePolicy) { this.failurePolicy = failurePolicy; } - @JsonProperty("matchConditions") - @JsonInclude(JsonInclude.Include.NON_EMPTY) - public List getMatchConditions() { - return matchConditions; - } - - @JsonProperty("matchConditions") - public void setMatchConditions(List matchConditions) { - this.matchConditions = matchConditions; - } - @JsonProperty("matchPolicy") public String getMatchPolicy() { return matchPolicy; @@ -183,22 +167,22 @@ public void setName(String name) { } @JsonProperty("namespaceSelector") - public io.fabric8.kubernetes.api.model.LabelSelector getNamespaceSelector() { + public LabelSelector getNamespaceSelector() { return namespaceSelector; } @JsonProperty("namespaceSelector") - public void setNamespaceSelector(io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector) { + public void setNamespaceSelector(LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; } @JsonProperty("objectSelector") - public io.fabric8.kubernetes.api.model.LabelSelector getObjectSelector() { + public LabelSelector getObjectSelector() { return objectSelector; } @JsonProperty("objectSelector") - public void setObjectSelector(io.fabric8.kubernetes.api.model.LabelSelector objectSelector) { + public void setObjectSelector(LabelSelector objectSelector) { this.objectSelector = objectSelector; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/MutatingWebhookConfiguration.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/MutatingWebhookConfiguration.java index 5303c25ba48..6de17e5cb83 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/MutatingWebhookConfiguration.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/MutatingWebhookConfiguration.java @@ -19,6 +19,7 @@ import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; +import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; import io.fabric8.kubernetes.api.model.PodTemplateSpec; @@ -48,7 +49,7 @@ "" }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { - @BuildableReference(io.fabric8.kubernetes.api.model.ObjectMeta.class), + @BuildableReference(ObjectMeta.class), @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @@ -82,7 +83,7 @@ public class MutatingWebhookConfiguration implements Editable webhooks = new ArrayList<>(); @@ -96,7 +97,7 @@ public class MutatingWebhookConfiguration implements Editable webhooks) { + public MutatingWebhookConfiguration(String apiVersion, String kind, ObjectMeta metadata, List webhooks) { super(); this.apiVersion = apiVersion; this.kind = kind; @@ -145,12 +146,12 @@ public void setKind(String kind) { } @JsonProperty("metadata") - public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata() { + public ObjectMeta getMetadata() { return metadata; } @JsonProperty("metadata") - public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata) { + public void setMetadata(ObjectMeta metadata) { this.metadata = metadata; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/ParamRef.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/ParamRef.java index 36e995f3c47..bef5fbc9fff 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/ParamRef.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/ParamRef.java @@ -15,6 +15,7 @@ import io.fabric8.kubernetes.api.model.Container; import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.KubernetesResource; +import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; @@ -43,7 +44,7 @@ }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { @BuildableReference(ObjectMeta.class), - @BuildableReference(io.fabric8.kubernetes.api.model.LabelSelector.class), + @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @BuildableReference(ResourceRequirements.class), @@ -63,7 +64,7 @@ public class ParamRef implements Editable , KubernetesResource @JsonProperty("parameterNotFoundAction") private String parameterNotFoundAction; @JsonProperty("selector") - private io.fabric8.kubernetes.api.model.LabelSelector selector; + private LabelSelector selector; @JsonIgnore private Map additionalProperties = new LinkedHashMap(); @@ -74,7 +75,7 @@ public class ParamRef implements Editable , KubernetesResource public ParamRef() { } - public ParamRef(String name, String namespace, String parameterNotFoundAction, io.fabric8.kubernetes.api.model.LabelSelector selector) { + public ParamRef(String name, String namespace, String parameterNotFoundAction, LabelSelector selector) { super(); this.name = name; this.namespace = namespace; @@ -113,12 +114,12 @@ public void setParameterNotFoundAction(String parameterNotFoundAction) { } @JsonProperty("selector") - public io.fabric8.kubernetes.api.model.LabelSelector getSelector() { + public LabelSelector getSelector() { return selector; } @JsonProperty("selector") - public void setSelector(io.fabric8.kubernetes.api.model.LabelSelector selector) { + public void setSelector(LabelSelector selector) { this.selector = selector; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/RuleWithOperations.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/RuleWithOperations.java new file mode 100644 index 00000000000..b1fc26e8a61 --- /dev/null +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/RuleWithOperations.java @@ -0,0 +1,174 @@ + +package io.fabric8.kubernetes.api.model.admissionregistration.v1beta1; + +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import javax.annotation.Generated; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import io.fabric8.kubernetes.api.builder.Editable; +import io.fabric8.kubernetes.api.model.Container; +import io.fabric8.kubernetes.api.model.IntOrString; +import io.fabric8.kubernetes.api.model.KubernetesResource; +import io.fabric8.kubernetes.api.model.LabelSelector; +import io.fabric8.kubernetes.api.model.LocalObjectReference; +import io.fabric8.kubernetes.api.model.ObjectMeta; +import io.fabric8.kubernetes.api.model.ObjectReference; +import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; +import io.fabric8.kubernetes.api.model.PodTemplateSpec; +import io.fabric8.kubernetes.api.model.ResourceRequirements; +import io.sundr.builder.annotations.Buildable; +import io.sundr.builder.annotations.BuildableReference; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.experimental.Accessors; + +@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "apiGroups", + "apiVersions", + "operations", + "resources", + "scope" +}) +@ToString +@EqualsAndHashCode +@Accessors(prefix = { + "_", + "" +}) +@Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { + @BuildableReference(ObjectMeta.class), + @BuildableReference(LabelSelector.class), + @BuildableReference(Container.class), + @BuildableReference(PodTemplateSpec.class), + @BuildableReference(ResourceRequirements.class), + @BuildableReference(IntOrString.class), + @BuildableReference(ObjectReference.class), + @BuildableReference(LocalObjectReference.class), + @BuildableReference(PersistentVolumeClaim.class) +}) +@Generated("jsonschema2pojo") +public class RuleWithOperations implements Editable , KubernetesResource +{ + + @JsonProperty("apiGroups") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + private List apiGroups = new ArrayList<>(); + @JsonProperty("apiVersions") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + private List apiVersions = new ArrayList<>(); + @JsonProperty("operations") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + private List operations = new ArrayList<>(); + @JsonProperty("resources") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + private List resources = new ArrayList<>(); + @JsonProperty("scope") + private String scope; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public RuleWithOperations() { + } + + public RuleWithOperations(List apiGroups, List apiVersions, List operations, List resources, String scope) { + super(); + this.apiGroups = apiGroups; + this.apiVersions = apiVersions; + this.operations = operations; + this.resources = resources; + this.scope = scope; + } + + @JsonProperty("apiGroups") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + public List getApiGroups() { + return apiGroups; + } + + @JsonProperty("apiGroups") + public void setApiGroups(List apiGroups) { + this.apiGroups = apiGroups; + } + + @JsonProperty("apiVersions") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + public List getApiVersions() { + return apiVersions; + } + + @JsonProperty("apiVersions") + public void setApiVersions(List apiVersions) { + this.apiVersions = apiVersions; + } + + @JsonProperty("operations") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + public List getOperations() { + return operations; + } + + @JsonProperty("operations") + public void setOperations(List operations) { + this.operations = operations; + } + + @JsonProperty("resources") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + public List getResources() { + return resources; + } + + @JsonProperty("resources") + public void setResources(List resources) { + this.resources = resources; + } + + @JsonProperty("scope") + public String getScope() { + return scope; + } + + @JsonProperty("scope") + public void setScope(String scope) { + this.scope = scope; + } + + @JsonIgnore + public RuleWithOperationsBuilder edit() { + return new RuleWithOperationsBuilder(this); + } + + @JsonIgnore + public RuleWithOperationsBuilder toBuilder() { + return edit(); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + + public void setAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + +} diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/ValidatingAdmissionPolicy.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/ValidatingAdmissionPolicy.java index e8ff56aba6f..00d6ce4aea8 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/ValidatingAdmissionPolicy.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/ValidatingAdmissionPolicy.java @@ -17,6 +17,7 @@ import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; +import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; import io.fabric8.kubernetes.api.model.PodTemplateSpec; @@ -47,7 +48,7 @@ "" }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { - @BuildableReference(io.fabric8.kubernetes.api.model.ObjectMeta.class), + @BuildableReference(ObjectMeta.class), @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @@ -81,7 +82,7 @@ public class ValidatingAdmissionPolicy implements Editable , K private WebhookClientConfig clientConfig; @JsonProperty("failurePolicy") private String failurePolicy; - @JsonProperty("matchConditions") - @JsonInclude(JsonInclude.Include.NON_EMPTY) - private List matchConditions = new ArrayList<>(); @JsonProperty("matchPolicy") private String matchPolicy; @JsonProperty("name") private String name; @JsonProperty("namespaceSelector") - private io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector; + private LabelSelector namespaceSelector; @JsonProperty("objectSelector") - private io.fabric8.kubernetes.api.model.LabelSelector objectSelector; + private LabelSelector objectSelector; @JsonProperty("rules") @JsonInclude(JsonInclude.Include.NON_EMPTY) private List rules = new ArrayList<>(); @@ -101,12 +97,11 @@ public class ValidatingWebhook implements Editable , K public ValidatingWebhook() { } - public ValidatingWebhook(List admissionReviewVersions, WebhookClientConfig clientConfig, String failurePolicy, List matchConditions, String matchPolicy, String name, io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector, io.fabric8.kubernetes.api.model.LabelSelector objectSelector, List rules, String sideEffects, Integer timeoutSeconds) { + public ValidatingWebhook(List admissionReviewVersions, WebhookClientConfig clientConfig, String failurePolicy, String matchPolicy, String name, LabelSelector namespaceSelector, LabelSelector objectSelector, List rules, String sideEffects, Integer timeoutSeconds) { super(); this.admissionReviewVersions = admissionReviewVersions; this.clientConfig = clientConfig; this.failurePolicy = failurePolicy; - this.matchConditions = matchConditions; this.matchPolicy = matchPolicy; this.name = name; this.namespaceSelector = namespaceSelector; @@ -147,17 +142,6 @@ public void setFailurePolicy(String failurePolicy) { this.failurePolicy = failurePolicy; } - @JsonProperty("matchConditions") - @JsonInclude(JsonInclude.Include.NON_EMPTY) - public List getMatchConditions() { - return matchConditions; - } - - @JsonProperty("matchConditions") - public void setMatchConditions(List matchConditions) { - this.matchConditions = matchConditions; - } - @JsonProperty("matchPolicy") public String getMatchPolicy() { return matchPolicy; @@ -179,22 +163,22 @@ public void setName(String name) { } @JsonProperty("namespaceSelector") - public io.fabric8.kubernetes.api.model.LabelSelector getNamespaceSelector() { + public LabelSelector getNamespaceSelector() { return namespaceSelector; } @JsonProperty("namespaceSelector") - public void setNamespaceSelector(io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector) { + public void setNamespaceSelector(LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; } @JsonProperty("objectSelector") - public io.fabric8.kubernetes.api.model.LabelSelector getObjectSelector() { + public LabelSelector getObjectSelector() { return objectSelector; } @JsonProperty("objectSelector") - public void setObjectSelector(io.fabric8.kubernetes.api.model.LabelSelector objectSelector) { + public void setObjectSelector(LabelSelector objectSelector) { this.objectSelector = objectSelector; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/ValidatingWebhookConfiguration.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/ValidatingWebhookConfiguration.java index d6f31c138b3..81ff5be37ed 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/ValidatingWebhookConfiguration.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/admissionregistration/v1beta1/ValidatingWebhookConfiguration.java @@ -19,6 +19,7 @@ import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; +import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; import io.fabric8.kubernetes.api.model.PodTemplateSpec; @@ -48,7 +49,7 @@ "" }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { - @BuildableReference(io.fabric8.kubernetes.api.model.ObjectMeta.class), + @BuildableReference(ObjectMeta.class), @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @@ -82,7 +83,7 @@ public class ValidatingWebhookConfiguration implements Editable webhooks = new ArrayList<>(); @@ -96,7 +97,7 @@ public class ValidatingWebhookConfiguration implements Editable webhooks) { + public ValidatingWebhookConfiguration(String apiVersion, String kind, ObjectMeta metadata, List webhooks) { super(); this.apiVersion = apiVersion; this.kind = kind; @@ -145,12 +146,12 @@ public void setKind(String kind) { } @JsonProperty("metadata") - public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata() { + public ObjectMeta getMetadata() { return metadata; } @JsonProperty("metadata") - public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata) { + public void setMetadata(ObjectMeta metadata) { this.metadata = metadata; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/SelfSubjectReview.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/SelfSubjectReview.java index a10075d2ce8..bd7a98519db 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/SelfSubjectReview.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/SelfSubjectReview.java @@ -17,6 +17,7 @@ import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; +import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; import io.fabric8.kubernetes.api.model.PodTemplateSpec; @@ -46,7 +47,7 @@ "" }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { - @BuildableReference(io.fabric8.kubernetes.api.model.ObjectMeta.class), + @BuildableReference(ObjectMeta.class), @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @@ -80,7 +81,7 @@ public class SelfSubjectReview implements Editable , H @JsonProperty("kind") private String kind = "SelfSubjectReview"; @JsonProperty("metadata") - private io.fabric8.kubernetes.api.model.ObjectMeta metadata; + private ObjectMeta metadata; @JsonProperty("status") private SelfSubjectReviewStatus status; @JsonIgnore @@ -93,7 +94,7 @@ public class SelfSubjectReview implements Editable , H public SelfSubjectReview() { } - public SelfSubjectReview(String apiVersion, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, SelfSubjectReviewStatus status) { + public SelfSubjectReview(String apiVersion, String kind, ObjectMeta metadata, SelfSubjectReviewStatus status) { super(); this.apiVersion = apiVersion; this.kind = kind; @@ -142,12 +143,12 @@ public void setKind(String kind) { } @JsonProperty("metadata") - public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata() { + public ObjectMeta getMetadata() { return metadata; } @JsonProperty("metadata") - public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata) { + public void setMetadata(ObjectMeta metadata) { this.metadata = metadata; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/TokenRequest.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/TokenRequest.java index 41d0dceb277..1d5c3ecdb60 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/TokenRequest.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/TokenRequest.java @@ -18,6 +18,7 @@ import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; import io.fabric8.kubernetes.api.model.Namespaced; +import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; import io.fabric8.kubernetes.api.model.PodTemplateSpec; @@ -48,7 +49,7 @@ "" }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { - @BuildableReference(io.fabric8.kubernetes.api.model.ObjectMeta.class), + @BuildableReference(ObjectMeta.class), @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @@ -82,7 +83,7 @@ public class TokenRequest implements Editable , HasMetadata @JsonProperty("kind") private String kind = "TokenRequest"; @JsonProperty("metadata") - private io.fabric8.kubernetes.api.model.ObjectMeta metadata; + private ObjectMeta metadata; @JsonProperty("spec") private TokenRequestSpec spec; @JsonProperty("status") @@ -97,7 +98,7 @@ public class TokenRequest implements Editable , HasMetadata public TokenRequest() { } - public TokenRequest(String apiVersion, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, TokenRequestSpec spec, TokenRequestStatus status) { + public TokenRequest(String apiVersion, String kind, ObjectMeta metadata, TokenRequestSpec spec, TokenRequestStatus status) { super(); this.apiVersion = apiVersion; this.kind = kind; @@ -147,12 +148,12 @@ public void setKind(String kind) { } @JsonProperty("metadata") - public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata() { + public ObjectMeta getMetadata() { return metadata; } @JsonProperty("metadata") - public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata) { + public void setMetadata(ObjectMeta metadata) { this.metadata = metadata; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/TokenReview.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/TokenReview.java index b7ccec773f2..c6699199216 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/TokenReview.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/TokenReview.java @@ -17,6 +17,7 @@ import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; +import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; import io.fabric8.kubernetes.api.model.PodTemplateSpec; @@ -47,7 +48,7 @@ "" }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { - @BuildableReference(io.fabric8.kubernetes.api.model.ObjectMeta.class), + @BuildableReference(ObjectMeta.class), @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @@ -81,7 +82,7 @@ public class TokenReview implements Editable , HasMetadata @JsonProperty("kind") private String kind = "TokenReview"; @JsonProperty("metadata") - private io.fabric8.kubernetes.api.model.ObjectMeta metadata; + private ObjectMeta metadata; @JsonProperty("spec") private TokenReviewSpec spec; @JsonProperty("status") @@ -96,7 +97,7 @@ public class TokenReview implements Editable , HasMetadata public TokenReview() { } - public TokenReview(String apiVersion, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, TokenReviewSpec spec, TokenReviewStatus status) { + public TokenReview(String apiVersion, String kind, ObjectMeta metadata, TokenReviewSpec spec, TokenReviewStatus status) { super(); this.apiVersion = apiVersion; this.kind = kind; @@ -146,12 +147,12 @@ public void setKind(String kind) { } @JsonProperty("metadata") - public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata() { + public ObjectMeta getMetadata() { return metadata; } @JsonProperty("metadata") - public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata) { + public void setMetadata(ObjectMeta metadata) { this.metadata = metadata; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1alpha1/SelfSubjectReview.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1alpha1/SelfSubjectReview.java index 75f8e85aea6..89d06b2fde9 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1alpha1/SelfSubjectReview.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1alpha1/SelfSubjectReview.java @@ -17,6 +17,7 @@ import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; +import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; import io.fabric8.kubernetes.api.model.PodTemplateSpec; @@ -46,7 +47,7 @@ "" }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { - @BuildableReference(io.fabric8.kubernetes.api.model.ObjectMeta.class), + @BuildableReference(ObjectMeta.class), @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @@ -80,7 +81,7 @@ public class SelfSubjectReview implements Editable , H @JsonProperty("kind") private String kind = "SelfSubjectReview"; @JsonProperty("metadata") - private io.fabric8.kubernetes.api.model.ObjectMeta metadata; + private ObjectMeta metadata; @JsonProperty("status") private SelfSubjectReviewStatus status; @JsonIgnore @@ -93,7 +94,7 @@ public class SelfSubjectReview implements Editable , H public SelfSubjectReview() { } - public SelfSubjectReview(String apiVersion, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, SelfSubjectReviewStatus status) { + public SelfSubjectReview(String apiVersion, String kind, ObjectMeta metadata, SelfSubjectReviewStatus status) { super(); this.apiVersion = apiVersion; this.kind = kind; @@ -142,12 +143,12 @@ public void setKind(String kind) { } @JsonProperty("metadata") - public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata() { + public ObjectMeta getMetadata() { return metadata; } @JsonProperty("metadata") - public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata) { + public void setMetadata(ObjectMeta metadata) { this.metadata = metadata; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/SelfSubjectReview.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/SelfSubjectReview.java index 9cc046596a5..4a1f3fa95a4 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/SelfSubjectReview.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/SelfSubjectReview.java @@ -17,6 +17,7 @@ import io.fabric8.kubernetes.api.model.IntOrString; import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; +import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; import io.fabric8.kubernetes.api.model.PodTemplateSpec; @@ -46,7 +47,7 @@ "" }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { - @BuildableReference(io.fabric8.kubernetes.api.model.ObjectMeta.class), + @BuildableReference(ObjectMeta.class), @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @@ -80,7 +81,7 @@ public class SelfSubjectReview implements Editable , H @JsonProperty("kind") private String kind = "SelfSubjectReview"; @JsonProperty("metadata") - private io.fabric8.kubernetes.api.model.ObjectMeta metadata; + private ObjectMeta metadata; @JsonProperty("status") private SelfSubjectReviewStatus status; @JsonIgnore @@ -93,7 +94,7 @@ public class SelfSubjectReview implements Editable , H public SelfSubjectReview() { } - public SelfSubjectReview(String apiVersion, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, SelfSubjectReviewStatus status) { + public SelfSubjectReview(String apiVersion, String kind, ObjectMeta metadata, SelfSubjectReviewStatus status) { super(); this.apiVersion = apiVersion; this.kind = kind; @@ -142,12 +143,12 @@ public void setKind(String kind) { } @JsonProperty("metadata") - public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata() { + public ObjectMeta getMetadata() { return metadata; } @JsonProperty("metadata") - public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata) { + public void setMetadata(ObjectMeta metadata) { this.metadata = metadata; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/TokenReview.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/TokenReview.java new file mode 100644 index 00000000000..cc92f8b1773 --- /dev/null +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/TokenReview.java @@ -0,0 +1,203 @@ + +package io.fabric8.kubernetes.api.model.authentication.v1beta1; + +import java.util.LinkedHashMap; +import java.util.Map; +import javax.annotation.Generated; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import io.fabric8.kubernetes.api.builder.Editable; +import io.fabric8.kubernetes.api.model.Container; +import io.fabric8.kubernetes.api.model.HasMetadata; +import io.fabric8.kubernetes.api.model.IntOrString; +import io.fabric8.kubernetes.api.model.LabelSelector; +import io.fabric8.kubernetes.api.model.LocalObjectReference; +import io.fabric8.kubernetes.api.model.ObjectMeta; +import io.fabric8.kubernetes.api.model.ObjectReference; +import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; +import io.fabric8.kubernetes.api.model.PodTemplateSpec; +import io.fabric8.kubernetes.api.model.ResourceRequirements; +import io.fabric8.kubernetes.model.annotation.Group; +import io.fabric8.kubernetes.model.annotation.Version; +import io.sundr.builder.annotations.Buildable; +import io.sundr.builder.annotations.BuildableReference; +import io.sundr.transform.annotations.TemplateTransformation; +import io.sundr.transform.annotations.TemplateTransformations; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.experimental.Accessors; + +@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "apiVersion", + "kind", + "metadata", + "spec", + "status" +}) +@ToString +@EqualsAndHashCode +@Accessors(prefix = { + "_", + "" +}) +@Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { + @BuildableReference(ObjectMeta.class), + @BuildableReference(LabelSelector.class), + @BuildableReference(Container.class), + @BuildableReference(PodTemplateSpec.class), + @BuildableReference(ResourceRequirements.class), + @BuildableReference(IntOrString.class), + @BuildableReference(ObjectReference.class), + @BuildableReference(LocalObjectReference.class), + @BuildableReference(PersistentVolumeClaim.class) +}) +@TemplateTransformations({ + @TemplateTransformation(value = "/manifest.vm", outputPath = "META-INF/services/io.fabric8.kubernetes.api.model.KubernetesResource", gather = true) +}) +@Version("v1beta1") +@Group("authentication.k8s.io") +@Generated("jsonschema2pojo") +public class TokenReview implements Editable , HasMetadata +{ + + /** + * + * (Required) + * + */ + @JsonProperty("apiVersion") + private String apiVersion = "authentication.k8s.io/v1beta1"; + /** + * + * (Required) + * + */ + @JsonProperty("kind") + private String kind = "TokenReview"; + @JsonProperty("metadata") + private ObjectMeta metadata; + @JsonProperty("spec") + private TokenReviewSpec spec; + @JsonProperty("status") + private TokenReviewStatus status; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public TokenReview() { + } + + public TokenReview(String apiVersion, String kind, ObjectMeta metadata, TokenReviewSpec spec, TokenReviewStatus status) { + super(); + this.apiVersion = apiVersion; + this.kind = kind; + this.metadata = metadata; + this.spec = spec; + this.status = status; + } + + /** + * + * (Required) + * + */ + @JsonProperty("apiVersion") + public String getApiVersion() { + return apiVersion; + } + + /** + * + * (Required) + * + */ + @JsonProperty("apiVersion") + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + /** + * + * (Required) + * + */ + @JsonProperty("kind") + public String getKind() { + return kind; + } + + /** + * + * (Required) + * + */ + @JsonProperty("kind") + public void setKind(String kind) { + this.kind = kind; + } + + @JsonProperty("metadata") + public ObjectMeta getMetadata() { + return metadata; + } + + @JsonProperty("metadata") + public void setMetadata(ObjectMeta metadata) { + this.metadata = metadata; + } + + @JsonProperty("spec") + public TokenReviewSpec getSpec() { + return spec; + } + + @JsonProperty("spec") + public void setSpec(TokenReviewSpec spec) { + this.spec = spec; + } + + @JsonProperty("status") + public TokenReviewStatus getStatus() { + return status; + } + + @JsonProperty("status") + public void setStatus(TokenReviewStatus status) { + this.status = status; + } + + @JsonIgnore + public TokenReviewBuilder edit() { + return new TokenReviewBuilder(this); + } + + @JsonIgnore + public TokenReviewBuilder toBuilder() { + return edit(); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + + public void setAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + +} diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/TokenReviewSpec.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/TokenReviewSpec.java new file mode 100644 index 00000000000..2a94b81197a --- /dev/null +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/TokenReviewSpec.java @@ -0,0 +1,126 @@ + +package io.fabric8.kubernetes.api.model.authentication.v1beta1; + +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import javax.annotation.Generated; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import io.fabric8.kubernetes.api.builder.Editable; +import io.fabric8.kubernetes.api.model.Container; +import io.fabric8.kubernetes.api.model.IntOrString; +import io.fabric8.kubernetes.api.model.KubernetesResource; +import io.fabric8.kubernetes.api.model.LabelSelector; +import io.fabric8.kubernetes.api.model.LocalObjectReference; +import io.fabric8.kubernetes.api.model.ObjectMeta; +import io.fabric8.kubernetes.api.model.ObjectReference; +import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; +import io.fabric8.kubernetes.api.model.PodTemplateSpec; +import io.fabric8.kubernetes.api.model.ResourceRequirements; +import io.sundr.builder.annotations.Buildable; +import io.sundr.builder.annotations.BuildableReference; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.experimental.Accessors; + +@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "audiences", + "token" +}) +@ToString +@EqualsAndHashCode +@Accessors(prefix = { + "_", + "" +}) +@Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { + @BuildableReference(ObjectMeta.class), + @BuildableReference(LabelSelector.class), + @BuildableReference(Container.class), + @BuildableReference(PodTemplateSpec.class), + @BuildableReference(ResourceRequirements.class), + @BuildableReference(IntOrString.class), + @BuildableReference(ObjectReference.class), + @BuildableReference(LocalObjectReference.class), + @BuildableReference(PersistentVolumeClaim.class) +}) +@Generated("jsonschema2pojo") +public class TokenReviewSpec implements Editable , KubernetesResource +{ + + @JsonProperty("audiences") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + private List audiences = new ArrayList<>(); + @JsonProperty("token") + private String token; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public TokenReviewSpec() { + } + + public TokenReviewSpec(List audiences, String token) { + super(); + this.audiences = audiences; + this.token = token; + } + + @JsonProperty("audiences") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + public List getAudiences() { + return audiences; + } + + @JsonProperty("audiences") + public void setAudiences(List audiences) { + this.audiences = audiences; + } + + @JsonProperty("token") + public String getToken() { + return token; + } + + @JsonProperty("token") + public void setToken(String token) { + this.token = token; + } + + @JsonIgnore + public TokenReviewSpecBuilder edit() { + return new TokenReviewSpecBuilder(this); + } + + @JsonIgnore + public TokenReviewSpecBuilder toBuilder() { + return edit(); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + + public void setAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + +} diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/TokenReviewStatus.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/TokenReviewStatus.java new file mode 100644 index 00000000000..53a5e5ac210 --- /dev/null +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/TokenReviewStatus.java @@ -0,0 +1,154 @@ + +package io.fabric8.kubernetes.api.model.authentication.v1beta1; + +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import javax.annotation.Generated; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import io.fabric8.kubernetes.api.builder.Editable; +import io.fabric8.kubernetes.api.model.Container; +import io.fabric8.kubernetes.api.model.IntOrString; +import io.fabric8.kubernetes.api.model.KubernetesResource; +import io.fabric8.kubernetes.api.model.LabelSelector; +import io.fabric8.kubernetes.api.model.LocalObjectReference; +import io.fabric8.kubernetes.api.model.ObjectMeta; +import io.fabric8.kubernetes.api.model.ObjectReference; +import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; +import io.fabric8.kubernetes.api.model.PodTemplateSpec; +import io.fabric8.kubernetes.api.model.ResourceRequirements; +import io.sundr.builder.annotations.Buildable; +import io.sundr.builder.annotations.BuildableReference; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.experimental.Accessors; + +@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "audiences", + "authenticated", + "error", + "user" +}) +@ToString +@EqualsAndHashCode +@Accessors(prefix = { + "_", + "" +}) +@Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { + @BuildableReference(ObjectMeta.class), + @BuildableReference(LabelSelector.class), + @BuildableReference(Container.class), + @BuildableReference(PodTemplateSpec.class), + @BuildableReference(ResourceRequirements.class), + @BuildableReference(IntOrString.class), + @BuildableReference(ObjectReference.class), + @BuildableReference(LocalObjectReference.class), + @BuildableReference(PersistentVolumeClaim.class) +}) +@Generated("jsonschema2pojo") +public class TokenReviewStatus implements Editable , KubernetesResource +{ + + @JsonProperty("audiences") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + private List audiences = new ArrayList<>(); + @JsonProperty("authenticated") + private Boolean authenticated; + @JsonProperty("error") + private String error; + @JsonProperty("user") + private UserInfo user; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public TokenReviewStatus() { + } + + public TokenReviewStatus(List audiences, Boolean authenticated, String error, UserInfo user) { + super(); + this.audiences = audiences; + this.authenticated = authenticated; + this.error = error; + this.user = user; + } + + @JsonProperty("audiences") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + public List getAudiences() { + return audiences; + } + + @JsonProperty("audiences") + public void setAudiences(List audiences) { + this.audiences = audiences; + } + + @JsonProperty("authenticated") + public Boolean getAuthenticated() { + return authenticated; + } + + @JsonProperty("authenticated") + public void setAuthenticated(Boolean authenticated) { + this.authenticated = authenticated; + } + + @JsonProperty("error") + public String getError() { + return error; + } + + @JsonProperty("error") + public void setError(String error) { + this.error = error; + } + + @JsonProperty("user") + public UserInfo getUser() { + return user; + } + + @JsonProperty("user") + public void setUser(UserInfo user) { + this.user = user; + } + + @JsonIgnore + public TokenReviewStatusBuilder edit() { + return new TokenReviewStatusBuilder(this); + } + + @JsonIgnore + public TokenReviewStatusBuilder toBuilder() { + return edit(); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + + public void setAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + +} diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/UserInfo.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/UserInfo.java new file mode 100644 index 00000000000..3d21a22f743 --- /dev/null +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authentication/v1beta1/UserInfo.java @@ -0,0 +1,156 @@ + +package io.fabric8.kubernetes.api.model.authentication.v1beta1; + +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import javax.annotation.Generated; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import io.fabric8.kubernetes.api.builder.Editable; +import io.fabric8.kubernetes.api.model.Container; +import io.fabric8.kubernetes.api.model.IntOrString; +import io.fabric8.kubernetes.api.model.KubernetesResource; +import io.fabric8.kubernetes.api.model.LabelSelector; +import io.fabric8.kubernetes.api.model.LocalObjectReference; +import io.fabric8.kubernetes.api.model.ObjectMeta; +import io.fabric8.kubernetes.api.model.ObjectReference; +import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; +import io.fabric8.kubernetes.api.model.PodTemplateSpec; +import io.fabric8.kubernetes.api.model.ResourceRequirements; +import io.sundr.builder.annotations.Buildable; +import io.sundr.builder.annotations.BuildableReference; +import lombok.EqualsAndHashCode; +import lombok.ToString; +import lombok.experimental.Accessors; + +@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "extra", + "groups", + "uid", + "username" +}) +@ToString +@EqualsAndHashCode +@Accessors(prefix = { + "_", + "" +}) +@Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { + @BuildableReference(ObjectMeta.class), + @BuildableReference(LabelSelector.class), + @BuildableReference(Container.class), + @BuildableReference(PodTemplateSpec.class), + @BuildableReference(ResourceRequirements.class), + @BuildableReference(IntOrString.class), + @BuildableReference(ObjectReference.class), + @BuildableReference(LocalObjectReference.class), + @BuildableReference(PersistentVolumeClaim.class) +}) +@Generated("jsonschema2pojo") +public class UserInfo implements Editable , KubernetesResource +{ + + @JsonProperty("extra") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + private Map> extra = new LinkedHashMap<>(); + @JsonProperty("groups") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + private List groups = new ArrayList<>(); + @JsonProperty("uid") + private String uid; + @JsonProperty("username") + private String username; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public UserInfo() { + } + + public UserInfo(Map> extra, List groups, String uid, String username) { + super(); + this.extra = extra; + this.groups = groups; + this.uid = uid; + this.username = username; + } + + @JsonProperty("extra") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + public Map> getExtra() { + return extra; + } + + @JsonProperty("extra") + public void setExtra(Map> extra) { + this.extra = extra; + } + + @JsonProperty("groups") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + public List getGroups() { + return groups; + } + + @JsonProperty("groups") + public void setGroups(List groups) { + this.groups = groups; + } + + @JsonProperty("uid") + public String getUid() { + return uid; + } + + @JsonProperty("uid") + public void setUid(String uid) { + this.uid = uid; + } + + @JsonProperty("username") + public String getUsername() { + return username; + } + + @JsonProperty("username") + public void setUsername(String username) { + this.username = username; + } + + @JsonIgnore + public UserInfoBuilder edit() { + return new UserInfoBuilder(this); + } + + @JsonIgnore + public UserInfoBuilder toBuilder() { + return edit(); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, Object value) { + this.additionalProperties.put(name, value); + } + + public void setAdditionalProperties(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + +} diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authorization/v1/LocalSubjectAccessReview.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authorization/v1/LocalSubjectAccessReview.java index 89dd9a2812e..d31da86d4a7 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authorization/v1/LocalSubjectAccessReview.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authorization/v1/LocalSubjectAccessReview.java @@ -18,6 +18,7 @@ import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; import io.fabric8.kubernetes.api.model.Namespaced; +import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; import io.fabric8.kubernetes.api.model.PodTemplateSpec; @@ -48,7 +49,7 @@ "" }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { - @BuildableReference(io.fabric8.kubernetes.api.model.ObjectMeta.class), + @BuildableReference(ObjectMeta.class), @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @@ -82,7 +83,7 @@ public class LocalSubjectAccessReview implements Editable @JsonProperty("kind") private String kind = "SubjectAccessReview"; @JsonProperty("metadata") - private io.fabric8.kubernetes.api.model.ObjectMeta metadata; + private ObjectMeta metadata; @JsonProperty("spec") private SubjectAccessReviewSpec spec; @JsonProperty("status") @@ -96,7 +97,7 @@ public class SubjectAccessReview implements Editable public SubjectAccessReview() { } - public SubjectAccessReview(String apiVersion, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, SubjectAccessReviewSpec spec, SubjectAccessReviewStatus status) { + public SubjectAccessReview(String apiVersion, String kind, ObjectMeta metadata, SubjectAccessReviewSpec spec, SubjectAccessReviewStatus status) { super(); this.apiVersion = apiVersion; this.kind = kind; @@ -146,12 +147,12 @@ public void setKind(String kind) { } @JsonProperty("metadata") - public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata() { + public ObjectMeta getMetadata() { return metadata; } @JsonProperty("metadata") - public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata) { + public void setMetadata(ObjectMeta metadata) { this.metadata = metadata; } diff --git a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authorization/v1beta1/LocalSubjectAccessReview.java b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authorization/v1beta1/LocalSubjectAccessReview.java index e008dcabe69..9cc5adaf9ec 100644 --- a/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authorization/v1beta1/LocalSubjectAccessReview.java +++ b/kubernetes-model-generator/kubernetes-model-admissionregistration/src/generated/java/io/fabric8/kubernetes/api/model/authorization/v1beta1/LocalSubjectAccessReview.java @@ -18,6 +18,7 @@ import io.fabric8.kubernetes.api.model.LabelSelector; import io.fabric8.kubernetes.api.model.LocalObjectReference; import io.fabric8.kubernetes.api.model.Namespaced; +import io.fabric8.kubernetes.api.model.ObjectMeta; import io.fabric8.kubernetes.api.model.ObjectReference; import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; import io.fabric8.kubernetes.api.model.PodTemplateSpec; @@ -48,7 +49,7 @@ "" }) @Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { - @BuildableReference(io.fabric8.kubernetes.api.model.ObjectMeta.class), + @BuildableReference(ObjectMeta.class), @BuildableReference(LabelSelector.class), @BuildableReference(Container.class), @BuildableReference(PodTemplateSpec.class), @@ -82,7 +83,7 @@ public class LocalSubjectAccessReview implements Editable @JsonProperty("kind") private String kind = "SubjectAccessReview"; @JsonProperty("metadata") - private io.fabric8.kubernetes.api.model.ObjectMeta metadata; + private ObjectMeta metadata; @JsonProperty("spec") private SubjectAccessReviewSpec spec; @JsonProperty("status") @@ -96,7 +97,7 @@ public class SubjectAccessReview implements Editable public SubjectAccessReview() { } - public SubjectAccessReview(String apiVersion, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, SubjectAccessReviewSpec spec, SubjectAccessReviewStatus status) { + public SubjectAccessReview(String apiVersion, String kind, ObjectMeta metadata, SubjectAccessReviewSpec spec, SubjectAccessReviewStatus status) { super(); this.apiVersion = apiVersion; this.kind = kind; @@ -146,12 +147,12 @@ public void setKind(String kind) { } @JsonProperty("metadata") - public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata() { + public ObjectMeta getMetadata() { return metadata; } @JsonProperty("metadata") - public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata) { + public void setMetadata(ObjectMeta metadata) { this.metadata = metadata; } diff --git a/kubernetes-model-generator/openapi/maven-plugin/src/test/java/io/fabric8/kubernetes/schema/generator/model/KubernetesTest.java b/kubernetes-model-generator/openapi/maven-plugin/src/test/java/io/fabric8/kubernetes/schema/generator/model/KubernetesTest.java index 9c361e8a741..7aa0290fb9e 100644 --- a/kubernetes-model-generator/openapi/maven-plugin/src/test/java/io/fabric8/kubernetes/schema/generator/model/KubernetesTest.java +++ b/kubernetes-model-generator/openapi/maven-plugin/src/test/java/io/fabric8/kubernetes/schema/generator/model/KubernetesTest.java @@ -45,41 +45,6 @@ void setUp() { .generateJavadoc(false); } - @Test - void core() { - new ModelGenerator(baseSettings - .addBuildableReferences(false) - .schema(new File("../schemas/kubernetes-config.json")) - .schema(new File("../schemas/api-machinery-extra.json")) - .schema(new File("../schemas/admission-registration.json")) - .skipGenerationRegex("^io\\.k8s\\.apimachinery\\.pkg\\.runtime\\.RawExtension$") - .includeGenerationRegex("^io\\.k8s\\.api\\.core\\..*$") - .includeGenerationRegex("^io\\.k8s\\.apimachinery\\..*$") - .includeGenerationRegex("^io\\.k8s\\.client-go\\.tools\\.clientcmd\\.api\\.v1\\..*$") // Config - .includeGenerationRegex("^io\\.k8s\\.kube-aggregator\\.pkg\\.apis\\.apiregistration\\..*$") - .packageMapping("io.k8s.client-go.tools.clientcmd.api.v1", "io.fabric8.kubernetes.api.model") //Config // TODO: fix package sanitization - .packageMapping("io.k8s.kube-aggregator.pkg.apis.apiregistration.v1", "io.fabric8.kubernetes.api.model") // TODO: fix package sanitization - .build()) - .generate(); - } - - @Test - void admissionRegistration() { - new ModelGenerator(baseSettings - .clearSchemas() - .schema(new File("../schemas/kubernetes-1.21.14.json")) - .schema(new File("../schemas/kubernetes-1.30.0.json")) - .schema(new File("../schemas/admission-registration.json")) - .includeGenerationRegex("^io\\.k8s\\.api\\.admission\\..*$") - .includeGenerationRegex("^io\\.k8s\\.api\\.admissionregistration\\..*$") - .includeGenerationRegex("^io\\.k8s\\.api\\.authentication\\..*$") - .includeGenerationRegex("^io\\.k8s\\.api\\.authorization\\..*$") - .packageMapping("io.k8s.api", "io.fabric8.kubernetes.api.model") - .packageMapping("io.k8s.api.authentication.v1", "io.fabric8.kubernetes.api.model.authentication") - .build()) - .generate(); - } - @Test void apiExtensions() { new ModelGenerator(baseSettings @@ -268,17 +233,6 @@ void policy() { .generate(); } - @Test - void rbac() { - new ModelGenerator(baseSettings - .clearSchemas() - .schema(new File("../schemas/kubernetes-1.30.0.json")) - .includeGenerationRegex("^io\\.k8s\\.api\\.rbac\\..*$") - .packageMapping("io.k8s.api.rbac.v1", "io.fabric8.kubernetes.api.model.rbac") - .build()) - .generate(); - } - @Test void resource() { new ModelGenerator(baseSettings