PolicyRulesWithSubjects class

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.

Constructors

PolicyRulesWithSubjects({List<NonResourcePolicyRule>? nonResourceRules, List<ResourcePolicyRule>? resourceRules, required List<Subject> subjects})
Default constructor.
const
PolicyRulesWithSubjects.fromJson(Map<String, dynamic> json)
Creates a PolicyRulesWithSubjects from JSON data.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
nonResourceRules List<NonResourcePolicyRule>?
nonResourceRules is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.
final
resourceRules List<ResourcePolicyRule>?
resourceRules is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of resourceRules and nonResourceRules has to be non-empty.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subjects List<Subject>
subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a PolicyRulesWithSubjects instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited