struct Kubernetes::ResourceAttributes

Overview

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

Included Modules

Defined in:

generated/models/io_k8s_api_authorization_v1.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : ::JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : ::JSON::PullParser) #

def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

Macro Detail

macro field(name, type = nil, **options, &block) #

Helper macro for defining fields with automatic camelCase conversion


Instance Method Detail

def field_selector : FieldSelectorAttributes | Nil #

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


def field_selector=(field_selector : FieldSelectorAttributes | Nil) #

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


def group : String | Nil #

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


def group=(group : String | Nil) #

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


def label_selector : LabelSelectorAttributes | Nil #

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


def label_selector=(label_selector : LabelSelectorAttributes | Nil) #

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


def name : String | Nil #

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


def name=(name : String | Nil) #

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


def namespace : String | Nil #

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


def namespace=(namespace : String | Nil) #

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


def resource : String | Nil #

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


def resource=(resource : String | Nil) #

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


def subresource : String | Nil #

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


def subresource=(subresource : String | Nil) #

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


def verb : String | Nil #

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


def verb=(verb : String | Nil) #

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


def version : String | Nil #

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


def version=(version : String | Nil) #

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