ResourceRule class
ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
Constructors
-
ResourceRule({List<
String> ? apiGroups, List<String> ? resourceNames, List<String> ? resources, required List<String> verbs}) -
Default constructor.
const
-
ResourceRule.fromJson(Map<
String, dynamic> json) -
Creates a ResourceRule from JSON data.
factory
Properties
-
apiGroups
→ List<
String> ? -
APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
resourceNames
→ List<
String> ? -
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all.
final
-
resources
→ List<
String> ? -
Resources is a list of resources this rule applies to. "" means all in the specified apiGroups.
"/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
verbs
→ List<
String> -
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a ResourceRule instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited