Class V1CustomResourceDefinitionVersion
CustomResourceDefinitionVersion describes a version for CRD.
Inheritance
V1CustomResourceDefinitionVersion
Assembly: KubernetesClient.dll
Syntax
public record V1CustomResourceDefinitionVersion : IEquatable<V1CustomResourceDefinitionVersion>
Constructors
V1CustomResourceDefinitionVersion()
Declaration
public V1CustomResourceDefinitionVersion()
V1CustomResourceDefinitionVersion(V1CustomResourceDefinitionVersion)
Declaration
protected V1CustomResourceDefinitionVersion(V1CustomResourceDefinitionVersion original)
Parameters
Properties
AdditionalPrinterColumns
Declaration
[JsonPropertyName("additionalPrinterColumns")]
public IList<V1CustomResourceColumnDefinition> AdditionalPrinterColumns { get; set; }
Property Value
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
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
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
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
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
SelectableFields
Declaration
[JsonPropertyName("selectableFields")]
public IList<V1SelectableField> SelectableFields { get; set; }
Property Value
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
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
Subresources
subresources specify what subresources this version of the defined custom
resource have.
Declaration
[JsonPropertyName("subresources")]
public V1CustomResourceSubresources Subresources { get; set; }
Property Value
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1CustomResourceDefinitionVersion?)
Declaration
public virtual bool Equals(V1CustomResourceDefinitionVersion? other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(V1CustomResourceDefinitionVersion?, V1CustomResourceDefinitionVersion?)
Declaration
public static bool operator ==(V1CustomResourceDefinitionVersion? left, V1CustomResourceDefinitionVersion? right)
Parameters
Returns
operator !=(V1CustomResourceDefinitionVersion?, V1CustomResourceDefinitionVersion?)
Declaration
public static bool operator !=(V1CustomResourceDefinitionVersion? left, V1CustomResourceDefinitionVersion? right)
Parameters
Returns
Implements