Show / Hide Table of Contents

Class V1CustomResourceDefinitionVersion

CustomResourceDefinitionVersion describes a version for CRD.

Inheritance
object
V1CustomResourceDefinitionVersion
Implements
IEquatable<V1CustomResourceDefinitionVersion>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1CustomResourceDefinitionVersion : IEquatable<V1CustomResourceDefinitionVersion>

Constructors

V1CustomResourceDefinitionVersion()

Declaration
public V1CustomResourceDefinitionVersion()

V1CustomResourceDefinitionVersion(V1CustomResourceDefinitionVersion)

Declaration
protected V1CustomResourceDefinitionVersion(V1CustomResourceDefinitionVersion original)
Parameters
Type Name Description
V1CustomResourceDefinitionVersion original

Properties

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. If no columns are specified, a single column displaying the age of the custom resource is used.

Declaration
[JsonPropertyName("additionalPrinterColumns")]
public IList<V1CustomResourceColumnDefinition> AdditionalPrinterColumns { get; set; }
Property Value
Type Description
IList<V1CustomResourceColumnDefinition>

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.

Declaration
[JsonPropertyName("deprecated")]
public bool? Deprecated { get; set; }
Property Value
Type Description
bool?

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.

Declaration
[JsonPropertyName("deprecationWarning")]
public string DeprecationWarning { get; set; }
Property Value
Type Description
string

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type

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.

Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type Description
string

Schema

schema describes the schema used for validation, pruning, and defaulting of this version of the custom resource.

Declaration
[JsonPropertyName("schema")]
public V1CustomResourceValidation Schema { get; set; }
Property Value
Type Description
V1CustomResourceValidation

SelectableFields

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

Declaration
[JsonPropertyName("selectableFields")]
public IList<V1SelectableField> SelectableFields { get; set; }
Property Value
Type Description
IList<V1SelectableField>

Served

served is a flag enabling/disabling this version from being served via REST APIs

Declaration
[JsonPropertyName("served")]
public bool Served { get; set; }
Property Value
Type Description
bool

Storage

storage indicates this version should be used when persisting custom resources to storage. There must be exactly one version with storage=true.

Declaration
[JsonPropertyName("storage")]
public bool Storage { get; set; }
Property Value
Type Description
bool

Subresources

subresources specify what subresources this version of the defined custom resource have.

Declaration
[JsonPropertyName("subresources")]
public V1CustomResourceSubresources Subresources { get; set; }
Property Value
Type Description
V1CustomResourceSubresources

Methods

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)

Equals(V1CustomResourceDefinitionVersion?)

Declaration
public virtual bool Equals(V1CustomResourceDefinitionVersion? other)
Parameters
Type Name Description
V1CustomResourceDefinitionVersion other
Returns
Type Description
bool

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

operator ==(V1CustomResourceDefinitionVersion?, V1CustomResourceDefinitionVersion?)

Declaration
public static bool operator ==(V1CustomResourceDefinitionVersion? left, V1CustomResourceDefinitionVersion? right)
Parameters
Type Name Description
V1CustomResourceDefinitionVersion left
V1CustomResourceDefinitionVersion right
Returns
Type Description
bool

operator !=(V1CustomResourceDefinitionVersion?, V1CustomResourceDefinitionVersion?)

Declaration
public static bool operator !=(V1CustomResourceDefinitionVersion? left, V1CustomResourceDefinitionVersion? right)
Parameters
Type Name Description
V1CustomResourceDefinitionVersion left
V1CustomResourceDefinitionVersion right
Returns
Type Description
bool

Implements

IEquatable<T>
In this article
Back to top Generated by DocFX