Class V1CustomResourceDefinitionVersion
java.lang.Object
io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1CustomResourceDefinitionVersion
extends Object
CustomResourceDefinitionVersion describes a version for CRD.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalPrinterColumnsItem
(V1CustomResourceColumnDefinition additionalPrinterColumnsItem) additionalPrinterColumns
(List<V1CustomResourceColumnDefinition> additionalPrinterColumns) addSelectableFieldsItem
(V1SelectableField selectableFieldsItem) deprecated
(Boolean deprecated) deprecationWarning
(String deprecationWarning) boolean
Create an instance of V1CustomResourceDefinitionVersion given an JSON stringadditionalPrinterColumns specifies additional columns returned in Table output.deprecated indicates this version of the custom resource API is deprecated.deprecationWarning overrides the default warning returned to API clients.getName()
name is the version name, e.g.Get schemaselectableFields specifies paths to fields that may be used as field selectors.served is a flag enabling/disabling this version from being served via REST APIsstorage indicates this version should be used when persisting custom resources to storage.Get subresourcesint
hashCode()
schema
(V1CustomResourceValidation schema) selectableFields
(List<V1SelectableField> selectableFields) void
setAdditionalPrinterColumns
(List<V1CustomResourceColumnDefinition> additionalPrinterColumns) void
setDeprecated
(Boolean deprecated) void
setDeprecationWarning
(String deprecationWarning) void
void
setSchema
(V1CustomResourceValidation schema) void
setSelectableFields
(List<V1SelectableField> selectableFields) void
void
setStorage
(Boolean storage) void
setSubresources
(V1CustomResourceSubresources subresources) subresources
(V1CustomResourceSubresources subresources) toJson()
Convert an instance of V1CustomResourceDefinitionVersion to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS
- See Also:
-
SERIALIZED_NAME_DEPRECATED
- See Also:
-
SERIALIZED_NAME_DEPRECATION_WARNING
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_SCHEMA
- See Also:
-
SERIALIZED_NAME_SELECTABLE_FIELDS
- See Also:
-
SERIALIZED_NAME_SERVED
- See Also:
-
SERIALIZED_NAME_STORAGE
- See Also:
-
SERIALIZED_NAME_SUBRESOURCES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1CustomResourceDefinitionVersion
public V1CustomResourceDefinitionVersion()
-
-
Method Details
-
additionalPrinterColumns
public V1CustomResourceDefinitionVersion additionalPrinterColumns(List<V1CustomResourceColumnDefinition> additionalPrinterColumns) -
addAdditionalPrinterColumnsItem
public V1CustomResourceDefinitionVersion addAdditionalPrinterColumnsItem(V1CustomResourceColumnDefinition additionalPrinterColumnsItem) -
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
-
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
-
deprecationWarning
-
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
-
name
-
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
-
schema
-
getSchema
Get schema- Returns:
- schema
-
setSchema
-
selectableFields
-
addSelectableFieldsItem
public V1CustomResourceDefinitionVersion addSelectableFieldsItem(V1SelectableField selectableFieldsItem) -
getSelectableFields
selectableFields specifies paths to fields that may be used as field selectors. A maximum of 8 selectable fields are allowed. See https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors- Returns:
- selectableFields
-
setSelectableFields
-
served
-
getServed
served is a flag enabling/disabling this version from being served via REST APIs- Returns:
- served
-
setServed
-
storage
-
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
-
subresources
-
getSubresources
Get subresources- Returns:
- subresources
-
setSubresources
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1CustomResourceDefinitionVersion
-
fromJson
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
Convert an instance of V1CustomResourceDefinitionVersion to an JSON string- Returns:
- JSON string
-