Class V1CustomResourceDefinitionVersion

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1CustomResourceDefinitionVersion extends Object
CustomResourceDefinitionVersion describes a version for CRD.
  • Field Details

  • Constructor Details

    • V1CustomResourceDefinitionVersion

      public V1CustomResourceDefinitionVersion(String name, Boolean served, Boolean storage)
  • Method Details

    • getAdditionalPrinterColumns

      public List<@Valid V1CustomResourceColumnDefinition> getAdditionalPrinterColumns()
      additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If no columns are specified, a single column displaying the age of the custom resource is used.
      Returns:
      the additionalPrinterColumns property value
    • setAdditionalPrinterColumns

      public void setAdditionalPrinterColumns(List<@Valid V1CustomResourceColumnDefinition> additionalPrinterColumns)
      Set the additionalPrinterColumns property value
    • additionalPrinterColumns

      public V1CustomResourceDefinitionVersion additionalPrinterColumns(List<@Valid V1CustomResourceColumnDefinition> additionalPrinterColumns)
      Set additionalPrinterColumns in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceDefinitionVersion for chaining.
    • addadditionalPrinterColumnsItem

      public V1CustomResourceDefinitionVersion addadditionalPrinterColumnsItem(V1CustomResourceColumnDefinition additionalPrinterColumnsItem)
      Add an item to the additionalPrinterColumns property in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceDefinitionVersion for chaining.
    • getDeprecated

      public Boolean getDeprecated()
      deprecated indicates this version of the custom resource API is deprecated. When set to true, API requests to this version receive a warning header in the server response. Defaults to false.
      Returns:
      the deprecated property value
    • setDeprecated

      public void setDeprecated(Boolean deprecated)
      Set the deprecated property value
    • deprecated

      public V1CustomResourceDefinitionVersion deprecated(Boolean deprecated)
      Set deprecated in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceDefinitionVersion for chaining.
    • getDeprecationWarning

      public String getDeprecationWarning()
      deprecationWarning overrides the default warning returned to API clients. May only be set when `deprecated` is true. The default warning indicates this version is deprecated and recommends use of the newest served version of equal or greater stability, if one exists.
      Returns:
      the deprecationWarning property value
    • setDeprecationWarning

      public void setDeprecationWarning(String deprecationWarning)
      Set the deprecationWarning property value
    • deprecationWarning

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

      public String getName()
      name is the version name, e.g. “v1”, “v2beta1”, etc. The custom resources are served under this version at `/apis/<group>/<version>/...` if `served` is true.
      Returns:
      the name property value
    • setName

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

      Set name in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceDefinitionVersion for chaining.
    • getSchema

      public V1CustomResourceValidation getSchema()
      Returns:
      the schema property value
    • setSchema

      public void setSchema(V1CustomResourceValidation schema)
      Set the schema property value
    • schema

      Set schema in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceDefinitionVersion for chaining.
    • getServed

      public Boolean getServed()
      served is a flag enabling/disabling this version from being served via REST APIs
      Returns:
      the served property value
    • setServed

      public void setServed(Boolean served)
      Set the served property value
    • served

      Set served in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceDefinitionVersion for chaining.
    • getStorage

      public Boolean getStorage()
      storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.
      Returns:
      the storage property value
    • setStorage

      public void setStorage(Boolean storage)
      Set the storage property value
    • storage

      public V1CustomResourceDefinitionVersion storage(Boolean storage)
      Set storage in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceDefinitionVersion for chaining.
    • getSubresources

      public V1CustomResourceSubresources getSubresources()
      Returns:
      the subresources property value
    • setSubresources

      public void setSubresources(V1CustomResourceSubresources subresources)
      Set the subresources property value
    • subresources

      Set subresources in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceDefinitionVersion 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