RuleWithOperations class

RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.

Constructors

RuleWithOperations({List<String>? apiGroups, List<String>? apiVersions, List<String>? operations, List<String>? resources, String? scope})
Default constructor.
const
RuleWithOperations.fromJson(Map<String, dynamic> json)
Creates a RuleWithOperations 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
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 RuleWithOperations instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

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