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 java.lang.ObjectAPIResource specifies the name of a resource and whether it is namespaced.
-
-
Constructor Summary
Constructors Constructor Description V1APIResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V1APIResourceaddCategoriesItem(java.lang.String categoriesItem)V1APIResourceaddShortNamesItem(java.lang.String shortNamesItem)V1APIResourceaddVerbsItem(java.lang.String verbsItem)V1APIResourcecategories(java.util.List<java.lang.String> categories)booleanequals(java.lang.Object o)java.util.List<java.lang.String>getCategories()categories is a list of the grouped resources this resource belongs to (e.g.java.lang.StringgetGroup()group is the preferred group of the resource.java.lang.StringgetKind()kind is the kind for the resource (e.g.java.lang.StringgetName()name is the plural name of the resource.java.util.List<java.lang.String>getShortNames()shortNames is a list of suggested short names of the resource.java.lang.StringgetSingularName()singularName is the singular name of the resource.java.util.List<java.lang.String>getVerbs()verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)java.lang.StringgetVersion()version is the preferred version of the resource.V1APIResourcegroup(java.lang.String group)inthashCode()java.lang.BooleanisNamespaced()namespaced indicates if a resource is namespaced or not.V1APIResourcekind(java.lang.String kind)V1APIResourcename(java.lang.String name)V1APIResourcenamespaced(java.lang.Boolean namespaced)voidsetCategories(java.util.List<java.lang.String> categories)voidsetGroup(java.lang.String group)voidsetKind(java.lang.String kind)voidsetName(java.lang.String name)voidsetNamespaced(java.lang.Boolean namespaced)voidsetShortNames(java.util.List<java.lang.String> shortNames)voidsetSingularName(java.lang.String singularName)voidsetVerbs(java.util.List<java.lang.String> verbs)voidsetVersion(java.lang.String version)V1APIResourceshortNames(java.util.List<java.lang.String> shortNames)V1APIResourcesingularName(java.lang.String singularName)java.lang.StringtoString()V1APIResourceverbs(java.util.List<java.lang.String> verbs)V1APIResourceversion(java.lang.String version)
-
-
-
Method Detail
-
categories
public V1APIResource categories(java.util.List<java.lang.String> categories)
-
addCategoriesItem
public V1APIResource addCategoriesItem(java.lang.String categoriesItem)
-
getCategories
public java.util.List<java.lang.String> getCategories()
categories is a list of the grouped resources this resource belongs to (e.g. 'all')- Returns:
- categories
-
setCategories
public void setCategories(java.util.List<java.lang.String> categories)
-
group
public V1APIResource group(java.lang.String group)
-
getGroup
public java.lang.String 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
public void setGroup(java.lang.String group)
-
kind
public V1APIResource kind(java.lang.String kind)
-
getKind
public java.lang.String getKind()
kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')- Returns:
- kind
-
setKind
public void setKind(java.lang.String kind)
-
name
public V1APIResource name(java.lang.String name)
-
getName
public java.lang.String getName()
name is the plural name of the resource.- Returns:
- name
-
setName
public void setName(java.lang.String name)
-
namespaced
public V1APIResource namespaced(java.lang.Boolean namespaced)
-
isNamespaced
public java.lang.Boolean isNamespaced()
namespaced indicates if a resource is namespaced or not.- Returns:
- namespaced
-
setNamespaced
public void setNamespaced(java.lang.Boolean namespaced)
-
shortNames
public V1APIResource shortNames(java.util.List<java.lang.String> shortNames)
-
addShortNamesItem
public V1APIResource addShortNamesItem(java.lang.String shortNamesItem)
-
getShortNames
public java.util.List<java.lang.String> getShortNames()
shortNames is a list of suggested short names of the resource.- Returns:
- shortNames
-
setShortNames
public void setShortNames(java.util.List<java.lang.String> shortNames)
-
singularName
public V1APIResource singularName(java.lang.String singularName)
-
getSingularName
public java.lang.String 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
public void setSingularName(java.lang.String singularName)
-
verbs
public V1APIResource verbs(java.util.List<java.lang.String> verbs)
-
addVerbsItem
public V1APIResource addVerbsItem(java.lang.String verbsItem)
-
getVerbs
public java.util.List<java.lang.String> getVerbs()
verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)- Returns:
- verbs
-
setVerbs
public void setVerbs(java.util.List<java.lang.String> verbs)
-
version
public V1APIResource version(java.lang.String version)
-
getVersion
public java.lang.String 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
public void setVersion(java.lang.String version)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-