Show / Hide Table of Contents

Class V1APIResource

APIResource specifies the name of a resource and whether it is namespaced.

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

Constructors

View Source

V1APIResource()

Declaration
public V1APIResource()
View Source

V1APIResource(V1APIResource)

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

Properties

View Source

Categories

categories is a list of the grouped resources this resource belongs to (e.g. 'all')

Declaration
[JsonPropertyName("categories")]
public IList<string> Categories { get; set; }
Property Value
Type Description
IList<string>
View Source

EqualityContract

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

Group

group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale".

Declaration
[JsonPropertyName("group")]
public string Group { get; set; }
Property Value
Type Description
string
View Source

Kind

kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')

Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
Type Description
string
View Source

Name

name is the plural name of the resource.

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

Namespaced

namespaced indicates if a resource is namespaced or not.

Declaration
[JsonPropertyName("namespaced")]
public bool Namespaced { get; set; }
Property Value
Type Description
bool
View Source

ShortNames

shortNames is a list of suggested short names of the resource.

Declaration
[JsonPropertyName("shortNames")]
public IList<string> ShortNames { get; set; }
Property Value
Type Description
IList<string>
View Source

SingularName

singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.

Declaration
[JsonPropertyName("singularName")]
public string SingularName { get; set; }
Property Value
Type Description
string
View Source

StorageVersionHash

The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.

Declaration
[JsonPropertyName("storageVersionHash")]
public string StorageVersionHash { get; set; }
Property Value
Type Description
string
View Source

Verbs

verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)

Declaration
[JsonPropertyName("verbs")]
public IList<string> Verbs { get; set; }
Property Value
Type Description
IList<string>
View Source

Version

version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".

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

Methods

View Source

Equals(object?)

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

Equals(V1APIResource?)

Declaration
public virtual bool Equals(V1APIResource? other)
Parameters
Type Name Description
V1APIResource other
Returns
Type Description
bool
View Source

GetHashCode()

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

PrintMembers(StringBuilder)

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

ToString()

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

Operators

View Source

operator ==(V1APIResource?, V1APIResource?)

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

operator !=(V1APIResource?, V1APIResource?)

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

Implements

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