NamedRuleWithOperations class
NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
Constructors
-
NamedRuleWithOperations({List<
String> ? apiGroups, List<String> ? apiVersions, List<String> ? operations, List<String> ? resourceNames, List<String> ? resources, String? scope}) -
Default constructor.
const
-
NamedRuleWithOperations.fromJson(Map<
String, dynamic> json) -
Creates a NamedRuleWithOperations from JSON data.
factory
Properties
-
apiGroups
→ List<
String> ? -
APIGroups is the API groups the resources belong to. '' is all groups. If '' is present, the length of the slice must be one. Required.
final
-
apiVersions
→ List<
String> ? -
APIVersions is the API versions the resources belong to. '' is all versions. If '' is present, the length of the slice must be one. Required.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
operations
→ List<
String> ? -
Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.
final
-
resourceNames
→ List<
String> ? -
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
final
-
resources
→ List<
String> ? -
Resources is a list of resources this rule applies to.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → String?
-
scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*".
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a NamedRuleWithOperations instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited