All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.alauda.kubernetes.api.model.extensions.PodSecurityPolicySpec Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model.extensions;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.Valid;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.alauda.kubernetes.api.model.Doneable;
import io.alauda.kubernetes.api.model.KubernetesResource;
import io.sundr.builder.annotations.Buildable;
import io.sundr.builder.annotations.Inline;
import lombok.EqualsAndHashCode;
import lombok.ToString;
/**
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"apiVersion",
"kind",
"metadata",
"allowedCapabilities",
"defaultAddCapabilities",
"fsGroup",
"hostIPC",
"hostNetwork",
"hostPID",
"hostPorts",
"privileged",
"readOnlyRootFilesystem",
"requiredDropCapabilities",
"runAsUser",
"seLinux",
"supplementalGroups",
"volumes"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.alauda.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done"))
public class PodSecurityPolicySpec implements KubernetesResource
{
/**
*
*
*/
@JsonProperty("allowedCapabilities")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Valid
private List allowedCapabilities = new ArrayList();
/**
*
*
*/
@JsonProperty("defaultAddCapabilities")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Valid
private List defaultAddCapabilities = new ArrayList();
/**
*
*
*/
@JsonProperty("fsGroup")
@Valid
private FSGroupStrategyOptions fsGroup;
/**
*
*
*/
@JsonProperty("hostIPC")
private Boolean hostIPC;
/**
*
*
*/
@JsonProperty("hostNetwork")
private Boolean hostNetwork;
/**
*
*
*/
@JsonProperty("hostPID")
private Boolean hostPID;
/**
*
*
*/
@JsonProperty("hostPorts")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Valid
private List hostPorts = new ArrayList();
/**
*
*
*/
@JsonProperty("privileged")
private Boolean privileged;
/**
*
*
*/
@JsonProperty("readOnlyRootFilesystem")
private Boolean readOnlyRootFilesystem;
/**
*
*
*/
@JsonProperty("requiredDropCapabilities")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Valid
private List requiredDropCapabilities = new ArrayList();
/**
*
*
*/
@JsonProperty("runAsUser")
@Valid
private KubernetesRunAsUserStrategyOptions runAsUser;
/**
*
*
*/
@JsonProperty("seLinux")
@Valid
private SELinuxStrategyOptions seLinux;
/**
*
*
*/
@JsonProperty("supplementalGroups")
@Valid
private SupplementalGroupsStrategyOptions supplementalGroups;
/**
*
*
*/
@JsonProperty("volumes")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Valid
private List volumes = new ArrayList();
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public PodSecurityPolicySpec() {
}
/**
*
* @param defaultAddCapabilities
* @param hostPorts
* @param fsGroup
* @param seLinux
* @param hostNetwork
* @param hostIPC
* @param volumes
* @param requiredDropCapabilities
* @param allowedCapabilities
* @param readOnlyRootFilesystem
* @param privileged
* @param runAsUser
* @param supplementalGroups
* @param hostPID
*/
public PodSecurityPolicySpec(List allowedCapabilities, List defaultAddCapabilities, FSGroupStrategyOptions fsGroup, Boolean hostIPC, Boolean hostNetwork, Boolean hostPID, List hostPorts, Boolean privileged, Boolean readOnlyRootFilesystem, List requiredDropCapabilities, KubernetesRunAsUserStrategyOptions runAsUser, SELinuxStrategyOptions seLinux, SupplementalGroupsStrategyOptions supplementalGroups, List volumes) {
this.allowedCapabilities = allowedCapabilities;
this.defaultAddCapabilities = defaultAddCapabilities;
this.fsGroup = fsGroup;
this.hostIPC = hostIPC;
this.hostNetwork = hostNetwork;
this.hostPID = hostPID;
this.hostPorts = hostPorts;
this.privileged = privileged;
this.readOnlyRootFilesystem = readOnlyRootFilesystem;
this.requiredDropCapabilities = requiredDropCapabilities;
this.runAsUser = runAsUser;
this.seLinux = seLinux;
this.supplementalGroups = supplementalGroups;
this.volumes = volumes;
}
/**
*
*
* @return
* The allowedCapabilities
*/
@JsonProperty("allowedCapabilities")
public List getAllowedCapabilities() {
return allowedCapabilities;
}
/**
*
*
* @param allowedCapabilities
* The allowedCapabilities
*/
@JsonProperty("allowedCapabilities")
public void setAllowedCapabilities(List allowedCapabilities) {
this.allowedCapabilities = allowedCapabilities;
}
/**
*
*
* @return
* The defaultAddCapabilities
*/
@JsonProperty("defaultAddCapabilities")
public List getDefaultAddCapabilities() {
return defaultAddCapabilities;
}
/**
*
*
* @param defaultAddCapabilities
* The defaultAddCapabilities
*/
@JsonProperty("defaultAddCapabilities")
public void setDefaultAddCapabilities(List defaultAddCapabilities) {
this.defaultAddCapabilities = defaultAddCapabilities;
}
/**
*
*
* @return
* The fsGroup
*/
@JsonProperty("fsGroup")
public FSGroupStrategyOptions getFsGroup() {
return fsGroup;
}
/**
*
*
* @param fsGroup
* The fsGroup
*/
@JsonProperty("fsGroup")
public void setFsGroup(FSGroupStrategyOptions fsGroup) {
this.fsGroup = fsGroup;
}
/**
*
*
* @return
* The hostIPC
*/
@JsonProperty("hostIPC")
public Boolean getHostIPC() {
return hostIPC;
}
/**
*
*
* @param hostIPC
* The hostIPC
*/
@JsonProperty("hostIPC")
public void setHostIPC(Boolean hostIPC) {
this.hostIPC = hostIPC;
}
/**
*
*
* @return
* The hostNetwork
*/
@JsonProperty("hostNetwork")
public Boolean getHostNetwork() {
return hostNetwork;
}
/**
*
*
* @param hostNetwork
* The hostNetwork
*/
@JsonProperty("hostNetwork")
public void setHostNetwork(Boolean hostNetwork) {
this.hostNetwork = hostNetwork;
}
/**
*
*
* @return
* The hostPID
*/
@JsonProperty("hostPID")
public Boolean getHostPID() {
return hostPID;
}
/**
*
*
* @param hostPID
* The hostPID
*/
@JsonProperty("hostPID")
public void setHostPID(Boolean hostPID) {
this.hostPID = hostPID;
}
/**
*
*
* @return
* The hostPorts
*/
@JsonProperty("hostPorts")
public List getHostPorts() {
return hostPorts;
}
/**
*
*
* @param hostPorts
* The hostPorts
*/
@JsonProperty("hostPorts")
public void setHostPorts(List hostPorts) {
this.hostPorts = hostPorts;
}
/**
*
*
* @return
* The privileged
*/
@JsonProperty("privileged")
public Boolean getPrivileged() {
return privileged;
}
/**
*
*
* @param privileged
* The privileged
*/
@JsonProperty("privileged")
public void setPrivileged(Boolean privileged) {
this.privileged = privileged;
}
/**
*
*
* @return
* The readOnlyRootFilesystem
*/
@JsonProperty("readOnlyRootFilesystem")
public Boolean getReadOnlyRootFilesystem() {
return readOnlyRootFilesystem;
}
/**
*
*
* @param readOnlyRootFilesystem
* The readOnlyRootFilesystem
*/
@JsonProperty("readOnlyRootFilesystem")
public void setReadOnlyRootFilesystem(Boolean readOnlyRootFilesystem) {
this.readOnlyRootFilesystem = readOnlyRootFilesystem;
}
/**
*
*
* @return
* The requiredDropCapabilities
*/
@JsonProperty("requiredDropCapabilities")
public List getRequiredDropCapabilities() {
return requiredDropCapabilities;
}
/**
*
*
* @param requiredDropCapabilities
* The requiredDropCapabilities
*/
@JsonProperty("requiredDropCapabilities")
public void setRequiredDropCapabilities(List requiredDropCapabilities) {
this.requiredDropCapabilities = requiredDropCapabilities;
}
/**
*
*
* @return
* The runAsUser
*/
@JsonProperty("runAsUser")
public KubernetesRunAsUserStrategyOptions getRunAsUser() {
return runAsUser;
}
/**
*
*
* @param runAsUser
* The runAsUser
*/
@JsonProperty("runAsUser")
public void setRunAsUser(KubernetesRunAsUserStrategyOptions runAsUser) {
this.runAsUser = runAsUser;
}
/**
*
*
* @return
* The seLinux
*/
@JsonProperty("seLinux")
public SELinuxStrategyOptions getSeLinux() {
return seLinux;
}
/**
*
*
* @param seLinux
* The seLinux
*/
@JsonProperty("seLinux")
public void setSeLinux(SELinuxStrategyOptions seLinux) {
this.seLinux = seLinux;
}
/**
*
*
* @return
* The supplementalGroups
*/
@JsonProperty("supplementalGroups")
public SupplementalGroupsStrategyOptions getSupplementalGroups() {
return supplementalGroups;
}
/**
*
*
* @param supplementalGroups
* The supplementalGroups
*/
@JsonProperty("supplementalGroups")
public void setSupplementalGroups(SupplementalGroupsStrategyOptions supplementalGroups) {
this.supplementalGroups = supplementalGroups;
}
/**
*
*
* @return
* The volumes
*/
@JsonProperty("volumes")
public List getVolumes() {
return volumes;
}
/**
*
*
* @param volumes
* The volumes
*/
@JsonProperty("volumes")
public void setVolumes(List volumes) {
this.volumes = volumes;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
}