/*
 * Copyright 2018-2019, EnMasse authors.
 * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
 */
package io.enmasse.iot.model.v1;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import io.enmasse.common.model.AbstractHasMetadata;
import io.enmasse.common.model.DefaultCustomResource;
import io.fabric8.kubernetes.api.model.Doneable;
import io.sundr.builder.annotations.Buildable;
import io.sundr.builder.annotations.BuildableReference;
import io.sundr.builder.annotations.Inline;

@Buildable(
                editableEnabled = false,
                generateBuilderPackage = false,
                builderPackage = "io.fabric8.kubernetes.api.builder",
                refs = {@BuildableReference(AbstractHasMetadata.class)},
                inline = @Inline(
                                type = Doneable.class,
                                prefix = "Doneable",
                                value = "done"))
@DefaultCustomResource
@SuppressWarnings("serial")
@JsonIgnoreProperties(ignoreUnknown = true)
public class IoTProject extends AbstractHasMetadata<IoTProject> {

    public static final String KIND = "IoTProject";

    private IoTProjectSpec spec;
    private IoTProjectStatus status;

    public IoTProject() {
        super(KIND, IoTCrd.API_VERSION);
    }

    public void setSpec(final IoTProjectSpec spec) {
        this.spec = spec;
    }

    public IoTProjectSpec getSpec() {
        return this.spec;
    }

    public IoTProjectStatus getStatus() {
        return status;
    }

    public void setStatus(IoTProjectStatus status) {
        this.status = status;
    }

}

@@ -391,24 +391,75 @@
 l.Doneable;%0A
+import io.fabric8.kubernetes.api.model.ObjectMeta;%0A
 import io.su
@@ -1708,10 +1708,176 @@
 %0A    %7D%0A%0A
+    /*%0A     * Required due to: fabric8io/kubernetes-client#1902%0A     */%0A    @Override%0A    public ObjectMeta getMetadata() %7B%0A        return super.getMetadata();%0A    %7D%0A
 %7D%0A

Add fix for fabric8io/kubernetes-client#1902