From 46c6becb67acfcc5238d011455adc7e9094dcb13 Mon Sep 17 00:00:00 2001 From: Marc Nuri Date: Fri, 20 Sep 2024 21:22:48 +0800 Subject: [PATCH] refactor: openshift-model-console generated from OpenAPI schemas Signed-off-by: Marc Nuri --- Makefile | 1 + kubernetes-model-generator/generateModel.sh | 1 - .../schema/generator/schema/SchemaUtils.java | 1 + .../openshift-model-console/Makefile | 27 -- .../cmd/generate/generate.go | 109 ------ .../openshift-model-console/pom.xml | 39 +- .../kubernetes/api/model/KubeSchema.java | 346 ------------------ .../api/model/ValidationSchema.java | 346 ------------------ .../model/console/v1/ConsoleCLIDownload.java | 11 +- .../console/v1/ConsoleCLIDownloadSpec.java | 8 +- ....java => ConsoleCLIDownloadSpecLinks.java} | 12 +- .../console/v1/ConsoleExternalLogLink.java | 11 +- .../api/model/console/v1/ConsoleLink.java | 11 +- .../api/model/console/v1/ConsoleLinkSpec.java | 14 +- ...va => ConsoleLinkSpecApplicationMenu.java} | 12 +- .../ConsoleLinkSpecNDNamespaceSelector.java | 129 +++++++ ...=> ConsoleLinkSpecNamespaceDashboard.java} | 21 +- .../model/console/v1/ConsoleNotification.java | 11 +- .../console/v1/ConsoleNotificationSpec.java | 8 +- ....java => ConsoleNotificationSpecLink.java} | 12 +- .../api/model/console/v1/ConsolePlugin.java | 189 ++++++++++ .../model/console/v1/ConsolePluginList.java | 195 ++++++++++ .../model/console/v1/ConsolePluginSpec.java | 154 ++++++++ .../console/v1/ConsolePluginSpecBService.java | 150 ++++++++ .../console/v1/ConsolePluginSpecBackend.java | 122 ++++++ .../console/v1/ConsolePluginSpecI18n.java | 108 ++++++ .../v1/ConsolePluginSpecPEService.java | 136 +++++++ .../v1/ConsolePluginSpecPEndpoint.java | 122 ++++++ .../console/v1/ConsolePluginSpecProxy.java | 150 ++++++++ .../model/console/v1/ConsoleQuickStart.java | 11 +- .../console/v1/ConsoleQuickStartSpec.java | 8 +- ...java => ConsoleQuickStartSpecTReview.java} | 12 +- ...ava => ConsoleQuickStartSpecTSummary.java} | 12 +- ...k.java => ConsoleQuickStartSpecTasks.java} | 24 +- .../api/model/console/v1/ConsoleSample.java | 189 ++++++++++ .../model/console/v1/ConsoleSampleList.java | 195 ++++++++++ .../model/console/v1/ConsoleSampleSpec.java | 210 +++++++++++ .../v1/ConsoleSampleSpecSCIService.java | 108 ++++++ .../v1/ConsoleSampleSpecSContainerImport.java | 122 ++++++ .../v1/ConsoleSampleSpecSGIRepository.java | 136 +++++++ .../v1/ConsoleSampleSpecSGIService.java | 108 ++++++ .../v1/ConsoleSampleSpecSGitImport.java | 122 ++++++ .../console/v1/ConsoleSampleSpecSource.java | 136 +++++++ .../model/console/v1/ConsoleYAMLSample.java | 11 +- .../console/v1/ConsoleYAMLSampleSpec.java | 9 +- .../ConsoleYAMLSampleSpecTargetResource.java | 122 ++++++ .../model/console/v1alpha1/ConsolePlugin.java | 11 +- .../console/v1alpha1/ConsolePluginSpec.java | 14 +- ...ig.java => ConsolePluginSpecPService.java} | 12 +- ...Proxy.java => ConsolePluginSpecProxy.java} | 18 +- ...ice.java => ConsolePluginSpecService.java} | 12 +- .../server/mock/ConsoleQuickStartTest.java | 4 +- 52 files changed, 3069 insertions(+), 993 deletions(-) delete mode 100644 kubernetes-model-generator/openshift-model-console/Makefile delete mode 100644 kubernetes-model-generator/openshift-model-console/cmd/generate/generate.go delete mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/kubernetes/api/model/KubeSchema.java delete mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/kubernetes/api/model/ValidationSchema.java rename kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/{Link.java => ConsoleCLIDownloadSpecLinks.java} (89%) rename kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/{ApplicationMenuSpec.java => ConsoleLinkSpecApplicationMenu.java} (89%) create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleLinkSpecNDNamespaceSelector.java rename kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/{NamespaceDashboardSpec.java => ConsoleLinkSpecNamespaceDashboard.java} (81%) rename kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/{CLIDownloadLink.java => ConsoleNotificationSpecLink.java} (89%) create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePlugin.java create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginList.java create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpec.java create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecBService.java create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecBackend.java create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecI18n.java create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecPEService.java create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecPEndpoint.java create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecProxy.java rename kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/{ConsoleQuickStartTaskReview.java => ConsoleQuickStartSpecTReview.java} (89%) rename kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/{ConsoleQuickStartTaskSummary.java => ConsoleQuickStartSpecTSummary.java} (89%) rename kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/{ConsoleQuickStartTask.java => ConsoleQuickStartSpecTasks.java} (82%) create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSample.java create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleList.java create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpec.java create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSCIService.java create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSContainerImport.java create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSGIRepository.java create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSGIService.java create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSGitImport.java create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSource.java create mode 100644 kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleYAMLSampleSpecTargetResource.java rename kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/{ConsolePluginProxyServiceConfig.java => ConsolePluginSpecPService.java} (89%) rename kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/{ConsolePluginProxy.java => ConsolePluginSpecProxy.java} (87%) rename kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/{ConsolePluginService.java => ConsolePluginSpecService.java} (90%) diff --git a/Makefile b/Makefile index 9b6cee7e7a9..cf2584ae187 100644 --- a/Makefile +++ b/Makefile @@ -61,6 +61,7 @@ generate-openapi-classes: cd kubernetes-model-generator/openshift-model-operator && mvn -Pgenerate clean install cd kubernetes-model-generator/openshift-model-miscellaneous && mvn -Pgenerate clean install cd kubernetes-model-generator/openshift-model-operatorhub && mvn -Pgenerate clean install + cd kubernetes-model-generator/openshift-model-console && 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 f3526cbf291..4e3fe531d7f 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=( - "openshift-model-console" "openshift-model-clusterautoscaling" "openshift-model-hive" "openshift-model-machine" diff --git a/kubernetes-model-generator/openapi/maven-plugin/src/main/java/io/fabric8/kubernetes/schema/generator/schema/SchemaUtils.java b/kubernetes-model-generator/openapi/maven-plugin/src/main/java/io/fabric8/kubernetes/schema/generator/schema/SchemaUtils.java index 27e227757b1..a049acf5056 100644 --- a/kubernetes-model-generator/openapi/maven-plugin/src/main/java/io/fabric8/kubernetes/schema/generator/schema/SchemaUtils.java +++ b/kubernetes-model-generator/openapi/maven-plugin/src/main/java/io/fabric8/kubernetes/schema/generator/schema/SchemaUtils.java @@ -137,6 +137,7 @@ public class SchemaUtils { } private static final Set PROTECTED_WORDS = new HashSet<>(Arrays.asList( + "abstract", "continue", "default", "enum", diff --git a/kubernetes-model-generator/openshift-model-console/Makefile b/kubernetes-model-generator/openshift-model-console/Makefile deleted file mode 100644 index c09a7003874..00000000000 --- a/kubernetes-model-generator/openshift-model-console/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/openshift-model-console/cmd/generate/generate.go b/kubernetes-model-generator/openshift-model-console/cmd/generate/generate.go deleted file mode 100644 index e62dfc1a902..00000000000 --- a/kubernetes-model-generator/openshift-model-console/cmd/generate/generate.go +++ /dev/null @@ -1,109 +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" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - apimachineryversion "k8s.io/apimachinery/pkg/version" - k8sauthapi "k8s.io/api/authorization/v1" - "log" - "reflect" - "strings" - "time" - consoleapi "github.com/openshift/api/console/v1" - consoleapiv1alpha1 "github.com/openshift/api/console/v1alpha1" - - "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 - Time metav1.Time - ResourceAttributes k8sauthapi.ResourceAttributes - ConsoleCLIDownload consoleapi.ConsoleCLIDownload - ConsoleCLIDownloadList consoleapi.ConsoleCLIDownloadList - ConsoleExternalLogLink consoleapi.ConsoleExternalLogLink - ConsoleExternalLogLinkList consoleapi.ConsoleExternalLogLinkList - ConsoleLink consoleapi.ConsoleLink - ConsoleLinkList consoleapi.ConsoleLinkList - ConsoleNotification consoleapi.ConsoleNotification - ConsoleNotificationList consoleapi.ConsoleNotificationList - ConsoleYAMLSample consoleapi.ConsoleYAMLSample - ConsoleYAMLSampleList consoleapi.ConsoleYAMLSampleList - ConsoleQuickStart consoleapi.ConsoleQuickStart - ConsoleQuickStartList consoleapi.ConsoleQuickStartList - ConsolePlugin consoleapiv1alpha1.ConsolePluginList - ConsolePluginList consoleapiv1alpha1.ConsolePluginList -} - -func main() { - packages := []schemagen.PackageDescriptor{ - {"k8s.io/api/core/v1", "", "io.fabric8.kubernetes.api.model", "kubernetes_core_", false}, - {"k8s.io/apimachinery/pkg/api/resource", "", "io.fabric8.kubernetes.api.model", "kubernetes_resource_", false}, - {"k8s.io/apimachinery/pkg/util/intstr", "", "io.fabric8.kubernetes.api.model", "kubernetes_apimachinery_pkg_util_intstr_", false}, - {"k8s.io/apimachinery/pkg/runtime", "", "io.fabric8.openshift.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/kubernetes/pkg/util", "", "io.fabric8.kubernetes.api.model", "kubernetes_util_", false}, - {"k8s.io/kubernetes/pkg/api/errors", "", "io.fabric8.kubernetes.api.model", "kubernetes_errors_", false}, - {"k8s.io/kubernetes/pkg/api/unversioned", "", "io.fabric8.kubernetes.api.model", "api_", false}, - {"k8s.io/apimachinery/pkg/apis/meta/v1", "", "io.fabric8.kubernetes.api.model", "kubernetes_apimachinery_", false}, - {"k8s.io/api/authorization/v1", "", "io.fabric8.kubernetes.api.model.authorization.v1", "kubernetes_authorization_v1_", false}, - {"github.com/openshift/api/console/v1", "", "io.fabric8.openshift.api.model.console.v1", "os_console_v1_", true}, - {"github.com/openshift/api/console/v1alpha1", "", "io.fabric8.openshift.api.model.console.v1alpha1", "os_console_v1alpha1_", 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{},"console") - 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/openshift-model-console/pom.xml b/kubernetes-model-generator/openshift-model-console/pom.xml index 7fc41daee07..e85debcf077 100644 --- a/kubernetes-model-generator/openshift-model-console/pom.xml +++ b/kubernetes-model-generator/openshift-model-console/pom.xml @@ -43,41 +43,34 @@ io.fabric8 kubernetes-model-core - - io.fabric8 - kubernetes-model-common - io.fabric8 kubernetes-model-admissionregistration - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - - false - - - - - - - generate - org.jsonschema2pojo - jsonschema2pojo-maven-plugin + io.fabric8 + openapi-model-generator-maven-plugin + + + + ${openapi.schema.openshift-latest} + + + io.fabric8.kubernetes.api.model + io.fabric8.openshift.api.model.console + + + ^io\.openshift\.console\..*$ + + + diff --git a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/kubernetes/api/model/KubeSchema.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/kubernetes/api/model/KubeSchema.java deleted file mode 100644 index 31e25fdd284..00000000000 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/kubernetes/api/model/KubeSchema.java +++ /dev/null @@ -1,346 +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.authorization.v1.ResourceAttributes; -import io.fabric8.kubernetes.api.model.version.Info; -import io.fabric8.openshift.api.model.console.v1.ConsoleCLIDownload; -import io.fabric8.openshift.api.model.console.v1.ConsoleCLIDownloadList; -import io.fabric8.openshift.api.model.console.v1.ConsoleExternalLogLink; -import io.fabric8.openshift.api.model.console.v1.ConsoleExternalLogLinkList; -import io.fabric8.openshift.api.model.console.v1.ConsoleLink; -import io.fabric8.openshift.api.model.console.v1.ConsoleLinkList; -import io.fabric8.openshift.api.model.console.v1.ConsoleNotification; -import io.fabric8.openshift.api.model.console.v1.ConsoleNotificationList; -import io.fabric8.openshift.api.model.console.v1.ConsoleQuickStart; -import io.fabric8.openshift.api.model.console.v1.ConsoleQuickStartList; -import io.fabric8.openshift.api.model.console.v1.ConsoleYAMLSample; -import io.fabric8.openshift.api.model.console.v1.ConsoleYAMLSampleList; -import io.fabric8.openshift.api.model.console.v1alpha1.ConsolePluginList; - -@Generated("jsonschema2pojo") -public class KubeSchema { - - private APIGroup aPIGroup; - private APIGroupList aPIGroupList; - private KubernetesList baseKubernetesList; - private ConsoleCLIDownload consoleCLIDownload; - private ConsoleCLIDownloadList consoleCLIDownloadList; - private ConsoleExternalLogLink consoleExternalLogLink; - private ConsoleExternalLogLinkList consoleExternalLogLinkList; - private ConsoleLink consoleLink; - private ConsoleLinkList consoleLinkList; - private ConsoleNotification consoleNotification; - private ConsoleNotificationList consoleNotificationList; - private ConsolePluginList consolePlugin; - private ConsolePluginList consolePluginList; - private ConsoleQuickStart consoleQuickStart; - private ConsoleQuickStartList consoleQuickStartList; - private ConsoleYAMLSample consoleYAMLSample; - private ConsoleYAMLSampleList consoleYAMLSampleList; - private Info info; - private ObjectMeta objectMeta; - private Patch patch; - private ResourceAttributes resourceAttributes; - private Status status; - private String time; - private TypeMeta typeMeta; - @JsonIgnore - private Map additionalProperties = new LinkedHashMap(); - - /** - * No args constructor for use in serialization - * - */ - public KubeSchema() { - } - - public KubeSchema(APIGroup aPIGroup, APIGroupList aPIGroupList, KubernetesList baseKubernetesList, ConsoleCLIDownload consoleCLIDownload, ConsoleCLIDownloadList consoleCLIDownloadList, ConsoleExternalLogLink consoleExternalLogLink, ConsoleExternalLogLinkList consoleExternalLogLinkList, ConsoleLink consoleLink, ConsoleLinkList consoleLinkList, ConsoleNotification consoleNotification, ConsoleNotificationList consoleNotificationList, ConsolePluginList consolePlugin, ConsolePluginList consolePluginList, ConsoleQuickStart consoleQuickStart, ConsoleQuickStartList consoleQuickStartList, ConsoleYAMLSample consoleYAMLSample, ConsoleYAMLSampleList consoleYAMLSampleList, Info info, ObjectMeta objectMeta, Patch patch, ResourceAttributes resourceAttributes, Status status, String time, TypeMeta typeMeta) { - super(); - this.aPIGroup = aPIGroup; - this.aPIGroupList = aPIGroupList; - this.baseKubernetesList = baseKubernetesList; - this.consoleCLIDownload = consoleCLIDownload; - this.consoleCLIDownloadList = consoleCLIDownloadList; - this.consoleExternalLogLink = consoleExternalLogLink; - this.consoleExternalLogLinkList = consoleExternalLogLinkList; - this.consoleLink = consoleLink; - this.consoleLinkList = consoleLinkList; - this.consoleNotification = consoleNotification; - this.consoleNotificationList = consoleNotificationList; - this.consolePlugin = consolePlugin; - this.consolePluginList = consolePluginList; - this.consoleQuickStart = consoleQuickStart; - this.consoleQuickStartList = consoleQuickStartList; - this.consoleYAMLSample = consoleYAMLSample; - this.consoleYAMLSampleList = consoleYAMLSampleList; - this.info = info; - this.objectMeta = objectMeta; - this.patch = patch; - this.resourceAttributes = resourceAttributes; - this.status = status; - this.time = time; - this.typeMeta = typeMeta; - } - - @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("ConsoleCLIDownload") - public ConsoleCLIDownload getConsoleCLIDownload() { - return consoleCLIDownload; - } - - @JsonProperty("ConsoleCLIDownload") - public void setConsoleCLIDownload(ConsoleCLIDownload consoleCLIDownload) { - this.consoleCLIDownload = consoleCLIDownload; - } - - @JsonProperty("ConsoleCLIDownloadList") - public ConsoleCLIDownloadList getConsoleCLIDownloadList() { - return consoleCLIDownloadList; - } - - @JsonProperty("ConsoleCLIDownloadList") - public void setConsoleCLIDownloadList(ConsoleCLIDownloadList consoleCLIDownloadList) { - this.consoleCLIDownloadList = consoleCLIDownloadList; - } - - @JsonProperty("ConsoleExternalLogLink") - public ConsoleExternalLogLink getConsoleExternalLogLink() { - return consoleExternalLogLink; - } - - @JsonProperty("ConsoleExternalLogLink") - public void setConsoleExternalLogLink(ConsoleExternalLogLink consoleExternalLogLink) { - this.consoleExternalLogLink = consoleExternalLogLink; - } - - @JsonProperty("ConsoleExternalLogLinkList") - public ConsoleExternalLogLinkList getConsoleExternalLogLinkList() { - return consoleExternalLogLinkList; - } - - @JsonProperty("ConsoleExternalLogLinkList") - public void setConsoleExternalLogLinkList(ConsoleExternalLogLinkList consoleExternalLogLinkList) { - this.consoleExternalLogLinkList = consoleExternalLogLinkList; - } - - @JsonProperty("ConsoleLink") - public ConsoleLink getConsoleLink() { - return consoleLink; - } - - @JsonProperty("ConsoleLink") - public void setConsoleLink(ConsoleLink consoleLink) { - this.consoleLink = consoleLink; - } - - @JsonProperty("ConsoleLinkList") - public ConsoleLinkList getConsoleLinkList() { - return consoleLinkList; - } - - @JsonProperty("ConsoleLinkList") - public void setConsoleLinkList(ConsoleLinkList consoleLinkList) { - this.consoleLinkList = consoleLinkList; - } - - @JsonProperty("ConsoleNotification") - public ConsoleNotification getConsoleNotification() { - return consoleNotification; - } - - @JsonProperty("ConsoleNotification") - public void setConsoleNotification(ConsoleNotification consoleNotification) { - this.consoleNotification = consoleNotification; - } - - @JsonProperty("ConsoleNotificationList") - public ConsoleNotificationList getConsoleNotificationList() { - return consoleNotificationList; - } - - @JsonProperty("ConsoleNotificationList") - public void setConsoleNotificationList(ConsoleNotificationList consoleNotificationList) { - this.consoleNotificationList = consoleNotificationList; - } - - @JsonProperty("ConsolePlugin") - public ConsolePluginList getConsolePlugin() { - return consolePlugin; - } - - @JsonProperty("ConsolePlugin") - public void setConsolePlugin(ConsolePluginList consolePlugin) { - this.consolePlugin = consolePlugin; - } - - @JsonProperty("ConsolePluginList") - public ConsolePluginList getConsolePluginList() { - return consolePluginList; - } - - @JsonProperty("ConsolePluginList") - public void setConsolePluginList(ConsolePluginList consolePluginList) { - this.consolePluginList = consolePluginList; - } - - @JsonProperty("ConsoleQuickStart") - public ConsoleQuickStart getConsoleQuickStart() { - return consoleQuickStart; - } - - @JsonProperty("ConsoleQuickStart") - public void setConsoleQuickStart(ConsoleQuickStart consoleQuickStart) { - this.consoleQuickStart = consoleQuickStart; - } - - @JsonProperty("ConsoleQuickStartList") - public ConsoleQuickStartList getConsoleQuickStartList() { - return consoleQuickStartList; - } - - @JsonProperty("ConsoleQuickStartList") - public void setConsoleQuickStartList(ConsoleQuickStartList consoleQuickStartList) { - this.consoleQuickStartList = consoleQuickStartList; - } - - @JsonProperty("ConsoleYAMLSample") - public ConsoleYAMLSample getConsoleYAMLSample() { - return consoleYAMLSample; - } - - @JsonProperty("ConsoleYAMLSample") - public void setConsoleYAMLSample(ConsoleYAMLSample consoleYAMLSample) { - this.consoleYAMLSample = consoleYAMLSample; - } - - @JsonProperty("ConsoleYAMLSampleList") - public ConsoleYAMLSampleList getConsoleYAMLSampleList() { - return consoleYAMLSampleList; - } - - @JsonProperty("ConsoleYAMLSampleList") - public void setConsoleYAMLSampleList(ConsoleYAMLSampleList consoleYAMLSampleList) { - this.consoleYAMLSampleList = consoleYAMLSampleList; - } - - @JsonProperty("Info") - public Info getInfo() { - return info; - } - - @JsonProperty("Info") - public void setInfo(Info info) { - this.info = info; - } - - @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("ResourceAttributes") - public ResourceAttributes getResourceAttributes() { - return resourceAttributes; - } - - @JsonProperty("ResourceAttributes") - public void setResourceAttributes(ResourceAttributes resourceAttributes) { - this.resourceAttributes = resourceAttributes; - } - - @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("TypeMeta") - public TypeMeta getTypeMeta() { - return typeMeta; - } - - @JsonProperty("TypeMeta") - public void setTypeMeta(TypeMeta typeMeta) { - this.typeMeta = typeMeta; - } - - @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/openshift-model-console/src/generated/java/io/fabric8/kubernetes/api/model/ValidationSchema.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/kubernetes/api/model/ValidationSchema.java deleted file mode 100644 index 69c89a4296d..00000000000 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/kubernetes/api/model/ValidationSchema.java +++ /dev/null @@ -1,346 +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.authorization.v1.ResourceAttributes; -import io.fabric8.kubernetes.api.model.version.Info; -import io.fabric8.openshift.api.model.console.v1.ConsoleCLIDownload; -import io.fabric8.openshift.api.model.console.v1.ConsoleCLIDownloadList; -import io.fabric8.openshift.api.model.console.v1.ConsoleExternalLogLink; -import io.fabric8.openshift.api.model.console.v1.ConsoleExternalLogLinkList; -import io.fabric8.openshift.api.model.console.v1.ConsoleLink; -import io.fabric8.openshift.api.model.console.v1.ConsoleLinkList; -import io.fabric8.openshift.api.model.console.v1.ConsoleNotification; -import io.fabric8.openshift.api.model.console.v1.ConsoleNotificationList; -import io.fabric8.openshift.api.model.console.v1.ConsoleQuickStart; -import io.fabric8.openshift.api.model.console.v1.ConsoleQuickStartList; -import io.fabric8.openshift.api.model.console.v1.ConsoleYAMLSample; -import io.fabric8.openshift.api.model.console.v1.ConsoleYAMLSampleList; -import io.fabric8.openshift.api.model.console.v1alpha1.ConsolePluginList; - -@Generated("jsonschema2pojo") -public class ValidationSchema { - - private APIGroup aPIGroup; - private APIGroupList aPIGroupList; - private KubernetesList baseKubernetesList; - private ConsoleCLIDownload consoleCLIDownload; - private ConsoleCLIDownloadList consoleCLIDownloadList; - private ConsoleExternalLogLink consoleExternalLogLink; - private ConsoleExternalLogLinkList consoleExternalLogLinkList; - private ConsoleLink consoleLink; - private ConsoleLinkList consoleLinkList; - private ConsoleNotification consoleNotification; - private ConsoleNotificationList consoleNotificationList; - private ConsolePluginList consolePlugin; - private ConsolePluginList consolePluginList; - private ConsoleQuickStart consoleQuickStart; - private ConsoleQuickStartList consoleQuickStartList; - private ConsoleYAMLSample consoleYAMLSample; - private ConsoleYAMLSampleList consoleYAMLSampleList; - private Info info; - private ObjectMeta objectMeta; - private Patch patch; - private ResourceAttributes resourceAttributes; - private Status status; - private String time; - private TypeMeta typeMeta; - @JsonIgnore - private Map additionalProperties = new LinkedHashMap(); - - /** - * No args constructor for use in serialization - * - */ - public ValidationSchema() { - } - - public ValidationSchema(APIGroup aPIGroup, APIGroupList aPIGroupList, KubernetesList baseKubernetesList, ConsoleCLIDownload consoleCLIDownload, ConsoleCLIDownloadList consoleCLIDownloadList, ConsoleExternalLogLink consoleExternalLogLink, ConsoleExternalLogLinkList consoleExternalLogLinkList, ConsoleLink consoleLink, ConsoleLinkList consoleLinkList, ConsoleNotification consoleNotification, ConsoleNotificationList consoleNotificationList, ConsolePluginList consolePlugin, ConsolePluginList consolePluginList, ConsoleQuickStart consoleQuickStart, ConsoleQuickStartList consoleQuickStartList, ConsoleYAMLSample consoleYAMLSample, ConsoleYAMLSampleList consoleYAMLSampleList, Info info, ObjectMeta objectMeta, Patch patch, ResourceAttributes resourceAttributes, Status status, String time, TypeMeta typeMeta) { - super(); - this.aPIGroup = aPIGroup; - this.aPIGroupList = aPIGroupList; - this.baseKubernetesList = baseKubernetesList; - this.consoleCLIDownload = consoleCLIDownload; - this.consoleCLIDownloadList = consoleCLIDownloadList; - this.consoleExternalLogLink = consoleExternalLogLink; - this.consoleExternalLogLinkList = consoleExternalLogLinkList; - this.consoleLink = consoleLink; - this.consoleLinkList = consoleLinkList; - this.consoleNotification = consoleNotification; - this.consoleNotificationList = consoleNotificationList; - this.consolePlugin = consolePlugin; - this.consolePluginList = consolePluginList; - this.consoleQuickStart = consoleQuickStart; - this.consoleQuickStartList = consoleQuickStartList; - this.consoleYAMLSample = consoleYAMLSample; - this.consoleYAMLSampleList = consoleYAMLSampleList; - this.info = info; - this.objectMeta = objectMeta; - this.patch = patch; - this.resourceAttributes = resourceAttributes; - this.status = status; - this.time = time; - this.typeMeta = typeMeta; - } - - @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("ConsoleCLIDownload") - public ConsoleCLIDownload getConsoleCLIDownload() { - return consoleCLIDownload; - } - - @JsonProperty("ConsoleCLIDownload") - public void setConsoleCLIDownload(ConsoleCLIDownload consoleCLIDownload) { - this.consoleCLIDownload = consoleCLIDownload; - } - - @JsonProperty("ConsoleCLIDownloadList") - public ConsoleCLIDownloadList getConsoleCLIDownloadList() { - return consoleCLIDownloadList; - } - - @JsonProperty("ConsoleCLIDownloadList") - public void setConsoleCLIDownloadList(ConsoleCLIDownloadList consoleCLIDownloadList) { - this.consoleCLIDownloadList = consoleCLIDownloadList; - } - - @JsonProperty("ConsoleExternalLogLink") - public ConsoleExternalLogLink getConsoleExternalLogLink() { - return consoleExternalLogLink; - } - - @JsonProperty("ConsoleExternalLogLink") - public void setConsoleExternalLogLink(ConsoleExternalLogLink consoleExternalLogLink) { - this.consoleExternalLogLink = consoleExternalLogLink; - } - - @JsonProperty("ConsoleExternalLogLinkList") - public ConsoleExternalLogLinkList getConsoleExternalLogLinkList() { - return consoleExternalLogLinkList; - } - - @JsonProperty("ConsoleExternalLogLinkList") - public void setConsoleExternalLogLinkList(ConsoleExternalLogLinkList consoleExternalLogLinkList) { - this.consoleExternalLogLinkList = consoleExternalLogLinkList; - } - - @JsonProperty("ConsoleLink") - public ConsoleLink getConsoleLink() { - return consoleLink; - } - - @JsonProperty("ConsoleLink") - public void setConsoleLink(ConsoleLink consoleLink) { - this.consoleLink = consoleLink; - } - - @JsonProperty("ConsoleLinkList") - public ConsoleLinkList getConsoleLinkList() { - return consoleLinkList; - } - - @JsonProperty("ConsoleLinkList") - public void setConsoleLinkList(ConsoleLinkList consoleLinkList) { - this.consoleLinkList = consoleLinkList; - } - - @JsonProperty("ConsoleNotification") - public ConsoleNotification getConsoleNotification() { - return consoleNotification; - } - - @JsonProperty("ConsoleNotification") - public void setConsoleNotification(ConsoleNotification consoleNotification) { - this.consoleNotification = consoleNotification; - } - - @JsonProperty("ConsoleNotificationList") - public ConsoleNotificationList getConsoleNotificationList() { - return consoleNotificationList; - } - - @JsonProperty("ConsoleNotificationList") - public void setConsoleNotificationList(ConsoleNotificationList consoleNotificationList) { - this.consoleNotificationList = consoleNotificationList; - } - - @JsonProperty("ConsolePlugin") - public ConsolePluginList getConsolePlugin() { - return consolePlugin; - } - - @JsonProperty("ConsolePlugin") - public void setConsolePlugin(ConsolePluginList consolePlugin) { - this.consolePlugin = consolePlugin; - } - - @JsonProperty("ConsolePluginList") - public ConsolePluginList getConsolePluginList() { - return consolePluginList; - } - - @JsonProperty("ConsolePluginList") - public void setConsolePluginList(ConsolePluginList consolePluginList) { - this.consolePluginList = consolePluginList; - } - - @JsonProperty("ConsoleQuickStart") - public ConsoleQuickStart getConsoleQuickStart() { - return consoleQuickStart; - } - - @JsonProperty("ConsoleQuickStart") - public void setConsoleQuickStart(ConsoleQuickStart consoleQuickStart) { - this.consoleQuickStart = consoleQuickStart; - } - - @JsonProperty("ConsoleQuickStartList") - public ConsoleQuickStartList getConsoleQuickStartList() { - return consoleQuickStartList; - } - - @JsonProperty("ConsoleQuickStartList") - public void setConsoleQuickStartList(ConsoleQuickStartList consoleQuickStartList) { - this.consoleQuickStartList = consoleQuickStartList; - } - - @JsonProperty("ConsoleYAMLSample") - public ConsoleYAMLSample getConsoleYAMLSample() { - return consoleYAMLSample; - } - - @JsonProperty("ConsoleYAMLSample") - public void setConsoleYAMLSample(ConsoleYAMLSample consoleYAMLSample) { - this.consoleYAMLSample = consoleYAMLSample; - } - - @JsonProperty("ConsoleYAMLSampleList") - public ConsoleYAMLSampleList getConsoleYAMLSampleList() { - return consoleYAMLSampleList; - } - - @JsonProperty("ConsoleYAMLSampleList") - public void setConsoleYAMLSampleList(ConsoleYAMLSampleList consoleYAMLSampleList) { - this.consoleYAMLSampleList = consoleYAMLSampleList; - } - - @JsonProperty("Info") - public Info getInfo() { - return info; - } - - @JsonProperty("Info") - public void setInfo(Info info) { - this.info = info; - } - - @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("ResourceAttributes") - public ResourceAttributes getResourceAttributes() { - return resourceAttributes; - } - - @JsonProperty("ResourceAttributes") - public void setResourceAttributes(ResourceAttributes resourceAttributes) { - this.resourceAttributes = resourceAttributes; - } - - @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("TypeMeta") - public TypeMeta getTypeMeta() { - return typeMeta; - } - - @JsonProperty("TypeMeta") - public void setTypeMeta(TypeMeta typeMeta) { - this.typeMeta = typeMeta; - } - - @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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleCLIDownload.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleCLIDownload.java index 089bc0be62c..08b215926e8 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleCLIDownload.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleCLIDownload.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 ConsoleCLIDownload implements Editable , @JsonProperty("kind") private String kind = "ConsoleCLIDownload"; @JsonProperty("metadata") - private io.fabric8.kubernetes.api.model.ObjectMeta metadata; + private ObjectMeta metadata; @JsonProperty("spec") private ConsoleCLIDownloadSpec spec; @JsonIgnore @@ -93,7 +94,7 @@ public class ConsoleCLIDownload implements Editable , public ConsoleCLIDownload() { } - public ConsoleCLIDownload(String apiVersion, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, ConsoleCLIDownloadSpec spec) { + public ConsoleCLIDownload(String apiVersion, String kind, ObjectMeta metadata, ConsoleCLIDownloadSpec spec) { 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleCLIDownloadSpec.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleCLIDownloadSpec.java index 08abf5e5973..f9760ad53a3 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleCLIDownloadSpec.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleCLIDownloadSpec.java @@ -64,7 +64,7 @@ public class ConsoleCLIDownloadSpec implements Editable links = new ArrayList<>(); + private List links = new ArrayList<>(); @JsonIgnore private Map additionalProperties = new LinkedHashMap(); @@ -75,7 +75,7 @@ public class ConsoleCLIDownloadSpec implements Editable links) { + public ConsoleCLIDownloadSpec(String description, String displayName, List links) { super(); this.description = description; this.displayName = displayName; @@ -104,12 +104,12 @@ public void setDisplayName(String displayName) { @JsonProperty("links") @JsonInclude(JsonInclude.Include.NON_EMPTY) - public List getLinks() { + public List getLinks() { return links; } @JsonProperty("links") - public void setLinks(List links) { + public void setLinks(List links) { this.links = links; } diff --git a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/Link.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleCLIDownloadSpecLinks.java similarity index 89% rename from kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/Link.java rename to kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleCLIDownloadSpecLinks.java index 1318ce54464..6bc887f38ae 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/Link.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleCLIDownloadSpecLinks.java @@ -52,7 +52,7 @@ @BuildableReference(PersistentVolumeClaim.class) }) @Generated("jsonschema2pojo") -public class Link implements Editable , KubernetesResource +public class ConsoleCLIDownloadSpecLinks implements Editable , KubernetesResource { @JsonProperty("href") @@ -66,10 +66,10 @@ public class Link implements Editable , KubernetesResource * No args constructor for use in serialization * */ - public Link() { + public ConsoleCLIDownloadSpecLinks() { } - public Link(String href, String text) { + public ConsoleCLIDownloadSpecLinks(String href, String text) { super(); this.href = href; this.text = text; @@ -96,12 +96,12 @@ public void setText(String text) { } @JsonIgnore - public LinkBuilder edit() { - return new LinkBuilder(this); + public ConsoleCLIDownloadSpecLinksBuilder edit() { + return new ConsoleCLIDownloadSpecLinksBuilder(this); } @JsonIgnore - public LinkBuilder toBuilder() { + public ConsoleCLIDownloadSpecLinksBuilder toBuilder() { return edit(); } diff --git a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleExternalLogLink.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleExternalLogLink.java index 6ba1ab10aab..38b380869f5 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleExternalLogLink.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleExternalLogLink.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 ConsoleExternalLogLink implements Editable , HasMetadata @JsonProperty("kind") private String kind = "ConsoleLink"; @JsonProperty("metadata") - private io.fabric8.kubernetes.api.model.ObjectMeta metadata; + private ObjectMeta metadata; @JsonProperty("spec") private ConsoleLinkSpec spec; @JsonIgnore @@ -93,7 +94,7 @@ public class ConsoleLink implements Editable , HasMetadata public ConsoleLink() { } - public ConsoleLink(String apiVersion, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, ConsoleLinkSpec spec) { + public ConsoleLink(String apiVersion, String kind, ObjectMeta metadata, ConsoleLinkSpec spec) { 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleLinkSpec.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleLinkSpec.java index 307319dc17d..8fb7fb1c9e4 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleLinkSpec.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleLinkSpec.java @@ -59,13 +59,13 @@ public class ConsoleLinkSpec implements Editable , Kuber { @JsonProperty("applicationMenu") - private ApplicationMenuSpec applicationMenu; + private ConsoleLinkSpecApplicationMenu applicationMenu; @JsonProperty("href") private String href; @JsonProperty("location") private String location; @JsonProperty("namespaceDashboard") - private NamespaceDashboardSpec namespaceDashboard; + private ConsoleLinkSpecNamespaceDashboard namespaceDashboard; @JsonProperty("text") private String text; @JsonIgnore @@ -78,7 +78,7 @@ public class ConsoleLinkSpec implements Editable , Kuber public ConsoleLinkSpec() { } - public ConsoleLinkSpec(ApplicationMenuSpec applicationMenu, String href, String location, NamespaceDashboardSpec namespaceDashboard, String text) { + public ConsoleLinkSpec(ConsoleLinkSpecApplicationMenu applicationMenu, String href, String location, ConsoleLinkSpecNamespaceDashboard namespaceDashboard, String text) { super(); this.applicationMenu = applicationMenu; this.href = href; @@ -88,12 +88,12 @@ public ConsoleLinkSpec(ApplicationMenuSpec applicationMenu, String href, String } @JsonProperty("applicationMenu") - public ApplicationMenuSpec getApplicationMenu() { + public ConsoleLinkSpecApplicationMenu getApplicationMenu() { return applicationMenu; } @JsonProperty("applicationMenu") - public void setApplicationMenu(ApplicationMenuSpec applicationMenu) { + public void setApplicationMenu(ConsoleLinkSpecApplicationMenu applicationMenu) { this.applicationMenu = applicationMenu; } @@ -118,12 +118,12 @@ public void setLocation(String location) { } @JsonProperty("namespaceDashboard") - public NamespaceDashboardSpec getNamespaceDashboard() { + public ConsoleLinkSpecNamespaceDashboard getNamespaceDashboard() { return namespaceDashboard; } @JsonProperty("namespaceDashboard") - public void setNamespaceDashboard(NamespaceDashboardSpec namespaceDashboard) { + public void setNamespaceDashboard(ConsoleLinkSpecNamespaceDashboard namespaceDashboard) { this.namespaceDashboard = namespaceDashboard; } diff --git a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ApplicationMenuSpec.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleLinkSpecApplicationMenu.java similarity index 89% rename from kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ApplicationMenuSpec.java rename to kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleLinkSpecApplicationMenu.java index 4a92dab03ef..3ec042b050d 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ApplicationMenuSpec.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleLinkSpecApplicationMenu.java @@ -52,7 +52,7 @@ @BuildableReference(PersistentVolumeClaim.class) }) @Generated("jsonschema2pojo") -public class ApplicationMenuSpec implements Editable , KubernetesResource +public class ConsoleLinkSpecApplicationMenu implements Editable , KubernetesResource { @JsonProperty("imageURL") @@ -66,10 +66,10 @@ public class ApplicationMenuSpec implements Editable * No args constructor for use in serialization * */ - public ApplicationMenuSpec() { + public ConsoleLinkSpecApplicationMenu() { } - public ApplicationMenuSpec(String imageURL, String section) { + public ConsoleLinkSpecApplicationMenu(String imageURL, String section) { super(); this.imageURL = imageURL; this.section = section; @@ -96,12 +96,12 @@ public void setSection(String section) { } @JsonIgnore - public ApplicationMenuSpecBuilder edit() { - return new ApplicationMenuSpecBuilder(this); + public ConsoleLinkSpecApplicationMenuBuilder edit() { + return new ConsoleLinkSpecApplicationMenuBuilder(this); } @JsonIgnore - public ApplicationMenuSpecBuilder toBuilder() { + public ConsoleLinkSpecApplicationMenuBuilder toBuilder() { return edit(); } diff --git a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleLinkSpecNDNamespaceSelector.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleLinkSpecNDNamespaceSelector.java new file mode 100644 index 00000000000..28124301674 --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleLinkSpecNDNamespaceSelector.java @@ -0,0 +1,129 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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.LabelSelectorRequirement; +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({ + "matchExpressions", + "matchLabels" +}) +@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 ConsoleLinkSpecNDNamespaceSelector implements Editable , KubernetesResource +{ + + @JsonProperty("matchExpressions") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + private List matchExpressions = new ArrayList<>(); + @JsonProperty("matchLabels") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + private Map matchLabels = new LinkedHashMap<>(); + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsoleLinkSpecNDNamespaceSelector() { + } + + public ConsoleLinkSpecNDNamespaceSelector(List matchExpressions, Map matchLabels) { + super(); + this.matchExpressions = matchExpressions; + this.matchLabels = matchLabels; + } + + @JsonProperty("matchExpressions") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + public List getMatchExpressions() { + return matchExpressions; + } + + @JsonProperty("matchExpressions") + public void setMatchExpressions(List matchExpressions) { + this.matchExpressions = matchExpressions; + } + + @JsonProperty("matchLabels") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + public Map getMatchLabels() { + return matchLabels; + } + + @JsonProperty("matchLabels") + public void setMatchLabels(Map matchLabels) { + this.matchLabels = matchLabels; + } + + @JsonIgnore + public ConsoleLinkSpecNDNamespaceSelectorBuilder edit() { + return new ConsoleLinkSpecNDNamespaceSelectorBuilder(this); + } + + @JsonIgnore + public ConsoleLinkSpecNDNamespaceSelectorBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/NamespaceDashboardSpec.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleLinkSpecNamespaceDashboard.java similarity index 81% rename from kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/NamespaceDashboardSpec.java rename to kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleLinkSpecNamespaceDashboard.java index 79ff9bd6416..b3a9a6e847d 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/NamespaceDashboardSpec.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleLinkSpecNamespaceDashboard.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; @@ -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), @@ -53,11 +54,11 @@ @BuildableReference(PersistentVolumeClaim.class) }) @Generated("jsonschema2pojo") -public class NamespaceDashboardSpec implements Editable , KubernetesResource +public class ConsoleLinkSpecNamespaceDashboard implements Editable , KubernetesResource { @JsonProperty("namespaceSelector") - private io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector; + private ConsoleLinkSpecNDNamespaceSelector namespaceSelector; @JsonProperty("namespaces") @JsonInclude(JsonInclude.Include.NON_EMPTY) private List namespaces = new ArrayList<>(); @@ -68,22 +69,22 @@ public class NamespaceDashboardSpec implements Editable namespaces) { + public ConsoleLinkSpecNamespaceDashboard(ConsoleLinkSpecNDNamespaceSelector namespaceSelector, List namespaces) { super(); this.namespaceSelector = namespaceSelector; this.namespaces = namespaces; } @JsonProperty("namespaceSelector") - public io.fabric8.kubernetes.api.model.LabelSelector getNamespaceSelector() { + public ConsoleLinkSpecNDNamespaceSelector getNamespaceSelector() { return namespaceSelector; } @JsonProperty("namespaceSelector") - public void setNamespaceSelector(io.fabric8.kubernetes.api.model.LabelSelector namespaceSelector) { + public void setNamespaceSelector(ConsoleLinkSpecNDNamespaceSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; } @@ -99,12 +100,12 @@ public void setNamespaces(List namespaces) { } @JsonIgnore - public NamespaceDashboardSpecBuilder edit() { - return new NamespaceDashboardSpecBuilder(this); + public ConsoleLinkSpecNamespaceDashboardBuilder edit() { + return new ConsoleLinkSpecNamespaceDashboardBuilder(this); } @JsonIgnore - public NamespaceDashboardSpecBuilder toBuilder() { + public ConsoleLinkSpecNamespaceDashboardBuilder toBuilder() { return edit(); } diff --git a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleNotification.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleNotification.java index b77e5ab3631..9c15aabe38c 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleNotification.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleNotification.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 ConsoleNotification implements Editable @JsonProperty("kind") private String kind = "ConsoleNotification"; @JsonProperty("metadata") - private io.fabric8.kubernetes.api.model.ObjectMeta metadata; + private ObjectMeta metadata; @JsonProperty("spec") private ConsoleNotificationSpec spec; @JsonIgnore @@ -93,7 +94,7 @@ public class ConsoleNotification implements Editable public ConsoleNotification() { } - public ConsoleNotification(String apiVersion, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, ConsoleNotificationSpec spec) { + public ConsoleNotification(String apiVersion, String kind, ObjectMeta metadata, ConsoleNotificationSpec spec) { 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleNotificationSpec.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleNotificationSpec.java index 5e6549aa089..332a9c89219 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleNotificationSpec.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleNotificationSpec.java @@ -63,7 +63,7 @@ public class ConsoleNotificationSpec implements Editable , KubernetesResource +public class ConsoleNotificationSpecLink implements Editable , KubernetesResource { @JsonProperty("href") @@ -66,10 +66,10 @@ public class CLIDownloadLink implements Editable , Kuber * No args constructor for use in serialization * */ - public CLIDownloadLink() { + public ConsoleNotificationSpecLink() { } - public CLIDownloadLink(String href, String text) { + public ConsoleNotificationSpecLink(String href, String text) { super(); this.href = href; this.text = text; @@ -96,12 +96,12 @@ public void setText(String text) { } @JsonIgnore - public CLIDownloadLinkBuilder edit() { - return new CLIDownloadLinkBuilder(this); + public ConsoleNotificationSpecLinkBuilder edit() { + return new ConsoleNotificationSpecLinkBuilder(this); } @JsonIgnore - public CLIDownloadLinkBuilder toBuilder() { + public ConsoleNotificationSpecLinkBuilder toBuilder() { return edit(); } diff --git a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePlugin.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePlugin.java new file mode 100644 index 00000000000..e0ce1f302b6 --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePlugin.java @@ -0,0 +1,189 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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" +}) +@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("v1") +@Group("console.openshift.io") +@Generated("jsonschema2pojo") +public class ConsolePlugin implements Editable , HasMetadata +{ + + /** + * + * (Required) + * + */ + @JsonProperty("apiVersion") + private String apiVersion = "console.openshift.io/v1"; + /** + * + * (Required) + * + */ + @JsonProperty("kind") + private String kind = "ConsolePlugin"; + @JsonProperty("metadata") + private ObjectMeta metadata; + @JsonProperty("spec") + private ConsolePluginSpec spec; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsolePlugin() { + } + + public ConsolePlugin(String apiVersion, String kind, ObjectMeta metadata, ConsolePluginSpec spec) { + super(); + this.apiVersion = apiVersion; + this.kind = kind; + this.metadata = metadata; + this.spec = spec; + } + + /** + * + * (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 ConsolePluginSpec getSpec() { + return spec; + } + + @JsonProperty("spec") + public void setSpec(ConsolePluginSpec spec) { + this.spec = spec; + } + + @JsonIgnore + public ConsolePluginBuilder edit() { + return new ConsolePluginBuilder(this); + } + + @JsonIgnore + public ConsolePluginBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginList.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginList.java new file mode 100644 index 00000000000..c9a6df06b7d --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginList.java @@ -0,0 +1,195 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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.KubernetesResourceList; +import io.fabric8.kubernetes.api.model.LabelSelector; +import io.fabric8.kubernetes.api.model.ListMeta; +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", + "items" +}) +@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("v1") +@Group("console.openshift.io") +@Generated("jsonschema2pojo") +public class ConsolePluginList implements Editable , KubernetesResource, KubernetesResourceList +{ + + /** + * + * (Required) + * + */ + @JsonProperty("apiVersion") + private String apiVersion = "console.openshift.io/v1"; + @JsonProperty("items") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + private List items = new ArrayList<>(); + /** + * + * (Required) + * + */ + @JsonProperty("kind") + private String kind = "ConsolePluginList"; + @JsonProperty("metadata") + private ListMeta metadata; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsolePluginList() { + } + + public ConsolePluginList(String apiVersion, List items, String kind, ListMeta metadata) { + super(); + this.apiVersion = apiVersion; + this.items = items; + this.kind = kind; + this.metadata = metadata; + } + + /** + * + * (Required) + * + */ + @JsonProperty("apiVersion") + public String getApiVersion() { + return apiVersion; + } + + /** + * + * (Required) + * + */ + @JsonProperty("apiVersion") + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + @JsonProperty("items") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + public List getItems() { + return items; + } + + @JsonProperty("items") + public void setItems(List items) { + this.items = items; + } + + /** + * + * (Required) + * + */ + @JsonProperty("kind") + public String getKind() { + return kind; + } + + /** + * + * (Required) + * + */ + @JsonProperty("kind") + public void setKind(String kind) { + this.kind = kind; + } + + @JsonProperty("metadata") + public ListMeta getMetadata() { + return metadata; + } + + @JsonProperty("metadata") + public void setMetadata(ListMeta metadata) { + this.metadata = metadata; + } + + @JsonIgnore + public ConsolePluginListBuilder edit() { + return new ConsolePluginListBuilder(this); + } + + @JsonIgnore + public ConsolePluginListBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpec.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpec.java new file mode 100644 index 00000000000..6edb443ce37 --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpec.java @@ -0,0 +1,154 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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({ + "backend", + "displayName", + "i18n", + "proxy" +}) +@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 ConsolePluginSpec implements Editable , KubernetesResource +{ + + @JsonProperty("backend") + private ConsolePluginSpecBackend backend; + @JsonProperty("displayName") + private String displayName; + @JsonProperty("i18n") + private ConsolePluginSpecI18n i18n; + @JsonProperty("proxy") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + private List proxy = new ArrayList<>(); + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsolePluginSpec() { + } + + public ConsolePluginSpec(ConsolePluginSpecBackend backend, String displayName, ConsolePluginSpecI18n i18n, List proxy) { + super(); + this.backend = backend; + this.displayName = displayName; + this.i18n = i18n; + this.proxy = proxy; + } + + @JsonProperty("backend") + public ConsolePluginSpecBackend getBackend() { + return backend; + } + + @JsonProperty("backend") + public void setBackend(ConsolePluginSpecBackend backend) { + this.backend = backend; + } + + @JsonProperty("displayName") + public String getDisplayName() { + return displayName; + } + + @JsonProperty("displayName") + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + @JsonProperty("i18n") + public ConsolePluginSpecI18n getI18n() { + return i18n; + } + + @JsonProperty("i18n") + public void setI18n(ConsolePluginSpecI18n i18n) { + this.i18n = i18n; + } + + @JsonProperty("proxy") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + public List getProxy() { + return proxy; + } + + @JsonProperty("proxy") + public void setProxy(List proxy) { + this.proxy = proxy; + } + + @JsonIgnore + public ConsolePluginSpecBuilder edit() { + return new ConsolePluginSpecBuilder(this); + } + + @JsonIgnore + public ConsolePluginSpecBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecBService.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecBService.java new file mode 100644 index 00000000000..152189d2cd0 --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecBService.java @@ -0,0 +1,150 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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.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({ + "basePath", + "name", + "namespace", + "port" +}) +@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 ConsolePluginSpecBService implements Editable , KubernetesResource +{ + + @JsonProperty("basePath") + private String basePath; + @JsonProperty("name") + private String name; + @JsonProperty("namespace") + private String namespace; + @JsonProperty("port") + private Integer port; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsolePluginSpecBService() { + } + + public ConsolePluginSpecBService(String basePath, String name, String namespace, Integer port) { + super(); + this.basePath = basePath; + this.name = name; + this.namespace = namespace; + this.port = port; + } + + @JsonProperty("basePath") + public String getBasePath() { + return basePath; + } + + @JsonProperty("basePath") + public void setBasePath(String basePath) { + this.basePath = basePath; + } + + @JsonProperty("name") + public String getName() { + return name; + } + + @JsonProperty("name") + public void setName(String name) { + this.name = name; + } + + @JsonProperty("namespace") + public String getNamespace() { + return namespace; + } + + @JsonProperty("namespace") + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + @JsonProperty("port") + public Integer getPort() { + return port; + } + + @JsonProperty("port") + public void setPort(Integer port) { + this.port = port; + } + + @JsonIgnore + public ConsolePluginSpecBServiceBuilder edit() { + return new ConsolePluginSpecBServiceBuilder(this); + } + + @JsonIgnore + public ConsolePluginSpecBServiceBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecBackend.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecBackend.java new file mode 100644 index 00000000000..ab8d095e95d --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecBackend.java @@ -0,0 +1,122 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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.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({ + "service", + "type" +}) +@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 ConsolePluginSpecBackend implements Editable , KubernetesResource +{ + + @JsonProperty("service") + private ConsolePluginSpecBService service; + @JsonProperty("type") + private String type; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsolePluginSpecBackend() { + } + + public ConsolePluginSpecBackend(ConsolePluginSpecBService service, String type) { + super(); + this.service = service; + this.type = type; + } + + @JsonProperty("service") + public ConsolePluginSpecBService getService() { + return service; + } + + @JsonProperty("service") + public void setService(ConsolePluginSpecBService service) { + this.service = service; + } + + @JsonProperty("type") + public String getType() { + return type; + } + + @JsonProperty("type") + public void setType(String type) { + this.type = type; + } + + @JsonIgnore + public ConsolePluginSpecBackendBuilder edit() { + return new ConsolePluginSpecBackendBuilder(this); + } + + @JsonIgnore + public ConsolePluginSpecBackendBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecI18n.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecI18n.java new file mode 100644 index 00000000000..f9835116cdd --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecI18n.java @@ -0,0 +1,108 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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.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({ + "loadType" +}) +@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 ConsolePluginSpecI18n implements Editable , KubernetesResource +{ + + @JsonProperty("loadType") + private String loadType; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsolePluginSpecI18n() { + } + + public ConsolePluginSpecI18n(String loadType) { + super(); + this.loadType = loadType; + } + + @JsonProperty("loadType") + public String getLoadType() { + return loadType; + } + + @JsonProperty("loadType") + public void setLoadType(String loadType) { + this.loadType = loadType; + } + + @JsonIgnore + public ConsolePluginSpecI18nBuilder edit() { + return new ConsolePluginSpecI18nBuilder(this); + } + + @JsonIgnore + public ConsolePluginSpecI18nBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecPEService.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecPEService.java new file mode 100644 index 00000000000..fff23684444 --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecPEService.java @@ -0,0 +1,136 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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.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({ + "name", + "namespace", + "port" +}) +@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 ConsolePluginSpecPEService implements Editable , KubernetesResource +{ + + @JsonProperty("name") + private String name; + @JsonProperty("namespace") + private String namespace; + @JsonProperty("port") + private Integer port; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsolePluginSpecPEService() { + } + + public ConsolePluginSpecPEService(String name, String namespace, Integer port) { + super(); + this.name = name; + this.namespace = namespace; + this.port = port; + } + + @JsonProperty("name") + public String getName() { + return name; + } + + @JsonProperty("name") + public void setName(String name) { + this.name = name; + } + + @JsonProperty("namespace") + public String getNamespace() { + return namespace; + } + + @JsonProperty("namespace") + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + @JsonProperty("port") + public Integer getPort() { + return port; + } + + @JsonProperty("port") + public void setPort(Integer port) { + this.port = port; + } + + @JsonIgnore + public ConsolePluginSpecPEServiceBuilder edit() { + return new ConsolePluginSpecPEServiceBuilder(this); + } + + @JsonIgnore + public ConsolePluginSpecPEServiceBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecPEndpoint.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecPEndpoint.java new file mode 100644 index 00000000000..c6396b77292 --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecPEndpoint.java @@ -0,0 +1,122 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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.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({ + "service", + "type" +}) +@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 ConsolePluginSpecPEndpoint implements Editable , KubernetesResource +{ + + @JsonProperty("service") + private ConsolePluginSpecPEService service; + @JsonProperty("type") + private String type; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsolePluginSpecPEndpoint() { + } + + public ConsolePluginSpecPEndpoint(ConsolePluginSpecPEService service, String type) { + super(); + this.service = service; + this.type = type; + } + + @JsonProperty("service") + public ConsolePluginSpecPEService getService() { + return service; + } + + @JsonProperty("service") + public void setService(ConsolePluginSpecPEService service) { + this.service = service; + } + + @JsonProperty("type") + public String getType() { + return type; + } + + @JsonProperty("type") + public void setType(String type) { + this.type = type; + } + + @JsonIgnore + public ConsolePluginSpecPEndpointBuilder edit() { + return new ConsolePluginSpecPEndpointBuilder(this); + } + + @JsonIgnore + public ConsolePluginSpecPEndpointBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecProxy.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecProxy.java new file mode 100644 index 00000000000..25b087f1634 --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsolePluginSpecProxy.java @@ -0,0 +1,150 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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.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({ + "alias", + "authorization", + "caCertificate", + "endpoint" +}) +@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 ConsolePluginSpecProxy implements Editable , KubernetesResource +{ + + @JsonProperty("alias") + private String alias; + @JsonProperty("authorization") + private String authorization; + @JsonProperty("caCertificate") + private String caCertificate; + @JsonProperty("endpoint") + private ConsolePluginSpecPEndpoint endpoint; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsolePluginSpecProxy() { + } + + public ConsolePluginSpecProxy(String alias, String authorization, String caCertificate, ConsolePluginSpecPEndpoint endpoint) { + super(); + this.alias = alias; + this.authorization = authorization; + this.caCertificate = caCertificate; + this.endpoint = endpoint; + } + + @JsonProperty("alias") + public String getAlias() { + return alias; + } + + @JsonProperty("alias") + public void setAlias(String alias) { + this.alias = alias; + } + + @JsonProperty("authorization") + public String getAuthorization() { + return authorization; + } + + @JsonProperty("authorization") + public void setAuthorization(String authorization) { + this.authorization = authorization; + } + + @JsonProperty("caCertificate") + public String getCaCertificate() { + return caCertificate; + } + + @JsonProperty("caCertificate") + public void setCaCertificate(String caCertificate) { + this.caCertificate = caCertificate; + } + + @JsonProperty("endpoint") + public ConsolePluginSpecPEndpoint getEndpoint() { + return endpoint; + } + + @JsonProperty("endpoint") + public void setEndpoint(ConsolePluginSpecPEndpoint endpoint) { + this.endpoint = endpoint; + } + + @JsonIgnore + public ConsolePluginSpecProxyBuilder edit() { + return new ConsolePluginSpecProxyBuilder(this); + } + + @JsonIgnore + public ConsolePluginSpecProxyBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleQuickStart.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleQuickStart.java index e36e749bcf7..d25d14049f0 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleQuickStart.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleQuickStart.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 ConsoleQuickStart implements Editable , H @JsonProperty("kind") private String kind = "ConsoleQuickStart"; @JsonProperty("metadata") - private io.fabric8.kubernetes.api.model.ObjectMeta metadata; + private ObjectMeta metadata; @JsonProperty("spec") private ConsoleQuickStartSpec spec; @JsonIgnore @@ -93,7 +94,7 @@ public class ConsoleQuickStart implements Editable , H public ConsoleQuickStart() { } - public ConsoleQuickStart(String apiVersion, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, ConsoleQuickStartSpec spec) { + public ConsoleQuickStart(String apiVersion, String kind, ObjectMeta metadata, ConsoleQuickStartSpec spec) { 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleQuickStartSpec.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleQuickStartSpec.java index 826342c0934..a51938423e2 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleQuickStartSpec.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleQuickStartSpec.java @@ -93,7 +93,7 @@ public class ConsoleQuickStartSpec implements Editable tags = new ArrayList<>(); @JsonProperty("tasks") @JsonInclude(JsonInclude.Include.NON_EMPTY) - private List tasks = new ArrayList<>(); + private List tasks = new ArrayList<>(); @JsonIgnore private Map additionalProperties = new LinkedHashMap(); @@ -104,7 +104,7 @@ public class ConsoleQuickStartSpec implements Editable accessReviewResources, String conclusion, String description, String displayName, Integer durationMinutes, String icon, String introduction, List nextQuickStart, List prerequisites, List tags, List tasks) { + public ConsoleQuickStartSpec(List accessReviewResources, String conclusion, String description, String displayName, Integer durationMinutes, String icon, String introduction, List nextQuickStart, List prerequisites, List tags, List tasks) { super(); this.accessReviewResources = accessReviewResources; this.conclusion = conclusion; @@ -225,12 +225,12 @@ public void setTags(List tags) { @JsonProperty("tasks") @JsonInclude(JsonInclude.Include.NON_EMPTY) - public List getTasks() { + public List getTasks() { return tasks; } @JsonProperty("tasks") - public void setTasks(List tasks) { + public void setTasks(List tasks) { this.tasks = tasks; } diff --git a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleQuickStartTaskReview.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleQuickStartSpecTReview.java similarity index 89% rename from kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleQuickStartTaskReview.java rename to kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleQuickStartSpecTReview.java index 335d364f31a..d3192c692a2 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleQuickStartTaskReview.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleQuickStartSpecTReview.java @@ -52,7 +52,7 @@ @BuildableReference(PersistentVolumeClaim.class) }) @Generated("jsonschema2pojo") -public class ConsoleQuickStartTaskReview implements Editable , KubernetesResource +public class ConsoleQuickStartSpecTReview implements Editable , KubernetesResource { @JsonProperty("failedTaskHelp") @@ -66,10 +66,10 @@ public class ConsoleQuickStartTaskReview implements Editable , KubernetesResource +public class ConsoleQuickStartSpecTSummary implements Editable , KubernetesResource { @JsonProperty("failed") @@ -66,10 +66,10 @@ public class ConsoleQuickStartTaskSummary implements Editable , KubernetesResource +public class ConsoleQuickStartSpecTasks implements Editable , KubernetesResource { @JsonProperty("description") private String description; @JsonProperty("review") - private ConsoleQuickStartTaskReview review; + private ConsoleQuickStartSpecTReview review; @JsonProperty("summary") - private ConsoleQuickStartTaskSummary summary; + private ConsoleQuickStartSpecTSummary summary; @JsonProperty("title") private String title; @JsonIgnore @@ -72,10 +72,10 @@ public class ConsoleQuickStartTask implements Editable , HasMetadata +{ + + /** + * + * (Required) + * + */ + @JsonProperty("apiVersion") + private String apiVersion = "console.openshift.io/v1"; + /** + * + * (Required) + * + */ + @JsonProperty("kind") + private String kind = "ConsoleSample"; + @JsonProperty("metadata") + private ObjectMeta metadata; + @JsonProperty("spec") + private ConsoleSampleSpec spec; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsoleSample() { + } + + public ConsoleSample(String apiVersion, String kind, ObjectMeta metadata, ConsoleSampleSpec spec) { + super(); + this.apiVersion = apiVersion; + this.kind = kind; + this.metadata = metadata; + this.spec = spec; + } + + /** + * + * (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 ConsoleSampleSpec getSpec() { + return spec; + } + + @JsonProperty("spec") + public void setSpec(ConsoleSampleSpec spec) { + this.spec = spec; + } + + @JsonIgnore + public ConsoleSampleBuilder edit() { + return new ConsoleSampleBuilder(this); + } + + @JsonIgnore + public ConsoleSampleBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleList.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleList.java new file mode 100644 index 00000000000..984bc408b65 --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleList.java @@ -0,0 +1,195 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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.KubernetesResourceList; +import io.fabric8.kubernetes.api.model.LabelSelector; +import io.fabric8.kubernetes.api.model.ListMeta; +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", + "items" +}) +@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("v1") +@Group("console.openshift.io") +@Generated("jsonschema2pojo") +public class ConsoleSampleList implements Editable , KubernetesResource, KubernetesResourceList +{ + + /** + * + * (Required) + * + */ + @JsonProperty("apiVersion") + private String apiVersion = "console.openshift.io/v1"; + @JsonProperty("items") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + private List items = new ArrayList<>(); + /** + * + * (Required) + * + */ + @JsonProperty("kind") + private String kind = "ConsoleSampleList"; + @JsonProperty("metadata") + private ListMeta metadata; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsoleSampleList() { + } + + public ConsoleSampleList(String apiVersion, List items, String kind, ListMeta metadata) { + super(); + this.apiVersion = apiVersion; + this.items = items; + this.kind = kind; + this.metadata = metadata; + } + + /** + * + * (Required) + * + */ + @JsonProperty("apiVersion") + public String getApiVersion() { + return apiVersion; + } + + /** + * + * (Required) + * + */ + @JsonProperty("apiVersion") + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + @JsonProperty("items") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + public List getItems() { + return items; + } + + @JsonProperty("items") + public void setItems(List items) { + this.items = items; + } + + /** + * + * (Required) + * + */ + @JsonProperty("kind") + public String getKind() { + return kind; + } + + /** + * + * (Required) + * + */ + @JsonProperty("kind") + public void setKind(String kind) { + this.kind = kind; + } + + @JsonProperty("metadata") + public ListMeta getMetadata() { + return metadata; + } + + @JsonProperty("metadata") + public void setMetadata(ListMeta metadata) { + this.metadata = metadata; + } + + @JsonIgnore + public ConsoleSampleListBuilder edit() { + return new ConsoleSampleListBuilder(this); + } + + @JsonIgnore + public ConsoleSampleListBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpec.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpec.java new file mode 100644 index 00000000000..2faae522c35 --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpec.java @@ -0,0 +1,210 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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({ + "abstract", + "description", + "icon", + "provider", + "source", + "tags", + "title", + "type" +}) +@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 ConsoleSampleSpec implements Editable , KubernetesResource +{ + + @JsonProperty("abstract") + private String _abstract; + @JsonProperty("description") + private String description; + @JsonProperty("icon") + private String icon; + @JsonProperty("provider") + private String provider; + @JsonProperty("source") + private ConsoleSampleSpecSource source; + @JsonProperty("tags") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + private List tags = new ArrayList<>(); + @JsonProperty("title") + private String title; + @JsonProperty("type") + private String type; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsoleSampleSpec() { + } + + public ConsoleSampleSpec(String _abstract, String description, String icon, String provider, ConsoleSampleSpecSource source, List tags, String title, String type) { + super(); + this._abstract = _abstract; + this.description = description; + this.icon = icon; + this.provider = provider; + this.source = source; + this.tags = tags; + this.title = title; + this.type = type; + } + + @JsonProperty("abstract") + public String getAbstract() { + return _abstract; + } + + @JsonProperty("abstract") + public void setAbstract(String _abstract) { + this._abstract = _abstract; + } + + @JsonProperty("description") + public String getDescription() { + return description; + } + + @JsonProperty("description") + public void setDescription(String description) { + this.description = description; + } + + @JsonProperty("icon") + public String getIcon() { + return icon; + } + + @JsonProperty("icon") + public void setIcon(String icon) { + this.icon = icon; + } + + @JsonProperty("provider") + public String getProvider() { + return provider; + } + + @JsonProperty("provider") + public void setProvider(String provider) { + this.provider = provider; + } + + @JsonProperty("source") + public ConsoleSampleSpecSource getSource() { + return source; + } + + @JsonProperty("source") + public void setSource(ConsoleSampleSpecSource source) { + this.source = source; + } + + @JsonProperty("tags") + @JsonInclude(JsonInclude.Include.NON_EMPTY) + public List getTags() { + return tags; + } + + @JsonProperty("tags") + public void setTags(List tags) { + this.tags = tags; + } + + @JsonProperty("title") + public String getTitle() { + return title; + } + + @JsonProperty("title") + public void setTitle(String title) { + this.title = title; + } + + @JsonProperty("type") + public String getType() { + return type; + } + + @JsonProperty("type") + public void setType(String type) { + this.type = type; + } + + @JsonIgnore + public ConsoleSampleSpecBuilder edit() { + return new ConsoleSampleSpecBuilder(this); + } + + @JsonIgnore + public ConsoleSampleSpecBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSCIService.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSCIService.java new file mode 100644 index 00000000000..db484965ded --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSCIService.java @@ -0,0 +1,108 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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.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({ + "targetPort" +}) +@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 ConsoleSampleSpecSCIService implements Editable , KubernetesResource +{ + + @JsonProperty("targetPort") + private Integer targetPort; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsoleSampleSpecSCIService() { + } + + public ConsoleSampleSpecSCIService(Integer targetPort) { + super(); + this.targetPort = targetPort; + } + + @JsonProperty("targetPort") + public Integer getTargetPort() { + return targetPort; + } + + @JsonProperty("targetPort") + public void setTargetPort(Integer targetPort) { + this.targetPort = targetPort; + } + + @JsonIgnore + public ConsoleSampleSpecSCIServiceBuilder edit() { + return new ConsoleSampleSpecSCIServiceBuilder(this); + } + + @JsonIgnore + public ConsoleSampleSpecSCIServiceBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSContainerImport.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSContainerImport.java new file mode 100644 index 00000000000..f395183cbe9 --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSContainerImport.java @@ -0,0 +1,122 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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.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({ + "image", + "service" +}) +@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 ConsoleSampleSpecSContainerImport implements Editable , KubernetesResource +{ + + @JsonProperty("image") + private String image; + @JsonProperty("service") + private ConsoleSampleSpecSCIService service; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsoleSampleSpecSContainerImport() { + } + + public ConsoleSampleSpecSContainerImport(String image, ConsoleSampleSpecSCIService service) { + super(); + this.image = image; + this.service = service; + } + + @JsonProperty("image") + public String getImage() { + return image; + } + + @JsonProperty("image") + public void setImage(String image) { + this.image = image; + } + + @JsonProperty("service") + public ConsoleSampleSpecSCIService getService() { + return service; + } + + @JsonProperty("service") + public void setService(ConsoleSampleSpecSCIService service) { + this.service = service; + } + + @JsonIgnore + public ConsoleSampleSpecSContainerImportBuilder edit() { + return new ConsoleSampleSpecSContainerImportBuilder(this); + } + + @JsonIgnore + public ConsoleSampleSpecSContainerImportBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSGIRepository.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSGIRepository.java new file mode 100644 index 00000000000..8f5f23363de --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSGIRepository.java @@ -0,0 +1,136 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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.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({ + "contextDir", + "revision", + "url" +}) +@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 ConsoleSampleSpecSGIRepository implements Editable , KubernetesResource +{ + + @JsonProperty("contextDir") + private String contextDir; + @JsonProperty("revision") + private String revision; + @JsonProperty("url") + private String url; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsoleSampleSpecSGIRepository() { + } + + public ConsoleSampleSpecSGIRepository(String contextDir, String revision, String url) { + super(); + this.contextDir = contextDir; + this.revision = revision; + this.url = url; + } + + @JsonProperty("contextDir") + public String getContextDir() { + return contextDir; + } + + @JsonProperty("contextDir") + public void setContextDir(String contextDir) { + this.contextDir = contextDir; + } + + @JsonProperty("revision") + public String getRevision() { + return revision; + } + + @JsonProperty("revision") + public void setRevision(String revision) { + this.revision = revision; + } + + @JsonProperty("url") + public String getUrl() { + return url; + } + + @JsonProperty("url") + public void setUrl(String url) { + this.url = url; + } + + @JsonIgnore + public ConsoleSampleSpecSGIRepositoryBuilder edit() { + return new ConsoleSampleSpecSGIRepositoryBuilder(this); + } + + @JsonIgnore + public ConsoleSampleSpecSGIRepositoryBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSGIService.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSGIService.java new file mode 100644 index 00000000000..f196afd54c4 --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSGIService.java @@ -0,0 +1,108 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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.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({ + "targetPort" +}) +@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 ConsoleSampleSpecSGIService implements Editable , KubernetesResource +{ + + @JsonProperty("targetPort") + private Integer targetPort; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsoleSampleSpecSGIService() { + } + + public ConsoleSampleSpecSGIService(Integer targetPort) { + super(); + this.targetPort = targetPort; + } + + @JsonProperty("targetPort") + public Integer getTargetPort() { + return targetPort; + } + + @JsonProperty("targetPort") + public void setTargetPort(Integer targetPort) { + this.targetPort = targetPort; + } + + @JsonIgnore + public ConsoleSampleSpecSGIServiceBuilder edit() { + return new ConsoleSampleSpecSGIServiceBuilder(this); + } + + @JsonIgnore + public ConsoleSampleSpecSGIServiceBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSGitImport.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSGitImport.java new file mode 100644 index 00000000000..9f8950ba235 --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSGitImport.java @@ -0,0 +1,122 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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.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({ + "repository", + "service" +}) +@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 ConsoleSampleSpecSGitImport implements Editable , KubernetesResource +{ + + @JsonProperty("repository") + private ConsoleSampleSpecSGIRepository repository; + @JsonProperty("service") + private ConsoleSampleSpecSGIService service; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsoleSampleSpecSGitImport() { + } + + public ConsoleSampleSpecSGitImport(ConsoleSampleSpecSGIRepository repository, ConsoleSampleSpecSGIService service) { + super(); + this.repository = repository; + this.service = service; + } + + @JsonProperty("repository") + public ConsoleSampleSpecSGIRepository getRepository() { + return repository; + } + + @JsonProperty("repository") + public void setRepository(ConsoleSampleSpecSGIRepository repository) { + this.repository = repository; + } + + @JsonProperty("service") + public ConsoleSampleSpecSGIService getService() { + return service; + } + + @JsonProperty("service") + public void setService(ConsoleSampleSpecSGIService service) { + this.service = service; + } + + @JsonIgnore + public ConsoleSampleSpecSGitImportBuilder edit() { + return new ConsoleSampleSpecSGitImportBuilder(this); + } + + @JsonIgnore + public ConsoleSampleSpecSGitImportBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSource.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSource.java new file mode 100644 index 00000000000..29d0e3deede --- /dev/null +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleSampleSpecSource.java @@ -0,0 +1,136 @@ + +package io.fabric8.openshift.api.model.console.v1; + +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.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({ + "containerImport", + "gitImport", + "type" +}) +@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 ConsoleSampleSpecSource implements Editable , KubernetesResource +{ + + @JsonProperty("containerImport") + private ConsoleSampleSpecSContainerImport containerImport; + @JsonProperty("gitImport") + private ConsoleSampleSpecSGitImport gitImport; + @JsonProperty("type") + private String type; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsoleSampleSpecSource() { + } + + public ConsoleSampleSpecSource(ConsoleSampleSpecSContainerImport containerImport, ConsoleSampleSpecSGitImport gitImport, String type) { + super(); + this.containerImport = containerImport; + this.gitImport = gitImport; + this.type = type; + } + + @JsonProperty("containerImport") + public ConsoleSampleSpecSContainerImport getContainerImport() { + return containerImport; + } + + @JsonProperty("containerImport") + public void setContainerImport(ConsoleSampleSpecSContainerImport containerImport) { + this.containerImport = containerImport; + } + + @JsonProperty("gitImport") + public ConsoleSampleSpecSGitImport getGitImport() { + return gitImport; + } + + @JsonProperty("gitImport") + public void setGitImport(ConsoleSampleSpecSGitImport gitImport) { + this.gitImport = gitImport; + } + + @JsonProperty("type") + public String getType() { + return type; + } + + @JsonProperty("type") + public void setType(String type) { + this.type = type; + } + + @JsonIgnore + public ConsoleSampleSpecSourceBuilder edit() { + return new ConsoleSampleSpecSourceBuilder(this); + } + + @JsonIgnore + public ConsoleSampleSpecSourceBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleYAMLSample.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleYAMLSample.java index c176a5d3dc1..44264c0cb52 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleYAMLSample.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleYAMLSample.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 ConsoleYAMLSample implements Editable , H @JsonProperty("kind") private String kind = "ConsoleYAMLSample"; @JsonProperty("metadata") - private io.fabric8.kubernetes.api.model.ObjectMeta metadata; + private ObjectMeta metadata; @JsonProperty("spec") private ConsoleYAMLSampleSpec spec; @JsonIgnore @@ -93,7 +94,7 @@ public class ConsoleYAMLSample implements Editable , H public ConsoleYAMLSample() { } - public ConsoleYAMLSample(String apiVersion, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, ConsoleYAMLSampleSpec spec) { + public ConsoleYAMLSample(String apiVersion, String kind, ObjectMeta metadata, ConsoleYAMLSampleSpec spec) { 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleYAMLSampleSpec.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleYAMLSampleSpec.java index ecb41988d87..41d612f9134 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleYAMLSampleSpec.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1/ConsoleYAMLSampleSpec.java @@ -22,7 +22,6 @@ 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.TypeMeta; import io.sundr.builder.annotations.Buildable; import io.sundr.builder.annotations.BuildableReference; import lombok.EqualsAndHashCode; @@ -64,7 +63,7 @@ public class ConsoleYAMLSampleSpec implements Editable , KubernetesResource +{ + + @JsonProperty("apiVersion") + private String apiVersion; + @JsonProperty("kind") + private String kind; + @JsonIgnore + private Map additionalProperties = new LinkedHashMap(); + + /** + * No args constructor for use in serialization + * + */ + public ConsoleYAMLSampleSpecTargetResource() { + } + + public ConsoleYAMLSampleSpecTargetResource(String apiVersion, String kind) { + super(); + this.apiVersion = apiVersion; + this.kind = kind; + } + + @JsonProperty("apiVersion") + public String getApiVersion() { + return apiVersion; + } + + @JsonProperty("apiVersion") + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + @JsonProperty("kind") + public String getKind() { + return kind; + } + + @JsonProperty("kind") + public void setKind(String kind) { + this.kind = kind; + } + + @JsonIgnore + public ConsoleYAMLSampleSpecTargetResourceBuilder edit() { + return new ConsoleYAMLSampleSpecTargetResourceBuilder(this); + } + + @JsonIgnore + public ConsoleYAMLSampleSpecTargetResourceBuilder 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePlugin.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePlugin.java index 2963cb86ce0..402bfffb0c4 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePlugin.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePlugin.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 ConsolePlugin implements Editable , HasMetada @JsonProperty("kind") private String kind = "ConsolePlugin"; @JsonProperty("metadata") - private io.fabric8.kubernetes.api.model.ObjectMeta metadata; + private ObjectMeta metadata; @JsonProperty("spec") private ConsolePluginSpec spec; @JsonIgnore @@ -93,7 +94,7 @@ public class ConsolePlugin implements Editable , HasMetada public ConsolePlugin() { } - public ConsolePlugin(String apiVersion, String kind, io.fabric8.kubernetes.api.model.ObjectMeta metadata, ConsolePluginSpec spec) { + public ConsolePlugin(String apiVersion, String kind, ObjectMeta metadata, ConsolePluginSpec spec) { 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/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePluginSpec.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePluginSpec.java index 63847f4abe9..c2df69c173e 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePluginSpec.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePluginSpec.java @@ -62,9 +62,9 @@ public class ConsolePluginSpec implements Editable , K private String displayName; @JsonProperty("proxy") @JsonInclude(JsonInclude.Include.NON_EMPTY) - private List proxy = new ArrayList<>(); + private List proxy = new ArrayList<>(); @JsonProperty("service") - private ConsolePluginService service; + private ConsolePluginSpecService service; @JsonIgnore private Map additionalProperties = new LinkedHashMap(); @@ -75,7 +75,7 @@ public class ConsolePluginSpec implements Editable , K public ConsolePluginSpec() { } - public ConsolePluginSpec(String displayName, List proxy, ConsolePluginService service) { + public ConsolePluginSpec(String displayName, List proxy, ConsolePluginSpecService service) { super(); this.displayName = displayName; this.proxy = proxy; @@ -94,22 +94,22 @@ public void setDisplayName(String displayName) { @JsonProperty("proxy") @JsonInclude(JsonInclude.Include.NON_EMPTY) - public List getProxy() { + public List getProxy() { return proxy; } @JsonProperty("proxy") - public void setProxy(List proxy) { + public void setProxy(List proxy) { this.proxy = proxy; } @JsonProperty("service") - public ConsolePluginService getService() { + public ConsolePluginSpecService getService() { return service; } @JsonProperty("service") - public void setService(ConsolePluginService service) { + public void setService(ConsolePluginSpecService service) { this.service = service; } diff --git a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePluginProxyServiceConfig.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePluginSpecPService.java similarity index 89% rename from kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePluginProxyServiceConfig.java rename to kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePluginSpecPService.java index ce29ecc05d5..63577cfaaa6 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePluginProxyServiceConfig.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePluginSpecPService.java @@ -53,7 +53,7 @@ @BuildableReference(PersistentVolumeClaim.class) }) @Generated("jsonschema2pojo") -public class ConsolePluginProxyServiceConfig implements Editable , KubernetesResource +public class ConsolePluginSpecPService implements Editable , KubernetesResource { @JsonProperty("name") @@ -69,10 +69,10 @@ public class ConsolePluginProxyServiceConfig implements Editable , KubernetesResource +public class ConsolePluginSpecProxy implements Editable , KubernetesResource { @JsonProperty("alias") @@ -65,7 +65,7 @@ public class ConsolePluginProxy implements Editable , @JsonProperty("caCertificate") private String caCertificate; @JsonProperty("service") - private ConsolePluginProxyServiceConfig service; + private ConsolePluginSpecPService service; @JsonProperty("type") private String type; @JsonIgnore @@ -75,10 +75,10 @@ public class ConsolePluginProxy implements Editable , * No args constructor for use in serialization * */ - public ConsolePluginProxy() { + public ConsolePluginSpecProxy() { } - public ConsolePluginProxy(String alias, Boolean authorize, String caCertificate, ConsolePluginProxyServiceConfig service, String type) { + public ConsolePluginSpecProxy(String alias, Boolean authorize, String caCertificate, ConsolePluginSpecPService service, String type) { super(); this.alias = alias; this.authorize = authorize; @@ -118,12 +118,12 @@ public void setCaCertificate(String caCertificate) { } @JsonProperty("service") - public ConsolePluginProxyServiceConfig getService() { + public ConsolePluginSpecPService getService() { return service; } @JsonProperty("service") - public void setService(ConsolePluginProxyServiceConfig service) { + public void setService(ConsolePluginSpecPService service) { this.service = service; } @@ -138,12 +138,12 @@ public void setType(String type) { } @JsonIgnore - public ConsolePluginProxyBuilder edit() { - return new ConsolePluginProxyBuilder(this); + public ConsolePluginSpecProxyBuilder edit() { + return new ConsolePluginSpecProxyBuilder(this); } @JsonIgnore - public ConsolePluginProxyBuilder toBuilder() { + public ConsolePluginSpecProxyBuilder toBuilder() { return edit(); } diff --git a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePluginService.java b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePluginSpecService.java similarity index 90% rename from kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePluginService.java rename to kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePluginSpecService.java index 51d4d7006a2..d426aecce87 100644 --- a/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePluginService.java +++ b/kubernetes-model-generator/openshift-model-console/src/generated/java/io/fabric8/openshift/api/model/console/v1alpha1/ConsolePluginSpecService.java @@ -54,7 +54,7 @@ @BuildableReference(PersistentVolumeClaim.class) }) @Generated("jsonschema2pojo") -public class ConsolePluginService implements Editable , KubernetesResource +public class ConsolePluginSpecService implements Editable , KubernetesResource { @JsonProperty("basePath") @@ -72,10 +72,10 @@ public class ConsolePluginService implements Editable