ScopedResourceSelectorRequirement class

A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.

Constructors

ScopedResourceSelectorRequirement({required String operator, required String scopeName, List<String>? values})
The main constructor.
const
ScopedResourceSelectorRequirement.fromJson(Map<String, dynamic> json)
Creates a ScopedResourceSelectorRequirement from JSON data.

Properties

hashCode int
The hash code for this object.
no setterinherited
operator String
Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopeName String
The name of the scope that the selector applies to.
final
values List<String>?
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
final

Methods

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

Operators

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

Static Methods

listFromJson(Iterable<Map<String, dynamic>> list) List<ScopedResourceSelectorRequirement>
Creates a list of ScopedResourceSelectorRequirement from JSON data.