Class V1alpha2ResourceClaimStatus
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha2ResourceClaimStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-18T15:05:57.863601Z[Etc/UTC]")
public class V1alpha2ResourceClaimStatus
extends Object
ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddReservedForItem
(V1alpha2ResourceClaimConsumerReference reservedForItem) allocation
(V1alpha2AllocationResult allocation) deallocationRequested
(Boolean deallocationRequested) driverName
(String driverName) boolean
Get allocationDeallocationRequested indicates that a ResourceClaim is to be deallocated.DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.ReservedFor indicates which entities are currently allowed to use the claim.int
hashCode()
reservedFor
(List<V1alpha2ResourceClaimConsumerReference> reservedFor) void
setAllocation
(V1alpha2AllocationResult allocation) void
setDeallocationRequested
(Boolean deallocationRequested) void
setDriverName
(String driverName) void
setReservedFor
(List<V1alpha2ResourceClaimConsumerReference> reservedFor) toString()
-
Field Details
-
SERIALIZED_NAME_ALLOCATION
- See Also:
-
SERIALIZED_NAME_DEALLOCATION_REQUESTED
- See Also:
-
SERIALIZED_NAME_DRIVER_NAME
- See Also:
-
SERIALIZED_NAME_RESERVED_FOR
- See Also:
-
-
Constructor Details
-
V1alpha2ResourceClaimStatus
public V1alpha2ResourceClaimStatus()
-
-
Method Details
-
allocation
-
getAllocation
Get allocation- Returns:
- allocation
-
setAllocation
-
deallocationRequested
-
getDeallocationRequested
DeallocationRequested indicates that a ResourceClaim is to be deallocated. The driver then must deallocate this claim and reset the field together with clearing the Allocation field. While DeallocationRequested is set, no new consumers may be added to ReservedFor.- Returns:
- deallocationRequested
-
setDeallocationRequested
-
driverName
-
getDriverName
DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.- Returns:
- driverName
-
setDriverName
-
reservedFor
public V1alpha2ResourceClaimStatus reservedFor(List<V1alpha2ResourceClaimConsumerReference> reservedFor) -
addReservedForItem
public V1alpha2ResourceClaimStatus addReservedForItem(V1alpha2ResourceClaimConsumerReference reservedForItem) -
getReservedFor
ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. There can be at most 32 such reservations. This may get increased in the future, but not reduced.- Returns:
- reservedFor
-
setReservedFor
-
equals
-
hashCode
public int hashCode() -
toString
-