
io.kubernetes.client.models.V1APIResource 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;
/**
* APIResource specifies the name of a resource and whether it is namespaced.
*/
@ApiModel(description = "APIResource specifies the name of a resource and whether it is namespaced.")
public class V1APIResource {
@SerializedName("categories")
private List categories = null;
@SerializedName("group")
private String group = null;
@SerializedName("kind")
private String kind = null;
@SerializedName("name")
private String name = null;
@SerializedName("namespaced")
private Boolean namespaced = null;
@SerializedName("shortNames")
private List shortNames = null;
@SerializedName("singularName")
private String singularName = null;
@SerializedName("verbs")
private List verbs = new ArrayList();
@SerializedName("version")
private String version = null;
public V1APIResource categories(List categories) {
this.categories = categories;
return this;
}
public V1APIResource addCategoriesItem(String categoriesItem) {
if (this.categories == null) {
this.categories = new ArrayList();
}
this.categories.add(categoriesItem);
return this;
}
/**
* categories is a list of the grouped resources this resource belongs to (e.g. 'all')
* @return categories
**/
@ApiModelProperty(value = "categories is a list of the grouped resources this resource belongs to (e.g. 'all')")
public List getCategories() {
return categories;
}
public void setCategories(List categories) {
this.categories = categories;
}
public V1APIResource group(String group) {
this.group = group;
return this;
}
/**
* group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".
* @return group
**/
@ApiModelProperty(value = "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".")
public String getGroup() {
return group;
}
public void setGroup(String group) {
this.group = group;
}
public V1APIResource kind(String kind) {
this.kind = kind;
return this;
}
/**
* kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
* @return kind
**/
@ApiModelProperty(required = true, value = "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')")
public String getKind() {
return kind;
}
public void setKind(String kind) {
this.kind = kind;
}
public V1APIResource name(String name) {
this.name = name;
return this;
}
/**
* name is the plural name of the resource.
* @return name
**/
@ApiModelProperty(required = true, value = "name is the plural name of the resource.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public V1APIResource namespaced(Boolean namespaced) {
this.namespaced = namespaced;
return this;
}
/**
* namespaced indicates if a resource is namespaced or not.
* @return namespaced
**/
@ApiModelProperty(required = true, value = "namespaced indicates if a resource is namespaced or not.")
public Boolean isNamespaced() {
return namespaced;
}
public void setNamespaced(Boolean namespaced) {
this.namespaced = namespaced;
}
public V1APIResource shortNames(List shortNames) {
this.shortNames = shortNames;
return this;
}
public V1APIResource addShortNamesItem(String shortNamesItem) {
if (this.shortNames == null) {
this.shortNames = new ArrayList();
}
this.shortNames.add(shortNamesItem);
return this;
}
/**
* shortNames is a list of suggested short names of the resource.
* @return shortNames
**/
@ApiModelProperty(value = "shortNames is a list of suggested short names of the resource.")
public List getShortNames() {
return shortNames;
}
public void setShortNames(List shortNames) {
this.shortNames = shortNames;
}
public V1APIResource singularName(String singularName) {
this.singularName = singularName;
return this;
}
/**
* singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.
* @return singularName
**/
@ApiModelProperty(required = true, value = "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.")
public String getSingularName() {
return singularName;
}
public void setSingularName(String singularName) {
this.singularName = singularName;
}
public V1APIResource verbs(List verbs) {
this.verbs = verbs;
return this;
}
public V1APIResource addVerbsItem(String verbsItem) {
this.verbs.add(verbsItem);
return this;
}
/**
* verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)
* @return verbs
**/
@ApiModelProperty(required = true, value = "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)")
public List getVerbs() {
return verbs;
}
public void setVerbs(List verbs) {
this.verbs = verbs;
}
public V1APIResource version(String version) {
this.version = version;
return this;
}
/**
* version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".
* @return version
**/
@ApiModelProperty(value = "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".")
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1APIResource v1APIResource = (V1APIResource) o;
return Objects.equals(this.categories, v1APIResource.categories) &&
Objects.equals(this.group, v1APIResource.group) &&
Objects.equals(this.kind, v1APIResource.kind) &&
Objects.equals(this.name, v1APIResource.name) &&
Objects.equals(this.namespaced, v1APIResource.namespaced) &&
Objects.equals(this.shortNames, v1APIResource.shortNames) &&
Objects.equals(this.singularName, v1APIResource.singularName) &&
Objects.equals(this.verbs, v1APIResource.verbs) &&
Objects.equals(this.version, v1APIResource.version);
}
@Override
public int hashCode() {
return Objects.hash(categories, group, kind, name, namespaced, shortNames, singularName, verbs, version);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1APIResource {\n");
sb.append(" categories: ").append(toIndentedString(categories)).append("\n");
sb.append(" group: ").append(toIndentedString(group)).append("\n");
sb.append(" kind: ").append(toIndentedString(kind)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" namespaced: ").append(toIndentedString(namespaced)).append("\n");
sb.append(" shortNames: ").append(toIndentedString(shortNames)).append("\n");
sb.append(" singularName: ").append(toIndentedString(singularName)).append("\n");
sb.append(" verbs: ").append(toIndentedString(verbs)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy