-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(kubernetes-model): add model type APIVersions to Kubernetes Core…
… Model Signed-off-by: Rohan Kumar <[email protected]> (cherry picked from commit c3d6160)
- Loading branch information
1 parent
9010033
commit 966b676
Showing
8 changed files
with
391 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
174 changes: 174 additions & 0 deletions
174
...kubernetes-model-core/src/generated/java/io/fabric8/kubernetes/api/model/APIVersions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
|
||
package io.fabric8.kubernetes.api.model; | ||
|
||
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.model.annotation.Group; | ||
import io.fabric8.kubernetes.model.annotation.Version; | ||
import io.sundr.builder.annotations.Buildable; | ||
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", | ||
"serverAddressByClientCIDRs", | ||
"versions" | ||
}) | ||
@ToString | ||
@EqualsAndHashCode | ||
@Accessors(prefix = { | ||
"_", | ||
"" | ||
}) | ||
@Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder") | ||
@TemplateTransformations({ | ||
@TemplateTransformation(value = "/manifest.vm", outputPath = "META-INF/services/io.fabric8.kubernetes.api.model.KubernetesResource", gather = true) | ||
}) | ||
@Version("v1") | ||
@Group("") | ||
@Generated("jsonschema2pojo") | ||
public class APIVersions implements Editable<APIVersionsBuilder> , KubernetesResource | ||
{ | ||
|
||
/** | ||
* | ||
* (Required) | ||
* | ||
*/ | ||
@JsonProperty("apiVersion") | ||
private String apiVersion = "v1"; | ||
/** | ||
* | ||
* (Required) | ||
* | ||
*/ | ||
@JsonProperty("kind") | ||
private String kind = "APIVersions"; | ||
@JsonProperty("serverAddressByClientCIDRs") | ||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
private List<ServerAddressByClientCIDR> serverAddressByClientCIDRs = new ArrayList<>(); | ||
@JsonProperty("versions") | ||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
private List<String> versions = new ArrayList<>(); | ||
@JsonIgnore | ||
private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>(); | ||
|
||
/** | ||
* No args constructor for use in serialization | ||
* | ||
*/ | ||
public APIVersions() { | ||
} | ||
|
||
public APIVersions(String apiVersion, String kind, List<ServerAddressByClientCIDR> serverAddressByClientCIDRs, List<String> versions) { | ||
super(); | ||
this.apiVersion = apiVersion; | ||
this.kind = kind; | ||
this.serverAddressByClientCIDRs = serverAddressByClientCIDRs; | ||
this.versions = versions; | ||
} | ||
|
||
/** | ||
* | ||
* (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("serverAddressByClientCIDRs") | ||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
public List<ServerAddressByClientCIDR> getServerAddressByClientCIDRs() { | ||
return serverAddressByClientCIDRs; | ||
} | ||
|
||
@JsonProperty("serverAddressByClientCIDRs") | ||
public void setServerAddressByClientCIDRs(List<ServerAddressByClientCIDR> serverAddressByClientCIDRs) { | ||
this.serverAddressByClientCIDRs = serverAddressByClientCIDRs; | ||
} | ||
|
||
@JsonProperty("versions") | ||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
public List<String> getVersions() { | ||
return versions; | ||
} | ||
|
||
@JsonProperty("versions") | ||
public void setVersions(List<String> versions) { | ||
this.versions = versions; | ||
} | ||
|
||
@JsonIgnore | ||
public APIVersionsBuilder edit() { | ||
return new APIVersionsBuilder(this); | ||
} | ||
|
||
@JsonIgnore | ||
public APIVersionsBuilder toBuilder() { | ||
return edit(); | ||
} | ||
|
||
@JsonAnyGetter | ||
public Map<String, Object> getAdditionalProperties() { | ||
return this.additionalProperties; | ||
} | ||
|
||
@JsonAnySetter | ||
public void setAdditionalProperty(String name, Object value) { | ||
this.additionalProperties.put(name, value); | ||
} | ||
|
||
public void setAdditionalProperties(Map<String, Object> additionalProperties) { | ||
this.additionalProperties = additionalProperties; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.