Class V1APIResource

java.lang.Object
io.kubernetes.client.openapi.models.V1APIResource

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-18T15:05:57.863601Z[Etc/UTC]") 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

      @Nullable 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

      @Nullable 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)
    • getNamespaced

      public Boolean getNamespaced()
      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

      @Nullable 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)
    • storageVersionHash

      public V1APIResource storageVersionHash(String storageVersionHash)
    • getStorageVersionHash

      @Nullable public String getStorageVersionHash()
      The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.
      Returns:
      storageVersionHash
    • setStorageVersionHash

      public void setStorageVersionHash(String storageVersionHash)
    • 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

      @Nullable 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