8000 Remove auto-generated Java Classes for unused fields of Scan CRD #thisIsNoJavaRepo by J12934 · Pull Request #341 · secureCodeBox/secureCodeBox · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* Scan is the Schema for the scans API
*/
@ApiModel(description = "Scan is the Schema for the scans API")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-03-18T15:41:43.082Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-03-26T19:41:39.505Z[Etc/UTC]")
public class V1Scan implements io.kubernetes.client.common.KubernetesObject {
public static final String SERIALIZED_NAME_API_VERSION = "apiVersion";
@SerializedName(SERIALIZED_NAME_API_VERSION)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* ScanList is a list of Scan
*/
@ApiModel(description = "ScanList is a list of Scan")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-03-18T15:41:43.082Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-03-26T19:41:39.505Z[Etc/UTC]")
public class V1ScanList implements io.kubernetes.client.common.KubernetesListObject {
public static final String SERIALIZED_NAME_API_VERSION = "apiVersion";
@SerializedName(SERIALIZED_NAME_API_VERSION)
Expand Down
B0C8
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.securecodebox.models.V1ScanSpecCascades;
import io.securecodebox.models.V1ScanSpecEnv;
import io.securecodebox.models.V1ScanSpecVolumeMounts;
import io.securecodebox.models.V1ScanSpecVolumes;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
Expand All @@ -34,16 +31,12 @@
* ScanSpec defines the desired state of Scan
*/
@ApiModel(description = "ScanSpec defines the desired state of Scan")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-03-18T15:41:43.082Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-03-26T19:41:39.505Z[Etc/UTC]")
public class V1ScanSpec {
public static final String SERIALIZED_NAME_CASCADES = "cascades";
@SerializedName(SERIALIZED_NAME_CASCADES)
private V1ScanSpecCascades cascades;

public static final String SERIALIZED_NAME_ENV = "env";
@SerializedName(SE B0C8 RIALIZED_NAME_ENV)
private List<V1ScanSpecEnv> env = null;

public static final String SERIALIZED_NAME_PARAMETERS = "parameters";
@SerializedName(SERIALIZED_NAME_PARAMETERS)
private List<String> parameters = null;
Expand All @@ -52,14 +45,6 @@ public class V1ScanSpec {
@SerializedName(SERIALIZED_NAME_SCAN_TYPE)
private String scanType;

public static final String SERIALIZED_NAME_VOLUME_MOUNTS = "volumeMounts";
@SerializedName(SERIALIZED_NAME_VOLUME_MOUNTS)
private List<V1ScanSpecVolumeMounts> volumeMounts = null;

public static final String SERIALIZED_NAME_VOLUMES = "volumes";
@SerializedName(SERIALIZED_NAME_VOLUMES)
private List<V1ScanSpecVolumes> volumes = null;


public V1ScanSpec cascades(V1ScanSpecCascades cascades) {

Expand All @@ -84,37 +69,6 @@ public void setCascades(V1ScanSpecCascades cascades) {
}


public V1ScanSpec env(List<V1ScanSpecEnv> env) {

this.env = env;
return this;
}

public V1ScanSpec addEnvItem(V1ScanSpecEnv envItem) {
if (this.env == null) {
this.env = new ArrayList<V1ScanSpecEnv>();
}
this.env.add(envItem);
return this;
}

/**
* Env allows to specify environment vars for the scanner container. These will be merged will the env vars specified for the first container of the pod defined in the ScanType
* @return env
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Env allows to specify environment vars for the scanner container. These will be merged will the env vars specified for the first container of the pod defined in the ScanType")

public List<V1ScanSpecEnv> getEnv() {
return env;
}


public void setEnv(List<V1ScanSpecEnv> env) {
this.env = env;
}


public V1ScanSpec parameters(List<String> parameters) {

this.parameters = parameters;
Expand Down Expand Up @@ -169,68 +123,6 @@ public void setScanType(String scanType) {
}


public V1ScanSpec volumeMounts(List<V1ScanSpecVolumeMounts> volumeMounts) {

this.volumeMounts = volumeMounts;
return this;
}

public V1ScanSpec addVolumeMountsItem(V1ScanSpecVolumeMounts volumeMountsItem) {
if (this.volumeMounts == null) {
this.volumeMounts = new ArrayList<V1ScanSpecVolumeMounts>();
}
this.volumeMounts.add(volumeMountsItem);
return this;
}

/**
* VolumeMounts allows to specify volume mounts for the scan container.
* @return volumeMounts
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "VolumeMounts allows to specify volume mounts for the scan container.")

public List<V1ScanSpecVolumeMounts> getVolumeMounts() {
return volumeMounts;
}


public void setVolumeMounts(List<V1ScanSpecVolumeMounts> volumeMounts) {
this.volumeMounts = volumeMounts;
}


public V1ScanSpec volumes(List<V1ScanSpecVolumes> volumes) {

this.volumes = volumes;
return this;
}

public V1ScanSpec addVolumesItem(V1ScanSpecVolumes volumesItem) {
if (this.volumes == null) {
this.volumes = new ArrayList<V1ScanSpecVolumes>();
}
this.volumes.add(volumesItem);
return this;
}

/**
* Volumes allows to specify volumes for the scan container.
* @return volumes
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Volumes allows to specify volumes for the scan container.")

public List<V1ScanSpecVolumes> getVolumes() {
return volumes;
}


public void setVolumes(List<V1ScanSpecVolumes> volumes) {
this.volumes = volumes;
}


@Override
public boolean equals(Object o) {
if (this == o) {
Expand All @@ -241,16 +133,13 @@ public boolean equals(Object o) {
}
V1ScanSpec v1ScanSpec = (V1ScanSpec) o;
return Objects.equals(this.cascades, v1ScanSpec.cascades) &&
Objects.equals(this.env, v1ScanSpec.env) &&
Objects.equals(this.parameters, v1ScanSpec.parameters) &&
Objects.equals(this.scanType, v1ScanSpec.scanType) &&
Objects.equals(this.volumeMounts, v1ScanSpec.volumeMounts) &&
Objects.equals(this.volumes, v1ScanSpec.volumes);
Objects.equals(this.scanType, v1ScanSpec.scanType);
}

@Override
public int hashCode() {
return Objects.hash(cascades, env, parameters, scanType, volumeMounts, volumes);
return Objects.hash(cascades, parameters, scanType);
}


Expand All @@ -259,11 +148,8 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1ScanSpec {\n");
sb.append(" cascades: ").append(toIndentedString(cascades)).append("\n");
sb.append(" env: ").append(toIndentedString(env)).append("\n");
sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n");
sb.append(" scanType: ").append(toIndentedString(scanType)).append("\n");
sb.append(" volumeMounts: ").append(toIndentedString(volumeMounts)).append("\n");
sb.append(" volumes: ").append(toIndentedString(volumes)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down

This file was deleted.

Loading
0