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.fabric8.openshift.api.model.SubjectAccessReview Maven / Gradle / Ivy
package io.fabric8.openshift.api.model;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.fabric8.kubernetes.api.builder.Editable;
import io.fabric8.kubernetes.api.model.Container;
import io.fabric8.kubernetes.api.model.GenericKubernetesResource;
import io.fabric8.kubernetes.api.model.IntOrString;
import io.fabric8.kubernetes.api.model.KubernetesResource;
import io.fabric8.kubernetes.api.model.LabelSelector;
import io.fabric8.kubernetes.api.model.LocalObjectReference;
import io.fabric8.kubernetes.api.model.ObjectMeta;
import io.fabric8.kubernetes.api.model.ObjectReference;
import io.fabric8.kubernetes.api.model.PersistentVolumeClaim;
import io.fabric8.kubernetes.api.model.PodTemplateSpec;
import io.fabric8.kubernetes.api.model.ResourceRequirements;
import io.fabric8.kubernetes.api.model.runtime.RawExtension;
import io.fabric8.kubernetes.model.annotation.Group;
import io.fabric8.kubernetes.model.annotation.Version;
import io.sundr.builder.annotations.Buildable;
import io.sundr.builder.annotations.BuildableReference;
import io.sundr.transform.annotations.TemplateTransformation;
import io.sundr.transform.annotations.TemplateTransformations;
import lombok.EqualsAndHashCode;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"apiVersion",
"kind",
"metadata",
"content",
"groups",
"isNonResourceURL",
"namespace",
"path",
"resource",
"resourceAPIGroup",
"resourceAPIVersion",
"resourceName",
"scopes",
"user",
"verb"
})
@ToString
@EqualsAndHashCode
@Setter
@Accessors(prefix = {
"_",
""
})
@Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = {
@BuildableReference(ObjectMeta.class),
@BuildableReference(LabelSelector.class),
@BuildableReference(Container.class),
@BuildableReference(PodTemplateSpec.class),
@BuildableReference(ResourceRequirements.class),
@BuildableReference(IntOrString.class),
@BuildableReference(ObjectReference.class),
@BuildableReference(LocalObjectReference.class),
@BuildableReference(PersistentVolumeClaim.class),
@BuildableReference(GenericKubernetesResource.class),
@BuildableReference(RawExtension.class)
})
@TemplateTransformations({
@TemplateTransformation(value = "/manifest.vm", outputPath = "META-INF/services/io.fabric8.kubernetes.api.model.KubernetesResource", gather = true)
})
@Version("v1")
@Group("authorization.openshift.io")
@Generated("jsonschema2pojo")
public class SubjectAccessReview implements Editable , KubernetesResource
{
/**
*
* (Required)
*
*/
@JsonProperty("apiVersion")
private String apiVersion = "authorization.openshift.io/v1";
@JsonProperty("content")
private KubernetesResource content;
@JsonProperty("groups")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List groups = new ArrayList();
@JsonProperty("isNonResourceURL")
private Boolean isNonResourceURL;
/**
*
* (Required)
*
*/
@JsonProperty("kind")
private String kind = "SubjectAccessReview";
@JsonProperty("namespace")
private String namespace;
@JsonProperty("path")
private String path;
@JsonProperty("resource")
private String resource;
@JsonProperty("resourceAPIGroup")
private String resourceAPIGroup;
@JsonProperty("resourceAPIVersion")
private String resourceAPIVersion;
@JsonProperty("resourceName")
private String resourceName;
@JsonProperty("scopes")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
private List scopes = new ArrayList();
@JsonProperty("user")
private String user;
@JsonProperty("verb")
private String verb;
@JsonIgnore
private Map additionalProperties = new LinkedHashMap();
/**
* No args constructor for use in serialization
*
*/
public SubjectAccessReview() {
}
public SubjectAccessReview(String apiVersion, KubernetesResource content, List groups, Boolean isNonResourceURL, String kind, String namespace, String path, String resource, String resourceAPIGroup, String resourceAPIVersion, String resourceName, List scopes, String user, String verb) {
super();
this.apiVersion = apiVersion;
this.content = content;
this.groups = groups;
this.isNonResourceURL = isNonResourceURL;
this.kind = kind;
this.namespace = namespace;
this.path = path;
this.resource = resource;
this.resourceAPIGroup = resourceAPIGroup;
this.resourceAPIVersion = resourceAPIVersion;
this.resourceName = resourceName;
this.scopes = scopes;
this.user = user;
this.verb = verb;
}
/**
*
* (Required)
*
*/
@JsonProperty("apiVersion")
public String getApiVersion() {
return apiVersion;
}
/**
*
* (Required)
*
*/
@JsonProperty("apiVersion")
public void setApiVersion(String apiVersion) {
this.apiVersion = apiVersion;
}
@JsonProperty("content")
public KubernetesResource getContent() {
return content;
}
@JsonProperty("content")
public void setContent(KubernetesResource content) {
this.content = content;
}
@JsonProperty("groups")
public List getGroups() {
return groups;
}
@JsonProperty("groups")
public void setGroups(List groups) {
this.groups = groups;
}
@JsonProperty("isNonResourceURL")
public Boolean getIsNonResourceURL() {
return isNonResourceURL;
}
@JsonProperty("isNonResourceURL")
public void setIsNonResourceURL(Boolean isNonResourceURL) {
this.isNonResourceURL = isNonResourceURL;
}
/**
*
* (Required)
*
*/
@JsonProperty("kind")
public String getKind() {
return kind;
}
/**
*
* (Required)
*
*/
@JsonProperty("kind")
public void setKind(String kind) {
this.kind = kind;
}
@JsonProperty("namespace")
public String getNamespace() {
return namespace;
}
@JsonProperty("namespace")
public void setNamespace(String namespace) {
this.namespace = namespace;
}
@JsonProperty("path")
public String getPath() {
return path;
}
@JsonProperty("path")
public void setPath(String path) {
this.path = path;
}
@JsonProperty("resource")
public String getResource() {
return resource;
}
@JsonProperty("resource")
public void setResource(String resource) {
this.resource = resource;
}
@JsonProperty("resourceAPIGroup")
public String getResourceAPIGroup() {
return resourceAPIGroup;
}
@JsonProperty("resourceAPIGroup")
public void setResourceAPIGroup(String resourceAPIGroup) {
this.resourceAPIGroup = resourceAPIGroup;
}
@JsonProperty("resourceAPIVersion")
public String getResourceAPIVersion() {
return resourceAPIVersion;
}
@JsonProperty("resourceAPIVersion")
public void setResourceAPIVersion(String resourceAPIVersion) {
this.resourceAPIVersion = resourceAPIVersion;
}
@JsonProperty("resourceName")
public String getResourceName() {
return resourceName;
}
@JsonProperty("resourceName")
public void setResourceName(String resourceName) {
this.resourceName = resourceName;
}
@JsonProperty("scopes")
public List getScopes() {
return scopes;
}
@JsonProperty("scopes")
public void setScopes(List scopes) {
this.scopes = scopes;
}
@JsonProperty("user")
public String getUser() {
return user;
}
@JsonProperty("user")
public void setUser(String user) {
this.user = user;
}
@JsonProperty("verb")
public String getVerb() {
return verb;
}
@JsonProperty("verb")
public void setVerb(String verb) {
this.verb = verb;
}
@JsonIgnore
public SubjectAccessReviewBuilder edit() {
return new SubjectAccessReviewBuilder(this);
}
@JsonIgnore
public SubjectAccessReviewBuilder toBuilder() {
return edit();
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
}