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 Details

  • Constructor Details

    • V1APIResource

      public V1APIResource()
  • Method Details

    • categories

      public V1APIResource categories(List<String> categories)
    • addCategoriesItem

      public V1APIResource addCategoriesItem(String categoriesItem)
    • getCategories

      public List<String> getCategories()
      categories is a list of the grouped resources this resource belongs to (e.g. 'all')
      Returns:
      categories
    • setCategories

      public void setCategories(List<String> categories)
    • group

      public V1APIResource group(String group)
    • getGroup

      public 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(String group)
    • kind

      public V1APIResource kind(String kind)
    • getKind

      public 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(String kind)
    • name

      public V1APIResource name(String name)
    • getName

      public String getName()
      name is the plural name of the resource.
      Returns:
      name
    • setName

      public void setName(String name)
    • namespaced

      public V1APIResource namespaced(Boolean namespaced)
    • isNamespaced

      public Boolean isNamespaced()
      namespaced indicates if a resource is namespaced or not.
      Returns:
      namespaced
    • setNamespaced

      public void setNamespaced(Boolean namespaced)
    • shortNames

      public V1APIResource shortNames(List<String> shortNames)
    • addShortNamesItem

      public V1APIResource addShortNamesItem(String shortNamesItem)
    • getShortNames

      public List<String> getShortNames()
      shortNames is a list of suggested short names of the resource.
      Returns:
      shortNames
    • setShortNames

      public void setShortNames(List<String> shortNames)
    • singularName

      public V1APIResource singularName(String singularName)
    • getSingularName

      public 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(String singularName)
    • verbs

      public V1APIResource verbs(List<String> verbs)
    • addVerbsItem

      public V1APIResource addVerbsItem(String verbsItem)
    • getVerbs

      public List<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(List<String> verbs)
    • version

      public V1APIResource version(String version)
    • getVersion

      public 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(String version)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toIndentedString

      private String toIndentedString(Object o)
      Convert the given object to string with each line indented by 4 spaces (except the first line).