@JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "apiVersion", "kind", "metadata" }) @JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @ToString @EqualsAndHashCode @Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done")) public class Patch implements KubernetesResource @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>();
@JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "apiVersion", "kind", "items", }) @JsonDeserialize(using = JsonDeserializer.None.class) @Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage=true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done")) public class KubernetesList extends BaseKubernetesList implements KubernetesResource {
@Buildable(builderPackage = "io.fabric8.kubernetes.api.builder", editableEnabled = false) public RequestConfig(String username, String password, String oauthToken, int watchReconnectLimit, int watchReconnectInterval, int connectionTimeout, long rollingTimeout, int requestTimeout, long scaleTimeout, int loggingInterval, long websocketTimeout, long websocketPingInterval, int maxConcurrentRequests, int maxConcurrentRequestsPerHost) { this.username = username; this.oauthToken = oauthToken; this.password = password; this.watchReconnectLimit = watchReconnectLimit; this.watchReconnectInterval = watchReconnectInterval; this.connectionTimeout = connectionTimeout; this.rollingTimeout = rollingTimeout; this.requestTimeout = requestTimeout; this.scaleTimeout = scaleTimeout; this.websocketTimeout = websocketTimeout; this.loggingInterval = loggingInterval; this.websocketPingInterval = websocketPingInterval; this.maxConcurrentRequests = maxConcurrentRequests; this.maxConcurrentRequestsPerHost = maxConcurrentRequestsPerHost; }
for (Element element : env.getElementsAnnotatedWith(typeElement)) { Buildable buildable = element.getAnnotation(Buildable.class); BuilderContext ctx = BuilderContextManager.create(elements, buildable.generateBuilderPackage(), buildable.builderPackage()); ctx.getRepository().register(ModelUtils.getClassElement(element)); for (TypeElement ref : BuilderUtils.getBuildableReferences(ctx, buildable)) { for (Element element : env.getElementsAnnotatedWith(typeElement)) { Buildable buildable = element.getAnnotation(Buildable.class); BuilderContext ctx = BuilderContextManager.create(elements, buildable.generateBuilderPackage(), buildable.builderPackage()); JavaClazz clazz = ctx.getToClazz().apply(ModelUtils.getClassElement(element)); generateLocalDependenciesIfNeeded(); Constants.DEFAULT_FLUENT_TEMPLATE_LOCATION); if (buildable.editableEnabled()) { generateFromClazz(ClazzAs.EDITABLE_BUILDER.apply(clazz), selectBuilderTemplate(buildable.validationEnabled())); } else { generateFromClazz(ClazzAs.BUILDER.apply(clazz), selectBuilderTemplate(buildable.validationEnabled())); for (final Inline inline : buildable.inline()) { generateFromClazz(inlineableOf(ctx, clazz, inline), Constants.DEFAULT_CLASS_TEMPLATE_LOCATION);
ctx = BuilderContextManager.create(elements, types, buildable.validationEnabled(), buildable.lazyCollectionInitEnabled(), buildable.generateBuilderPackage(), buildable.builderPackage()); TypeDef b = new TypeDefBuilder(ElementTo.TYPEDEF.apply(ModelUtils.getClassElement(element))) .addToAttributes(BUILDABLE, buildable) .addToAttributes(EDIATABLE_ENABLED, buildable.editableEnabled()) .addToAttributes(VALIDATION_ENABLED, buildable.validationEnabled()) .accept(new Visitor<PropertyBuilder>() { @Override TypeDef r = new TypeDefBuilder(ElementTo.TYPEDEF.apply(ModelUtils.getClassElement(ref))) .addToAttributes(BUILDABLE, buildable) .addToAttributes(EDIATABLE_ENABLED, buildable.editableEnabled()) .addToAttributes(VALIDATION_ENABLED, buildable.validationEnabled()) .accept(new Visitor<PropertyBuilder>() { @Override
@Buildable(builderPackage = "io.fabric8.kubernetes.api.builder", editableEnabled = false, refs = {@BuildableReference(Config.class)}) public OpenShiftConfig(String openShiftUrl, String oapiVersion, String masterUrl, String apiVersion, String namespace, Boolean trustCerts, Boolean disableHostnameVerification, String caCertFile, String caCertData, String clientCertFile, String clientCertData, String clientKeyFile, String clientKeyData, String clientKeyAlgo, String clientKeyPassphrase, String username, String password, String oauthToken, int watchReconnectInterval, int watchReconnectLimit, int connectionTimeout, int requestTimeout, long rollingTimeout, long scaleTimeout, int loggingInterval, Integer maxConcurrentRequestsPerHost, String httpProxy, String httpsProxy, String[] noProxy, Map<Integer, String> errorMessages, String userAgent, TlsVersion[] tlsVersions, long buildTimeout, long websocketTimeout, long websocketPingInterval, String proxyUsername, String proxyPassword, String trustStoreFile, String trustStorePassphrase, String keyStoreFile, String keyStorePassphrase, String impersonateUsername, String[] impersonateGroups, Map<String, List<String>> impersonateExtras) { super(masterUrl, apiVersion, namespace, trustCerts, disableHostnameVerification, caCertFile, caCertData, clientCertFile, clientCertData, clientKeyFile, clientKeyData, clientKeyAlgo, clientKeyPassphrase, username, password, oauthToken, watchReconnectInterval, watchReconnectLimit, connectionTimeout, requestTimeout, rollingTimeout, scaleTimeout, loggingInterval, maxConcurrentRequestsPerHost, httpProxy, httpsProxy, noProxy, errorMessages, userAgent, tlsVersions, websocketTimeout, websocketPingInterval, proxyUsername, proxyPassword, trustStoreFile, trustStorePassphrase, keyStoreFile, keyStorePassphrase, impersonateUsername, impersonateGroups, impersonateExtras); this.oapiVersion = oapiVersion; this.openShiftUrl = openShiftUrl; this.buildTimeout = buildTimeout; if (this.openShiftUrl == null || this.openShiftUrl.isEmpty()) { this.openShiftUrl = URLUtils.join(getMasterUrl(), "oapi", this.oapiVersion); } if (!this.openShiftUrl.endsWith("/")) { this.openShiftUrl = this.openShiftUrl + "/"; } }
@JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "apiVersion", "kind", "metadata" }) @JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @ToString @EqualsAndHashCode @Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done")) public class CustomResourceSubresourceStatus implements KubernetesResource @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>();
@JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "apiVersion", "kind", "driver" }) @JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @ToString @EqualsAndHashCode @Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done")) public class AllowedFlexVolume implements KubernetesResource @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>();
@JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "apiVersion", "kind", "partition" }) @JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @ToString @EqualsAndHashCode @Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done")) public class RollingUpdateStatefulSetStrategy implements KubernetesResource @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>();
@JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "apiVersion", "kind", "driver" }) @JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @ToString @EqualsAndHashCode @Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done")) public class AllowedFlexVolume implements KubernetesResource @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>();
@JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "apiVersion", "kind", "incremental" }) @JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @ToString @EqualsAndHashCode @Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done")) public class SourceStrategyOptions implements KubernetesResource @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>();
@JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "apiVersion", "kind", "Port" }) @JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @ToString @EqualsAndHashCode @Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done")) public class DaemonEndpoint implements KubernetesResource @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>();
@JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "apiVersion", "kind", "replicas" }) @JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @ToString @EqualsAndHashCode @Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done")) public class ScaleSpec implements KubernetesResource @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>();
@JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "apiVersion", "kind", "uid" }) @JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @ToString @EqualsAndHashCode @Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done")) public class Preconditions implements KubernetesResource @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>();
@JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "apiVersion", "kind", "asFile" }) @JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @ToString @EqualsAndHashCode @Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done")) public class BinaryBuildSource implements KubernetesResource @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>();
@JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "apiVersion", "kind", "Time" }) @JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @ToString @EqualsAndHashCode @Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done")) public class MicroTime implements KubernetesResource @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>();
@JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "apiVersion", "kind", "conditionType" }) @JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @ToString @EqualsAndHashCode @Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done")) public class PodReadinessGate implements KubernetesResource @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>();
@JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "apiVersion", "kind", "type" }) @JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @ToString @EqualsAndHashCode @Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done")) public class TagReferencePolicy implements KubernetesResource @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>();
@JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "apiVersion", "kind", "imageDigest" }) @JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @ToString @EqualsAndHashCode @Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done")) public class BuildStatusOutputTo implements KubernetesResource @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>();
@JsonInclude(JsonInclude.Include.NON_NULL) @Generated("org.jsonschema2pojo") @JsonPropertyOrder({ "apiVersion", "kind", "Raw" }) @JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) @ToString @EqualsAndHashCode @Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done")) public class JSON implements KubernetesResource @JsonIgnore private Map<String, Object> additionalProperties = new HashMap<String, Object>();