class K8S::Api::Flowcontrol::V1alpha1::PolicyRulesWithSubjects

Overview

PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.

Included Modules

Defined in:

versions/v1.18/api/flowcontrol/v1alpha1/policy_rules_with_subjects.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, subjects : Array(Api::Flowcontrol::V1alpha1::Subject), non_resource_rules : Array(Api::Flowcontrol::V1alpha1::NonResourcePolicyRule)? = nil, resource_rules : Array(Api::Flowcontrol::V1alpha1::ResourcePolicyRule)? = nil) #

[View source]

Instance Method Detail

def non_resource_rules : Array(Api::Flowcontrol::V1alpha1::NonResourcePolicyRule)? #

[View source]
def non_resource_rules=(non_resource_rules : Array(Api::Flowcontrol::V1alpha1::NonResourcePolicyRule)?) #

[View source]
def resource_rules : Array(Api::Flowcontrol::V1alpha1::ResourcePolicyRule)? #

[View source]
def resource_rules=(resource_rules : Array(Api::Flowcontrol::V1alpha1::ResourcePolicyRule)?) #

[View source]
def subjects : Array(Api::Flowcontrol::V1alpha1::Subject) #

[View source]
def subjects=(subjects : Array(Api::Flowcontrol::V1alpha1::Subject)) #

[View source]