class K8S::Api::Flowcontrol::V1beta1::PolicyRulesWithSubjects
- K8S::Api::Flowcontrol::V1beta1::PolicyRulesWithSubjects
- Reference
- Object
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
- JSON::Serializable
- YAML::Serializable
Defined in:
versions/v1.21/api/flowcontrol/v1beta1/policy_rules_with_subjects.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, subjects : Array, non_resource_rules : Array? = nil, resource_rules : Array? = nil)
Instance Method Summary
- #non_resource_rules : Array(Api::Flowcontrol::V1beta1::NonResourcePolicyRule)?
- #non_resource_rules=(non_resource_rules : Array(Api::Flowcontrol::V1beta1::NonResourcePolicyRule)?)
- #resource_rules : Array(Api::Flowcontrol::V1beta1::ResourcePolicyRule)?
- #resource_rules=(resource_rules : Array(Api::Flowcontrol::V1beta1::ResourcePolicyRule)?)
- #subjects : Array(Api::Flowcontrol::V1beta1::Subject)
- #subjects=(subjects : Array(Api::Flowcontrol::V1beta1::Subject))
Constructor Detail
def self.new(*, subjects : Array, non_resource_rules : Array? = nil, resource_rules : Array? = nil)
#
Instance Method Detail
def non_resource_rules=(non_resource_rules : Array(Api::Flowcontrol::V1beta1::NonResourcePolicyRule)?)
#
def resource_rules=(resource_rules : Array(Api::Flowcontrol::V1beta1::ResourcePolicyRule)?)
#