Class V1APIResource
APIResource specifies the name of a resource and whether it is namespaced.
Inheritance
V1APIResource
Assembly: KubernetesClient.dll
Syntax
public record V1APIResource : IEquatable<V1APIResource>
Constructors
View Source
V1APIResource()
Declaration
View Source
V1APIResource(V1APIResource)
Declaration
protected V1APIResource(V1APIResource original)
Parameters
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
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
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
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
View Source
Name
name is the plural name of the resource.
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
View Source
Namespaced
namespaced indicates if a resource is namespaced or not.
Declaration
[JsonPropertyName("namespaced")]
public bool Namespaced { get; set; }
Property Value
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
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
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
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
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
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1APIResource?)
Declaration
public virtual bool Equals(V1APIResource? 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 ==(V1APIResource?, V1APIResource?)
Declaration
public static bool operator ==(V1APIResource? left, V1APIResource? right)
Parameters
Returns
View Source
operator !=(V1APIResource?, V1APIResource?)
Declaration
public static bool operator !=(V1APIResource? left, V1APIResource? right)
Parameters
Returns
Implements