class K8S::Api::Flowcontrol::V1beta1::ResourcePolicyRule
- K8S::Api::Flowcontrol::V1beta1::ResourcePolicyRule
- Reference
- Object
Overview
ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) least one member of namespaces matches the request.
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.21/api/flowcontrol/v1beta1/resource_policy_rule.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, api_groups : Array(String), resources : Array(String), verbs : Array(String), cluster_scope : Bool? = nil, namespaces : Array(String)? = nil)
Instance Method Summary
- #api_groups : Array(String)
- #api_groups=(api_groups : Array(String))
- #cluster_scope : Bool?
- #cluster_scope=(cluster_scope : Bool?)
- #namespaces : Array(String)?
- #namespaces=(namespaces : Array(String)?)
- #resources : Array(String)
- #resources=(resources : Array(String))
- #verbs : Array(String)
- #verbs=(verbs : Array(String))
Constructor Detail
def self.new(*, api_groups : Array(String), resources : Array(String), verbs : Array(String), cluster_scope : Bool? = nil, namespaces : Array(String)? = nil)
#