ResourceClaimSpec class
ResourceClaimSpec defines how a resource is to be allocated.
Constructors
- ResourceClaimSpec({String? allocationMode, ResourceClaimParametersReference? parametersRef, required String resourceClassName})
-
Default constructor.
const
-
ResourceClaimSpec.fromJson(Map<
String, dynamic> json) -
Creates a ResourceClaimSpec from JSON data.
factory
Properties
- allocationMode → String?
-
Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- parametersRef → ResourceClaimParametersReference?
-
ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.
final
- resourceClassName → String
-
ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a ResourceClaimSpec instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited