Class CustomResourceDefinitionVersion
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.apiextensions.v1beta1.CustomResourceDefinitionVersion
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<CustomResourceDefinitionVersionBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class CustomResourceDefinitionVersion extends Object implements io.fabric8.kubernetes.api.builder.Editable<CustomResourceDefinitionVersionBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
CustomResourceDefinitionVersion describes a version for CRD.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CustomResourceDefinitionVersion()No args constructor for use in serializationCustomResourceDefinitionVersion(List<CustomResourceColumnDefinition> additionalPrinterColumns, Boolean deprecated, String deprecationWarning, String name, CustomResourceValidation schema, Boolean served, Boolean storage, CustomResourceSubresources subresources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomResourceDefinitionVersionBuilderedit()List<CustomResourceColumnDefinition>getAdditionalPrinterColumns()additionalPrinterColumns specifies additional columns returned in Table output.Map<String,Object>getAdditionalProperties()BooleangetDeprecated()deprecated indicates this version of the custom resource API is deprecated.StringgetDeprecationWarning()deprecationWarning overrides the default warning returned to API clients.StringgetName()name is the version name, e.g.CustomResourceValidationgetSchema()CustomResourceDefinitionVersion describes a version for CRD.BooleangetServed()served is a flag enabling/disabling this version from being served via REST APIsBooleangetStorage()storage indicates this version should be used when persisting custom resources to storage.CustomResourceSubresourcesgetSubresources()CustomResourceDefinitionVersion describes a version for CRD.voidsetAdditionalPrinterColumns(List<CustomResourceColumnDefinition> additionalPrinterColumns)additionalPrinterColumns specifies additional columns returned in Table output.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDeprecated(Boolean deprecated)deprecated indicates this version of the custom resource API is deprecated.voidsetDeprecationWarning(String deprecationWarning)deprecationWarning overrides the default warning returned to API clients.voidsetName(String name)name is the version name, e.g.voidsetSchema(CustomResourceValidation schema)CustomResourceDefinitionVersion describes a version for CRD.voidsetServed(Boolean served)served is a flag enabling/disabling this version from being served via REST APIsvoidsetStorage(Boolean storage)storage indicates this version should be used when persisting custom resources to storage.voidsetSubresources(CustomResourceSubresources subresources)CustomResourceDefinitionVersion describes a version for CRD.CustomResourceDefinitionVersionBuildertoBuilder()
-
-
-
Constructor Detail
-
CustomResourceDefinitionVersion
public CustomResourceDefinitionVersion()
No args constructor for use in serialization
-
CustomResourceDefinitionVersion
public CustomResourceDefinitionVersion(List<CustomResourceColumnDefinition> additionalPrinterColumns, Boolean deprecated, String deprecationWarning, String name, CustomResourceValidation schema, Boolean served, Boolean storage, CustomResourceSubresources subresources)
-
-
Method Detail
-
getAdditionalPrinterColumns
public List<CustomResourceColumnDefinition> 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. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead). If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
-
setAdditionalPrinterColumns
public void setAdditionalPrinterColumns(List<CustomResourceColumnDefinition> additionalPrinterColumns)
additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead). If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
-
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.
-
setDeprecated
public void setDeprecated(Boolean deprecated)
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.
-
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.
-
setDeprecationWarning
public void setDeprecationWarning(String deprecationWarning)
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.
-
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.
-
setName
public void setName(String name)
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.
-
getSchema
public CustomResourceValidation getSchema()
CustomResourceDefinitionVersion describes a version for CRD.
-
setSchema
public void setSchema(CustomResourceValidation schema)
CustomResourceDefinitionVersion describes a version for CRD.
-
getServed
public Boolean getServed()
served is a flag enabling/disabling this version from being served via REST APIs
-
setServed
public void setServed(Boolean served)
served is a flag enabling/disabling this version from being served via REST APIs
-
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.
-
setStorage
public void setStorage(Boolean storage)
storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.
-
getSubresources
public CustomResourceSubresources getSubresources()
CustomResourceDefinitionVersion describes a version for CRD.
-
setSubresources
public void setSubresources(CustomResourceSubresources subresources)
CustomResourceDefinitionVersion describes a version for CRD.
-
edit
public CustomResourceDefinitionVersionBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<CustomResourceDefinitionVersionBuilder>
-
toBuilder
public CustomResourceDefinitionVersionBuilder toBuilder()
-
-