Class V2APIVersionDiscovery
java.lang.Object
io.kubernetes.client.openapi.models.V2APIVersionDiscovery
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-06-26T22:35:15.319369Z[Etc/UTC]",
comments="Generator version: 7.18.0")
public class V2APIVersionDiscovery
extends Object
APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddResourcesItem(V2APIResourceDiscovery resourcesItem) booleanstatic V2APIVersionDiscoveryCreate an instance of V2APIVersionDiscovery given an JSON stringfreshness marks whether a group version's discovery document is up to date.Get resourcesversion is the name of the version within a group version.inthashCode()resources(List<V2APIResourceDiscovery> resources) voidsetFreshness(String freshness) voidsetResources(List<V2APIResourceDiscovery> resources) voidsetVersion(String version) toJson()Convert an instance of V2APIVersionDiscovery to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_VERSION
- See Also:
-
SERIALIZED_NAME_RESOURCES
- See Also:
-
SERIALIZED_NAME_FRESHNESS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V2APIVersionDiscovery
public V2APIVersionDiscovery()
-
-
Method Details
-
version
-
getVersion
version is the name of the version within a group version.- Returns:
- version
-
setVersion
-
resources
-
addResourcesItem
-
getResources
Get resources- Returns:
- resources
-
setResources
-
freshness
-
getFreshness
freshness marks whether a group version's discovery document is up to date.- Returns:
- freshness
-
setFreshness
-
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 V2APIVersionDiscovery
-
fromJson
Create an instance of V2APIVersionDiscovery given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V2APIVersionDiscovery
- Throws:
IOException- if the JSON string is invalid with respect to V2APIVersionDiscovery
-
toJson
Convert an instance of V2APIVersionDiscovery to an JSON string- Returns:
- JSON string
-