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