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 Summary
-
Constructor Summary
ConstructorDescriptionV1CustomResourceDefinitionVersion
(String name, Boolean served, Boolean storage) -
Method Summary
Modifier and TypeMethodDescriptionaddadditionalPrinterColumnsItem
(V1CustomResourceColumnDefinition additionalPrinterColumnsItem) Add an item to the additionalPrinterColumns property in a chainable fashion.additionalPrinterColumns
(List<@Valid V1CustomResourceColumnDefinition> additionalPrinterColumns) Set additionalPrinterColumns in a chainable fashion.deprecated
(Boolean deprecated) Set deprecated in a chainable fashion.deprecationWarning
(String deprecationWarning) Set deprecationWarning in a chainable fashion.boolean
List<@Valid V1CustomResourceColumnDefinition>
additionalPrinterColumns 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.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.int
hashCode()
Set name in a chainable fashion.schema
(V1CustomResourceValidation schema) Set schema in a chainable fashion.Set served in a chainable fashion.void
setAdditionalPrinterColumns
(List<@Valid V1CustomResourceColumnDefinition> additionalPrinterColumns) Set the additionalPrinterColumns property valuevoid
setDeprecated
(Boolean deprecated) Set the deprecated property valuevoid
setDeprecationWarning
(String deprecationWarning) Set the deprecationWarning property valuevoid
Set the name property valuevoid
setSchema
(V1CustomResourceValidation schema) Set the schema property valuevoid
Set the served property valuevoid
setStorage
(Boolean storage) Set the storage property valuevoid
setSubresources
(V1CustomResourceSubresources subresources) Set the subresources property valueSet storage in a chainable fashion.subresources
(V1CustomResourceSubresources subresources) Set subresources in a chainable fashion.toString()
-
Field Details
-
JSON_PROPERTY_ADDITIONAL_PRINTER_COLUMNS
- See Also:
-
JSON_PROPERTY_DEPRECATED
- See Also:
-
JSON_PROPERTY_DEPRECATION_WARNING
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_SCHEMA
- See Also:
-
JSON_PROPERTY_SERVED
- See Also:
-
JSON_PROPERTY_STORAGE
- See Also:
-
JSON_PROPERTY_SUBRESOURCES
- See Also:
-
-
Constructor Details
-
V1CustomResourceDefinitionVersion
-
-
Method Details
-
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
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
Set the deprecated property value -
deprecated
Set deprecated in a chainable fashion.- Returns:
- The same instance of V1CustomResourceDefinitionVersion for chaining.
-
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
Set the deprecationWarning property value -
deprecationWarning
Set deprecationWarning in a chainable fashion.- Returns:
- The same instance of V1CustomResourceDefinitionVersion for chaining.
-
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
Set the name property value -
name
Set name in a chainable fashion.- Returns:
- The same instance of V1CustomResourceDefinitionVersion for chaining.
-
getSchema
- Returns:
- the schema property value
-
setSchema
Set the schema property value -
schema
Set schema in a chainable fashion.- Returns:
- The same instance of V1CustomResourceDefinitionVersion for chaining.
-
getServed
served is a flag enabling/disabling this version from being served via REST APIs- Returns:
- the served property value
-
setServed
Set the served property value -
served
Set served in a chainable fashion.- Returns:
- The same instance of V1CustomResourceDefinitionVersion for chaining.
-
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
Set the storage property value -
storage
Set storage in a chainable fashion.- Returns:
- The same instance of V1CustomResourceDefinitionVersion for chaining.
-
getSubresources
- Returns:
- the subresources property value
-
setSubresources
Set the subresources property value -
subresources
Set subresources in a chainable fashion.- Returns:
- The same instance of V1CustomResourceDefinitionVersion for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-