Class V2beta1APIGroupDiscovery
java.lang.Object
io.kubernetes.client.openapi.models.V2beta1APIGroupDiscovery
- All Implemented Interfaces:
KubernetesObject,KubernetesType
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-06-26T22:35:15.319369Z[Etc/UTC]",
comments="Generator version: 7.18.0")
public class V2beta1APIGroupDiscovery
extends Object
implements KubernetesObject
APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddVersionsItem(V2beta1APIVersionDiscovery versionsItem) apiVersion(String apiVersion) booleanstatic V2beta1APIGroupDiscoveryCreate an instance of V2beta1APIGroupDiscovery given an JSON stringGet apiVersiongetKind()Get kindGet metadataGet versionsinthashCode()metadata(V1ObjectMeta metadata) voidsetApiVersion(String apiVersion) voidvoidsetMetadata(V1ObjectMeta metadata) voidsetVersions(List<V2beta1APIVersionDiscovery> versions) toJson()Convert an instance of V2beta1APIGroupDiscovery to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundversions(List<V2beta1APIVersionDiscovery> versions)
-
Field Details
-
SERIALIZED_NAME_API_VERSION
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_VERSIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V2beta1APIGroupDiscovery
public V2beta1APIGroupDiscovery()
-
-
Method Details
-
apiVersion
-
getApiVersion
Get apiVersion- Specified by:
getApiVersionin interfaceKubernetesType- Returns:
- apiVersion
-
setApiVersion
-
kind
-
getKind
Get kind- Specified by:
getKindin interfaceKubernetesType- Returns:
- kind
-
setKind
-
metadata
-
getMetadata
Get metadata- Specified by:
getMetadatain interfaceKubernetesObject- Returns:
- metadata
-
setMetadata
-
versions
-
addVersionsItem
-
getVersions
Get versions- Returns:
- versions
-
setVersions
-
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 V2beta1APIGroupDiscovery
-
fromJson
Create an instance of V2beta1APIGroupDiscovery given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V2beta1APIGroupDiscovery
- Throws:
IOException- if the JSON string is invalid with respect to V2beta1APIGroupDiscovery
-
toJson
Convert an instance of V2beta1APIGroupDiscovery to an JSON string- Returns:
- JSON string
-