Class V1alpha3ResourcePool
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1alpha3ResourcePool
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1alpha3ResourcePool
extends Object
ResourcePool describes the pool that ResourceSlices belong to.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
generation
(Long generation) Set generation in a chainable fashion.Generation tracks the change in a pool over time.getName()
Name is used to identify the pool.ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number.int
hashCode()
Set name in a chainable fashion.resourceSliceCount
(Long resourceSliceCount) Set resourceSliceCount in a chainable fashion.void
setGeneration
(Long generation) Set the generation property valuevoid
Set the name property valuevoid
setResourceSliceCount
(Long resourceSliceCount) Set the resourceSliceCount property valuetoString()
-
Field Details
-
JSON_PROPERTY_GENERATION
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_RESOURCE_SLICE_COUNT
- See Also:
-
-
Constructor Details
-
V1alpha3ResourcePool
-
-
Method Details
-
getGeneration
Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted. Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.- Returns:
- the generation property value
-
setGeneration
Set the generation property value- Parameters:
generation
- property value to set
-
generation
Set generation in a chainable fashion.- Returns:
- The same instance of V1alpha3ResourcePool for chaining.
-
getName
Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.- Returns:
- the name property value
-
setName
Set the name property value- Parameters:
name
- property value to set
-
name
Set name in a chainable fashion.- Returns:
- The same instance of V1alpha3ResourcePool for chaining.
-
getResourceSliceCount
ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero. Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.- Returns:
- the resourceSliceCount property value
-
setResourceSliceCount
Set the resourceSliceCount property value- Parameters:
resourceSliceCount
- property value to set
-
resourceSliceCount
Set resourceSliceCount in a chainable fashion.- Returns:
- The same instance of V1alpha3ResourcePool for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-