Class V1APIResource

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1APIResource

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1APIResource extends Object
APIResource specifies the name of a resource and whether it is namespaced.
  • Field Details

  • Constructor Details

  • Method Details

    • getCategories

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

      public void setCategories(List<String> categories)
      Set the categories property value
    • categories

      public V1APIResource categories(List<String> categories)
      Set categories in a chainable fashion.
      Returns:
      The same instance of V1APIResource for chaining.
    • addcategoriesItem

      public V1APIResource addcategoriesItem(String categoriesItem)
      Add an item to the categories property in a chainable fashion.
      Returns:
      The same instance of V1APIResource for chaining.
    • 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:
      the group property value
    • setGroup

      public void setGroup(String group)
      Set the group property value
    • group

      public V1APIResource group(String group)
      Set group in a chainable fashion.
      Returns:
      The same instance of V1APIResource for chaining.
    • getKind

      public String getKind()
      kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')
      Returns:
      the kind property value
    • setKind

      public void setKind(String kind)
      Set the kind property value
    • kind

      public V1APIResource kind(String kind)
      Set kind in a chainable fashion.
      Returns:
      The same instance of V1APIResource for chaining.
    • getName

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

      public void setName(String name)
      Set the name property value
    • name

      public V1APIResource name(String name)
      Set name in a chainable fashion.
      Returns:
      The same instance of V1APIResource for chaining.
    • getNamespaced

      public Boolean getNamespaced()
      namespaced indicates if a resource is namespaced or not.
      Returns:
      the namespaced property value
    • setNamespaced

      public void setNamespaced(Boolean namespaced)
      Set the namespaced property value
    • namespaced

      public V1APIResource namespaced(Boolean namespaced)
      Set namespaced in a chainable fashion.
      Returns:
      The same instance of V1APIResource for chaining.
    • getShortNames

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

      public void setShortNames(List<String> shortNames)
      Set the shortNames property value
    • shortNames

      public V1APIResource shortNames(List<String> shortNames)
      Set shortNames in a chainable fashion.
      Returns:
      The same instance of V1APIResource for chaining.
    • addshortNamesItem

      public V1APIResource addshortNamesItem(String shortNamesItem)
      Add an item to the shortNames property in a chainable fashion.
      Returns:
      The same instance of V1APIResource for chaining.
    • 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:
      the singularName property value
    • setSingularName

      public void setSingularName(String singularName)
      Set the singularName property value
    • singularName

      public V1APIResource singularName(String singularName)
      Set singularName in a chainable fashion.
      Returns:
      The same instance of V1APIResource for chaining.
    • getStorageVersionHash

      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:
      the storageVersionHash property value
    • setStorageVersionHash

      public void setStorageVersionHash(String storageVersionHash)
      Set the storageVersionHash property value
    • storageVersionHash

      public V1APIResource storageVersionHash(String storageVersionHash)
      Set storageVersionHash in a chainable fashion.
      Returns:
      The same instance of V1APIResource for chaining.
    • 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:
      the verbs property value
    • setVerbs

      public void setVerbs(List<String> verbs)
      Set the verbs property value
    • verbs

      public V1APIResource verbs(List<String> verbs)
      Set verbs in a chainable fashion.
      Returns:
      The same instance of V1APIResource for chaining.
    • addverbsItem

      public V1APIResource addverbsItem(String verbsItem)
      Add an item to the verbs property in a chainable fashion.
      Returns:
      The same instance of V1APIResource for chaining.
    • 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:
      the version property value
    • setVersion

      public void setVersion(String version)
      Set the version property value
    • version

      public V1APIResource version(String version)
      Set version in a chainable fashion.
      Returns:
      The same instance of V1APIResource for chaining.
    • 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