Class V1CustomResourceDefinitionVersion

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1CustomResourceDefinitionVersion extends Object
CustomResourceDefinitionVersion describes a version for CRD.
  • Field Details

  • Constructor Details

    • V1CustomResourceDefinitionVersion

      public V1CustomResourceDefinitionVersion()
  • Method Details

    • additionalPrinterColumns

      public V1CustomResourceDefinitionVersion additionalPrinterColumns(List<V1CustomResourceColumnDefinition> additionalPrinterColumns)
    • addAdditionalPrinterColumnsItem

      public V1CustomResourceDefinitionVersion addAdditionalPrinterColumnsItem(V1CustomResourceColumnDefinition additionalPrinterColumnsItem)
    • getAdditionalPrinterColumns

      @Nullable public List<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:
      additionalPrinterColumns
    • setAdditionalPrinterColumns

      public void setAdditionalPrinterColumns(List<V1CustomResourceColumnDefinition> additionalPrinterColumns)
    • deprecated

      public V1CustomResourceDefinitionVersion deprecated(Boolean deprecated)
    • getDeprecated

      @Nullable 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:
      deprecated
    • setDeprecated

      public void setDeprecated(Boolean deprecated)
    • deprecationWarning

      public V1CustomResourceDefinitionVersion deprecationWarning(String deprecationWarning)
    • getDeprecationWarning

      @Nullable 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:
      deprecationWarning
    • setDeprecationWarning

      public void setDeprecationWarning(String deprecationWarning)
    • name

    • getName

      @Nonnull 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:
      name
    • setName

      public void setName(String name)
    • schema

    • getSchema

      @Nullable public V1CustomResourceValidation getSchema()
      Get schema
      Returns:
      schema
    • setSchema

      public void setSchema(V1CustomResourceValidation schema)
    • served

    • getServed

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

      public void setServed(Boolean served)
    • storage

      public V1CustomResourceDefinitionVersion storage(Boolean storage)
    • getStorage

      @Nonnull 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:
      storage
    • setStorage

      public void setStorage(Boolean storage)
    • subresources

    • getSubresources

      @Nullable public V1CustomResourceSubresources getSubresources()
      Get subresources
      Returns:
      subresources
    • setSubresources

      public void setSubresources(V1CustomResourceSubresources subresources)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1CustomResourceDefinitionVersion
    • fromJson

      public static V1CustomResourceDefinitionVersion fromJson(String jsonString) throws IOException
      Create an instance of V1CustomResourceDefinitionVersion given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1CustomResourceDefinitionVersion
      Throws:
      IOException - if the JSON string is invalid with respect to V1CustomResourceDefinitionVersion
    • toJson

      public String toJson()
      Convert an instance of V1CustomResourceDefinitionVersion to an JSON string
      Returns:
      JSON string