Package kubevirt.io
Class V1APIResource
java.lang.Object
kubevirt.io.V1APIResource
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
date="2019-11-10T14:44:51.030+02:00")
public class V1APIResource
extends Object
APIResource specifies the name of a resource and whether it is namespaced.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCategoriesItem(String categoriesItem) addShortNamesItem(String shortNamesItem) addVerbsItem(String verbsItem) categories(List<String> categories) booleancategories is a list of the grouped resources this resource belongs to (e.g.getGroup()group is the preferred group of the resource.getKind()kind is the kind for the resource (e.g.getName()name is the plural name of the resource.shortNames is a list of suggested short names of the resource.singularName is the singular name of the resource.getVerbs()verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)version is the preferred version of the resource.inthashCode()namespaced indicates if a resource is namespaced or not.namespaced(Boolean namespaced) voidsetCategories(List<String> categories) voidvoidvoidvoidsetNamespaced(Boolean namespaced) voidsetShortNames(List<String> shortNames) voidsetSingularName(String singularName) voidvoidsetVersion(String version) shortNames(List<String> shortNames) singularName(String singularName) private StringConvert the given object to string with each line indented by 4 spaces (except the first line).toString()
-
Field Details
-
categories
-
group
-
kind
-
name
-
namespaced
-
shortNames
-
singularName
-
verbs
-
version
-
-
Constructor Details
-
V1APIResource
public V1APIResource()
-
-
Method Details
-
categories
-
addCategoriesItem
-
getCategories
categories is a list of the grouped resources this resource belongs to (e.g. 'all')- Returns:
- categories
-
setCategories
-
group
-
getGroup
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\".- Returns:
- group
-
setGroup
-
kind
-
getKind
kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')- Returns:
- kind
-
setKind
-
name
-
getName
name is the plural name of the resource.- Returns:
- name
-
setName
-
namespaced
-
isNamespaced
namespaced indicates if a resource is namespaced or not.- Returns:
- namespaced
-
setNamespaced
-
shortNames
-
addShortNamesItem
-
getShortNames
shortNames is a list of suggested short names of the resource.- Returns:
- shortNames
-
setShortNames
-
singularName
-
getSingularName
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.- Returns:
- singularName
-
setSingularName
-
verbs
-
addVerbsItem
-
getVerbs
verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)- Returns:
- verbs
-
setVerbs
-
version
-
getVersion
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)\".- Returns:
- version
-
setVersion
-
equals
-
hashCode
public int hashCode() -
toString
-
toIndentedString
Convert the given object to string with each line indented by 4 spaces (except the first line).
-