Class V1alpha3ResourcePool
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha3ResourcePool
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1alpha3ResourcePool
extends Object
ResourcePool describes the pool that ResourceSlices belong to.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1alpha3ResourcePool
Create an instance of V1alpha3ResourcePool given an JSON stringgeneration
(Long generation) 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()
resourceSliceCount
(Long resourceSliceCount) void
setGeneration
(Long generation) void
void
setResourceSliceCount
(Long resourceSliceCount) toJson()
Convert an instance of V1alpha3ResourcePool to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_GENERATION
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_RESOURCE_SLICE_COUNT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha3ResourcePool
public V1alpha3ResourcePool()
-
-
Method Details
-
generation
-
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:
- generation
-
setGeneration
-
name
-
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:
- name
-
setName
-
resourceSliceCount
-
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:
- resourceSliceCount
-
setResourceSliceCount
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1alpha3ResourcePool
-
fromJson
Create an instance of V1alpha3ResourcePool given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha3ResourcePool
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha3ResourcePool
-
toJson
Convert an instance of V1alpha3ResourcePool to an JSON string- Returns:
- JSON string
-