Show / Hide Table of Contents

Class V1ResourceAttributes

ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface

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

Constructors

View Source

V1ResourceAttributes()

Declaration
public V1ResourceAttributes()
View Source

V1ResourceAttributes(V1ResourceAttributes)

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

Properties

View Source

EqualityContract

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

FieldSelector

fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.

Declaration
[JsonPropertyName("fieldSelector")]
public V1FieldSelectorAttributes FieldSelector { get; set; }
Property Value
Type Description
V1FieldSelectorAttributes
View Source

Group

Group is the API Group of the Resource. "*" means all.

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

LabelSelector

labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.

Declaration
[JsonPropertyName("labelSelector")]
public V1LabelSelectorAttributes LabelSelector { get; set; }
Property Value
Type Description
V1LabelSelectorAttributes
View Source

Name

Name is the name of the resource being requested for a "get" or deleted for a "delete". " " (empty) means all.

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

NamespaceProperty

Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces " " (empty) is defaulted for LocalSubjectAccessReviews " " (empty) is empty for cluster-scoped resources " " (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview

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

Resource

Resource is one of the existing resource types. "*" means all.

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

Subresource

Subresource is one of the existing resource types. " " means none.

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

Verb

Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all.

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

Version

Version is the API Version of the Resource. "*" means all.

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(V1ResourceAttributes?)

Declaration
public virtual bool Equals(V1ResourceAttributes? other)
Parameters
Type Name Description
V1ResourceAttributes 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 ==(V1ResourceAttributes?, V1ResourceAttributes?)

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

operator !=(V1ResourceAttributes?, V1ResourceAttributes?)

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

Implements

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