Class V1CustomResourceDefinitionSpec
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1CustomResourceDefinitionSpec
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1CustomResourceDefinitionSpec
extends Object
CustomResourceDefinitionSpec describes how a user wants their resource to appear
-
Field Summary
-
Constructor Summary
ConstructorDescriptionV1CustomResourceDefinitionSpec
(String group, V1CustomResourceDefinitionNames names, String scope, List<@Valid V1CustomResourceDefinitionVersion> versions) -
Method Summary
Modifier and TypeMethodDescriptionaddversionsItem
(V1CustomResourceDefinitionVersion versionsItem) Add an item to the versions property in a chainable fashion.conversion
(V1CustomResourceConversion conversion) Set conversion in a chainable fashion.boolean
getGroup()
group is the API group of the defined custom resource.getNames()
preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage.getScope()
scope indicates whether the defined custom resource is cluster- or namespace-scoped.versions is the list of all API versions of the defined custom resource.Set group in a chainable fashion.int
hashCode()
Set names in a chainable fashion.preserveUnknownFields
(Boolean preserveUnknownFields) Set preserveUnknownFields in a chainable fashion.Set scope in a chainable fashion.void
setConversion
(V1CustomResourceConversion conversion) Set the conversion property valuevoid
Set the group property valuevoid
Set the names property valuevoid
setPreserveUnknownFields
(Boolean preserveUnknownFields) Set the preserveUnknownFields property valuevoid
Set the scope property valuevoid
setVersions
(List<@Valid V1CustomResourceDefinitionVersion> versions) Set the versions property valuetoString()
versions
(List<@Valid V1CustomResourceDefinitionVersion> versions) Set versions in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_GROUP
- See Also:
-
JSON_PROPERTY_NAMES
- See Also:
-
JSON_PROPERTY_SCOPE
- See Also:
-
JSON_PROPERTY_VERSIONS
- See Also:
-
JSON_PROPERTY_CONVERSION
- See Also:
-
JSON_PROPERTY_PRESERVE_UNKNOWN_FIELDS
- See Also:
-
-
Constructor Details
-
V1CustomResourceDefinitionSpec
public V1CustomResourceDefinitionSpec(String group, V1CustomResourceDefinitionNames names, String scope, List<@Valid V1CustomResourceDefinitionVersion> versions)
-
-
Method Details
-
getGroup
group is the API group of the defined custom resource. The custom resources are served under `/apis/<group>/...`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).- Returns:
- the group property value
-
setGroup
Set the group property value- Parameters:
group
- property value to set
-
group
Set group in a chainable fashion.- Returns:
- The same instance of V1CustomResourceDefinitionSpec for chaining.
-
getNames
- Returns:
- the names property value
-
setNames
Set the names property value- Parameters:
names
- property value to set
-
names
Set names in a chainable fashion.- Returns:
- The same instance of V1CustomResourceDefinitionSpec for chaining.
-
getScope
scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`.- Returns:
- the scope property value
-
setScope
Set the scope property value- Parameters:
scope
- property value to set
-
scope
Set scope in a chainable fashion.- Returns:
- The same instance of V1CustomResourceDefinitionSpec for chaining.
-
getVersions
versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.- Returns:
- the versions property value
-
setVersions
Set the versions property value- Parameters:
versions
- property value to set
-
versions
public V1CustomResourceDefinitionSpec versions(List<@Valid V1CustomResourceDefinitionVersion> versions) Set versions in a chainable fashion.- Returns:
- The same instance of V1CustomResourceDefinitionSpec for chaining.
-
addversionsItem
public V1CustomResourceDefinitionSpec addversionsItem(V1CustomResourceDefinitionVersion versionsItem) Add an item to the versions property in a chainable fashion.- Returns:
- The same instance of V1CustomResourceDefinitionSpec for chaining.
-
getConversion
- Returns:
- the conversion property value
-
setConversion
Set the conversion property value- Parameters:
conversion
- property value to set
-
conversion
Set conversion in a chainable fashion.- Returns:
- The same instance of V1CustomResourceDefinitionSpec for chaining.
-
getPreserveUnknownFields
preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.- Returns:
- the preserveUnknownFields property value
-
setPreserveUnknownFields
Set the preserveUnknownFields property value- Parameters:
preserveUnknownFields
- property value to set
-
preserveUnknownFields
Set preserveUnknownFields in a chainable fashion.- Returns:
- The same instance of V1CustomResourceDefinitionSpec for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-