diff --git a/support/shulker-crds/generate-crds.sh b/support/shulker-crds/generate-crds.sh index de8bb986..d58a3c14 100755 --- a/support/shulker-crds/generate-crds.sh +++ b/support/shulker-crds/generate-crds.sh @@ -1,9 +1,6 @@ #!/bin/bash CRDS_IN=../../config/crd/bases -CRDS_OUT=./src/main/java - -mkdir -p $CRDS_OUT CRDS=$(find $CRDS_IN -type f -name "*.yaml") function generateCrd() { @@ -13,7 +10,7 @@ function generateCrd() { docker run \ --rm \ -v "$(realpath $CRD_PATH)":"/tmp/${CRD_FILE_NAME}" \ - -v "$(realpath $CRDS_OUT)":"/tmp/out" \ + -v "$(pwd)":"$(pwd)" \ -v /var/run/docker.sock:/var/run/docker.sock \ --network host \ docker.pkg.github.com/kubernetes-client/java/crd-model-gen:v1.0.6 \ @@ -21,9 +18,11 @@ function generateCrd() { -u /tmp/${CRD_FILE_NAME} \ -n io.shulkermc \ -p io.shulkermc \ - -o "/tmp/out" + -o "$(pwd)" } for crd in $CRDS; do generateCrd $crd done + +rm -Rf src/main/java/gen diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftCluster.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftCluster.java new file mode 100644 index 00000000..6fe4fbef --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftCluster.java @@ -0,0 +1,218 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.shulkermc.models.V1alpha1MinecraftClusterStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * MinecraftCluster is the Schema for the MinecraftCluster API + */ +@ApiModel(description = "MinecraftCluster is the Schema for the MinecraftCluster API") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:49:50.494Z[Etc/UTC]") +public class V1alpha1MinecraftCluster implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata = null; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private Object spec; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1alpha1MinecraftClusterStatus status; + + + public V1alpha1MinecraftCluster apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @return apiVersion + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") + + public String getApiVersion() { + return apiVersion; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha1MinecraftCluster kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @return kind + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") + + public String getKind() { + return kind; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha1MinecraftCluster metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1alpha1MinecraftCluster spec(Object spec) { + + this.spec = spec; + return this; + } + + /** + * Defines the defired state of a MinecraftCluster. Most, to not say all, fields configurable in a Minecraft Cluster can be configured in this CRD. + * @return spec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Defines the defired state of a MinecraftCluster. Most, to not say all, fields configurable in a Minecraft Cluster can be configured in this CRD.") + + public Object getSpec() { + return spec; + } + + + public void setSpec(Object spec) { + this.spec = spec; + } + + + public V1alpha1MinecraftCluster status(V1alpha1MinecraftClusterStatus status) { + + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftClusterStatus getStatus() { + return status; + } + + + public void setStatus(V1alpha1MinecraftClusterStatus status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftCluster v1alpha1MinecraftCluster = (V1alpha1MinecraftCluster) o; + return Objects.equals(this.apiVersion, v1alpha1MinecraftCluster.apiVersion) && + Objects.equals(this.kind, v1alpha1MinecraftCluster.kind) && + Objects.equals(this.metadata, v1alpha1MinecraftCluster.metadata) && + Objects.equals(this.spec, v1alpha1MinecraftCluster.spec) && + Objects.equals(this.status, v1alpha1MinecraftCluster.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftCluster {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftClusterList.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftClusterList.java new file mode 100644 index 00000000..f1ac8514 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftClusterList.java @@ -0,0 +1,195 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.shulkermc.models.V1alpha1MinecraftCluster; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * MinecraftClusterList is a list of MinecraftCluster + */ +@ApiModel(description = "MinecraftClusterList is a list of MinecraftCluster") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:49:50.494Z[Etc/UTC]") +public class V1alpha1MinecraftClusterList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata = null; + + + public V1alpha1MinecraftClusterList apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @return apiVersion + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") + + public String getApiVersion() { + return apiVersion; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha1MinecraftClusterList items(List items) { + + this.items = items; + return this; + } + + public V1alpha1MinecraftClusterList addItemsItem(V1alpha1MinecraftCluster itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * List of minecraftclusters. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md + * @return items + **/ + @ApiModelProperty(required = true, value = "List of minecraftclusters. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1alpha1MinecraftClusterList kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @return kind + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") + + public String getKind() { + return kind; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha1MinecraftClusterList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftClusterList v1alpha1MinecraftClusterList = (V1alpha1MinecraftClusterList) o; + return Objects.equals(this.apiVersion, v1alpha1MinecraftClusterList.apiVersion) && + Objects.equals(this.items, v1alpha1MinecraftClusterList.items) && + Objects.equals(this.kind, v1alpha1MinecraftClusterList.kind) && + Objects.equals(this.metadata, v1alpha1MinecraftClusterList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftClusterList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftClusterStatus.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftClusterStatus.java new file mode 100644 index 00000000..94fad654 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftClusterStatus.java @@ -0,0 +1,197 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftClusterStatusConditions; +import io.shulkermc.models.V1alpha1MinecraftClusterStatusServerPool; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * MinecraftClusterStatus defines the observed state of MinecraftCluster + */ +@ApiModel(description = "MinecraftClusterStatus defines the observed state of MinecraftCluster") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:49:50.494Z[Etc/UTC]") +public class V1alpha1MinecraftClusterStatus { + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) + private List conditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_PROXIES = "proxies"; + @SerializedName(SERIALIZED_NAME_PROXIES) + private Integer proxies; + + public static final String SERIALIZED_NAME_SERVER_POOL = "serverPool"; + @SerializedName(SERIALIZED_NAME_SERVER_POOL) + private List serverPool = new ArrayList<>(); + + public static final String SERIALIZED_NAME_SERVERS = "servers"; + @SerializedName(SERIALIZED_NAME_SERVERS) + private Integer servers; + + + public V1alpha1MinecraftClusterStatus conditions(List conditions) { + + this.conditions = conditions; + return this; + } + + public V1alpha1MinecraftClusterStatus addConditionsItem(V1alpha1MinecraftClusterStatusConditions conditionsItem) { + this.conditions.add(conditionsItem); + return this; + } + + /** + * Conditions represent the latest available observations of a MinecraftCluster object. + * @return conditions + **/ + @ApiModelProperty(required = true, value = "Conditions represent the latest available observations of a MinecraftCluster object.") + + public List getConditions() { + return conditions; + } + + + public void setConditions(List conditions) { + this.conditions = conditions; + } + + + public V1alpha1MinecraftClusterStatus proxies(Integer proxies) { + + this.proxies = proxies; + return this; + } + + /** + * Number of proxies. + * @return proxies + **/ + @ApiModelProperty(required = true, value = "Number of proxies.") + + public Integer getProxies() { + return proxies; + } + + + public void setProxies(Integer proxies) { + this.proxies = proxies; + } + + + public V1alpha1MinecraftClusterStatus serverPool(List serverPool) { + + this.serverPool = serverPool; + return this; + } + + public V1alpha1MinecraftClusterStatus addServerPoolItem(V1alpha1MinecraftClusterStatusServerPool serverPoolItem) { + this.serverPool.add(serverPoolItem); + return this; + } + + /** + * Pool of Minecraft Servers linked to this Minecraft Cluster. + * @return serverPool + **/ + @ApiModelProperty(required = true, value = "Pool of Minecraft Servers linked to this Minecraft Cluster.") + + public List getServerPool() { + return serverPool; + } + + + public void setServerPool(List serverPool) { + this.serverPool = serverPool; + } + + + public V1alpha1MinecraftClusterStatus servers(Integer servers) { + + this.servers = servers; + return this; + } + + /** + * Number of servers inside the server pool. + * @return servers + **/ + @ApiModelProperty(required = true, value = "Number of servers inside the server pool.") + + public Integer getServers() { + return servers; + } + + + public void setServers(Integer servers) { + this.servers = servers; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftClusterStatus v1alpha1MinecraftClusterStatus = (V1alpha1MinecraftClusterStatus) o; + return Objects.equals(this.conditions, v1alpha1MinecraftClusterStatus.conditions) && + Objects.equals(this.proxies, v1alpha1MinecraftClusterStatus.proxies) && + Objects.equals(this.serverPool, v1alpha1MinecraftClusterStatus.serverPool) && + Objects.equals(this.servers, v1alpha1MinecraftClusterStatus.servers); + } + + @Override + public int hashCode() { + return Objects.hash(conditions, proxies, serverPool, servers); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftClusterStatus {\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" proxies: ").append(toIndentedString(proxies)).append("\n"); + sb.append(" serverPool: ").append(toIndentedString(serverPool)).append("\n"); + sb.append(" servers: ").append(toIndentedString(servers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftClusterStatusConditions.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftClusterStatusConditions.java new file mode 100644 index 00000000..3f57add2 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftClusterStatusConditions.java @@ -0,0 +1,291 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` // other fields } + */ +@ApiModel(description = "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` // other fields }") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:49:50.494Z[Etc/UTC]") +public class V1alpha1MinecraftClusterStatusConditions { + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private OffsetDateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; + + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; + + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; + + /** + * status of the condition, one of True, False, Unknown. + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + TRUE("True"), + + FALSE("False"), + + UNKNOWN("Unknown"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private StatusEnum status; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + + public V1alpha1MinecraftClusterStatusConditions lastTransitionTime(OffsetDateTime lastTransitionTime) { + + this.lastTransitionTime = lastTransitionTime; + return this; + } + + /** + * lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + * @return lastTransitionTime + **/ + @ApiModelProperty(required = true, value = "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.") + + public OffsetDateTime getLastTransitionTime() { + return lastTransitionTime; + } + + + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + } + + + public V1alpha1MinecraftClusterStatusConditions message(String message) { + + this.message = message; + return this; + } + + /** + * message is a human readable message indicating details about the transition. This may be an empty string. + * @return message + **/ + @ApiModelProperty(required = true, value = "message is a human readable message indicating details about the transition. This may be an empty string.") + + public String getMessage() { + return message; + } + + + public void setMessage(String message) { + this.message = message; + } + + + public V1alpha1MinecraftClusterStatusConditions observedGeneration(Long observedGeneration) { + + this.observedGeneration = observedGeneration; + return this; + } + + /** + * observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. + * minimum: 0 + * @return observedGeneration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.") + + public Long getObservedGeneration() { + return observedGeneration; + } + + + public void setObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + } + + + public V1alpha1MinecraftClusterStatusConditions reason(String reason) { + + this.reason = reason; + return this; + } + + /** + * reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. + * @return reason + **/ + @ApiModelProperty(required = true, value = "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.") + + public String getReason() { + return reason; + } + + + public void setReason(String reason) { + this.reason = reason; + } + + + public V1alpha1MinecraftClusterStatusConditions status(StatusEnum status) { + + this.status = status; + return this; + } + + /** + * status of the condition, one of True, False, Unknown. + * @return status + **/ + @ApiModelProperty(required = true, value = "status of the condition, one of True, False, Unknown.") + + public StatusEnum getStatus() { + return status; + } + + + public void setStatus(StatusEnum status) { + this.status = status; + } + + + public V1alpha1MinecraftClusterStatusConditions type(String type) { + + this.type = type; + return this; + } + + /** + * type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) + * @return type + **/ + @ApiModelProperty(required = true, value = "type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)") + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftClusterStatusConditions v1alpha1MinecraftClusterStatusConditions = (V1alpha1MinecraftClusterStatusConditions) o; + return Objects.equals(this.lastTransitionTime, v1alpha1MinecraftClusterStatusConditions.lastTransitionTime) && + Objects.equals(this.message, v1alpha1MinecraftClusterStatusConditions.message) && + Objects.equals(this.observedGeneration, v1alpha1MinecraftClusterStatusConditions.observedGeneration) && + Objects.equals(this.reason, v1alpha1MinecraftClusterStatusConditions.reason) && + Objects.equals(this.status, v1alpha1MinecraftClusterStatusConditions.status) && + Objects.equals(this.type, v1alpha1MinecraftClusterStatusConditions.type); + } + + @Override + public int hashCode() { + return Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftClusterStatusConditions {\n"); + sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftClusterStatusServerPool.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftClusterStatusServerPool.java new file mode 100644 index 00000000..caf5a4f1 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftClusterStatusServerPool.java @@ -0,0 +1,128 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * V1alpha1MinecraftClusterStatusServerPool + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:49:50.494Z[Etc/UTC]") +public class V1alpha1MinecraftClusterStatusServerPool { + public static final String SERIALIZED_NAME_ADDRESS = "address"; + @SerializedName(SERIALIZED_NAME_ADDRESS) + private String address; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + + public V1alpha1MinecraftClusterStatusServerPool address(String address) { + + this.address = address; + return this; + } + + /** + * IP of the Minecraft Server. + * @return address + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "IP of the Minecraft Server.") + + public String getAddress() { + return address; + } + + + public void setAddress(String address) { + this.address = address; + } + + + public V1alpha1MinecraftClusterStatusServerPool name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the Minecraft Server. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Name of the Minecraft Server.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftClusterStatusServerPool v1alpha1MinecraftClusterStatusServerPool = (V1alpha1MinecraftClusterStatusServerPool) o; + return Objects.equals(this.address, v1alpha1MinecraftClusterStatusServerPool.address) && + Objects.equals(this.name, v1alpha1MinecraftClusterStatusServerPool.name); + } + + @Override + public int hashCode() { + return Objects.hash(address, name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftClusterStatusServerPool {\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServer.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServer.java new file mode 100644 index 00000000..15071348 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServer.java @@ -0,0 +1,219 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.shulkermc.models.V1alpha1MinecraftServerSpec; +import io.shulkermc.models.V1alpha1MinecraftServerStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * MinecraftServer is the Schema for the MinecraftServer API. + */ +@ApiModel(description = "MinecraftServer is the Schema for the MinecraftServer API.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServer implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata = null; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1alpha1MinecraftServerSpec spec; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1alpha1MinecraftServerStatus status; + + + public V1alpha1MinecraftServer apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @return apiVersion + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") + + public String getApiVersion() { + return apiVersion; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha1MinecraftServer kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @return kind + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") + + public String getKind() { + return kind; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha1MinecraftServer metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1alpha1MinecraftServer spec(V1alpha1MinecraftServerSpec spec) { + + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpec getSpec() { + return spec; + } + + + public void setSpec(V1alpha1MinecraftServerSpec spec) { + this.spec = spec; + } + + + public V1alpha1MinecraftServer status(V1alpha1MinecraftServerStatus status) { + + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerStatus getStatus() { + return status; + } + + + public void setStatus(V1alpha1MinecraftServerStatus status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServer v1alpha1MinecraftServer = (V1alpha1MinecraftServer) o; + return Objects.equals(this.apiVersion, v1alpha1MinecraftServer.apiVersion) && + Objects.equals(this.kind, v1alpha1MinecraftServer.kind) && + Objects.equals(this.metadata, v1alpha1MinecraftServer.metadata) && + Objects.equals(this.spec, v1alpha1MinecraftServer.spec) && + Objects.equals(this.status, v1alpha1MinecraftServer.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServer {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerList.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerList.java new file mode 100644 index 00000000..992dfc05 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerList.java @@ -0,0 +1,195 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.shulkermc.models.V1alpha1MinecraftServer; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * MinecraftServerList is a list of MinecraftServer + */ +@ApiModel(description = "MinecraftServerList is a list of MinecraftServer") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata = null; + + + public V1alpha1MinecraftServerList apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @return apiVersion + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") + + public String getApiVersion() { + return apiVersion; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha1MinecraftServerList items(List items) { + + this.items = items; + return this; + } + + public V1alpha1MinecraftServerList addItemsItem(V1alpha1MinecraftServer itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * List of minecraftservers. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md + * @return items + **/ + @ApiModelProperty(required = true, value = "List of minecraftservers. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1alpha1MinecraftServerList kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @return kind + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") + + public String getKind() { + return kind; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha1MinecraftServerList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerList v1alpha1MinecraftServerList = (V1alpha1MinecraftServerList) o; + return Objects.equals(this.apiVersion, v1alpha1MinecraftServerList.apiVersion) && + Objects.equals(this.items, v1alpha1MinecraftServerList.items) && + Objects.equals(this.kind, v1alpha1MinecraftServerList.kind) && + Objects.equals(this.metadata, v1alpha1MinecraftServerList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpec.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpec.java new file mode 100644 index 00000000..acc65f74 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpec.java @@ -0,0 +1,472 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinity; +import io.shulkermc.models.V1alpha1MinecraftServerSpecMinecraftClusterRef; +import io.shulkermc.models.V1alpha1MinecraftServerSpecPodOverrides; +import io.shulkermc.models.V1alpha1MinecraftServerSpecRcon; +import io.shulkermc.models.V1alpha1MinecraftServerSpecResources; +import io.shulkermc.models.V1alpha1MinecraftServerSpecService; +import io.shulkermc.models.V1alpha1MinecraftServerSpecVersion; +import io.shulkermc.models.V1alpha1MinecraftServerSpecWorld; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Defines the defired state of a MinecraftServer. Most, to not say all, fields configurable in a Minecraft Server can be configured in this CRD. + */ +@ApiModel(description = "Defines the defired state of a MinecraftServer. Most, to not say all, fields configurable in a Minecraft Server can be configured in this CRD.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpec { + public static final String SERIALIZED_NAME_AFFINITY = "affinity"; + @SerializedName(SERIALIZED_NAME_AFFINITY) + private V1alpha1MinecraftServerSpecAffinity affinity; + + public static final String SERIALIZED_NAME_MAX_PLAYERS = "maxPlayers"; + @SerializedName(SERIALIZED_NAME_MAX_PLAYERS) + private Long maxPlayers; + + public static final String SERIALIZED_NAME_MINECRAFT_CLUSTER_REF = "minecraftClusterRef"; + @SerializedName(SERIALIZED_NAME_MINECRAFT_CLUSTER_REF) + private V1alpha1MinecraftServerSpecMinecraftClusterRef minecraftClusterRef; + + public static final String SERIALIZED_NAME_MOTD = "motd"; + @SerializedName(SERIALIZED_NAME_MOTD) + private String motd; + + public static final String SERIALIZED_NAME_OPERATORS = "operators"; + @SerializedName(SERIALIZED_NAME_OPERATORS) + private List operators = null; + + public static final String SERIALIZED_NAME_POD_OVERRIDES = "podOverrides"; + @SerializedName(SERIALIZED_NAME_POD_OVERRIDES) + private V1alpha1MinecraftServerSpecPodOverrides podOverrides; + + public static final String SERIALIZED_NAME_RCON = "rcon"; + @SerializedName(SERIALIZED_NAME_RCON) + private V1alpha1MinecraftServerSpecRcon rcon; + + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) + private V1alpha1MinecraftServerSpecResources resources; + + public static final String SERIALIZED_NAME_SERVER_ICON = "serverIcon"; + @SerializedName(SERIALIZED_NAME_SERVER_ICON) + private String serverIcon; + + public static final String SERIALIZED_NAME_SERVICE = "service"; + @SerializedName(SERIALIZED_NAME_SERVICE) + private V1alpha1MinecraftServerSpecService service; + + public static final String SERIALIZED_NAME_VERSION = "version"; + @SerializedName(SERIALIZED_NAME_VERSION) + private V1alpha1MinecraftServerSpecVersion version; + + public static final String SERIALIZED_NAME_WHITELISTED_PLAYERS = "whitelistedPlayers"; + @SerializedName(SERIALIZED_NAME_WHITELISTED_PLAYERS) + private List whitelistedPlayers = null; + + public static final String SERIALIZED_NAME_WORLD = "world"; + @SerializedName(SERIALIZED_NAME_WORLD) + private V1alpha1MinecraftServerSpecWorld world; + + + public V1alpha1MinecraftServerSpec affinity(V1alpha1MinecraftServerSpecAffinity affinity) { + + this.affinity = affinity; + return this; + } + + /** + * Get affinity + * @return affinity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecAffinity getAffinity() { + return affinity; + } + + + public void setAffinity(V1alpha1MinecraftServerSpecAffinity affinity) { + this.affinity = affinity; + } + + + public V1alpha1MinecraftServerSpec maxPlayers(Long maxPlayers) { + + this.maxPlayers = maxPlayers; + return this; + } + + /** + * Number of maximum players that can connect to the Minecraft Server. + * @return maxPlayers + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Number of maximum players that can connect to the Minecraft Server.") + + public Long getMaxPlayers() { + return maxPlayers; + } + + + public void setMaxPlayers(Long maxPlayers) { + this.maxPlayers = maxPlayers; + } + + + public V1alpha1MinecraftServerSpec minecraftClusterRef(V1alpha1MinecraftServerSpecMinecraftClusterRef minecraftClusterRef) { + + this.minecraftClusterRef = minecraftClusterRef; + return this; + } + + /** + * Get minecraftClusterRef + * @return minecraftClusterRef + **/ + @ApiModelProperty(required = true, value = "") + + public V1alpha1MinecraftServerSpecMinecraftClusterRef getMinecraftClusterRef() { + return minecraftClusterRef; + } + + + public void setMinecraftClusterRef(V1alpha1MinecraftServerSpecMinecraftClusterRef minecraftClusterRef) { + this.minecraftClusterRef = minecraftClusterRef; + } + + + public V1alpha1MinecraftServerSpec motd(String motd) { + + this.motd = motd; + return this; + } + + /** + * Message to display when the players query the status of the Minecraft Server. + * @return motd + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Message to display when the players query the status of the Minecraft Server.") + + public String getMotd() { + return motd; + } + + + public void setMotd(String motd) { + this.motd = motd; + } + + + public V1alpha1MinecraftServerSpec operators(List operators) { + + this.operators = operators; + return this; + } + + public V1alpha1MinecraftServerSpec addOperatorsItem(String operatorsItem) { + if (this.operators == null) { + this.operators = new ArrayList<>(); + } + this.operators.add(operatorsItem); + return this; + } + + /** + * List of players to be operators on the Minecraft Server. + * @return operators + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "List of players to be operators on the Minecraft Server.") + + public List getOperators() { + return operators; + } + + + public void setOperators(List operators) { + this.operators = operators; + } + + + public V1alpha1MinecraftServerSpec podOverrides(V1alpha1MinecraftServerSpecPodOverrides podOverrides) { + + this.podOverrides = podOverrides; + return this; + } + + /** + * Get podOverrides + * @return podOverrides + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecPodOverrides getPodOverrides() { + return podOverrides; + } + + + public void setPodOverrides(V1alpha1MinecraftServerSpecPodOverrides podOverrides) { + this.podOverrides = podOverrides; + } + + + public V1alpha1MinecraftServerSpec rcon(V1alpha1MinecraftServerSpecRcon rcon) { + + this.rcon = rcon; + return this; + } + + /** + * Get rcon + * @return rcon + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecRcon getRcon() { + return rcon; + } + + + public void setRcon(V1alpha1MinecraftServerSpecRcon rcon) { + this.rcon = rcon; + } + + + public V1alpha1MinecraftServerSpec resources(V1alpha1MinecraftServerSpecResources resources) { + + this.resources = resources; + return this; + } + + /** + * Get resources + * @return resources + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecResources getResources() { + return resources; + } + + + public void setResources(V1alpha1MinecraftServerSpecResources resources) { + this.resources = resources; + } + + + public V1alpha1MinecraftServerSpec serverIcon(String serverIcon) { + + this.serverIcon = serverIcon; + return this; + } + + /** + * Server icon image in base64 format. + * @return serverIcon + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Server icon image in base64 format.") + + public String getServerIcon() { + return serverIcon; + } + + + public void setServerIcon(String serverIcon) { + this.serverIcon = serverIcon; + } + + + public V1alpha1MinecraftServerSpec service(V1alpha1MinecraftServerSpecService service) { + + this.service = service; + return this; + } + + /** + * Get service + * @return service + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecService getService() { + return service; + } + + + public void setService(V1alpha1MinecraftServerSpecService service) { + this.service = service; + } + + + public V1alpha1MinecraftServerSpec version(V1alpha1MinecraftServerSpecVersion version) { + + this.version = version; + return this; + } + + /** + * Get version + * @return version + **/ + @ApiModelProperty(required = true, value = "") + + public V1alpha1MinecraftServerSpecVersion getVersion() { + return version; + } + + + public void setVersion(V1alpha1MinecraftServerSpecVersion version) { + this.version = version; + } + + + public V1alpha1MinecraftServerSpec whitelistedPlayers(List whitelistedPlayers) { + + this.whitelistedPlayers = whitelistedPlayers; + return this; + } + + public V1alpha1MinecraftServerSpec addWhitelistedPlayersItem(String whitelistedPlayersItem) { + if (this.whitelistedPlayers == null) { + this.whitelistedPlayers = new ArrayList<>(); + } + this.whitelistedPlayers.add(whitelistedPlayersItem); + return this; + } + + /** + * List of players to be whitelisted on the Minecraft Server. + * @return whitelistedPlayers + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "List of players to be whitelisted on the Minecraft Server.") + + public List getWhitelistedPlayers() { + return whitelistedPlayers; + } + + + public void setWhitelistedPlayers(List whitelistedPlayers) { + this.whitelistedPlayers = whitelistedPlayers; + } + + + public V1alpha1MinecraftServerSpec world(V1alpha1MinecraftServerSpecWorld world) { + + this.world = world; + return this; + } + + /** + * Get world + * @return world + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecWorld getWorld() { + return world; + } + + + public void setWorld(V1alpha1MinecraftServerSpecWorld world) { + this.world = world; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpec v1alpha1MinecraftServerSpec = (V1alpha1MinecraftServerSpec) o; + return Objects.equals(this.affinity, v1alpha1MinecraftServerSpec.affinity) && + Objects.equals(this.maxPlayers, v1alpha1MinecraftServerSpec.maxPlayers) && + Objects.equals(this.minecraftClusterRef, v1alpha1MinecraftServerSpec.minecraftClusterRef) && + Objects.equals(this.motd, v1alpha1MinecraftServerSpec.motd) && + Objects.equals(this.operators, v1alpha1MinecraftServerSpec.operators) && + Objects.equals(this.podOverrides, v1alpha1MinecraftServerSpec.podOverrides) && + Objects.equals(this.rcon, v1alpha1MinecraftServerSpec.rcon) && + Objects.equals(this.resources, v1alpha1MinecraftServerSpec.resources) && + Objects.equals(this.serverIcon, v1alpha1MinecraftServerSpec.serverIcon) && + Objects.equals(this.service, v1alpha1MinecraftServerSpec.service) && + Objects.equals(this.version, v1alpha1MinecraftServerSpec.version) && + Objects.equals(this.whitelistedPlayers, v1alpha1MinecraftServerSpec.whitelistedPlayers) && + Objects.equals(this.world, v1alpha1MinecraftServerSpec.world); + } + + @Override + public int hashCode() { + return Objects.hash(affinity, maxPlayers, minecraftClusterRef, motd, operators, podOverrides, rcon, resources, serverIcon, service, version, whitelistedPlayers, world); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpec {\n"); + sb.append(" affinity: ").append(toIndentedString(affinity)).append("\n"); + sb.append(" maxPlayers: ").append(toIndentedString(maxPlayers)).append("\n"); + sb.append(" minecraftClusterRef: ").append(toIndentedString(minecraftClusterRef)).append("\n"); + sb.append(" motd: ").append(toIndentedString(motd)).append("\n"); + sb.append(" operators: ").append(toIndentedString(operators)).append("\n"); + sb.append(" podOverrides: ").append(toIndentedString(podOverrides)).append("\n"); + sb.append(" rcon: ").append(toIndentedString(rcon)).append("\n"); + sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); + sb.append(" serverIcon: ").append(toIndentedString(serverIcon)).append("\n"); + sb.append(" service: ").append(toIndentedString(service)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" whitelistedPlayers: ").append(toIndentedString(whitelistedPlayers)).append("\n"); + sb.append(" world: ").append(toIndentedString(world)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinity.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinity.java new file mode 100644 index 00000000..166a1d63 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinity.java @@ -0,0 +1,161 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityNodeAffinity; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityPodAffinity; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityPodAntiAffinity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Affinity scheduling rules to be applied on created Pods. + */ +@ApiModel(description = "Affinity scheduling rules to be applied on created Pods.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecAffinity { + public static final String SERIALIZED_NAME_NODE_AFFINITY = "nodeAffinity"; + @SerializedName(SERIALIZED_NAME_NODE_AFFINITY) + private V1alpha1MinecraftServerSpecAffinityNodeAffinity nodeAffinity; + + public static final String SERIALIZED_NAME_POD_AFFINITY = "podAffinity"; + @SerializedName(SERIALIZED_NAME_POD_AFFINITY) + private V1alpha1MinecraftServerSpecAffinityPodAffinity podAffinity; + + public static final String SERIALIZED_NAME_POD_ANTI_AFFINITY = "podAntiAffinity"; + @SerializedName(SERIALIZED_NAME_POD_ANTI_AFFINITY) + private V1alpha1MinecraftServerSpecAffinityPodAntiAffinity podAntiAffinity; + + + public V1alpha1MinecraftServerSpecAffinity nodeAffinity(V1alpha1MinecraftServerSpecAffinityNodeAffinity nodeAffinity) { + + this.nodeAffinity = nodeAffinity; + return this; + } + + /** + * Get nodeAffinity + * @return nodeAffinity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecAffinityNodeAffinity getNodeAffinity() { + return nodeAffinity; + } + + + public void setNodeAffinity(V1alpha1MinecraftServerSpecAffinityNodeAffinity nodeAffinity) { + this.nodeAffinity = nodeAffinity; + } + + + public V1alpha1MinecraftServerSpecAffinity podAffinity(V1alpha1MinecraftServerSpecAffinityPodAffinity podAffinity) { + + this.podAffinity = podAffinity; + return this; + } + + /** + * Get podAffinity + * @return podAffinity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecAffinityPodAffinity getPodAffinity() { + return podAffinity; + } + + + public void setPodAffinity(V1alpha1MinecraftServerSpecAffinityPodAffinity podAffinity) { + this.podAffinity = podAffinity; + } + + + public V1alpha1MinecraftServerSpecAffinity podAntiAffinity(V1alpha1MinecraftServerSpecAffinityPodAntiAffinity podAntiAffinity) { + + this.podAntiAffinity = podAntiAffinity; + return this; + } + + /** + * Get podAntiAffinity + * @return podAntiAffinity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecAffinityPodAntiAffinity getPodAntiAffinity() { + return podAntiAffinity; + } + + + public void setPodAntiAffinity(V1alpha1MinecraftServerSpecAffinityPodAntiAffinity podAntiAffinity) { + this.podAntiAffinity = podAntiAffinity; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecAffinity v1alpha1MinecraftServerSpecAffinity = (V1alpha1MinecraftServerSpecAffinity) o; + return Objects.equals(this.nodeAffinity, v1alpha1MinecraftServerSpecAffinity.nodeAffinity) && + Objects.equals(this.podAffinity, v1alpha1MinecraftServerSpecAffinity.podAffinity) && + Objects.equals(this.podAntiAffinity, v1alpha1MinecraftServerSpecAffinity.podAntiAffinity); + } + + @Override + public int hashCode() { + return Objects.hash(nodeAffinity, podAffinity, podAntiAffinity); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecAffinity {\n"); + sb.append(" nodeAffinity: ").append(toIndentedString(nodeAffinity)).append("\n"); + sb.append(" podAffinity: ").append(toIndentedString(podAffinity)).append("\n"); + sb.append(" podAntiAffinity: ").append(toIndentedString(podAntiAffinity)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinity.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinity.java new file mode 100644 index 00000000..debbb1c6 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinity.java @@ -0,0 +1,141 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Describes node affinity scheduling rules for the pod. + */ +@ApiModel(description = "Describes node affinity scheduling rules for the pod.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecAffinityNodeAffinity { + public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + private List preferredDuringSchedulingIgnoredDuringExecution = null; + + public static final String SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "requiredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + private V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution requiredDuringSchedulingIgnoredDuringExecution; + + + public V1alpha1MinecraftServerSpecAffinityNodeAffinity preferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityNodeAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem(V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution preferredDuringSchedulingIgnoredDuringExecutionItem) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); + } + this.preferredDuringSchedulingIgnoredDuringExecution.add(preferredDuringSchedulingIgnoredDuringExecutionItem); + return this; + } + + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * @return preferredDuringSchedulingIgnoredDuringExecution + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.") + + public List getPreferredDuringSchedulingIgnoredDuringExecution() { + return preferredDuringSchedulingIgnoredDuringExecution; + } + + + public void setPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + } + + + public V1alpha1MinecraftServerSpecAffinityNodeAffinity requiredDuringSchedulingIgnoredDuringExecution(V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution requiredDuringSchedulingIgnoredDuringExecution) { + + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + return this; + } + + /** + * Get requiredDuringSchedulingIgnoredDuringExecution + * @return requiredDuringSchedulingIgnoredDuringExecution + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution getRequiredDuringSchedulingIgnoredDuringExecution() { + return requiredDuringSchedulingIgnoredDuringExecution; + } + + + public void setRequiredDuringSchedulingIgnoredDuringExecution(V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecAffinityNodeAffinity v1alpha1MinecraftServerSpecAffinityNodeAffinity = (V1alpha1MinecraftServerSpecAffinityNodeAffinity) o; + return Objects.equals(this.preferredDuringSchedulingIgnoredDuringExecution, v1alpha1MinecraftServerSpecAffinityNodeAffinity.preferredDuringSchedulingIgnoredDuringExecution) && + Objects.equals(this.requiredDuringSchedulingIgnoredDuringExecution, v1alpha1MinecraftServerSpecAffinityNodeAffinity.requiredDuringSchedulingIgnoredDuringExecution); + } + + @Override + public int hashCode() { + return Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecAffinityNodeAffinity {\n"); + sb.append(" preferredDuringSchedulingIgnoredDuringExecution: ").append(toIndentedString(preferredDuringSchedulingIgnoredDuringExecution)).append("\n"); + sb.append(" requiredDuringSchedulingIgnoredDuringExecution: ").append(toIndentedString(requiredDuringSchedulingIgnoredDuringExecution)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinityPreference.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinityPreference.java new file mode 100644 index 00000000..88ae2e59 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinityPreference.java @@ -0,0 +1,148 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * A node selector term, associated with the corresponding weight. + */ +@ApiModel(description = "A node selector term, associated with the corresponding weight.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecAffinityNodeAffinityPreference { + public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; + @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) + private List matchExpressions = null; + + public static final String SERIALIZED_NAME_MATCH_FIELDS = "matchFields"; + @SerializedName(SERIALIZED_NAME_MATCH_FIELDS) + private List matchFields = null; + + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityPreference matchExpressions(List matchExpressions) { + + this.matchExpressions = matchExpressions; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityPreference addMatchExpressionsItem(V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions matchExpressionsItem) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList<>(); + } + this.matchExpressions.add(matchExpressionsItem); + return this; + } + + /** + * A list of node selector requirements by node's labels. + * @return matchExpressions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of node selector requirements by node's labels.") + + public List getMatchExpressions() { + return matchExpressions; + } + + + public void setMatchExpressions(List matchExpressions) { + this.matchExpressions = matchExpressions; + } + + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityPreference matchFields(List matchFields) { + + this.matchFields = matchFields; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityPreference addMatchFieldsItem(V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions matchFieldsItem) { + if (this.matchFields == null) { + this.matchFields = new ArrayList<>(); + } + this.matchFields.add(matchFieldsItem); + return this; + } + + /** + * A list of node selector requirements by node's fields. + * @return matchFields + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of node selector requirements by node's fields.") + + public List getMatchFields() { + return matchFields; + } + + + public void setMatchFields(List matchFields) { + this.matchFields = matchFields; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecAffinityNodeAffinityPreference v1alpha1MinecraftServerSpecAffinityNodeAffinityPreference = (V1alpha1MinecraftServerSpecAffinityNodeAffinityPreference) o; + return Objects.equals(this.matchExpressions, v1alpha1MinecraftServerSpecAffinityNodeAffinityPreference.matchExpressions) && + Objects.equals(this.matchFields, v1alpha1MinecraftServerSpecAffinityNodeAffinityPreference.matchFields); + } + + @Override + public int hashCode() { + return Objects.hash(matchExpressions, matchFields); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecAffinityNodeAffinityPreference {\n"); + sb.append(" matchExpressions: ").append(toIndentedString(matchExpressions)).append("\n"); + sb.append(" matchFields: ").append(toIndentedString(matchFields)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions.java new file mode 100644 index 00000000..9383d41b --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions.java @@ -0,0 +1,166 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + */ +@ApiModel(description = "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_OPERATOR = "operator"; + @SerializedName(SERIALIZED_NAME_OPERATOR) + private String operator; + + public static final String SERIALIZED_NAME_VALUES = "values"; + @SerializedName(SERIALIZED_NAME_VALUES) + private List values = null; + + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions key(String key) { + + this.key = key; + return this; + } + + /** + * The label key that the selector applies to. + * @return key + **/ + @ApiModelProperty(required = true, value = "The label key that the selector applies to.") + + public String getKey() { + return key; + } + + + public void setKey(String key) { + this.key = key; + } + + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions operator(String operator) { + + this.operator = operator; + return this; + } + + /** + * Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * @return operator + **/ + @ApiModelProperty(required = true, value = "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.") + + public String getOperator() { + return operator; + } + + + public void setOperator(String operator) { + this.operator = operator; + } + + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions values(List values) { + + this.values = values; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions addValuesItem(String valuesItem) { + if (this.values == null) { + this.values = new ArrayList<>(); + } + this.values.add(valuesItem); + return this; + } + + /** + * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. + * @return values + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.") + + public List getValues() { + return values; + } + + + public void setValues(List values) { + this.values = values; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions v1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions = (V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions) o; + return Objects.equals(this.key, v1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions.key) && + Objects.equals(this.operator, v1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions.operator) && + Objects.equals(this.values, v1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions.values); + } + + @Override + public int hashCode() { + return Objects.hash(key, operator, values); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution.java new file mode 100644 index 00000000..8638c5bb --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution.java @@ -0,0 +1,128 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityNodeAffinityPreference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). + */ +@ApiModel(description = "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution { + public static final String SERIALIZED_NAME_PREFERENCE = "preference"; + @SerializedName(SERIALIZED_NAME_PREFERENCE) + private V1alpha1MinecraftServerSpecAffinityNodeAffinityPreference preference; + + public static final String SERIALIZED_NAME_WEIGHT = "weight"; + @SerializedName(SERIALIZED_NAME_WEIGHT) + private Integer weight; + + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution preference(V1alpha1MinecraftServerSpecAffinityNodeAffinityPreference preference) { + + this.preference = preference; + return this; + } + + /** + * Get preference + * @return preference + **/ + @ApiModelProperty(required = true, value = "") + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityPreference getPreference() { + return preference; + } + + + public void setPreference(V1alpha1MinecraftServerSpecAffinityNodeAffinityPreference preference) { + this.preference = preference; + } + + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution weight(Integer weight) { + + this.weight = weight; + return this; + } + + /** + * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + * @return weight + **/ + @ApiModelProperty(required = true, value = "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.") + + public Integer getWeight() { + return weight; + } + + + public void setWeight(Integer weight) { + this.weight = weight; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution v1alpha1MinecraftServerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution = (V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution) o; + return Objects.equals(this.preference, v1alpha1MinecraftServerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution.preference) && + Objects.equals(this.weight, v1alpha1MinecraftServerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution.weight); + } + + @Override + public int hashCode() { + return Objects.hash(preference, weight); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution {\n"); + sb.append(" preference: ").append(toIndentedString(preference)).append("\n"); + sb.append(" weight: ").append(toIndentedString(weight)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution.java new file mode 100644 index 00000000..a4bae608 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution.java @@ -0,0 +1,107 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + */ +@ApiModel(description = "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution { + public static final String SERIALIZED_NAME_NODE_SELECTOR_TERMS = "nodeSelectorTerms"; + @SerializedName(SERIALIZED_NAME_NODE_SELECTOR_TERMS) + private List nodeSelectorTerms = new ArrayList<>(); + + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution nodeSelectorTerms(List nodeSelectorTerms) { + + this.nodeSelectorTerms = nodeSelectorTerms; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution addNodeSelectorTermsItem(V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms nodeSelectorTermsItem) { + this.nodeSelectorTerms.add(nodeSelectorTermsItem); + return this; + } + + /** + * Required. A list of node selector terms. The terms are ORed. + * @return nodeSelectorTerms + **/ + @ApiModelProperty(required = true, value = "Required. A list of node selector terms. The terms are ORed.") + + public List getNodeSelectorTerms() { + return nodeSelectorTerms; + } + + + public void setNodeSelectorTerms(List nodeSelectorTerms) { + this.nodeSelectorTerms = nodeSelectorTerms; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution v1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution = (V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution) o; + return Objects.equals(this.nodeSelectorTerms, v1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms); + } + + @Override + public int hashCode() { + return Objects.hash(nodeSelectorTerms); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution {\n"); + sb.append(" nodeSelectorTerms: ").append(toIndentedString(nodeSelectorTerms)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms.java new file mode 100644 index 00000000..3e06515d --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms.java @@ -0,0 +1,148 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. + */ +@ApiModel(description = "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms { + public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; + @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) + private List matchExpressions = null; + + public static final String SERIALIZED_NAME_MATCH_FIELDS = "matchFields"; + @SerializedName(SERIALIZED_NAME_MATCH_FIELDS) + private List matchFields = null; + + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms matchExpressions(List matchExpressions) { + + this.matchExpressions = matchExpressions; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms addMatchExpressionsItem(V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions matchExpressionsItem) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList<>(); + } + this.matchExpressions.add(matchExpressionsItem); + return this; + } + + /** + * A list of node selector requirements by node's labels. + * @return matchExpressions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of node selector requirements by node's labels.") + + public List getMatchExpressions() { + return matchExpressions; + } + + + public void setMatchExpressions(List matchExpressions) { + this.matchExpressions = matchExpressions; + } + + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms matchFields(List matchFields) { + + this.matchFields = matchFields; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms addMatchFieldsItem(V1alpha1MinecraftServerSpecAffinityNodeAffinityPreferenceMatchExpressions matchFieldsItem) { + if (this.matchFields == null) { + this.matchFields = new ArrayList<>(); + } + this.matchFields.add(matchFieldsItem); + return this; + } + + /** + * A list of node selector requirements by node's fields. + * @return matchFields + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of node selector requirements by node's fields.") + + public List getMatchFields() { + return matchFields; + } + + + public void setMatchFields(List matchFields) { + this.matchFields = matchFields; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms v1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms = (V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms) o; + return Objects.equals(this.matchExpressions, v1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms.matchExpressions) && + Objects.equals(this.matchFields, v1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms.matchFields); + } + + @Override + public int hashCode() { + return Objects.hash(matchExpressions, matchFields); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms {\n"); + sb.append(" matchExpressions: ").append(toIndentedString(matchExpressions)).append("\n"); + sb.append(" matchFields: ").append(toIndentedString(matchFields)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinity.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinity.java new file mode 100644 index 00000000..d568895c --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinity.java @@ -0,0 +1,149 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + */ +@ApiModel(description = "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecAffinityPodAffinity { + public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + private List preferredDuringSchedulingIgnoredDuringExecution = null; + + public static final String SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "requiredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + private List requiredDuringSchedulingIgnoredDuringExecution = null; + + + public V1alpha1MinecraftServerSpecAffinityPodAffinity preferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityPodAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem(V1alpha1MinecraftServerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution preferredDuringSchedulingIgnoredDuringExecutionItem) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); + } + this.preferredDuringSchedulingIgnoredDuringExecution.add(preferredDuringSchedulingIgnoredDuringExecutionItem); + return this; + } + + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * @return preferredDuringSchedulingIgnoredDuringExecution + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.") + + public List getPreferredDuringSchedulingIgnoredDuringExecution() { + return preferredDuringSchedulingIgnoredDuringExecution; + } + + + public void setPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + } + + + public V1alpha1MinecraftServerSpecAffinityPodAffinity requiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { + + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityPodAffinity addRequiredDuringSchedulingIgnoredDuringExecutionItem(V1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution requiredDuringSchedulingIgnoredDuringExecutionItem) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); + } + this.requiredDuringSchedulingIgnoredDuringExecution.add(requiredDuringSchedulingIgnoredDuringExecutionItem); + return this; + } + + /** + * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + * @return requiredDuringSchedulingIgnoredDuringExecution + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.") + + public List getRequiredDuringSchedulingIgnoredDuringExecution() { + return requiredDuringSchedulingIgnoredDuringExecution; + } + + + public void setRequiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecAffinityPodAffinity v1alpha1MinecraftServerSpecAffinityPodAffinity = (V1alpha1MinecraftServerSpecAffinityPodAffinity) o; + return Objects.equals(this.preferredDuringSchedulingIgnoredDuringExecution, v1alpha1MinecraftServerSpecAffinityPodAffinity.preferredDuringSchedulingIgnoredDuringExecution) && + Objects.equals(this.requiredDuringSchedulingIgnoredDuringExecution, v1alpha1MinecraftServerSpecAffinityPodAffinity.requiredDuringSchedulingIgnoredDuringExecution); + } + + @Override + public int hashCode() { + return Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecAffinityPodAffinity {\n"); + sb.append(" preferredDuringSchedulingIgnoredDuringExecution: ").append(toIndentedString(preferredDuringSchedulingIgnoredDuringExecution)).append("\n"); + sb.append(" requiredDuringSchedulingIgnoredDuringExecution: ").append(toIndentedString(requiredDuringSchedulingIgnoredDuringExecution)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm.java new file mode 100644 index 00000000..1647852c --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm.java @@ -0,0 +1,198 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Required. A pod affinity term, associated with the corresponding weight. + */ +@ApiModel(description = "Required. A pod affinity term, associated with the corresponding weight.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm { + public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; + @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) + private V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector labelSelector; + + public static final String SERIALIZED_NAME_NAMESPACE_SELECTOR = "namespaceSelector"; + @SerializedName(SERIALIZED_NAME_NAMESPACE_SELECTOR) + private V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector namespaceSelector; + + public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; + @SerializedName(SERIALIZED_NAME_NAMESPACES) + private List namespaces = null; + + public static final String SERIALIZED_NAME_TOPOLOGY_KEY = "topologyKey"; + @SerializedName(SERIALIZED_NAME_TOPOLOGY_KEY) + private String topologyKey; + + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm labelSelector(V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector labelSelector) { + + this.labelSelector = labelSelector; + return this; + } + + /** + * Get labelSelector + * @return labelSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector getLabelSelector() { + return labelSelector; + } + + + public void setLabelSelector(V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector labelSelector) { + this.labelSelector = labelSelector; + } + + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm namespaceSelector(V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector namespaceSelector) { + + this.namespaceSelector = namespaceSelector; + return this; + } + + /** + * Get namespaceSelector + * @return namespaceSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector getNamespaceSelector() { + return namespaceSelector; + } + + + public void setNamespaceSelector(V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; + } + + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm namespaces(List namespaces) { + + this.namespaces = namespaces; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm addNamespacesItem(String namespacesItem) { + if (this.namespaces == null) { + this.namespaces = new ArrayList<>(); + } + this.namespaces.add(namespacesItem); + return this; + } + + /** + * namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\" + * @return namespaces + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\"") + + public List getNamespaces() { + return namespaces; + } + + + public void setNamespaces(List namespaces) { + this.namespaces = namespaces; + } + + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm topologyKey(String topologyKey) { + + this.topologyKey = topologyKey; + return this; + } + + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + * @return topologyKey + **/ + @ApiModelProperty(required = true, value = "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.") + + public String getTopologyKey() { + return topologyKey; + } + + + public void setTopologyKey(String topologyKey) { + this.topologyKey = topologyKey; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm v1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm = (V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm) o; + return Objects.equals(this.labelSelector, v1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm.labelSelector) && + Objects.equals(this.namespaceSelector, v1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm.namespaceSelector) && + Objects.equals(this.namespaces, v1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm.namespaces) && + Objects.equals(this.topologyKey, v1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm.topologyKey); + } + + @Override + public int hashCode() { + return Objects.hash(labelSelector, namespaceSelector, namespaces, topologyKey); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm {\n"); + sb.append(" labelSelector: ").append(toIndentedString(labelSelector)).append("\n"); + sb.append(" namespaceSelector: ").append(toIndentedString(namespaceSelector)).append("\n"); + sb.append(" namespaces: ").append(toIndentedString(namespaces)).append("\n"); + sb.append(" topologyKey: ").append(toIndentedString(topologyKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector.java new file mode 100644 index 00000000..f5b53ac4 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector.java @@ -0,0 +1,150 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * A label query over a set of resources, in this case pods. + */ +@ApiModel(description = "A label query over a set of resources, in this case pods.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector { + public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; + @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) + private List matchExpressions = null; + + public static final String SERIALIZED_NAME_MATCH_LABELS = "matchLabels"; + @SerializedName(SERIALIZED_NAME_MATCH_LABELS) + private Map matchLabels = null; + + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector matchExpressions(List matchExpressions) { + + this.matchExpressions = matchExpressions; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector addMatchExpressionsItem(V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions matchExpressionsItem) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList<>(); + } + this.matchExpressions.add(matchExpressionsItem); + return this; + } + + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * @return matchExpressions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") + + public List getMatchExpressions() { + return matchExpressions; + } + + + public void setMatchExpressions(List matchExpressions) { + this.matchExpressions = matchExpressions; + } + + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector matchLabels(Map matchLabels) { + + this.matchLabels = matchLabels; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector putMatchLabelsItem(String key, String matchLabelsItem) { + if (this.matchLabels == null) { + this.matchLabels = new HashMap<>(); + } + this.matchLabels.put(key, matchLabelsItem); + return this; + } + + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. + * @return matchLabels + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") + + public Map getMatchLabels() { + return matchLabels; + } + + + public void setMatchLabels(Map matchLabels) { + this.matchLabels = matchLabels; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector v1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector = (V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector) o; + return Objects.equals(this.matchExpressions, v1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector.matchExpressions) && + Objects.equals(this.matchLabels, v1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector.matchLabels); + } + + @Override + public int hashCode() { + return Objects.hash(matchExpressions, matchLabels); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector {\n"); + sb.append(" matchExpressions: ").append(toIndentedString(matchExpressions)).append("\n"); + sb.append(" matchLabels: ").append(toIndentedString(matchLabels)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions.java new file mode 100644 index 00000000..2dd1dee5 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions.java @@ -0,0 +1,166 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + */ +@ApiModel(description = "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_OPERATOR = "operator"; + @SerializedName(SERIALIZED_NAME_OPERATOR) + private String operator; + + public static final String SERIALIZED_NAME_VALUES = "values"; + @SerializedName(SERIALIZED_NAME_VALUES) + private List values = null; + + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions key(String key) { + + this.key = key; + return this; + } + + /** + * key is the label key that the selector applies to. + * @return key + **/ + @ApiModelProperty(required = true, value = "key is the label key that the selector applies to.") + + public String getKey() { + return key; + } + + + public void setKey(String key) { + this.key = key; + } + + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions operator(String operator) { + + this.operator = operator; + return this; + } + + /** + * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * @return operator + **/ + @ApiModelProperty(required = true, value = "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.") + + public String getOperator() { + return operator; + } + + + public void setOperator(String operator) { + this.operator = operator; + } + + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions values(List values) { + + this.values = values; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions addValuesItem(String valuesItem) { + if (this.values == null) { + this.values = new ArrayList<>(); + } + this.values.add(valuesItem); + return this; + } + + /** + * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + * @return values + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.") + + public List getValues() { + return values; + } + + + public void setValues(List values) { + this.values = values; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions v1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions = (V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions) o; + return Objects.equals(this.key, v1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions.key) && + Objects.equals(this.operator, v1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions.operator) && + Objects.equals(this.values, v1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions.values); + } + + @Override + public int hashCode() { + return Objects.hash(key, operator, values); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector.java new file mode 100644 index 00000000..394b4842 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector.java @@ -0,0 +1,150 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled. + */ +@ApiModel(description = "A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector { + public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; + @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) + private List matchExpressions = null; + + public static final String SERIALIZED_NAME_MATCH_LABELS = "matchLabels"; + @SerializedName(SERIALIZED_NAME_MATCH_LABELS) + private Map matchLabels = null; + + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector matchExpressions(List matchExpressions) { + + this.matchExpressions = matchExpressions; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector addMatchExpressionsItem(V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions matchExpressionsItem) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList<>(); + } + this.matchExpressions.add(matchExpressionsItem); + return this; + } + + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * @return matchExpressions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") + + public List getMatchExpressions() { + return matchExpressions; + } + + + public void setMatchExpressions(List matchExpressions) { + this.matchExpressions = matchExpressions; + } + + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector matchLabels(Map matchLabels) { + + this.matchLabels = matchLabels; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector putMatchLabelsItem(String key, String matchLabelsItem) { + if (this.matchLabels == null) { + this.matchLabels = new HashMap<>(); + } + this.matchLabels.put(key, matchLabelsItem); + return this; + } + + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. + * @return matchLabels + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") + + public Map getMatchLabels() { + return matchLabels; + } + + + public void setMatchLabels(Map matchLabels) { + this.matchLabels = matchLabels; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector v1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector = (V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector) o; + return Objects.equals(this.matchExpressions, v1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector.matchExpressions) && + Objects.equals(this.matchLabels, v1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector.matchLabels); + } + + @Override + public int hashCode() { + return Objects.hash(matchExpressions, matchLabels); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector {\n"); + sb.append(" matchExpressions: ").append(toIndentedString(matchExpressions)).append("\n"); + sb.append(" matchLabels: ").append(toIndentedString(matchLabels)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution.java new file mode 100644 index 00000000..a4250c82 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution.java @@ -0,0 +1,128 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) + */ +@ApiModel(description = "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution { + public static final String SERIALIZED_NAME_POD_AFFINITY_TERM = "podAffinityTerm"; + @SerializedName(SERIALIZED_NAME_POD_AFFINITY_TERM) + private V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm podAffinityTerm; + + public static final String SERIALIZED_NAME_WEIGHT = "weight"; + @SerializedName(SERIALIZED_NAME_WEIGHT) + private Integer weight; + + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution podAffinityTerm(V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm podAffinityTerm) { + + this.podAffinityTerm = podAffinityTerm; + return this; + } + + /** + * Get podAffinityTerm + * @return podAffinityTerm + **/ + @ApiModelProperty(required = true, value = "") + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm getPodAffinityTerm() { + return podAffinityTerm; + } + + + public void setPodAffinityTerm(V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTerm podAffinityTerm) { + this.podAffinityTerm = podAffinityTerm; + } + + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution weight(Integer weight) { + + this.weight = weight; + return this; + } + + /** + * weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + * @return weight + **/ + @ApiModelProperty(required = true, value = "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.") + + public Integer getWeight() { + return weight; + } + + + public void setWeight(Integer weight) { + this.weight = weight; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution v1alpha1MinecraftServerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution = (V1alpha1MinecraftServerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution) o; + return Objects.equals(this.podAffinityTerm, v1alpha1MinecraftServerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm) && + Objects.equals(this.weight, v1alpha1MinecraftServerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution.weight); + } + + @Override + public int hashCode() { + return Objects.hash(podAffinityTerm, weight); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution {\n"); + sb.append(" podAffinityTerm: ").append(toIndentedString(podAffinityTerm)).append("\n"); + sb.append(" weight: ").append(toIndentedString(weight)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.java new file mode 100644 index 00000000..a9f75d72 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.java @@ -0,0 +1,198 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running + */ +@ApiModel(description = "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution { + public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; + @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) + private V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector labelSelector; + + public static final String SERIALIZED_NAME_NAMESPACE_SELECTOR = "namespaceSelector"; + @SerializedName(SERIALIZED_NAME_NAMESPACE_SELECTOR) + private V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector namespaceSelector; + + public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; + @SerializedName(SERIALIZED_NAME_NAMESPACES) + private List namespaces = null; + + public static final String SERIALIZED_NAME_TOPOLOGY_KEY = "topologyKey"; + @SerializedName(SERIALIZED_NAME_TOPOLOGY_KEY) + private String topologyKey; + + + public V1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution labelSelector(V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector labelSelector) { + + this.labelSelector = labelSelector; + return this; + } + + /** + * Get labelSelector + * @return labelSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector getLabelSelector() { + return labelSelector; + } + + + public void setLabelSelector(V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermLabelSelector labelSelector) { + this.labelSelector = labelSelector; + } + + + public V1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution namespaceSelector(V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector namespaceSelector) { + + this.namespaceSelector = namespaceSelector; + return this; + } + + /** + * Get namespaceSelector + * @return namespaceSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector getNamespaceSelector() { + return namespaceSelector; + } + + + public void setNamespaceSelector(V1alpha1MinecraftServerSpecAffinityPodAffinityPodAffinityTermNamespaceSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; + } + + + public V1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution namespaces(List namespaces) { + + this.namespaces = namespaces; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution addNamespacesItem(String namespacesItem) { + if (this.namespaces == null) { + this.namespaces = new ArrayList<>(); + } + this.namespaces.add(namespacesItem); + return this; + } + + /** + * namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\" + * @return namespaces + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\"") + + public List getNamespaces() { + return namespaces; + } + + + public void setNamespaces(List namespaces) { + this.namespaces = namespaces; + } + + + public V1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution topologyKey(String topologyKey) { + + this.topologyKey = topologyKey; + return this; + } + + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + * @return topologyKey + **/ + @ApiModelProperty(required = true, value = "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.") + + public String getTopologyKey() { + return topologyKey; + } + + + public void setTopologyKey(String topologyKey) { + this.topologyKey = topologyKey; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution v1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution = (V1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution) o; + return Objects.equals(this.labelSelector, v1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.labelSelector) && + Objects.equals(this.namespaceSelector, v1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.namespaceSelector) && + Objects.equals(this.namespaces, v1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.namespaces) && + Objects.equals(this.topologyKey, v1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.topologyKey); + } + + @Override + public int hashCode() { + return Objects.hash(labelSelector, namespaceSelector, namespaces, topologyKey); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution {\n"); + sb.append(" labelSelector: ").append(toIndentedString(labelSelector)).append("\n"); + sb.append(" namespaceSelector: ").append(toIndentedString(namespaceSelector)).append("\n"); + sb.append(" namespaces: ").append(toIndentedString(namespaces)).append("\n"); + sb.append(" topologyKey: ").append(toIndentedString(topologyKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAntiAffinity.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAntiAffinity.java new file mode 100644 index 00000000..9b5c09e4 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecAffinityPodAntiAffinity.java @@ -0,0 +1,149 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution; +import io.shulkermc.models.V1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + */ +@ApiModel(description = "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecAffinityPodAntiAffinity { + public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + private List preferredDuringSchedulingIgnoredDuringExecution = null; + + public static final String SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "requiredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + private List requiredDuringSchedulingIgnoredDuringExecution = null; + + + public V1alpha1MinecraftServerSpecAffinityPodAntiAffinity preferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityPodAntiAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem(V1alpha1MinecraftServerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution preferredDuringSchedulingIgnoredDuringExecutionItem) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); + } + this.preferredDuringSchedulingIgnoredDuringExecution.add(preferredDuringSchedulingIgnoredDuringExecutionItem); + return this; + } + + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * @return preferredDuringSchedulingIgnoredDuringExecution + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.") + + public List getPreferredDuringSchedulingIgnoredDuringExecution() { + return preferredDuringSchedulingIgnoredDuringExecution; + } + + + public void setPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + } + + + public V1alpha1MinecraftServerSpecAffinityPodAntiAffinity requiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { + + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + return this; + } + + public V1alpha1MinecraftServerSpecAffinityPodAntiAffinity addRequiredDuringSchedulingIgnoredDuringExecutionItem(V1alpha1MinecraftServerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution requiredDuringSchedulingIgnoredDuringExecutionItem) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); + } + this.requiredDuringSchedulingIgnoredDuringExecution.add(requiredDuringSchedulingIgnoredDuringExecutionItem); + return this; + } + + /** + * If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + * @return requiredDuringSchedulingIgnoredDuringExecution + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.") + + public List getRequiredDuringSchedulingIgnoredDuringExecution() { + return requiredDuringSchedulingIgnoredDuringExecution; + } + + + public void setRequiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecAffinityPodAntiAffinity v1alpha1MinecraftServerSpecAffinityPodAntiAffinity = (V1alpha1MinecraftServerSpecAffinityPodAntiAffinity) o; + return Objects.equals(this.preferredDuringSchedulingIgnoredDuringExecution, v1alpha1MinecraftServerSpecAffinityPodAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution) && + Objects.equals(this.requiredDuringSchedulingIgnoredDuringExecution, v1alpha1MinecraftServerSpecAffinityPodAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution); + } + + @Override + public int hashCode() { + return Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecAffinityPodAntiAffinity {\n"); + sb.append(" preferredDuringSchedulingIgnoredDuringExecution: ").append(toIndentedString(preferredDuringSchedulingIgnoredDuringExecution)).append("\n"); + sb.append(" requiredDuringSchedulingIgnoredDuringExecution: ").append(toIndentedString(requiredDuringSchedulingIgnoredDuringExecution)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecMinecraftClusterRef.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecMinecraftClusterRef.java new file mode 100644 index 00000000..3dceb767 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecMinecraftClusterRef.java @@ -0,0 +1,100 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Reference to a Minecraft Cluster. Adding this will enroll this Minecraft Server to be part of a Minecraft Cluster. + */ +@ApiModel(description = "Reference to a Minecraft Cluster. Adding this will enroll this Minecraft Server to be part of a Minecraft Cluster.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecMinecraftClusterRef { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + + public V1alpha1MinecraftServerSpecMinecraftClusterRef name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the Minecraft Cluster. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Name of the Minecraft Cluster.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecMinecraftClusterRef v1alpha1MinecraftServerSpecMinecraftClusterRef = (V1alpha1MinecraftServerSpecMinecraftClusterRef) o; + return Objects.equals(this.name, v1alpha1MinecraftServerSpecMinecraftClusterRef.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecMinecraftClusterRef {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverrides.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverrides.java new file mode 100644 index 00000000..76a0c023 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverrides.java @@ -0,0 +1,200 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerSpecPodOverridesEnv; +import io.shulkermc.models.V1alpha1MinecraftServerSpecPodOverridesLivenessProbe; +import io.shulkermc.models.V1alpha1MinecraftServerSpecPodOverridesReadinessProbe; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Overrides configuration for the Minecraft Server pod. + */ +@ApiModel(description = "Overrides configuration for the Minecraft Server pod.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecPodOverrides { + public static final String SERIALIZED_NAME_ENV = "env"; + @SerializedName(SERIALIZED_NAME_ENV) + private List env = null; + + public static final String SERIALIZED_NAME_LIVENESS_PROBE = "livenessProbe"; + @SerializedName(SERIALIZED_NAME_LIVENESS_PROBE) + private V1alpha1MinecraftServerSpecPodOverridesLivenessProbe livenessProbe; + + public static final String SERIALIZED_NAME_READINESS_PROBE = "readinessProbe"; + @SerializedName(SERIALIZED_NAME_READINESS_PROBE) + private V1alpha1MinecraftServerSpecPodOverridesReadinessProbe readinessProbe; + + public static final String SERIALIZED_NAME_TERMINATION_GRACE_PERIOD_SECONDS = "terminationGracePeriodSeconds"; + @SerializedName(SERIALIZED_NAME_TERMINATION_GRACE_PERIOD_SECONDS) + private Long terminationGracePeriodSeconds; + + + public V1alpha1MinecraftServerSpecPodOverrides env(List env) { + + this.env = env; + return this; + } + + public V1alpha1MinecraftServerSpecPodOverrides addEnvItem(V1alpha1MinecraftServerSpecPodOverridesEnv envItem) { + if (this.env == null) { + this.env = new ArrayList<>(); + } + this.env.add(envItem); + return this; + } + + /** + * Additional environment variables to add to the Minecraft Server. + * @return env + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Additional environment variables to add to the Minecraft Server.") + + public List getEnv() { + return env; + } + + + public void setEnv(List env) { + this.env = env; + } + + + public V1alpha1MinecraftServerSpecPodOverrides livenessProbe(V1alpha1MinecraftServerSpecPodOverridesLivenessProbe livenessProbe) { + + this.livenessProbe = livenessProbe; + return this; + } + + /** + * Get livenessProbe + * @return livenessProbe + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecPodOverridesLivenessProbe getLivenessProbe() { + return livenessProbe; + } + + + public void setLivenessProbe(V1alpha1MinecraftServerSpecPodOverridesLivenessProbe livenessProbe) { + this.livenessProbe = livenessProbe; + } + + + public V1alpha1MinecraftServerSpecPodOverrides readinessProbe(V1alpha1MinecraftServerSpecPodOverridesReadinessProbe readinessProbe) { + + this.readinessProbe = readinessProbe; + return this; + } + + /** + * Get readinessProbe + * @return readinessProbe + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecPodOverridesReadinessProbe getReadinessProbe() { + return readinessProbe; + } + + + public void setReadinessProbe(V1alpha1MinecraftServerSpecPodOverridesReadinessProbe readinessProbe) { + this.readinessProbe = readinessProbe; + } + + + public V1alpha1MinecraftServerSpecPodOverrides terminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { + + this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; + return this; + } + + /** + * Number of seconds before force killing the pod after a graceful termination request. Defaults to 1 minute. + * @return terminationGracePeriodSeconds + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Number of seconds before force killing the pod after a graceful termination request. Defaults to 1 minute.") + + public Long getTerminationGracePeriodSeconds() { + return terminationGracePeriodSeconds; + } + + + public void setTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { + this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecPodOverrides v1alpha1MinecraftServerSpecPodOverrides = (V1alpha1MinecraftServerSpecPodOverrides) o; + return Objects.equals(this.env, v1alpha1MinecraftServerSpecPodOverrides.env) && + Objects.equals(this.livenessProbe, v1alpha1MinecraftServerSpecPodOverrides.livenessProbe) && + Objects.equals(this.readinessProbe, v1alpha1MinecraftServerSpecPodOverrides.readinessProbe) && + Objects.equals(this.terminationGracePeriodSeconds, v1alpha1MinecraftServerSpecPodOverrides.terminationGracePeriodSeconds); + } + + @Override + public int hashCode() { + return Objects.hash(env, livenessProbe, readinessProbe, terminationGracePeriodSeconds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecPodOverrides {\n"); + sb.append(" env: ").append(toIndentedString(env)).append("\n"); + sb.append(" livenessProbe: ").append(toIndentedString(livenessProbe)).append("\n"); + sb.append(" readinessProbe: ").append(toIndentedString(readinessProbe)).append("\n"); + sb.append(" terminationGracePeriodSeconds: ").append(toIndentedString(terminationGracePeriodSeconds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesEnv.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesEnv.java new file mode 100644 index 00000000..58d57622 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesEnv.java @@ -0,0 +1,158 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerSpecPodOverridesValueFrom; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * EnvVar represents an environment variable present in a Container. + */ +@ApiModel(description = "EnvVar represents an environment variable present in a Container.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecPodOverridesEnv { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private String value; + + public static final String SERIALIZED_NAME_VALUE_FROM = "valueFrom"; + @SerializedName(SERIALIZED_NAME_VALUE_FROM) + private V1alpha1MinecraftServerSpecPodOverridesValueFrom valueFrom; + + + public V1alpha1MinecraftServerSpecPodOverridesEnv name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the environment variable. Must be a C_IDENTIFIER. + * @return name + **/ + @ApiModelProperty(required = true, value = "Name of the environment variable. Must be a C_IDENTIFIER.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public V1alpha1MinecraftServerSpecPodOverridesEnv value(String value) { + + this.value = value; + return this; + } + + /** + * Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". + * @return value + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".") + + public String getValue() { + return value; + } + + + public void setValue(String value) { + this.value = value; + } + + + public V1alpha1MinecraftServerSpecPodOverridesEnv valueFrom(V1alpha1MinecraftServerSpecPodOverridesValueFrom valueFrom) { + + this.valueFrom = valueFrom; + return this; + } + + /** + * Get valueFrom + * @return valueFrom + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecPodOverridesValueFrom getValueFrom() { + return valueFrom; + } + + + public void setValueFrom(V1alpha1MinecraftServerSpecPodOverridesValueFrom valueFrom) { + this.valueFrom = valueFrom; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecPodOverridesEnv v1alpha1MinecraftServerSpecPodOverridesEnv = (V1alpha1MinecraftServerSpecPodOverridesEnv) o; + return Objects.equals(this.name, v1alpha1MinecraftServerSpecPodOverridesEnv.name) && + Objects.equals(this.value, v1alpha1MinecraftServerSpecPodOverridesEnv.value) && + Objects.equals(this.valueFrom, v1alpha1MinecraftServerSpecPodOverridesEnv.valueFrom); + } + + @Override + public int hashCode() { + return Objects.hash(name, value, valueFrom); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecPodOverridesEnv {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" valueFrom: ").append(toIndentedString(valueFrom)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesLivenessProbe.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesLivenessProbe.java new file mode 100644 index 00000000..cd29f5c1 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesLivenessProbe.java @@ -0,0 +1,100 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Overrides for the liveness probe of the Minecraft Server. + */ +@ApiModel(description = "Overrides for the liveness probe of the Minecraft Server.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecPodOverridesLivenessProbe { + public static final String SERIALIZED_NAME_INITIAL_DELAY_SECONDS = "initialDelaySeconds"; + @SerializedName(SERIALIZED_NAME_INITIAL_DELAY_SECONDS) + private Integer initialDelaySeconds; + + + public V1alpha1MinecraftServerSpecPodOverridesLivenessProbe initialDelaySeconds(Integer initialDelaySeconds) { + + this.initialDelaySeconds = initialDelaySeconds; + return this; + } + + /** + * Number of seconds before starting to perform the probe. Depending on the server configuration, one can take more time than another to be ready. Defaults to 1 minute. + * @return initialDelaySeconds + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Number of seconds before starting to perform the probe. Depending on the server configuration, one can take more time than another to be ready. Defaults to 1 minute.") + + public Integer getInitialDelaySeconds() { + return initialDelaySeconds; + } + + + public void setInitialDelaySeconds(Integer initialDelaySeconds) { + this.initialDelaySeconds = initialDelaySeconds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecPodOverridesLivenessProbe v1alpha1MinecraftServerSpecPodOverridesLivenessProbe = (V1alpha1MinecraftServerSpecPodOverridesLivenessProbe) o; + return Objects.equals(this.initialDelaySeconds, v1alpha1MinecraftServerSpecPodOverridesLivenessProbe.initialDelaySeconds); + } + + @Override + public int hashCode() { + return Objects.hash(initialDelaySeconds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecPodOverridesLivenessProbe {\n"); + sb.append(" initialDelaySeconds: ").append(toIndentedString(initialDelaySeconds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesReadinessProbe.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesReadinessProbe.java new file mode 100644 index 00000000..90cc0b86 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesReadinessProbe.java @@ -0,0 +1,100 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Overrides for the readiness probe of the Minecraft Server. + */ +@ApiModel(description = "Overrides for the readiness probe of the Minecraft Server.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecPodOverridesReadinessProbe { + public static final String SERIALIZED_NAME_INITIAL_DELAY_SECONDS = "initialDelaySeconds"; + @SerializedName(SERIALIZED_NAME_INITIAL_DELAY_SECONDS) + private Integer initialDelaySeconds; + + + public V1alpha1MinecraftServerSpecPodOverridesReadinessProbe initialDelaySeconds(Integer initialDelaySeconds) { + + this.initialDelaySeconds = initialDelaySeconds; + return this; + } + + /** + * Number of seconds before starting to perform the probe. Depending on the server configuration, one can take more time than another to be ready. Defaults to 1 minute. + * @return initialDelaySeconds + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Number of seconds before starting to perform the probe. Depending on the server configuration, one can take more time than another to be ready. Defaults to 1 minute.") + + public Integer getInitialDelaySeconds() { + return initialDelaySeconds; + } + + + public void setInitialDelaySeconds(Integer initialDelaySeconds) { + this.initialDelaySeconds = initialDelaySeconds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecPodOverridesReadinessProbe v1alpha1MinecraftServerSpecPodOverridesReadinessProbe = (V1alpha1MinecraftServerSpecPodOverridesReadinessProbe) o; + return Objects.equals(this.initialDelaySeconds, v1alpha1MinecraftServerSpecPodOverridesReadinessProbe.initialDelaySeconds); + } + + @Override + public int hashCode() { + return Objects.hash(initialDelaySeconds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecPodOverridesReadinessProbe {\n"); + sb.append(" initialDelaySeconds: ").append(toIndentedString(initialDelaySeconds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesValueFrom.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesValueFrom.java new file mode 100644 index 00000000..95b52a81 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesValueFrom.java @@ -0,0 +1,191 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef; +import io.shulkermc.models.V1alpha1MinecraftServerSpecPodOverridesValueFromFieldRef; +import io.shulkermc.models.V1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef; +import io.shulkermc.models.V1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Source for the environment variable's value. Cannot be used if value is not empty. + */ +@ApiModel(description = "Source for the environment variable's value. Cannot be used if value is not empty.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecPodOverridesValueFrom { + public static final String SERIALIZED_NAME_CONFIG_MAP_KEY_REF = "configMapKeyRef"; + @SerializedName(SERIALIZED_NAME_CONFIG_MAP_KEY_REF) + private V1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef configMapKeyRef; + + public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; + @SerializedName(SERIALIZED_NAME_FIELD_REF) + private V1alpha1MinecraftServerSpecPodOverridesValueFromFieldRef fieldRef; + + public static final String SERIALIZED_NAME_RESOURCE_FIELD_REF = "resourceFieldRef"; + @SerializedName(SERIALIZED_NAME_RESOURCE_FIELD_REF) + private V1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef resourceFieldRef; + + public static final String SERIALIZED_NAME_SECRET_KEY_REF = "secretKeyRef"; + @SerializedName(SERIALIZED_NAME_SECRET_KEY_REF) + private V1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef secretKeyRef; + + + public V1alpha1MinecraftServerSpecPodOverridesValueFrom configMapKeyRef(V1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef configMapKeyRef) { + + this.configMapKeyRef = configMapKeyRef; + return this; + } + + /** + * Get configMapKeyRef + * @return configMapKeyRef + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef getConfigMapKeyRef() { + return configMapKeyRef; + } + + + public void setConfigMapKeyRef(V1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef configMapKeyRef) { + this.configMapKeyRef = configMapKeyRef; + } + + + public V1alpha1MinecraftServerSpecPodOverridesValueFrom fieldRef(V1alpha1MinecraftServerSpecPodOverridesValueFromFieldRef fieldRef) { + + this.fieldRef = fieldRef; + return this; + } + + /** + * Get fieldRef + * @return fieldRef + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecPodOverridesValueFromFieldRef getFieldRef() { + return fieldRef; + } + + + public void setFieldRef(V1alpha1MinecraftServerSpecPodOverridesValueFromFieldRef fieldRef) { + this.fieldRef = fieldRef; + } + + + public V1alpha1MinecraftServerSpecPodOverridesValueFrom resourceFieldRef(V1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef resourceFieldRef) { + + this.resourceFieldRef = resourceFieldRef; + return this; + } + + /** + * Get resourceFieldRef + * @return resourceFieldRef + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef getResourceFieldRef() { + return resourceFieldRef; + } + + + public void setResourceFieldRef(V1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef resourceFieldRef) { + this.resourceFieldRef = resourceFieldRef; + } + + + public V1alpha1MinecraftServerSpecPodOverridesValueFrom secretKeyRef(V1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef secretKeyRef) { + + this.secretKeyRef = secretKeyRef; + return this; + } + + /** + * Get secretKeyRef + * @return secretKeyRef + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef getSecretKeyRef() { + return secretKeyRef; + } + + + public void setSecretKeyRef(V1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef secretKeyRef) { + this.secretKeyRef = secretKeyRef; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecPodOverridesValueFrom v1alpha1MinecraftServerSpecPodOverridesValueFrom = (V1alpha1MinecraftServerSpecPodOverridesValueFrom) o; + return Objects.equals(this.configMapKeyRef, v1alpha1MinecraftServerSpecPodOverridesValueFrom.configMapKeyRef) && + Objects.equals(this.fieldRef, v1alpha1MinecraftServerSpecPodOverridesValueFrom.fieldRef) && + Objects.equals(this.resourceFieldRef, v1alpha1MinecraftServerSpecPodOverridesValueFrom.resourceFieldRef) && + Objects.equals(this.secretKeyRef, v1alpha1MinecraftServerSpecPodOverridesValueFrom.secretKeyRef); + } + + @Override + public int hashCode() { + return Objects.hash(configMapKeyRef, fieldRef, resourceFieldRef, secretKeyRef); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecPodOverridesValueFrom {\n"); + sb.append(" configMapKeyRef: ").append(toIndentedString(configMapKeyRef)).append("\n"); + sb.append(" fieldRef: ").append(toIndentedString(fieldRef)).append("\n"); + sb.append(" resourceFieldRef: ").append(toIndentedString(resourceFieldRef)).append("\n"); + sb.append(" secretKeyRef: ").append(toIndentedString(secretKeyRef)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef.java new file mode 100644 index 00000000..dcf0f8cf --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef.java @@ -0,0 +1,157 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Selects a key of a ConfigMap. + */ +@ApiModel(description = "Selects a key of a ConfigMap.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_OPTIONAL = "optional"; + @SerializedName(SERIALIZED_NAME_OPTIONAL) + private Boolean optional; + + + public V1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef key(String key) { + + this.key = key; + return this; + } + + /** + * The key to select. + * @return key + **/ + @ApiModelProperty(required = true, value = "The key to select.") + + public String getKey() { + return key; + } + + + public void setKey(String key) { + this.key = key; + } + + + public V1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid? + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public V1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef optional(Boolean optional) { + + this.optional = optional; + return this; + } + + /** + * Specify whether the ConfigMap or its key must be defined + * @return optional + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Specify whether the ConfigMap or its key must be defined") + + public Boolean getOptional() { + return optional; + } + + + public void setOptional(Boolean optional) { + this.optional = optional; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef v1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef = (V1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef) o; + return Objects.equals(this.key, v1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef.key) && + Objects.equals(this.name, v1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef.name) && + Objects.equals(this.optional, v1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef.optional); + } + + @Override + public int hashCode() { + return Objects.hash(key, name, optional); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecPodOverridesValueFromConfigMapKeyRef {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesValueFromFieldRef.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesValueFromFieldRef.java new file mode 100644 index 00000000..8f72aecd --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesValueFromFieldRef.java @@ -0,0 +1,128 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. + */ +@ApiModel(description = "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecPodOverridesValueFromFieldRef { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_FIELD_PATH = "fieldPath"; + @SerializedName(SERIALIZED_NAME_FIELD_PATH) + private String fieldPath; + + + public V1alpha1MinecraftServerSpecPodOverridesValueFromFieldRef apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * Version of the schema the FieldPath is written in terms of, defaults to \"v1\". + * @return apiVersion + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".") + + public String getApiVersion() { + return apiVersion; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha1MinecraftServerSpecPodOverridesValueFromFieldRef fieldPath(String fieldPath) { + + this.fieldPath = fieldPath; + return this; + } + + /** + * Path of the field to select in the specified API version. + * @return fieldPath + **/ + @ApiModelProperty(required = true, value = "Path of the field to select in the specified API version.") + + public String getFieldPath() { + return fieldPath; + } + + + public void setFieldPath(String fieldPath) { + this.fieldPath = fieldPath; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecPodOverridesValueFromFieldRef v1alpha1MinecraftServerSpecPodOverridesValueFromFieldRef = (V1alpha1MinecraftServerSpecPodOverridesValueFromFieldRef) o; + return Objects.equals(this.apiVersion, v1alpha1MinecraftServerSpecPodOverridesValueFromFieldRef.apiVersion) && + Objects.equals(this.fieldPath, v1alpha1MinecraftServerSpecPodOverridesValueFromFieldRef.fieldPath); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, fieldPath); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecPodOverridesValueFromFieldRef {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" fieldPath: ").append(toIndentedString(fieldPath)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef.java new file mode 100644 index 00000000..0c4f2299 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef.java @@ -0,0 +1,157 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + */ +@ApiModel(description = "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef { + public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; + @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) + private String containerName; + + public static final String SERIALIZED_NAME_DIVISOR = "divisor"; + @SerializedName(SERIALIZED_NAME_DIVISOR) + private Object divisor; + + public static final String SERIALIZED_NAME_RESOURCE = "resource"; + @SerializedName(SERIALIZED_NAME_RESOURCE) + private String resource; + + + public V1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef containerName(String containerName) { + + this.containerName = containerName; + return this; + } + + /** + * Container name: required for volumes, optional for env vars + * @return containerName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Container name: required for volumes, optional for env vars") + + public String getContainerName() { + return containerName; + } + + + public void setContainerName(String containerName) { + this.containerName = containerName; + } + + + public V1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef divisor(Object divisor) { + + this.divisor = divisor; + return this; + } + + /** + * Specifies the output format of the exposed resources, defaults to \"1\" + * @return divisor + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Specifies the output format of the exposed resources, defaults to \"1\"") + + public Object getDivisor() { + return divisor; + } + + + public void setDivisor(Object divisor) { + this.divisor = divisor; + } + + + public V1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef resource(String resource) { + + this.resource = resource; + return this; + } + + /** + * Required: resource to select + * @return resource + **/ + @ApiModelProperty(required = true, value = "Required: resource to select") + + public String getResource() { + return resource; + } + + + public void setResource(String resource) { + this.resource = resource; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef v1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef = (V1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef) o; + return Objects.equals(this.containerName, v1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef.containerName) && + Objects.equals(this.divisor, v1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef.divisor) && + Objects.equals(this.resource, v1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef.resource); + } + + @Override + public int hashCode() { + return Objects.hash(containerName, divisor, resource); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecPodOverridesValueFromResourceFieldRef {\n"); + sb.append(" containerName: ").append(toIndentedString(containerName)).append("\n"); + sb.append(" divisor: ").append(toIndentedString(divisor)).append("\n"); + sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef.java new file mode 100644 index 00000000..b7e41ed3 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef.java @@ -0,0 +1,157 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Selects a key of a secret in the pod's namespace + */ +@ApiModel(description = "Selects a key of a secret in the pod's namespace") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_OPTIONAL = "optional"; + @SerializedName(SERIALIZED_NAME_OPTIONAL) + private Boolean optional; + + + public V1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef key(String key) { + + this.key = key; + return this; + } + + /** + * The key of the secret to select from. Must be a valid secret key. + * @return key + **/ + @ApiModelProperty(required = true, value = "The key of the secret to select from. Must be a valid secret key.") + + public String getKey() { + return key; + } + + + public void setKey(String key) { + this.key = key; + } + + + public V1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid? + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public V1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef optional(Boolean optional) { + + this.optional = optional; + return this; + } + + /** + * Specify whether the Secret or its key must be defined + * @return optional + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") + + public Boolean getOptional() { + return optional; + } + + + public void setOptional(Boolean optional) { + this.optional = optional; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef v1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef = (V1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef) o; + return Objects.equals(this.key, v1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef.key) && + Objects.equals(this.name, v1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef.name) && + Objects.equals(this.optional, v1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef.optional); + } + + @Override + public int hashCode() { + return Objects.hash(key, name, optional); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecPodOverridesValueFromSecretKeyRef {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecRcon.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecRcon.java new file mode 100644 index 00000000..a295059c --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecRcon.java @@ -0,0 +1,129 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Configuration of Minecraft Server's rcon. + */ +@ApiModel(description = "Configuration of Minecraft Server's rcon.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecRcon { + public static final String SERIALIZED_NAME_ENABLED = "enabled"; + @SerializedName(SERIALIZED_NAME_ENABLED) + private Boolean enabled; + + public static final String SERIALIZED_NAME_PASSWORD_SECRET_NAME = "passwordSecretName"; + @SerializedName(SERIALIZED_NAME_PASSWORD_SECRET_NAME) + private String passwordSecretName; + + + public V1alpha1MinecraftServerSpecRcon enabled(Boolean enabled) { + + this.enabled = enabled; + return this; + } + + /** + * Whether to enable rcon. + * @return enabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Whether to enable rcon.") + + public Boolean getEnabled() { + return enabled; + } + + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + + public V1alpha1MinecraftServerSpecRcon passwordSecretName(String passwordSecretName) { + + this.passwordSecretName = passwordSecretName; + return this; + } + + /** + * Name of a Kubernetes Secret containing a `password` key to use as rcon password. If not provided, a Secret will be created dedicated to this Minecraft Server. + * @return passwordSecretName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Name of a Kubernetes Secret containing a `password` key to use as rcon password. If not provided, a Secret will be created dedicated to this Minecraft Server.") + + public String getPasswordSecretName() { + return passwordSecretName; + } + + + public void setPasswordSecretName(String passwordSecretName) { + this.passwordSecretName = passwordSecretName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecRcon v1alpha1MinecraftServerSpecRcon = (V1alpha1MinecraftServerSpecRcon) o; + return Objects.equals(this.enabled, v1alpha1MinecraftServerSpecRcon.enabled) && + Objects.equals(this.passwordSecretName, v1alpha1MinecraftServerSpecRcon.passwordSecretName); + } + + @Override + public int hashCode() { + return Objects.hash(enabled, passwordSecretName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecRcon {\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" passwordSecretName: ").append(toIndentedString(passwordSecretName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecResources.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecResources.java new file mode 100644 index 00000000..c1e3c511 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecResources.java @@ -0,0 +1,148 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * The desired compute resource requirements of Pods in the Minecraft Server. + */ +@ApiModel(description = "The desired compute resource requirements of Pods in the Minecraft Server.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecResources { + public static final String SERIALIZED_NAME_LIMITS = "limits"; + @SerializedName(SERIALIZED_NAME_LIMITS) + private Map limits = null; + + public static final String SERIALIZED_NAME_REQUESTS = "requests"; + @SerializedName(SERIALIZED_NAME_REQUESTS) + private Map requests = null; + + + public V1alpha1MinecraftServerSpecResources limits(Map limits) { + + this.limits = limits; + return this; + } + + public V1alpha1MinecraftServerSpecResources putLimitsItem(String key, Object limitsItem) { + if (this.limits == null) { + this.limits = new HashMap<>(); + } + this.limits.put(key, limitsItem); + return this; + } + + /** + * Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * @return limits + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/") + + public Map getLimits() { + return limits; + } + + + public void setLimits(Map limits) { + this.limits = limits; + } + + + public V1alpha1MinecraftServerSpecResources requests(Map requests) { + + this.requests = requests; + return this; + } + + public V1alpha1MinecraftServerSpecResources putRequestsItem(String key, Object requestsItem) { + if (this.requests == null) { + this.requests = new HashMap<>(); + } + this.requests.put(key, requestsItem); + return this; + } + + /** + * Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * @return requests + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/") + + public Map getRequests() { + return requests; + } + + + public void setRequests(Map requests) { + this.requests = requests; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecResources v1alpha1MinecraftServerSpecResources = (V1alpha1MinecraftServerSpecResources) o; + return Objects.equals(this.limits, v1alpha1MinecraftServerSpecResources.limits) && + Objects.equals(this.requests, v1alpha1MinecraftServerSpecResources.requests); + } + + @Override + public int hashCode() { + return Objects.hash(limits, requests); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecResources {\n"); + sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); + sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecService.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecService.java new file mode 100644 index 00000000..ddc682b6 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecService.java @@ -0,0 +1,247 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * The desired state of the Kubernetes Service to create for the Minecraft Server. + */ +@ApiModel(description = "The desired state of the Kubernetes Service to create for the Minecraft Server.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecService { + public static final String SERIALIZED_NAME_ANNOTATIONS = "annotations"; + @SerializedName(SERIALIZED_NAME_ANNOTATIONS) + private Map annotations = null; + + public static final String SERIALIZED_NAME_ENABLED = "enabled"; + @SerializedName(SERIALIZED_NAME_ENABLED) + private Boolean enabled; + + public static final String SERIALIZED_NAME_EXPOSES_RCON_PORT = "exposesRconPort"; + @SerializedName(SERIALIZED_NAME_EXPOSES_RCON_PORT) + private Boolean exposesRconPort; + + /** + * Type of Service to create. Must be one of: ClusterIP, LoadBalancer, NodePort. More info: https://pkg.go.dev/k8s.io/api/core/v1#ServiceType + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + CLUSTERIP("ClusterIP"), + + LOADBALANCER("LoadBalancer"), + + NODEPORT("NodePort"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + + public V1alpha1MinecraftServerSpecService annotations(Map annotations) { + + this.annotations = annotations; + return this; + } + + public V1alpha1MinecraftServerSpecService putAnnotationsItem(String key, String annotationsItem) { + if (this.annotations == null) { + this.annotations = new HashMap<>(); + } + this.annotations.put(key, annotationsItem); + return this; + } + + /** + * Annotations to add to the Service. + * @return annotations + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Annotations to add to the Service.") + + public Map getAnnotations() { + return annotations; + } + + + public void setAnnotations(Map annotations) { + this.annotations = annotations; + } + + + public V1alpha1MinecraftServerSpecService enabled(Boolean enabled) { + + this.enabled = enabled; + return this; + } + + /** + * Whether to create a Service for the Minecraft Server. Defaults to false. + * @return enabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Whether to create a Service for the Minecraft Server. Defaults to false.") + + public Boolean getEnabled() { + return enabled; + } + + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + + public V1alpha1MinecraftServerSpecService exposesRconPort(Boolean exposesRconPort) { + + this.exposesRconPort = exposesRconPort; + return this; + } + + /** + * Wether to expose the rcon port or not to the Service. + * @return exposesRconPort + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Wether to expose the rcon port or not to the Service.") + + public Boolean getExposesRconPort() { + return exposesRconPort; + } + + + public void setExposesRconPort(Boolean exposesRconPort) { + this.exposesRconPort = exposesRconPort; + } + + + public V1alpha1MinecraftServerSpecService type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Type of Service to create. Must be one of: ClusterIP, LoadBalancer, NodePort. More info: https://pkg.go.dev/k8s.io/api/core/v1#ServiceType + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Type of Service to create. Must be one of: ClusterIP, LoadBalancer, NodePort. More info: https://pkg.go.dev/k8s.io/api/core/v1#ServiceType") + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecService v1alpha1MinecraftServerSpecService = (V1alpha1MinecraftServerSpecService) o; + return Objects.equals(this.annotations, v1alpha1MinecraftServerSpecService.annotations) && + Objects.equals(this.enabled, v1alpha1MinecraftServerSpecService.enabled) && + Objects.equals(this.exposesRconPort, v1alpha1MinecraftServerSpecService.exposesRconPort) && + Objects.equals(this.type, v1alpha1MinecraftServerSpecService.type); + } + + @Override + public int hashCode() { + return Objects.hash(annotations, enabled, exposesRconPort, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecService {\n"); + sb.append(" annotations: ").append(toIndentedString(annotations)).append("\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" exposesRconPort: ").append(toIndentedString(exposesRconPort)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecVersion.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecVersion.java new file mode 100644 index 00000000..76de276e --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecVersion.java @@ -0,0 +1,201 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Version the Minecraft Server has to run. + */ +@ApiModel(description = "Version the Minecraft Server has to run.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecVersion { + /** + * Channel of the version to use. Defaults to Vanilla meaning that the server will run Mojang's official dedicated server. + */ + @JsonAdapter(ChannelEnum.Adapter.class) + public enum ChannelEnum { + VANILLA("Vanilla"), + + FORGE("Forge"), + + FABRIC("Fabric"), + + SPIGOT("Spigot"), + + PAPER("Paper"), + + AIRPLANE("Airplane"), + + PUFFERFISH("Pufferfish"), + + PURPUR("Purpur"), + + MAGMA("Magma"), + + MOHIST("Mohist"), + + CATSERVER("Catserver"), + + CANYON("Canyon"), + + SPONGEVANILLA("SpongeVanilla"), + + LIMBO("Limbo"), + + CRUCIBLE("Crucible"); + + private String value; + + ChannelEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ChannelEnum fromValue(String value) { + for (ChannelEnum b : ChannelEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ChannelEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ChannelEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ChannelEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CHANNEL = "channel"; + @SerializedName(SERIALIZED_NAME_CHANNEL) + private ChannelEnum channel; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + + public V1alpha1MinecraftServerSpecVersion channel(ChannelEnum channel) { + + this.channel = channel; + return this; + } + + /** + * Channel of the version to use. Defaults to Vanilla meaning that the server will run Mojang's official dedicated server. + * @return channel + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Channel of the version to use. Defaults to Vanilla meaning that the server will run Mojang's official dedicated server.") + + public ChannelEnum getChannel() { + return channel; + } + + + public void setChannel(ChannelEnum channel) { + this.channel = channel; + } + + + public V1alpha1MinecraftServerSpecVersion name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the version to use. + * @return name + **/ + @ApiModelProperty(required = true, value = "Name of the version to use.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecVersion v1alpha1MinecraftServerSpecVersion = (V1alpha1MinecraftServerSpecVersion) o; + return Objects.equals(this.channel, v1alpha1MinecraftServerSpecVersion.channel) && + Objects.equals(this.name, v1alpha1MinecraftServerSpecVersion.name); + } + + @Override + public int hashCode() { + return Objects.hash(channel, name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecVersion {\n"); + sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecWorld.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecWorld.java new file mode 100644 index 00000000..44c78177 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerSpecWorld.java @@ -0,0 +1,158 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * URL to a downloadable world archive. + */ +@ApiModel(description = "URL to a downloadable world archive.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerSpecWorld { + public static final String SERIALIZED_NAME_DISABLE_END = "disableEnd"; + @SerializedName(SERIALIZED_NAME_DISABLE_END) + private Boolean disableEnd; + + public static final String SERIALIZED_NAME_DISABLE_NETHER = "disableNether"; + @SerializedName(SERIALIZED_NAME_DISABLE_NETHER) + private Boolean disableNether; + + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + private String url; + + + public V1alpha1MinecraftServerSpecWorld disableEnd(Boolean disableEnd) { + + this.disableEnd = disableEnd; + return this; + } + + /** + * Whether to allow the Minecraft Server to generate a End world and the players to enter it. + * @return disableEnd + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Whether to allow the Minecraft Server to generate a End world and the players to enter it.") + + public Boolean getDisableEnd() { + return disableEnd; + } + + + public void setDisableEnd(Boolean disableEnd) { + this.disableEnd = disableEnd; + } + + + public V1alpha1MinecraftServerSpecWorld disableNether(Boolean disableNether) { + + this.disableNether = disableNether; + return this; + } + + /** + * Whether to allow the Minecraft Server to generate a Nether world and the players to enter it. + * @return disableNether + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Whether to allow the Minecraft Server to generate a Nether world and the players to enter it.") + + public Boolean getDisableNether() { + return disableNether; + } + + + public void setDisableNether(Boolean disableNether) { + this.disableNether = disableNether; + } + + + public V1alpha1MinecraftServerSpecWorld url(String url) { + + this.url = url; + return this; + } + + /** + * URL to a downloable world. + * @return url + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "URL to a downloable world.") + + public String getUrl() { + return url; + } + + + public void setUrl(String url) { + this.url = url; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerSpecWorld v1alpha1MinecraftServerSpecWorld = (V1alpha1MinecraftServerSpecWorld) o; + return Objects.equals(this.disableEnd, v1alpha1MinecraftServerSpecWorld.disableEnd) && + Objects.equals(this.disableNether, v1alpha1MinecraftServerSpecWorld.disableNether) && + Objects.equals(this.url, v1alpha1MinecraftServerSpecWorld.url); + } + + @Override + public int hashCode() { + return Objects.hash(disableEnd, disableNether, url); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerSpecWorld {\n"); + sb.append(" disableEnd: ").append(toIndentedString(disableEnd)).append("\n"); + sb.append(" disableNether: ").append(toIndentedString(disableNether)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerStatus.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerStatus.java new file mode 100644 index 00000000..609b7210 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerStatus.java @@ -0,0 +1,136 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1MinecraftServerStatusConditions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * MinecraftServerStatus defines the observed state of MinecraftServer + */ +@ApiModel(description = "MinecraftServerStatus defines the observed state of MinecraftServer") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerStatus { + public static final String SERIALIZED_NAME_ADDRESS = "address"; + @SerializedName(SERIALIZED_NAME_ADDRESS) + private String address; + + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) + private List conditions = new ArrayList<>(); + + + public V1alpha1MinecraftServerStatus address(String address) { + + this.address = address; + return this; + } + + /** + * Address of the Minecraft Server pod. + * @return address + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Address of the Minecraft Server pod.") + + public String getAddress() { + return address; + } + + + public void setAddress(String address) { + this.address = address; + } + + + public V1alpha1MinecraftServerStatus conditions(List conditions) { + + this.conditions = conditions; + return this; + } + + public V1alpha1MinecraftServerStatus addConditionsItem(V1alpha1MinecraftServerStatusConditions conditionsItem) { + this.conditions.add(conditionsItem); + return this; + } + + /** + * Conditions represent the latest available observations of a MinecraftServer object. + * @return conditions + **/ + @ApiModelProperty(required = true, value = "Conditions represent the latest available observations of a MinecraftServer object.") + + public List getConditions() { + return conditions; + } + + + public void setConditions(List conditions) { + this.conditions = conditions; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerStatus v1alpha1MinecraftServerStatus = (V1alpha1MinecraftServerStatus) o; + return Objects.equals(this.address, v1alpha1MinecraftServerStatus.address) && + Objects.equals(this.conditions, v1alpha1MinecraftServerStatus.conditions); + } + + @Override + public int hashCode() { + return Objects.hash(address, conditions); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerStatus {\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerStatusConditions.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerStatusConditions.java new file mode 100644 index 00000000..dd2e702b --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1MinecraftServerStatusConditions.java @@ -0,0 +1,291 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` // other fields } + */ +@ApiModel(description = "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` // other fields }") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:00.143Z[Etc/UTC]") +public class V1alpha1MinecraftServerStatusConditions { + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private OffsetDateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; + + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; + + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; + + /** + * status of the condition, one of True, False, Unknown. + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + TRUE("True"), + + FALSE("False"), + + UNKNOWN("Unknown"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private StatusEnum status; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + + public V1alpha1MinecraftServerStatusConditions lastTransitionTime(OffsetDateTime lastTransitionTime) { + + this.lastTransitionTime = lastTransitionTime; + return this; + } + + /** + * lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + * @return lastTransitionTime + **/ + @ApiModelProperty(required = true, value = "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.") + + public OffsetDateTime getLastTransitionTime() { + return lastTransitionTime; + } + + + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + } + + + public V1alpha1MinecraftServerStatusConditions message(String message) { + + this.message = message; + return this; + } + + /** + * message is a human readable message indicating details about the transition. This may be an empty string. + * @return message + **/ + @ApiModelProperty(required = true, value = "message is a human readable message indicating details about the transition. This may be an empty string.") + + public String getMessage() { + return message; + } + + + public void setMessage(String message) { + this.message = message; + } + + + public V1alpha1MinecraftServerStatusConditions observedGeneration(Long observedGeneration) { + + this.observedGeneration = observedGeneration; + return this; + } + + /** + * observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. + * minimum: 0 + * @return observedGeneration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.") + + public Long getObservedGeneration() { + return observedGeneration; + } + + + public void setObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + } + + + public V1alpha1MinecraftServerStatusConditions reason(String reason) { + + this.reason = reason; + return this; + } + + /** + * reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. + * @return reason + **/ + @ApiModelProperty(required = true, value = "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.") + + public String getReason() { + return reason; + } + + + public void setReason(String reason) { + this.reason = reason; + } + + + public V1alpha1MinecraftServerStatusConditions status(StatusEnum status) { + + this.status = status; + return this; + } + + /** + * status of the condition, one of True, False, Unknown. + * @return status + **/ + @ApiModelProperty(required = true, value = "status of the condition, one of True, False, Unknown.") + + public StatusEnum getStatus() { + return status; + } + + + public void setStatus(StatusEnum status) { + this.status = status; + } + + + public V1alpha1MinecraftServerStatusConditions type(String type) { + + this.type = type; + return this; + } + + /** + * type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) + * @return type + **/ + @ApiModelProperty(required = true, value = "type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)") + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1MinecraftServerStatusConditions v1alpha1MinecraftServerStatusConditions = (V1alpha1MinecraftServerStatusConditions) o; + return Objects.equals(this.lastTransitionTime, v1alpha1MinecraftServerStatusConditions.lastTransitionTime) && + Objects.equals(this.message, v1alpha1MinecraftServerStatusConditions.message) && + Objects.equals(this.observedGeneration, v1alpha1MinecraftServerStatusConditions.observedGeneration) && + Objects.equals(this.reason, v1alpha1MinecraftServerStatusConditions.reason) && + Objects.equals(this.status, v1alpha1MinecraftServerStatusConditions.status) && + Objects.equals(this.type, v1alpha1MinecraftServerStatusConditions.type); + } + + @Override + public int hashCode() { + return Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1MinecraftServerStatusConditions {\n"); + sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeployment.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeployment.java new file mode 100644 index 00000000..7e593dc0 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeployment.java @@ -0,0 +1,219 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpec; +import io.shulkermc.models.V1alpha1ProxyDeploymentStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ProxyDeployment is the Schema for the ProxyDeployment API + */ +@ApiModel(description = "ProxyDeployment is the Schema for the ProxyDeployment API") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeployment implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata = null; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1alpha1ProxyDeploymentSpec spec; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1alpha1ProxyDeploymentStatus status; + + + public V1alpha1ProxyDeployment apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @return apiVersion + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") + + public String getApiVersion() { + return apiVersion; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha1ProxyDeployment kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @return kind + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") + + public String getKind() { + return kind; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha1ProxyDeployment metadata(V1ObjectMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ObjectMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1alpha1ProxyDeployment spec(V1alpha1ProxyDeploymentSpec spec) { + + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpec getSpec() { + return spec; + } + + + public void setSpec(V1alpha1ProxyDeploymentSpec spec) { + this.spec = spec; + } + + + public V1alpha1ProxyDeployment status(V1alpha1ProxyDeploymentStatus status) { + + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentStatus getStatus() { + return status; + } + + + public void setStatus(V1alpha1ProxyDeploymentStatus status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeployment v1alpha1ProxyDeployment = (V1alpha1ProxyDeployment) o; + return Objects.equals(this.apiVersion, v1alpha1ProxyDeployment.apiVersion) && + Objects.equals(this.kind, v1alpha1ProxyDeployment.kind) && + Objects.equals(this.metadata, v1alpha1ProxyDeployment.metadata) && + Objects.equals(this.spec, v1alpha1ProxyDeployment.spec) && + Objects.equals(this.status, v1alpha1ProxyDeployment.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeployment {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentList.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentList.java new file mode 100644 index 00000000..b9bf555a --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentList.java @@ -0,0 +1,195 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.shulkermc.models.V1alpha1ProxyDeployment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ProxyDeploymentList is a list of ProxyDeployment + */ +@ApiModel(description = "ProxyDeploymentList is a list of ProxyDeployment") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata = null; + + + public V1alpha1ProxyDeploymentList apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources + * @return apiVersion + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") + + public String getApiVersion() { + return apiVersion; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha1ProxyDeploymentList items(List items) { + + this.items = items; + return this; + } + + public V1alpha1ProxyDeploymentList addItemsItem(V1alpha1ProxyDeployment itemsItem) { + this.items.add(itemsItem); + return this; + } + + /** + * List of proxydeployments. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md + * @return items + **/ + @ApiModelProperty(required = true, value = "List of proxydeployments. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md") + + public List getItems() { + return items; + } + + + public void setItems(List items) { + this.items = items; + } + + + public V1alpha1ProxyDeploymentList kind(String kind) { + + this.kind = kind; + return this; + } + + /** + * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * @return kind + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") + + public String getKind() { + return kind; + } + + + public void setKind(String kind) { + this.kind = kind; + } + + + public V1alpha1ProxyDeploymentList metadata(V1ListMeta metadata) { + + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1ListMeta getMetadata() { + return metadata; + } + + + public void setMetadata(V1ListMeta metadata) { + this.metadata = metadata; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentList v1alpha1ProxyDeploymentList = (V1alpha1ProxyDeploymentList) o; + return Objects.equals(this.apiVersion, v1alpha1ProxyDeploymentList.apiVersion) && + Objects.equals(this.items, v1alpha1ProxyDeploymentList.items) && + Objects.equals(this.kind, v1alpha1ProxyDeploymentList.kind) && + Objects.equals(this.metadata, v1alpha1ProxyDeploymentList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpec.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpec.java new file mode 100644 index 00000000..553f4588 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpec.java @@ -0,0 +1,366 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinity; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecMinecraftClusterRef; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecPodOverrides; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecResources; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecService; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecVersion; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * ProxyDeploymentSpec defines the desired state of ProxyDeployment + */ +@ApiModel(description = "ProxyDeploymentSpec defines the desired state of ProxyDeployment") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpec { + public static final String SERIALIZED_NAME_AFFINITY = "affinity"; + @SerializedName(SERIALIZED_NAME_AFFINITY) + private V1alpha1ProxyDeploymentSpecAffinity affinity; + + public static final String SERIALIZED_NAME_MAX_PLAYERS = "maxPlayers"; + @SerializedName(SERIALIZED_NAME_MAX_PLAYERS) + private Long maxPlayers; + + public static final String SERIALIZED_NAME_MINECRAFT_CLUSTER_REF = "minecraftClusterRef"; + @SerializedName(SERIALIZED_NAME_MINECRAFT_CLUSTER_REF) + private V1alpha1ProxyDeploymentSpecMinecraftClusterRef minecraftClusterRef; + + public static final String SERIALIZED_NAME_MOTD = "motd"; + @SerializedName(SERIALIZED_NAME_MOTD) + private String motd; + + public static final String SERIALIZED_NAME_POD_OVERRIDES = "podOverrides"; + @SerializedName(SERIALIZED_NAME_POD_OVERRIDES) + private V1alpha1ProxyDeploymentSpecPodOverrides podOverrides; + + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; + + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) + private V1alpha1ProxyDeploymentSpecResources resources; + + public static final String SERIALIZED_NAME_SERVER_ICON = "serverIcon"; + @SerializedName(SERIALIZED_NAME_SERVER_ICON) + private String serverIcon; + + public static final String SERIALIZED_NAME_SERVICE = "service"; + @SerializedName(SERIALIZED_NAME_SERVICE) + private V1alpha1ProxyDeploymentSpecService service; + + public static final String SERIALIZED_NAME_VERSION = "version"; + @SerializedName(SERIALIZED_NAME_VERSION) + private V1alpha1ProxyDeploymentSpecVersion version; + + + public V1alpha1ProxyDeploymentSpec affinity(V1alpha1ProxyDeploymentSpecAffinity affinity) { + + this.affinity = affinity; + return this; + } + + /** + * Get affinity + * @return affinity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecAffinity getAffinity() { + return affinity; + } + + + public void setAffinity(V1alpha1ProxyDeploymentSpecAffinity affinity) { + this.affinity = affinity; + } + + + public V1alpha1ProxyDeploymentSpec maxPlayers(Long maxPlayers) { + + this.maxPlayers = maxPlayers; + return this; + } + + /** + * Number of maximum players that can connect to the Proxy Deployment. + * @return maxPlayers + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Number of maximum players that can connect to the Proxy Deployment.") + + public Long getMaxPlayers() { + return maxPlayers; + } + + + public void setMaxPlayers(Long maxPlayers) { + this.maxPlayers = maxPlayers; + } + + + public V1alpha1ProxyDeploymentSpec minecraftClusterRef(V1alpha1ProxyDeploymentSpecMinecraftClusterRef minecraftClusterRef) { + + this.minecraftClusterRef = minecraftClusterRef; + return this; + } + + /** + * Get minecraftClusterRef + * @return minecraftClusterRef + **/ + @ApiModelProperty(required = true, value = "") + + public V1alpha1ProxyDeploymentSpecMinecraftClusterRef getMinecraftClusterRef() { + return minecraftClusterRef; + } + + + public void setMinecraftClusterRef(V1alpha1ProxyDeploymentSpecMinecraftClusterRef minecraftClusterRef) { + this.minecraftClusterRef = minecraftClusterRef; + } + + + public V1alpha1ProxyDeploymentSpec motd(String motd) { + + this.motd = motd; + return this; + } + + /** + * Message to display when the players query the status of the Proxy Deployment. + * @return motd + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Message to display when the players query the status of the Proxy Deployment.") + + public String getMotd() { + return motd; + } + + + public void setMotd(String motd) { + this.motd = motd; + } + + + public V1alpha1ProxyDeploymentSpec podOverrides(V1alpha1ProxyDeploymentSpecPodOverrides podOverrides) { + + this.podOverrides = podOverrides; + return this; + } + + /** + * Get podOverrides + * @return podOverrides + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecPodOverrides getPodOverrides() { + return podOverrides; + } + + + public void setPodOverrides(V1alpha1ProxyDeploymentSpecPodOverrides podOverrides) { + this.podOverrides = podOverrides; + } + + + public V1alpha1ProxyDeploymentSpec replicas(Integer replicas) { + + this.replicas = replicas; + return this; + } + + /** + * Number of replicas the Proxy Deployment should have. + * @return replicas + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Number of replicas the Proxy Deployment should have.") + + public Integer getReplicas() { + return replicas; + } + + + public void setReplicas(Integer replicas) { + this.replicas = replicas; + } + + + public V1alpha1ProxyDeploymentSpec resources(V1alpha1ProxyDeploymentSpecResources resources) { + + this.resources = resources; + return this; + } + + /** + * Get resources + * @return resources + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecResources getResources() { + return resources; + } + + + public void setResources(V1alpha1ProxyDeploymentSpecResources resources) { + this.resources = resources; + } + + + public V1alpha1ProxyDeploymentSpec serverIcon(String serverIcon) { + + this.serverIcon = serverIcon; + return this; + } + + /** + * Server icon image in base64 format. + * @return serverIcon + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Server icon image in base64 format.") + + public String getServerIcon() { + return serverIcon; + } + + + public void setServerIcon(String serverIcon) { + this.serverIcon = serverIcon; + } + + + public V1alpha1ProxyDeploymentSpec service(V1alpha1ProxyDeploymentSpecService service) { + + this.service = service; + return this; + } + + /** + * Get service + * @return service + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecService getService() { + return service; + } + + + public void setService(V1alpha1ProxyDeploymentSpecService service) { + this.service = service; + } + + + public V1alpha1ProxyDeploymentSpec version(V1alpha1ProxyDeploymentSpecVersion version) { + + this.version = version; + return this; + } + + /** + * Get version + * @return version + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecVersion getVersion() { + return version; + } + + + public void setVersion(V1alpha1ProxyDeploymentSpecVersion version) { + this.version = version; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpec v1alpha1ProxyDeploymentSpec = (V1alpha1ProxyDeploymentSpec) o; + return Objects.equals(this.affinity, v1alpha1ProxyDeploymentSpec.affinity) && + Objects.equals(this.maxPlayers, v1alpha1ProxyDeploymentSpec.maxPlayers) && + Objects.equals(this.minecraftClusterRef, v1alpha1ProxyDeploymentSpec.minecraftClusterRef) && + Objects.equals(this.motd, v1alpha1ProxyDeploymentSpec.motd) && + Objects.equals(this.podOverrides, v1alpha1ProxyDeploymentSpec.podOverrides) && + Objects.equals(this.replicas, v1alpha1ProxyDeploymentSpec.replicas) && + Objects.equals(this.resources, v1alpha1ProxyDeploymentSpec.resources) && + Objects.equals(this.serverIcon, v1alpha1ProxyDeploymentSpec.serverIcon) && + Objects.equals(this.service, v1alpha1ProxyDeploymentSpec.service) && + Objects.equals(this.version, v1alpha1ProxyDeploymentSpec.version); + } + + @Override + public int hashCode() { + return Objects.hash(affinity, maxPlayers, minecraftClusterRef, motd, podOverrides, replicas, resources, serverIcon, service, version); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpec {\n"); + sb.append(" affinity: ").append(toIndentedString(affinity)).append("\n"); + sb.append(" maxPlayers: ").append(toIndentedString(maxPlayers)).append("\n"); + sb.append(" minecraftClusterRef: ").append(toIndentedString(minecraftClusterRef)).append("\n"); + sb.append(" motd: ").append(toIndentedString(motd)).append("\n"); + sb.append(" podOverrides: ").append(toIndentedString(podOverrides)).append("\n"); + sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); + sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); + sb.append(" serverIcon: ").append(toIndentedString(serverIcon)).append("\n"); + sb.append(" service: ").append(toIndentedString(service)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinity.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinity.java new file mode 100644 index 00000000..3dc1c94d --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinity.java @@ -0,0 +1,161 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityNodeAffinity; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityPodAffinity; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Affinity scheduling rules to be applied on created Pods. + */ +@ApiModel(description = "Affinity scheduling rules to be applied on created Pods.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecAffinity { + public static final String SERIALIZED_NAME_NODE_AFFINITY = "nodeAffinity"; + @SerializedName(SERIALIZED_NAME_NODE_AFFINITY) + private V1alpha1ProxyDeploymentSpecAffinityNodeAffinity nodeAffinity; + + public static final String SERIALIZED_NAME_POD_AFFINITY = "podAffinity"; + @SerializedName(SERIALIZED_NAME_POD_AFFINITY) + private V1alpha1ProxyDeploymentSpecAffinityPodAffinity podAffinity; + + public static final String SERIALIZED_NAME_POD_ANTI_AFFINITY = "podAntiAffinity"; + @SerializedName(SERIALIZED_NAME_POD_ANTI_AFFINITY) + private V1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity podAntiAffinity; + + + public V1alpha1ProxyDeploymentSpecAffinity nodeAffinity(V1alpha1ProxyDeploymentSpecAffinityNodeAffinity nodeAffinity) { + + this.nodeAffinity = nodeAffinity; + return this; + } + + /** + * Get nodeAffinity + * @return nodeAffinity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinity getNodeAffinity() { + return nodeAffinity; + } + + + public void setNodeAffinity(V1alpha1ProxyDeploymentSpecAffinityNodeAffinity nodeAffinity) { + this.nodeAffinity = nodeAffinity; + } + + + public V1alpha1ProxyDeploymentSpecAffinity podAffinity(V1alpha1ProxyDeploymentSpecAffinityPodAffinity podAffinity) { + + this.podAffinity = podAffinity; + return this; + } + + /** + * Get podAffinity + * @return podAffinity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinity getPodAffinity() { + return podAffinity; + } + + + public void setPodAffinity(V1alpha1ProxyDeploymentSpecAffinityPodAffinity podAffinity) { + this.podAffinity = podAffinity; + } + + + public V1alpha1ProxyDeploymentSpecAffinity podAntiAffinity(V1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity podAntiAffinity) { + + this.podAntiAffinity = podAntiAffinity; + return this; + } + + /** + * Get podAntiAffinity + * @return podAntiAffinity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity getPodAntiAffinity() { + return podAntiAffinity; + } + + + public void setPodAntiAffinity(V1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity podAntiAffinity) { + this.podAntiAffinity = podAntiAffinity; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecAffinity v1alpha1ProxyDeploymentSpecAffinity = (V1alpha1ProxyDeploymentSpecAffinity) o; + return Objects.equals(this.nodeAffinity, v1alpha1ProxyDeploymentSpecAffinity.nodeAffinity) && + Objects.equals(this.podAffinity, v1alpha1ProxyDeploymentSpecAffinity.podAffinity) && + Objects.equals(this.podAntiAffinity, v1alpha1ProxyDeploymentSpecAffinity.podAntiAffinity); + } + + @Override + public int hashCode() { + return Objects.hash(nodeAffinity, podAffinity, podAntiAffinity); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecAffinity {\n"); + sb.append(" nodeAffinity: ").append(toIndentedString(nodeAffinity)).append("\n"); + sb.append(" podAffinity: ").append(toIndentedString(podAffinity)).append("\n"); + sb.append(" podAntiAffinity: ").append(toIndentedString(podAntiAffinity)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinity.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinity.java new file mode 100644 index 00000000..51ec833a --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinity.java @@ -0,0 +1,141 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Describes node affinity scheduling rules for the pod. + */ +@ApiModel(description = "Describes node affinity scheduling rules for the pod.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecAffinityNodeAffinity { + public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + private List preferredDuringSchedulingIgnoredDuringExecution = null; + + public static final String SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "requiredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + private V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution requiredDuringSchedulingIgnoredDuringExecution; + + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinity preferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem(V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution preferredDuringSchedulingIgnoredDuringExecutionItem) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); + } + this.preferredDuringSchedulingIgnoredDuringExecution.add(preferredDuringSchedulingIgnoredDuringExecutionItem); + return this; + } + + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. + * @return preferredDuringSchedulingIgnoredDuringExecution + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.") + + public List getPreferredDuringSchedulingIgnoredDuringExecution() { + return preferredDuringSchedulingIgnoredDuringExecution; + } + + + public void setPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + } + + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinity requiredDuringSchedulingIgnoredDuringExecution(V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution requiredDuringSchedulingIgnoredDuringExecution) { + + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + return this; + } + + /** + * Get requiredDuringSchedulingIgnoredDuringExecution + * @return requiredDuringSchedulingIgnoredDuringExecution + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution getRequiredDuringSchedulingIgnoredDuringExecution() { + return requiredDuringSchedulingIgnoredDuringExecution; + } + + + public void setRequiredDuringSchedulingIgnoredDuringExecution(V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecAffinityNodeAffinity v1alpha1ProxyDeploymentSpecAffinityNodeAffinity = (V1alpha1ProxyDeploymentSpecAffinityNodeAffinity) o; + return Objects.equals(this.preferredDuringSchedulingIgnoredDuringExecution, v1alpha1ProxyDeploymentSpecAffinityNodeAffinity.preferredDuringSchedulingIgnoredDuringExecution) && + Objects.equals(this.requiredDuringSchedulingIgnoredDuringExecution, v1alpha1ProxyDeploymentSpecAffinityNodeAffinity.requiredDuringSchedulingIgnoredDuringExecution); + } + + @Override + public int hashCode() { + return Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecAffinityNodeAffinity {\n"); + sb.append(" preferredDuringSchedulingIgnoredDuringExecution: ").append(toIndentedString(preferredDuringSchedulingIgnoredDuringExecution)).append("\n"); + sb.append(" requiredDuringSchedulingIgnoredDuringExecution: ").append(toIndentedString(requiredDuringSchedulingIgnoredDuringExecution)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference.java new file mode 100644 index 00000000..409162dc --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference.java @@ -0,0 +1,148 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * A node selector term, associated with the corresponding weight. + */ +@ApiModel(description = "A node selector term, associated with the corresponding weight.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference { + public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; + @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) + private List matchExpressions = null; + + public static final String SERIALIZED_NAME_MATCH_FIELDS = "matchFields"; + @SerializedName(SERIALIZED_NAME_MATCH_FIELDS) + private List matchFields = null; + + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference matchExpressions(List matchExpressions) { + + this.matchExpressions = matchExpressions; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference addMatchExpressionsItem(V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions matchExpressionsItem) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList<>(); + } + this.matchExpressions.add(matchExpressionsItem); + return this; + } + + /** + * A list of node selector requirements by node's labels. + * @return matchExpressions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of node selector requirements by node's labels.") + + public List getMatchExpressions() { + return matchExpressions; + } + + + public void setMatchExpressions(List matchExpressions) { + this.matchExpressions = matchExpressions; + } + + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference matchFields(List matchFields) { + + this.matchFields = matchFields; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference addMatchFieldsItem(V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions matchFieldsItem) { + if (this.matchFields == null) { + this.matchFields = new ArrayList<>(); + } + this.matchFields.add(matchFieldsItem); + return this; + } + + /** + * A list of node selector requirements by node's fields. + * @return matchFields + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of node selector requirements by node's fields.") + + public List getMatchFields() { + return matchFields; + } + + + public void setMatchFields(List matchFields) { + this.matchFields = matchFields; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference v1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference = (V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference) o; + return Objects.equals(this.matchExpressions, v1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference.matchExpressions) && + Objects.equals(this.matchFields, v1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference.matchFields); + } + + @Override + public int hashCode() { + return Objects.hash(matchExpressions, matchFields); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference {\n"); + sb.append(" matchExpressions: ").append(toIndentedString(matchExpressions)).append("\n"); + sb.append(" matchFields: ").append(toIndentedString(matchFields)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions.java new file mode 100644 index 00000000..c2019bbe --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions.java @@ -0,0 +1,166 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + */ +@ApiModel(description = "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_OPERATOR = "operator"; + @SerializedName(SERIALIZED_NAME_OPERATOR) + private String operator; + + public static final String SERIALIZED_NAME_VALUES = "values"; + @SerializedName(SERIALIZED_NAME_VALUES) + private List values = null; + + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions key(String key) { + + this.key = key; + return this; + } + + /** + * The label key that the selector applies to. + * @return key + **/ + @ApiModelProperty(required = true, value = "The label key that the selector applies to.") + + public String getKey() { + return key; + } + + + public void setKey(String key) { + this.key = key; + } + + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions operator(String operator) { + + this.operator = operator; + return this; + } + + /** + * Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + * @return operator + **/ + @ApiModelProperty(required = true, value = "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.") + + public String getOperator() { + return operator; + } + + + public void setOperator(String operator) { + this.operator = operator; + } + + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions values(List values) { + + this.values = values; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions addValuesItem(String valuesItem) { + if (this.values == null) { + this.values = new ArrayList<>(); + } + this.values.add(valuesItem); + return this; + } + + /** + * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. + * @return values + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.") + + public List getValues() { + return values; + } + + + public void setValues(List values) { + this.values = values; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions v1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions = (V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions) o; + return Objects.equals(this.key, v1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions.key) && + Objects.equals(this.operator, v1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions.operator) && + Objects.equals(this.values, v1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions.values); + } + + @Override + public int hashCode() { + return Objects.hash(key, operator, values); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution.java new file mode 100644 index 00000000..5bc1a5d0 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution.java @@ -0,0 +1,128 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). + */ +@ApiModel(description = "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution { + public static final String SERIALIZED_NAME_PREFERENCE = "preference"; + @SerializedName(SERIALIZED_NAME_PREFERENCE) + private V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference preference; + + public static final String SERIALIZED_NAME_WEIGHT = "weight"; + @SerializedName(SERIALIZED_NAME_WEIGHT) + private Integer weight; + + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution preference(V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference preference) { + + this.preference = preference; + return this; + } + + /** + * Get preference + * @return preference + **/ + @ApiModelProperty(required = true, value = "") + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference getPreference() { + return preference; + } + + + public void setPreference(V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreference preference) { + this.preference = preference; + } + + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution weight(Integer weight) { + + this.weight = weight; + return this; + } + + /** + * Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. + * @return weight + **/ + @ApiModelProperty(required = true, value = "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.") + + public Integer getWeight() { + return weight; + } + + + public void setWeight(Integer weight) { + this.weight = weight; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution v1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution = (V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution) o; + return Objects.equals(this.preference, v1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution.preference) && + Objects.equals(this.weight, v1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution.weight); + } + + @Override + public int hashCode() { + return Objects.hash(preference, weight); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution {\n"); + sb.append(" preference: ").append(toIndentedString(preference)).append("\n"); + sb.append(" weight: ").append(toIndentedString(weight)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution.java new file mode 100644 index 00000000..b950dc38 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution.java @@ -0,0 +1,107 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + */ +@ApiModel(description = "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution { + public static final String SERIALIZED_NAME_NODE_SELECTOR_TERMS = "nodeSelectorTerms"; + @SerializedName(SERIALIZED_NAME_NODE_SELECTOR_TERMS) + private List nodeSelectorTerms = new ArrayList<>(); + + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution nodeSelectorTerms(List nodeSelectorTerms) { + + this.nodeSelectorTerms = nodeSelectorTerms; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution addNodeSelectorTermsItem(V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms nodeSelectorTermsItem) { + this.nodeSelectorTerms.add(nodeSelectorTermsItem); + return this; + } + + /** + * Required. A list of node selector terms. The terms are ORed. + * @return nodeSelectorTerms + **/ + @ApiModelProperty(required = true, value = "Required. A list of node selector terms. The terms are ORed.") + + public List getNodeSelectorTerms() { + return nodeSelectorTerms; + } + + + public void setNodeSelectorTerms(List nodeSelectorTerms) { + this.nodeSelectorTerms = nodeSelectorTerms; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution v1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution = (V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution) o; + return Objects.equals(this.nodeSelectorTerms, v1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms); + } + + @Override + public int hashCode() { + return Objects.hash(nodeSelectorTerms); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution {\n"); + sb.append(" nodeSelectorTerms: ").append(toIndentedString(nodeSelectorTerms)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms.java new file mode 100644 index 00000000..9705577b --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms.java @@ -0,0 +1,148 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. + */ +@ApiModel(description = "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms { + public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; + @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) + private List matchExpressions = null; + + public static final String SERIALIZED_NAME_MATCH_FIELDS = "matchFields"; + @SerializedName(SERIALIZED_NAME_MATCH_FIELDS) + private List matchFields = null; + + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms matchExpressions(List matchExpressions) { + + this.matchExpressions = matchExpressions; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms addMatchExpressionsItem(V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions matchExpressionsItem) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList<>(); + } + this.matchExpressions.add(matchExpressionsItem); + return this; + } + + /** + * A list of node selector requirements by node's labels. + * @return matchExpressions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of node selector requirements by node's labels.") + + public List getMatchExpressions() { + return matchExpressions; + } + + + public void setMatchExpressions(List matchExpressions) { + this.matchExpressions = matchExpressions; + } + + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms matchFields(List matchFields) { + + this.matchFields = matchFields; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms addMatchFieldsItem(V1alpha1ProxyDeploymentSpecAffinityNodeAffinityPreferenceMatchExpressions matchFieldsItem) { + if (this.matchFields == null) { + this.matchFields = new ArrayList<>(); + } + this.matchFields.add(matchFieldsItem); + return this; + } + + /** + * A list of node selector requirements by node's fields. + * @return matchFields + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of node selector requirements by node's fields.") + + public List getMatchFields() { + return matchFields; + } + + + public void setMatchFields(List matchFields) { + this.matchFields = matchFields; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms v1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms = (V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms) o; + return Objects.equals(this.matchExpressions, v1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms.matchExpressions) && + Objects.equals(this.matchFields, v1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms.matchFields); + } + + @Override + public int hashCode() { + return Objects.hash(matchExpressions, matchFields); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms {\n"); + sb.append(" matchExpressions: ").append(toIndentedString(matchExpressions)).append("\n"); + sb.append(" matchFields: ").append(toIndentedString(matchFields)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinity.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinity.java new file mode 100644 index 00000000..0204780c --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinity.java @@ -0,0 +1,149 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + */ +@ApiModel(description = "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecAffinityPodAffinity { + public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + private List preferredDuringSchedulingIgnoredDuringExecution = null; + + public static final String SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "requiredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + private List requiredDuringSchedulingIgnoredDuringExecution = null; + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinity preferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem(V1alpha1ProxyDeploymentSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution preferredDuringSchedulingIgnoredDuringExecutionItem) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); + } + this.preferredDuringSchedulingIgnoredDuringExecution.add(preferredDuringSchedulingIgnoredDuringExecutionItem); + return this; + } + + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * @return preferredDuringSchedulingIgnoredDuringExecution + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.") + + public List getPreferredDuringSchedulingIgnoredDuringExecution() { + return preferredDuringSchedulingIgnoredDuringExecution; + } + + + public void setPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + } + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinity requiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { + + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinity addRequiredDuringSchedulingIgnoredDuringExecutionItem(V1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution requiredDuringSchedulingIgnoredDuringExecutionItem) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); + } + this.requiredDuringSchedulingIgnoredDuringExecution.add(requiredDuringSchedulingIgnoredDuringExecutionItem); + return this; + } + + /** + * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + * @return requiredDuringSchedulingIgnoredDuringExecution + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.") + + public List getRequiredDuringSchedulingIgnoredDuringExecution() { + return requiredDuringSchedulingIgnoredDuringExecution; + } + + + public void setRequiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecAffinityPodAffinity v1alpha1ProxyDeploymentSpecAffinityPodAffinity = (V1alpha1ProxyDeploymentSpecAffinityPodAffinity) o; + return Objects.equals(this.preferredDuringSchedulingIgnoredDuringExecution, v1alpha1ProxyDeploymentSpecAffinityPodAffinity.preferredDuringSchedulingIgnoredDuringExecution) && + Objects.equals(this.requiredDuringSchedulingIgnoredDuringExecution, v1alpha1ProxyDeploymentSpecAffinityPodAffinity.requiredDuringSchedulingIgnoredDuringExecution); + } + + @Override + public int hashCode() { + return Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecAffinityPodAffinity {\n"); + sb.append(" preferredDuringSchedulingIgnoredDuringExecution: ").append(toIndentedString(preferredDuringSchedulingIgnoredDuringExecution)).append("\n"); + sb.append(" requiredDuringSchedulingIgnoredDuringExecution: ").append(toIndentedString(requiredDuringSchedulingIgnoredDuringExecution)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm.java new file mode 100644 index 00000000..0626be2a --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm.java @@ -0,0 +1,198 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Required. A pod affinity term, associated with the corresponding weight. + */ +@ApiModel(description = "Required. A pod affinity term, associated with the corresponding weight.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm { + public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; + @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) + private V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector labelSelector; + + public static final String SERIALIZED_NAME_NAMESPACE_SELECTOR = "namespaceSelector"; + @SerializedName(SERIALIZED_NAME_NAMESPACE_SELECTOR) + private V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector namespaceSelector; + + public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; + @SerializedName(SERIALIZED_NAME_NAMESPACES) + private List namespaces = null; + + public static final String SERIALIZED_NAME_TOPOLOGY_KEY = "topologyKey"; + @SerializedName(SERIALIZED_NAME_TOPOLOGY_KEY) + private String topologyKey; + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm labelSelector(V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector labelSelector) { + + this.labelSelector = labelSelector; + return this; + } + + /** + * Get labelSelector + * @return labelSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector getLabelSelector() { + return labelSelector; + } + + + public void setLabelSelector(V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector labelSelector) { + this.labelSelector = labelSelector; + } + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm namespaceSelector(V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector namespaceSelector) { + + this.namespaceSelector = namespaceSelector; + return this; + } + + /** + * Get namespaceSelector + * @return namespaceSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector getNamespaceSelector() { + return namespaceSelector; + } + + + public void setNamespaceSelector(V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; + } + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm namespaces(List namespaces) { + + this.namespaces = namespaces; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm addNamespacesItem(String namespacesItem) { + if (this.namespaces == null) { + this.namespaces = new ArrayList<>(); + } + this.namespaces.add(namespacesItem); + return this; + } + + /** + * namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\" + * @return namespaces + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\"") + + public List getNamespaces() { + return namespaces; + } + + + public void setNamespaces(List namespaces) { + this.namespaces = namespaces; + } + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm topologyKey(String topologyKey) { + + this.topologyKey = topologyKey; + return this; + } + + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + * @return topologyKey + **/ + @ApiModelProperty(required = true, value = "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.") + + public String getTopologyKey() { + return topologyKey; + } + + + public void setTopologyKey(String topologyKey) { + this.topologyKey = topologyKey; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm v1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm = (V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm) o; + return Objects.equals(this.labelSelector, v1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm.labelSelector) && + Objects.equals(this.namespaceSelector, v1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm.namespaceSelector) && + Objects.equals(this.namespaces, v1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm.namespaces) && + Objects.equals(this.topologyKey, v1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm.topologyKey); + } + + @Override + public int hashCode() { + return Objects.hash(labelSelector, namespaceSelector, namespaces, topologyKey); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm {\n"); + sb.append(" labelSelector: ").append(toIndentedString(labelSelector)).append("\n"); + sb.append(" namespaceSelector: ").append(toIndentedString(namespaceSelector)).append("\n"); + sb.append(" namespaces: ").append(toIndentedString(namespaces)).append("\n"); + sb.append(" topologyKey: ").append(toIndentedString(topologyKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector.java new file mode 100644 index 00000000..efce6aa3 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector.java @@ -0,0 +1,150 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * A label query over a set of resources, in this case pods. + */ +@ApiModel(description = "A label query over a set of resources, in this case pods.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector { + public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; + @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) + private List matchExpressions = null; + + public static final String SERIALIZED_NAME_MATCH_LABELS = "matchLabels"; + @SerializedName(SERIALIZED_NAME_MATCH_LABELS) + private Map matchLabels = null; + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector matchExpressions(List matchExpressions) { + + this.matchExpressions = matchExpressions; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector addMatchExpressionsItem(V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions matchExpressionsItem) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList<>(); + } + this.matchExpressions.add(matchExpressionsItem); + return this; + } + + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * @return matchExpressions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") + + public List getMatchExpressions() { + return matchExpressions; + } + + + public void setMatchExpressions(List matchExpressions) { + this.matchExpressions = matchExpressions; + } + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector matchLabels(Map matchLabels) { + + this.matchLabels = matchLabels; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector putMatchLabelsItem(String key, String matchLabelsItem) { + if (this.matchLabels == null) { + this.matchLabels = new HashMap<>(); + } + this.matchLabels.put(key, matchLabelsItem); + return this; + } + + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. + * @return matchLabels + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") + + public Map getMatchLabels() { + return matchLabels; + } + + + public void setMatchLabels(Map matchLabels) { + this.matchLabels = matchLabels; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector v1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector = (V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector) o; + return Objects.equals(this.matchExpressions, v1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector.matchExpressions) && + Objects.equals(this.matchLabels, v1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector.matchLabels); + } + + @Override + public int hashCode() { + return Objects.hash(matchExpressions, matchLabels); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector {\n"); + sb.append(" matchExpressions: ").append(toIndentedString(matchExpressions)).append("\n"); + sb.append(" matchLabels: ").append(toIndentedString(matchLabels)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions.java new file mode 100644 index 00000000..4f1551b9 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions.java @@ -0,0 +1,166 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + */ +@ApiModel(description = "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_OPERATOR = "operator"; + @SerializedName(SERIALIZED_NAME_OPERATOR) + private String operator; + + public static final String SERIALIZED_NAME_VALUES = "values"; + @SerializedName(SERIALIZED_NAME_VALUES) + private List values = null; + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions key(String key) { + + this.key = key; + return this; + } + + /** + * key is the label key that the selector applies to. + * @return key + **/ + @ApiModelProperty(required = true, value = "key is the label key that the selector applies to.") + + public String getKey() { + return key; + } + + + public void setKey(String key) { + this.key = key; + } + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions operator(String operator) { + + this.operator = operator; + return this; + } + + /** + * operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + * @return operator + **/ + @ApiModelProperty(required = true, value = "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.") + + public String getOperator() { + return operator; + } + + + public void setOperator(String operator) { + this.operator = operator; + } + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions values(List values) { + + this.values = values; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions addValuesItem(String valuesItem) { + if (this.values == null) { + this.values = new ArrayList<>(); + } + this.values.add(valuesItem); + return this; + } + + /** + * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + * @return values + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.") + + public List getValues() { + return values; + } + + + public void setValues(List values) { + this.values = values; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions v1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions = (V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions) o; + return Objects.equals(this.key, v1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions.key) && + Objects.equals(this.operator, v1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions.operator) && + Objects.equals(this.values, v1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions.values); + } + + @Override + public int hashCode() { + return Objects.hash(key, operator, values); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); + sb.append(" values: ").append(toIndentedString(values)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector.java new file mode 100644 index 00000000..95786dbe --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector.java @@ -0,0 +1,150 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled. + */ +@ApiModel(description = "A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector { + public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; + @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) + private List matchExpressions = null; + + public static final String SERIALIZED_NAME_MATCH_LABELS = "matchLabels"; + @SerializedName(SERIALIZED_NAME_MATCH_LABELS) + private Map matchLabels = null; + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector matchExpressions(List matchExpressions) { + + this.matchExpressions = matchExpressions; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector addMatchExpressionsItem(V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelectorMatchExpressions matchExpressionsItem) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList<>(); + } + this.matchExpressions.add(matchExpressionsItem); + return this; + } + + /** + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + * @return matchExpressions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") + + public List getMatchExpressions() { + return matchExpressions; + } + + + public void setMatchExpressions(List matchExpressions) { + this.matchExpressions = matchExpressions; + } + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector matchLabels(Map matchLabels) { + + this.matchLabels = matchLabels; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector putMatchLabelsItem(String key, String matchLabelsItem) { + if (this.matchLabels == null) { + this.matchLabels = new HashMap<>(); + } + this.matchLabels.put(key, matchLabelsItem); + return this; + } + + /** + * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. + * @return matchLabels + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") + + public Map getMatchLabels() { + return matchLabels; + } + + + public void setMatchLabels(Map matchLabels) { + this.matchLabels = matchLabels; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector v1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector = (V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector) o; + return Objects.equals(this.matchExpressions, v1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector.matchExpressions) && + Objects.equals(this.matchLabels, v1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector.matchLabels); + } + + @Override + public int hashCode() { + return Objects.hash(matchExpressions, matchLabels); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector {\n"); + sb.append(" matchExpressions: ").append(toIndentedString(matchExpressions)).append("\n"); + sb.append(" matchLabels: ").append(toIndentedString(matchLabels)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution.java new file mode 100644 index 00000000..874f9d8c --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution.java @@ -0,0 +1,128 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) + */ +@ApiModel(description = "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution { + public static final String SERIALIZED_NAME_POD_AFFINITY_TERM = "podAffinityTerm"; + @SerializedName(SERIALIZED_NAME_POD_AFFINITY_TERM) + private V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm podAffinityTerm; + + public static final String SERIALIZED_NAME_WEIGHT = "weight"; + @SerializedName(SERIALIZED_NAME_WEIGHT) + private Integer weight; + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution podAffinityTerm(V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm podAffinityTerm) { + + this.podAffinityTerm = podAffinityTerm; + return this; + } + + /** + * Get podAffinityTerm + * @return podAffinityTerm + **/ + @ApiModelProperty(required = true, value = "") + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm getPodAffinityTerm() { + return podAffinityTerm; + } + + + public void setPodAffinityTerm(V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTerm podAffinityTerm) { + this.podAffinityTerm = podAffinityTerm; + } + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution weight(Integer weight) { + + this.weight = weight; + return this; + } + + /** + * weight associated with matching the corresponding podAffinityTerm, in the range 1-100. + * @return weight + **/ + @ApiModelProperty(required = true, value = "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.") + + public Integer getWeight() { + return weight; + } + + + public void setWeight(Integer weight) { + this.weight = weight; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution v1alpha1ProxyDeploymentSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution = (V1alpha1ProxyDeploymentSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution) o; + return Objects.equals(this.podAffinityTerm, v1alpha1ProxyDeploymentSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution.podAffinityTerm) && + Objects.equals(this.weight, v1alpha1ProxyDeploymentSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution.weight); + } + + @Override + public int hashCode() { + return Objects.hash(podAffinityTerm, weight); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution {\n"); + sb.append(" podAffinityTerm: ").append(toIndentedString(podAffinityTerm)).append("\n"); + sb.append(" weight: ").append(toIndentedString(weight)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.java new file mode 100644 index 00000000..1a79fb8a --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.java @@ -0,0 +1,198 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running + */ +@ApiModel(description = "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution { + public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; + @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) + private V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector labelSelector; + + public static final String SERIALIZED_NAME_NAMESPACE_SELECTOR = "namespaceSelector"; + @SerializedName(SERIALIZED_NAME_NAMESPACE_SELECTOR) + private V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector namespaceSelector; + + public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; + @SerializedName(SERIALIZED_NAME_NAMESPACES) + private List namespaces = null; + + public static final String SERIALIZED_NAME_TOPOLOGY_KEY = "topologyKey"; + @SerializedName(SERIALIZED_NAME_TOPOLOGY_KEY) + private String topologyKey; + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution labelSelector(V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector labelSelector) { + + this.labelSelector = labelSelector; + return this; + } + + /** + * Get labelSelector + * @return labelSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector getLabelSelector() { + return labelSelector; + } + + + public void setLabelSelector(V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermLabelSelector labelSelector) { + this.labelSelector = labelSelector; + } + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution namespaceSelector(V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector namespaceSelector) { + + this.namespaceSelector = namespaceSelector; + return this; + } + + /** + * Get namespaceSelector + * @return namespaceSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector getNamespaceSelector() { + return namespaceSelector; + } + + + public void setNamespaceSelector(V1alpha1ProxyDeploymentSpecAffinityPodAffinityPodAffinityTermNamespaceSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; + } + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution namespaces(List namespaces) { + + this.namespaces = namespaces; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution addNamespacesItem(String namespacesItem) { + if (this.namespaces == null) { + this.namespaces = new ArrayList<>(); + } + this.namespaces.add(namespacesItem); + return this; + } + + /** + * namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\" + * @return namespaces + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\"") + + public List getNamespaces() { + return namespaces; + } + + + public void setNamespaces(List namespaces) { + this.namespaces = namespaces; + } + + + public V1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution topologyKey(String topologyKey) { + + this.topologyKey = topologyKey; + return this; + } + + /** + * This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. + * @return topologyKey + **/ + @ApiModelProperty(required = true, value = "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.") + + public String getTopologyKey() { + return topologyKey; + } + + + public void setTopologyKey(String topologyKey) { + this.topologyKey = topologyKey; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution v1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution = (V1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution) o; + return Objects.equals(this.labelSelector, v1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.labelSelector) && + Objects.equals(this.namespaceSelector, v1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.namespaceSelector) && + Objects.equals(this.namespaces, v1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.namespaces) && + Objects.equals(this.topologyKey, v1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.topologyKey); + } + + @Override + public int hashCode() { + return Objects.hash(labelSelector, namespaceSelector, namespaces, topologyKey); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution {\n"); + sb.append(" labelSelector: ").append(toIndentedString(labelSelector)).append("\n"); + sb.append(" namespaceSelector: ").append(toIndentedString(namespaceSelector)).append("\n"); + sb.append(" namespaces: ").append(toIndentedString(namespaces)).append("\n"); + sb.append(" topologyKey: ").append(toIndentedString(topologyKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity.java new file mode 100644 index 00000000..4df9dec4 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity.java @@ -0,0 +1,149 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + */ +@ApiModel(description = "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity { + public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + private List preferredDuringSchedulingIgnoredDuringExecution = null; + + public static final String SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "requiredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + private List requiredDuringSchedulingIgnoredDuringExecution = null; + + + public V1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity preferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem(V1alpha1ProxyDeploymentSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution preferredDuringSchedulingIgnoredDuringExecutionItem) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); + } + this.preferredDuringSchedulingIgnoredDuringExecution.add(preferredDuringSchedulingIgnoredDuringExecutionItem); + return this; + } + + /** + * The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + * @return preferredDuringSchedulingIgnoredDuringExecution + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.") + + public List getPreferredDuringSchedulingIgnoredDuringExecution() { + return preferredDuringSchedulingIgnoredDuringExecution; + } + + + public void setPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; + } + + + public V1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity requiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { + + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + return this; + } + + public V1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity addRequiredDuringSchedulingIgnoredDuringExecutionItem(V1alpha1ProxyDeploymentSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution requiredDuringSchedulingIgnoredDuringExecutionItem) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList<>(); + } + this.requiredDuringSchedulingIgnoredDuringExecution.add(requiredDuringSchedulingIgnoredDuringExecutionItem); + return this; + } + + /** + * If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. + * @return requiredDuringSchedulingIgnoredDuringExecution + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.") + + public List getRequiredDuringSchedulingIgnoredDuringExecution() { + return requiredDuringSchedulingIgnoredDuringExecution; + } + + + public void setRequiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity v1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity = (V1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity) o; + return Objects.equals(this.preferredDuringSchedulingIgnoredDuringExecution, v1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution) && + Objects.equals(this.requiredDuringSchedulingIgnoredDuringExecution, v1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution); + } + + @Override + public int hashCode() { + return Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecAffinityPodAntiAffinity {\n"); + sb.append(" preferredDuringSchedulingIgnoredDuringExecution: ").append(toIndentedString(preferredDuringSchedulingIgnoredDuringExecution)).append("\n"); + sb.append(" requiredDuringSchedulingIgnoredDuringExecution: ").append(toIndentedString(requiredDuringSchedulingIgnoredDuringExecution)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecMinecraftClusterRef.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecMinecraftClusterRef.java new file mode 100644 index 00000000..4b8103a9 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecMinecraftClusterRef.java @@ -0,0 +1,100 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Reference to a Minecraft Cluster. Adding this will enroll this Proxy Deployment to be part of a Minecraft Cluster. + */ +@ApiModel(description = "Reference to a Minecraft Cluster. Adding this will enroll this Proxy Deployment to be part of a Minecraft Cluster.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecMinecraftClusterRef { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + + public V1alpha1ProxyDeploymentSpecMinecraftClusterRef name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the Minecraft Cluster. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Name of the Minecraft Cluster.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecMinecraftClusterRef v1alpha1ProxyDeploymentSpecMinecraftClusterRef = (V1alpha1ProxyDeploymentSpecMinecraftClusterRef) o; + return Objects.equals(this.name, v1alpha1ProxyDeploymentSpecMinecraftClusterRef.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecMinecraftClusterRef {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverrides.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverrides.java new file mode 100644 index 00000000..02ee91e2 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverrides.java @@ -0,0 +1,200 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecPodOverridesEnv; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecPodOverridesLivenessProbe; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecPodOverridesReadinessProbe; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * Overrides configuration for the Proxy Deployment pod. + */ +@ApiModel(description = "Overrides configuration for the Proxy Deployment pod.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecPodOverrides { + public static final String SERIALIZED_NAME_ENV = "env"; + @SerializedName(SERIALIZED_NAME_ENV) + private List env = null; + + public static final String SERIALIZED_NAME_LIVENESS_PROBE = "livenessProbe"; + @SerializedName(SERIALIZED_NAME_LIVENESS_PROBE) + private V1alpha1ProxyDeploymentSpecPodOverridesLivenessProbe livenessProbe; + + public static final String SERIALIZED_NAME_READINESS_PROBE = "readinessProbe"; + @SerializedName(SERIALIZED_NAME_READINESS_PROBE) + private V1alpha1ProxyDeploymentSpecPodOverridesReadinessProbe readinessProbe; + + public static final String SERIALIZED_NAME_TERMINATION_GRACE_PERIOD_SECONDS = "terminationGracePeriodSeconds"; + @SerializedName(SERIALIZED_NAME_TERMINATION_GRACE_PERIOD_SECONDS) + private Long terminationGracePeriodSeconds; + + + public V1alpha1ProxyDeploymentSpecPodOverrides env(List env) { + + this.env = env; + return this; + } + + public V1alpha1ProxyDeploymentSpecPodOverrides addEnvItem(V1alpha1ProxyDeploymentSpecPodOverridesEnv envItem) { + if (this.env == null) { + this.env = new ArrayList<>(); + } + this.env.add(envItem); + return this; + } + + /** + * Additional environment variables to add to the Proxy Deployment. + * @return env + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Additional environment variables to add to the Proxy Deployment.") + + public List getEnv() { + return env; + } + + + public void setEnv(List env) { + this.env = env; + } + + + public V1alpha1ProxyDeploymentSpecPodOverrides livenessProbe(V1alpha1ProxyDeploymentSpecPodOverridesLivenessProbe livenessProbe) { + + this.livenessProbe = livenessProbe; + return this; + } + + /** + * Get livenessProbe + * @return livenessProbe + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecPodOverridesLivenessProbe getLivenessProbe() { + return livenessProbe; + } + + + public void setLivenessProbe(V1alpha1ProxyDeploymentSpecPodOverridesLivenessProbe livenessProbe) { + this.livenessProbe = livenessProbe; + } + + + public V1alpha1ProxyDeploymentSpecPodOverrides readinessProbe(V1alpha1ProxyDeploymentSpecPodOverridesReadinessProbe readinessProbe) { + + this.readinessProbe = readinessProbe; + return this; + } + + /** + * Get readinessProbe + * @return readinessProbe + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecPodOverridesReadinessProbe getReadinessProbe() { + return readinessProbe; + } + + + public void setReadinessProbe(V1alpha1ProxyDeploymentSpecPodOverridesReadinessProbe readinessProbe) { + this.readinessProbe = readinessProbe; + } + + + public V1alpha1ProxyDeploymentSpecPodOverrides terminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { + + this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; + return this; + } + + /** + * Number of seconds before force killing the pod after a graceful termination request. Defaults to 1 minute. + * @return terminationGracePeriodSeconds + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Number of seconds before force killing the pod after a graceful termination request. Defaults to 1 minute.") + + public Long getTerminationGracePeriodSeconds() { + return terminationGracePeriodSeconds; + } + + + public void setTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { + this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecPodOverrides v1alpha1ProxyDeploymentSpecPodOverrides = (V1alpha1ProxyDeploymentSpecPodOverrides) o; + return Objects.equals(this.env, v1alpha1ProxyDeploymentSpecPodOverrides.env) && + Objects.equals(this.livenessProbe, v1alpha1ProxyDeploymentSpecPodOverrides.livenessProbe) && + Objects.equals(this.readinessProbe, v1alpha1ProxyDeploymentSpecPodOverrides.readinessProbe) && + Objects.equals(this.terminationGracePeriodSeconds, v1alpha1ProxyDeploymentSpecPodOverrides.terminationGracePeriodSeconds); + } + + @Override + public int hashCode() { + return Objects.hash(env, livenessProbe, readinessProbe, terminationGracePeriodSeconds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecPodOverrides {\n"); + sb.append(" env: ").append(toIndentedString(env)).append("\n"); + sb.append(" livenessProbe: ").append(toIndentedString(livenessProbe)).append("\n"); + sb.append(" readinessProbe: ").append(toIndentedString(readinessProbe)).append("\n"); + sb.append(" terminationGracePeriodSeconds: ").append(toIndentedString(terminationGracePeriodSeconds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesEnv.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesEnv.java new file mode 100644 index 00000000..4feebf7c --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesEnv.java @@ -0,0 +1,158 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecPodOverridesValueFrom; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * EnvVar represents an environment variable present in a Container. + */ +@ApiModel(description = "EnvVar represents an environment variable present in a Container.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecPodOverridesEnv { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private String value; + + public static final String SERIALIZED_NAME_VALUE_FROM = "valueFrom"; + @SerializedName(SERIALIZED_NAME_VALUE_FROM) + private V1alpha1ProxyDeploymentSpecPodOverridesValueFrom valueFrom; + + + public V1alpha1ProxyDeploymentSpecPodOverridesEnv name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the environment variable. Must be a C_IDENTIFIER. + * @return name + **/ + @ApiModelProperty(required = true, value = "Name of the environment variable. Must be a C_IDENTIFIER.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public V1alpha1ProxyDeploymentSpecPodOverridesEnv value(String value) { + + this.value = value; + return this; + } + + /** + * Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". + * @return value + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".") + + public String getValue() { + return value; + } + + + public void setValue(String value) { + this.value = value; + } + + + public V1alpha1ProxyDeploymentSpecPodOverridesEnv valueFrom(V1alpha1ProxyDeploymentSpecPodOverridesValueFrom valueFrom) { + + this.valueFrom = valueFrom; + return this; + } + + /** + * Get valueFrom + * @return valueFrom + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFrom getValueFrom() { + return valueFrom; + } + + + public void setValueFrom(V1alpha1ProxyDeploymentSpecPodOverridesValueFrom valueFrom) { + this.valueFrom = valueFrom; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecPodOverridesEnv v1alpha1ProxyDeploymentSpecPodOverridesEnv = (V1alpha1ProxyDeploymentSpecPodOverridesEnv) o; + return Objects.equals(this.name, v1alpha1ProxyDeploymentSpecPodOverridesEnv.name) && + Objects.equals(this.value, v1alpha1ProxyDeploymentSpecPodOverridesEnv.value) && + Objects.equals(this.valueFrom, v1alpha1ProxyDeploymentSpecPodOverridesEnv.valueFrom); + } + + @Override + public int hashCode() { + return Objects.hash(name, value, valueFrom); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecPodOverridesEnv {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" valueFrom: ").append(toIndentedString(valueFrom)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesLivenessProbe.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesLivenessProbe.java new file mode 100644 index 00000000..bbaa332c --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesLivenessProbe.java @@ -0,0 +1,100 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Overrides for the liveness probe of the Proxy Deployment. + */ +@ApiModel(description = "Overrides for the liveness probe of the Proxy Deployment.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecPodOverridesLivenessProbe { + public static final String SERIALIZED_NAME_INITIAL_DELAY_SECONDS = "initialDelaySeconds"; + @SerializedName(SERIALIZED_NAME_INITIAL_DELAY_SECONDS) + private Integer initialDelaySeconds; + + + public V1alpha1ProxyDeploymentSpecPodOverridesLivenessProbe initialDelaySeconds(Integer initialDelaySeconds) { + + this.initialDelaySeconds = initialDelaySeconds; + return this; + } + + /** + * Number of seconds before starting to perform the probe. Depending on the server configuration, one can take more time than another to be ready. Defaults to 15 seconds. + * @return initialDelaySeconds + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Number of seconds before starting to perform the probe. Depending on the server configuration, one can take more time than another to be ready. Defaults to 15 seconds.") + + public Integer getInitialDelaySeconds() { + return initialDelaySeconds; + } + + + public void setInitialDelaySeconds(Integer initialDelaySeconds) { + this.initialDelaySeconds = initialDelaySeconds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecPodOverridesLivenessProbe v1alpha1ProxyDeploymentSpecPodOverridesLivenessProbe = (V1alpha1ProxyDeploymentSpecPodOverridesLivenessProbe) o; + return Objects.equals(this.initialDelaySeconds, v1alpha1ProxyDeploymentSpecPodOverridesLivenessProbe.initialDelaySeconds); + } + + @Override + public int hashCode() { + return Objects.hash(initialDelaySeconds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecPodOverridesLivenessProbe {\n"); + sb.append(" initialDelaySeconds: ").append(toIndentedString(initialDelaySeconds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesReadinessProbe.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesReadinessProbe.java new file mode 100644 index 00000000..595ace8d --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesReadinessProbe.java @@ -0,0 +1,100 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Overrides for the readiness probe of the Proxy Deployment. + */ +@ApiModel(description = "Overrides for the readiness probe of the Proxy Deployment.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecPodOverridesReadinessProbe { + public static final String SERIALIZED_NAME_INITIAL_DELAY_SECONDS = "initialDelaySeconds"; + @SerializedName(SERIALIZED_NAME_INITIAL_DELAY_SECONDS) + private Integer initialDelaySeconds; + + + public V1alpha1ProxyDeploymentSpecPodOverridesReadinessProbe initialDelaySeconds(Integer initialDelaySeconds) { + + this.initialDelaySeconds = initialDelaySeconds; + return this; + } + + /** + * Number of seconds before starting to perform the probe. Depending on the server configuration, one can take more time than another to be ready. Defaults to 15 seconds. + * @return initialDelaySeconds + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Number of seconds before starting to perform the probe. Depending on the server configuration, one can take more time than another to be ready. Defaults to 15 seconds.") + + public Integer getInitialDelaySeconds() { + return initialDelaySeconds; + } + + + public void setInitialDelaySeconds(Integer initialDelaySeconds) { + this.initialDelaySeconds = initialDelaySeconds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecPodOverridesReadinessProbe v1alpha1ProxyDeploymentSpecPodOverridesReadinessProbe = (V1alpha1ProxyDeploymentSpecPodOverridesReadinessProbe) o; + return Objects.equals(this.initialDelaySeconds, v1alpha1ProxyDeploymentSpecPodOverridesReadinessProbe.initialDelaySeconds); + } + + @Override + public int hashCode() { + return Objects.hash(initialDelaySeconds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecPodOverridesReadinessProbe {\n"); + sb.append(" initialDelaySeconds: ").append(toIndentedString(initialDelaySeconds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesValueFrom.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesValueFrom.java new file mode 100644 index 00000000..50f04711 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesValueFrom.java @@ -0,0 +1,191 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecPodOverridesValueFromFieldRef; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef; +import io.shulkermc.models.V1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Source for the environment variable's value. Cannot be used if value is not empty. + */ +@ApiModel(description = "Source for the environment variable's value. Cannot be used if value is not empty.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecPodOverridesValueFrom { + public static final String SERIALIZED_NAME_CONFIG_MAP_KEY_REF = "configMapKeyRef"; + @SerializedName(SERIALIZED_NAME_CONFIG_MAP_KEY_REF) + private V1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef configMapKeyRef; + + public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; + @SerializedName(SERIALIZED_NAME_FIELD_REF) + private V1alpha1ProxyDeploymentSpecPodOverridesValueFromFieldRef fieldRef; + + public static final String SERIALIZED_NAME_RESOURCE_FIELD_REF = "resourceFieldRef"; + @SerializedName(SERIALIZED_NAME_RESOURCE_FIELD_REF) + private V1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef resourceFieldRef; + + public static final String SERIALIZED_NAME_SECRET_KEY_REF = "secretKeyRef"; + @SerializedName(SERIALIZED_NAME_SECRET_KEY_REF) + private V1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef secretKeyRef; + + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFrom configMapKeyRef(V1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef configMapKeyRef) { + + this.configMapKeyRef = configMapKeyRef; + return this; + } + + /** + * Get configMapKeyRef + * @return configMapKeyRef + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef getConfigMapKeyRef() { + return configMapKeyRef; + } + + + public void setConfigMapKeyRef(V1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef configMapKeyRef) { + this.configMapKeyRef = configMapKeyRef; + } + + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFrom fieldRef(V1alpha1ProxyDeploymentSpecPodOverridesValueFromFieldRef fieldRef) { + + this.fieldRef = fieldRef; + return this; + } + + /** + * Get fieldRef + * @return fieldRef + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFromFieldRef getFieldRef() { + return fieldRef; + } + + + public void setFieldRef(V1alpha1ProxyDeploymentSpecPodOverridesValueFromFieldRef fieldRef) { + this.fieldRef = fieldRef; + } + + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFrom resourceFieldRef(V1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef resourceFieldRef) { + + this.resourceFieldRef = resourceFieldRef; + return this; + } + + /** + * Get resourceFieldRef + * @return resourceFieldRef + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef getResourceFieldRef() { + return resourceFieldRef; + } + + + public void setResourceFieldRef(V1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef resourceFieldRef) { + this.resourceFieldRef = resourceFieldRef; + } + + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFrom secretKeyRef(V1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef secretKeyRef) { + + this.secretKeyRef = secretKeyRef; + return this; + } + + /** + * Get secretKeyRef + * @return secretKeyRef + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef getSecretKeyRef() { + return secretKeyRef; + } + + + public void setSecretKeyRef(V1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef secretKeyRef) { + this.secretKeyRef = secretKeyRef; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecPodOverridesValueFrom v1alpha1ProxyDeploymentSpecPodOverridesValueFrom = (V1alpha1ProxyDeploymentSpecPodOverridesValueFrom) o; + return Objects.equals(this.configMapKeyRef, v1alpha1ProxyDeploymentSpecPodOverridesValueFrom.configMapKeyRef) && + Objects.equals(this.fieldRef, v1alpha1ProxyDeploymentSpecPodOverridesValueFrom.fieldRef) && + Objects.equals(this.resourceFieldRef, v1alpha1ProxyDeploymentSpecPodOverridesValueFrom.resourceFieldRef) && + Objects.equals(this.secretKeyRef, v1alpha1ProxyDeploymentSpecPodOverridesValueFrom.secretKeyRef); + } + + @Override + public int hashCode() { + return Objects.hash(configMapKeyRef, fieldRef, resourceFieldRef, secretKeyRef); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecPodOverridesValueFrom {\n"); + sb.append(" configMapKeyRef: ").append(toIndentedString(configMapKeyRef)).append("\n"); + sb.append(" fieldRef: ").append(toIndentedString(fieldRef)).append("\n"); + sb.append(" resourceFieldRef: ").append(toIndentedString(resourceFieldRef)).append("\n"); + sb.append(" secretKeyRef: ").append(toIndentedString(secretKeyRef)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef.java new file mode 100644 index 00000000..40d25c50 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef.java @@ -0,0 +1,157 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Selects a key of a ConfigMap. + */ +@ApiModel(description = "Selects a key of a ConfigMap.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_OPTIONAL = "optional"; + @SerializedName(SERIALIZED_NAME_OPTIONAL) + private Boolean optional; + + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef key(String key) { + + this.key = key; + return this; + } + + /** + * The key to select. + * @return key + **/ + @ApiModelProperty(required = true, value = "The key to select.") + + public String getKey() { + return key; + } + + + public void setKey(String key) { + this.key = key; + } + + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid? + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef optional(Boolean optional) { + + this.optional = optional; + return this; + } + + /** + * Specify whether the ConfigMap or its key must be defined + * @return optional + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Specify whether the ConfigMap or its key must be defined") + + public Boolean getOptional() { + return optional; + } + + + public void setOptional(Boolean optional) { + this.optional = optional; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef v1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef = (V1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef) o; + return Objects.equals(this.key, v1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef.key) && + Objects.equals(this.name, v1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef.name) && + Objects.equals(this.optional, v1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef.optional); + } + + @Override + public int hashCode() { + return Objects.hash(key, name, optional); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecPodOverridesValueFromConfigMapKeyRef {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesValueFromFieldRef.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesValueFromFieldRef.java new file mode 100644 index 00000000..077e6e2f --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesValueFromFieldRef.java @@ -0,0 +1,128 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. + */ +@ApiModel(description = "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['']`, `metadata.annotations['']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecPodOverridesValueFromFieldRef { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_FIELD_PATH = "fieldPath"; + @SerializedName(SERIALIZED_NAME_FIELD_PATH) + private String fieldPath; + + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFromFieldRef apiVersion(String apiVersion) { + + this.apiVersion = apiVersion; + return this; + } + + /** + * Version of the schema the FieldPath is written in terms of, defaults to \"v1\". + * @return apiVersion + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".") + + public String getApiVersion() { + return apiVersion; + } + + + public void setApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFromFieldRef fieldPath(String fieldPath) { + + this.fieldPath = fieldPath; + return this; + } + + /** + * Path of the field to select in the specified API version. + * @return fieldPath + **/ + @ApiModelProperty(required = true, value = "Path of the field to select in the specified API version.") + + public String getFieldPath() { + return fieldPath; + } + + + public void setFieldPath(String fieldPath) { + this.fieldPath = fieldPath; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecPodOverridesValueFromFieldRef v1alpha1ProxyDeploymentSpecPodOverridesValueFromFieldRef = (V1alpha1ProxyDeploymentSpecPodOverridesValueFromFieldRef) o; + return Objects.equals(this.apiVersion, v1alpha1ProxyDeploymentSpecPodOverridesValueFromFieldRef.apiVersion) && + Objects.equals(this.fieldPath, v1alpha1ProxyDeploymentSpecPodOverridesValueFromFieldRef.fieldPath); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, fieldPath); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecPodOverridesValueFromFieldRef {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" fieldPath: ").append(toIndentedString(fieldPath)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef.java new file mode 100644 index 00000000..8df9b09d --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef.java @@ -0,0 +1,157 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + */ +@ApiModel(description = "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef { + public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; + @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) + private String containerName; + + public static final String SERIALIZED_NAME_DIVISOR = "divisor"; + @SerializedName(SERIALIZED_NAME_DIVISOR) + private Object divisor; + + public static final String SERIALIZED_NAME_RESOURCE = "resource"; + @SerializedName(SERIALIZED_NAME_RESOURCE) + private String resource; + + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef containerName(String containerName) { + + this.containerName = containerName; + return this; + } + + /** + * Container name: required for volumes, optional for env vars + * @return containerName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Container name: required for volumes, optional for env vars") + + public String getContainerName() { + return containerName; + } + + + public void setContainerName(String containerName) { + this.containerName = containerName; + } + + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef divisor(Object divisor) { + + this.divisor = divisor; + return this; + } + + /** + * Specifies the output format of the exposed resources, defaults to \"1\" + * @return divisor + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Specifies the output format of the exposed resources, defaults to \"1\"") + + public Object getDivisor() { + return divisor; + } + + + public void setDivisor(Object divisor) { + this.divisor = divisor; + } + + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef resource(String resource) { + + this.resource = resource; + return this; + } + + /** + * Required: resource to select + * @return resource + **/ + @ApiModelProperty(required = true, value = "Required: resource to select") + + public String getResource() { + return resource; + } + + + public void setResource(String resource) { + this.resource = resource; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef v1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef = (V1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef) o; + return Objects.equals(this.containerName, v1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef.containerName) && + Objects.equals(this.divisor, v1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef.divisor) && + Objects.equals(this.resource, v1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef.resource); + } + + @Override + public int hashCode() { + return Objects.hash(containerName, divisor, resource); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecPodOverridesValueFromResourceFieldRef {\n"); + sb.append(" containerName: ").append(toIndentedString(containerName)).append("\n"); + sb.append(" divisor: ").append(toIndentedString(divisor)).append("\n"); + sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef.java new file mode 100644 index 00000000..7e709714 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef.java @@ -0,0 +1,157 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Selects a key of a secret in the pod's namespace + */ +@ApiModel(description = "Selects a key of a secret in the pod's namespace") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_OPTIONAL = "optional"; + @SerializedName(SERIALIZED_NAME_OPTIONAL) + private Boolean optional; + + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef key(String key) { + + this.key = key; + return this; + } + + /** + * The key of the secret to select from. Must be a valid secret key. + * @return key + **/ + @ApiModelProperty(required = true, value = "The key of the secret to select from. Must be a valid secret key.") + + public String getKey() { + return key; + } + + + public void setKey(String key) { + this.key = key; + } + + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid? + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public V1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef optional(Boolean optional) { + + this.optional = optional; + return this; + } + + /** + * Specify whether the Secret or its key must be defined + * @return optional + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") + + public Boolean getOptional() { + return optional; + } + + + public void setOptional(Boolean optional) { + this.optional = optional; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef v1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef = (V1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef) o; + return Objects.equals(this.key, v1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef.key) && + Objects.equals(this.name, v1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef.name) && + Objects.equals(this.optional, v1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef.optional); + } + + @Override + public int hashCode() { + return Objects.hash(key, name, optional); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecPodOverridesValueFromSecretKeyRef {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecResources.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecResources.java new file mode 100644 index 00000000..2f672c11 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecResources.java @@ -0,0 +1,148 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * The desired compute resource requirements of Pods in the Proxy Deployment. + */ +@ApiModel(description = "The desired compute resource requirements of Pods in the Proxy Deployment.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecResources { + public static final String SERIALIZED_NAME_LIMITS = "limits"; + @SerializedName(SERIALIZED_NAME_LIMITS) + private Map limits = null; + + public static final String SERIALIZED_NAME_REQUESTS = "requests"; + @SerializedName(SERIALIZED_NAME_REQUESTS) + private Map requests = null; + + + public V1alpha1ProxyDeploymentSpecResources limits(Map limits) { + + this.limits = limits; + return this; + } + + public V1alpha1ProxyDeploymentSpecResources putLimitsItem(String key, Object limitsItem) { + if (this.limits == null) { + this.limits = new HashMap<>(); + } + this.limits.put(key, limitsItem); + return this; + } + + /** + * Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * @return limits + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/") + + public Map getLimits() { + return limits; + } + + + public void setLimits(Map limits) { + this.limits = limits; + } + + + public V1alpha1ProxyDeploymentSpecResources requests(Map requests) { + + this.requests = requests; + return this; + } + + public V1alpha1ProxyDeploymentSpecResources putRequestsItem(String key, Object requestsItem) { + if (this.requests == null) { + this.requests = new HashMap<>(); + } + this.requests.put(key, requestsItem); + return this; + } + + /** + * Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + * @return requests + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/") + + public Map getRequests() { + return requests; + } + + + public void setRequests(Map requests) { + this.requests = requests; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecResources v1alpha1ProxyDeploymentSpecResources = (V1alpha1ProxyDeploymentSpecResources) o; + return Objects.equals(this.limits, v1alpha1ProxyDeploymentSpecResources.limits) && + Objects.equals(this.requests, v1alpha1ProxyDeploymentSpecResources.requests); + } + + @Override + public int hashCode() { + return Objects.hash(limits, requests); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecResources {\n"); + sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); + sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecService.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecService.java new file mode 100644 index 00000000..d9ed34c2 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecService.java @@ -0,0 +1,218 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * The desired state of the Kubernetes Service to create for the Proxy Deployment. + */ +@ApiModel(description = "The desired state of the Kubernetes Service to create for the Proxy Deployment.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecService { + public static final String SERIALIZED_NAME_ANNOTATIONS = "annotations"; + @SerializedName(SERIALIZED_NAME_ANNOTATIONS) + private Map annotations = null; + + public static final String SERIALIZED_NAME_ENABLED = "enabled"; + @SerializedName(SERIALIZED_NAME_ENABLED) + private Boolean enabled; + + /** + * Type of Service to create. Must be one of: ClusterIP, LoadBalancer, NodePort. More info: https://pkg.go.dev/k8s.io/api/core/v1#ServiceType + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + CLUSTERIP("ClusterIP"), + + LOADBALANCER("LoadBalancer"), + + NODEPORT("NodePort"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + + public V1alpha1ProxyDeploymentSpecService annotations(Map annotations) { + + this.annotations = annotations; + return this; + } + + public V1alpha1ProxyDeploymentSpecService putAnnotationsItem(String key, String annotationsItem) { + if (this.annotations == null) { + this.annotations = new HashMap<>(); + } + this.annotations.put(key, annotationsItem); + return this; + } + + /** + * Annotations to add to the Service. + * @return annotations + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Annotations to add to the Service.") + + public Map getAnnotations() { + return annotations; + } + + + public void setAnnotations(Map annotations) { + this.annotations = annotations; + } + + + public V1alpha1ProxyDeploymentSpecService enabled(Boolean enabled) { + + this.enabled = enabled; + return this; + } + + /** + * Whether to create a Service for the Proxy Deployment. Defaults to false. + * @return enabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Whether to create a Service for the Proxy Deployment. Defaults to false.") + + public Boolean getEnabled() { + return enabled; + } + + + public void setEnabled(Boolean enabled) { + this.enabled = enabled; + } + + + public V1alpha1ProxyDeploymentSpecService type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Type of Service to create. Must be one of: ClusterIP, LoadBalancer, NodePort. More info: https://pkg.go.dev/k8s.io/api/core/v1#ServiceType + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Type of Service to create. Must be one of: ClusterIP, LoadBalancer, NodePort. More info: https://pkg.go.dev/k8s.io/api/core/v1#ServiceType") + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecService v1alpha1ProxyDeploymentSpecService = (V1alpha1ProxyDeploymentSpecService) o; + return Objects.equals(this.annotations, v1alpha1ProxyDeploymentSpecService.annotations) && + Objects.equals(this.enabled, v1alpha1ProxyDeploymentSpecService.enabled) && + Objects.equals(this.type, v1alpha1ProxyDeploymentSpecService.type); + } + + @Override + public int hashCode() { + return Objects.hash(annotations, enabled, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecService {\n"); + sb.append(" annotations: ").append(toIndentedString(annotations)).append("\n"); + sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecVersion.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecVersion.java new file mode 100644 index 00000000..f5c83dc5 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentSpecVersion.java @@ -0,0 +1,177 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Version the Proxy Deployment has to run. + */ +@ApiModel(description = "Version the Proxy Deployment has to run.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentSpecVersion { + /** + * Channel of the version to use. Defaults to BungeeCord. + */ + @JsonAdapter(ChannelEnum.Adapter.class) + public enum ChannelEnum { + BUNGEECORD("BungeeCord"), + + WATERFALL("Waterfall"), + + VELOCITY("Velocity"); + + private String value; + + ChannelEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ChannelEnum fromValue(String value) { + for (ChannelEnum b : ChannelEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ChannelEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ChannelEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ChannelEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CHANNEL = "channel"; + @SerializedName(SERIALIZED_NAME_CHANNEL) + private ChannelEnum channel; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + + public V1alpha1ProxyDeploymentSpecVersion channel(ChannelEnum channel) { + + this.channel = channel; + return this; + } + + /** + * Channel of the version to use. Defaults to BungeeCord. + * @return channel + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Channel of the version to use. Defaults to BungeeCord.") + + public ChannelEnum getChannel() { + return channel; + } + + + public void setChannel(ChannelEnum channel) { + this.channel = channel; + } + + + public V1alpha1ProxyDeploymentSpecVersion name(String name) { + + this.name = name; + return this; + } + + /** + * Name of the version to use. + * @return name + **/ + @ApiModelProperty(required = true, value = "Name of the version to use.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentSpecVersion v1alpha1ProxyDeploymentSpecVersion = (V1alpha1ProxyDeploymentSpecVersion) o; + return Objects.equals(this.channel, v1alpha1ProxyDeploymentSpecVersion.channel) && + Objects.equals(this.name, v1alpha1ProxyDeploymentSpecVersion.name); + } + + @Override + public int hashCode() { + return Objects.hash(channel, name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentSpecVersion {\n"); + sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentStatus.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentStatus.java new file mode 100644 index 00000000..a59608e2 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentStatus.java @@ -0,0 +1,163 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.shulkermc.models.V1alpha1ProxyDeploymentStatusConditions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * ProxyDeploymentStatus defines the observed state of ProxyDeployment + */ +@ApiModel(description = "ProxyDeploymentStatus defines the observed state of ProxyDeployment") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentStatus { + public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; + @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) + private Integer availableReplicas; + + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) + private List conditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; + + + public V1alpha1ProxyDeploymentStatus availableReplicas(Integer availableReplicas) { + + this.availableReplicas = availableReplicas; + return this; + } + + /** + * Number of available replicas in Proxy Deployment. + * @return availableReplicas + **/ + @ApiModelProperty(required = true, value = "Number of available replicas in Proxy Deployment.") + + public Integer getAvailableReplicas() { + return availableReplicas; + } + + + public void setAvailableReplicas(Integer availableReplicas) { + this.availableReplicas = availableReplicas; + } + + + public V1alpha1ProxyDeploymentStatus conditions(List conditions) { + + this.conditions = conditions; + return this; + } + + public V1alpha1ProxyDeploymentStatus addConditionsItem(V1alpha1ProxyDeploymentStatusConditions conditionsItem) { + this.conditions.add(conditionsItem); + return this; + } + + /** + * Conditions represent the latest available observations of a ProxyDeployment object. + * @return conditions + **/ + @ApiModelProperty(required = true, value = "Conditions represent the latest available observations of a ProxyDeployment object.") + + public List getConditions() { + return conditions; + } + + + public void setConditions(List conditions) { + this.conditions = conditions; + } + + + public V1alpha1ProxyDeploymentStatus replicas(Integer replicas) { + + this.replicas = replicas; + return this; + } + + /** + * Number of total replicas in Proxy Deployment. + * @return replicas + **/ + @ApiModelProperty(required = true, value = "Number of total replicas in Proxy Deployment.") + + public Integer getReplicas() { + return replicas; + } + + + public void setReplicas(Integer replicas) { + this.replicas = replicas; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentStatus v1alpha1ProxyDeploymentStatus = (V1alpha1ProxyDeploymentStatus) o; + return Objects.equals(this.availableReplicas, v1alpha1ProxyDeploymentStatus.availableReplicas) && + Objects.equals(this.conditions, v1alpha1ProxyDeploymentStatus.conditions) && + Objects.equals(this.replicas, v1alpha1ProxyDeploymentStatus.replicas); + } + + @Override + public int hashCode() { + return Objects.hash(availableReplicas, conditions, replicas); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentStatus {\n"); + sb.append(" availableReplicas: ").append(toIndentedString(availableReplicas)).append("\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentStatusConditions.java b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentStatusConditions.java new file mode 100644 index 00000000..1be097e8 --- /dev/null +++ b/support/shulker-crds/src/main/java/io/shulkermc/models/V1alpha1ProxyDeploymentStatusConditions.java @@ -0,0 +1,291 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.21.1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.shulkermc.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` // other fields } + */ +@ApiModel(description = "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` // other fields }") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-03-05T15:48:55.272Z[Etc/UTC]") +public class V1alpha1ProxyDeploymentStatusConditions { + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private OffsetDateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; + + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; + + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; + + /** + * status of the condition, one of True, False, Unknown. + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + TRUE("True"), + + FALSE("False"), + + UNKNOWN("Unknown"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private StatusEnum status; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + + public V1alpha1ProxyDeploymentStatusConditions lastTransitionTime(OffsetDateTime lastTransitionTime) { + + this.lastTransitionTime = lastTransitionTime; + return this; + } + + /** + * lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. + * @return lastTransitionTime + **/ + @ApiModelProperty(required = true, value = "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.") + + public OffsetDateTime getLastTransitionTime() { + return lastTransitionTime; + } + + + public void setLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + } + + + public V1alpha1ProxyDeploymentStatusConditions message(String message) { + + this.message = message; + return this; + } + + /** + * message is a human readable message indicating details about the transition. This may be an empty string. + * @return message + **/ + @ApiModelProperty(required = true, value = "message is a human readable message indicating details about the transition. This may be an empty string.") + + public String getMessage() { + return message; + } + + + public void setMessage(String message) { + this.message = message; + } + + + public V1alpha1ProxyDeploymentStatusConditions observedGeneration(Long observedGeneration) { + + this.observedGeneration = observedGeneration; + return this; + } + + /** + * observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. + * minimum: 0 + * @return observedGeneration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.") + + public Long getObservedGeneration() { + return observedGeneration; + } + + + public void setObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + } + + + public V1alpha1ProxyDeploymentStatusConditions reason(String reason) { + + this.reason = reason; + return this; + } + + /** + * reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. + * @return reason + **/ + @ApiModelProperty(required = true, value = "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.") + + public String getReason() { + return reason; + } + + + public void setReason(String reason) { + this.reason = reason; + } + + + public V1alpha1ProxyDeploymentStatusConditions status(StatusEnum status) { + + this.status = status; + return this; + } + + /** + * status of the condition, one of True, False, Unknown. + * @return status + **/ + @ApiModelProperty(required = true, value = "status of the condition, one of True, False, Unknown.") + + public StatusEnum getStatus() { + return status; + } + + + public void setStatus(StatusEnum status) { + this.status = status; + } + + + public V1alpha1ProxyDeploymentStatusConditions type(String type) { + + this.type = type; + return this; + } + + /** + * type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) + * @return type + **/ + @ApiModelProperty(required = true, value = "type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)") + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha1ProxyDeploymentStatusConditions v1alpha1ProxyDeploymentStatusConditions = (V1alpha1ProxyDeploymentStatusConditions) o; + return Objects.equals(this.lastTransitionTime, v1alpha1ProxyDeploymentStatusConditions.lastTransitionTime) && + Objects.equals(this.message, v1alpha1ProxyDeploymentStatusConditions.message) && + Objects.equals(this.observedGeneration, v1alpha1ProxyDeploymentStatusConditions.observedGeneration) && + Objects.equals(this.reason, v1alpha1ProxyDeploymentStatusConditions.reason) && + Objects.equals(this.status, v1alpha1ProxyDeploymentStatusConditions.status) && + Objects.equals(this.type, v1alpha1ProxyDeploymentStatusConditions.type); + } + + @Override + public int hashCode() { + return Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha1ProxyDeploymentStatusConditions {\n"); + sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} +