
io.kubernetes.client.models.V1NonResourceRule Maven / Gradle / Ivy
/*
* Kubernetes
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v1.11.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.kubernetes.client.models;
import java.util.Objects;
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;
/**
* NonResourceRule holds information that describes a rule for the non-resource
*/
@ApiModel(description = "NonResourceRule holds information that describes a rule for the non-resource")
public class V1NonResourceRule {
@SerializedName("nonResourceURLs")
private List nonResourceURLs = null;
@SerializedName("verbs")
private List verbs = new ArrayList();
public V1NonResourceRule nonResourceURLs(List nonResourceURLs) {
this.nonResourceURLs = nonResourceURLs;
return this;
}
public V1NonResourceRule addNonResourceURLsItem(String nonResourceURLsItem) {
if (this.nonResourceURLs == null) {
this.nonResourceURLs = new ArrayList();
}
this.nonResourceURLs.add(nonResourceURLsItem);
return this;
}
/**
* NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.
* @return nonResourceURLs
**/
@ApiModelProperty(value = "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.")
public List getNonResourceURLs() {
return nonResourceURLs;
}
public void setNonResourceURLs(List nonResourceURLs) {
this.nonResourceURLs = nonResourceURLs;
}
public V1NonResourceRule verbs(List verbs) {
this.verbs = verbs;
return this;
}
public V1NonResourceRule addVerbsItem(String verbsItem) {
this.verbs.add(verbsItem);
return this;
}
/**
* Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.
* @return verbs
**/
@ApiModelProperty(required = true, value = "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.")
public List getVerbs() {
return verbs;
}
public void setVerbs(List verbs) {
this.verbs = verbs;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1NonResourceRule v1NonResourceRule = (V1NonResourceRule) o;
return Objects.equals(this.nonResourceURLs, v1NonResourceRule.nonResourceURLs) &&
Objects.equals(this.verbs, v1NonResourceRule.verbs);
}
@Override
public int hashCode() {
return Objects.hash(nonResourceURLs, verbs);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1NonResourceRule {\n");
sb.append(" nonResourceURLs: ").append(toIndentedString(nonResourceURLs)).append("\n");
sb.append(" verbs: ").append(toIndentedString(verbs)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy