Class V2beta1APIResourceDiscovery
java.lang.Object
io.kubernetes.client.openapi.models.V2beta1APIResourceDiscovery
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-06-26T22:35:15.319369Z[Etc/UTC]",
comments="Generator version: 7.18.0")
public class V2beta1APIResourceDiscovery
extends Object
APIResourceDiscovery provides information about an API resource for discovery.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCategoriesItem(String categoriesItem) addShortNamesItem(String shortNamesItem) addSubresourcesItem(V2beta1APISubresourceDiscovery subresourcesItem) addVerbsItem(String verbsItem) categories(List<String> categories) booleanstatic V2beta1APIResourceDiscoveryCreate an instance of V2beta1APIResourceDiscovery given an JSON stringcategories is a list of the grouped resources this resource belongs to.resource is the plural name of the resource.Get responseKindgetScope()scope indicates the scope of a resource, either Cluster or NamespacedshortNames is a list of suggested short names of the resource.singularResource is the singular name of the resource.Get subresourcesgetVerbs()verbs is a list of supported API operation typesinthashCode()responseKind(V1GroupVersionKind responseKind) voidsetCategories(List<String> categories) voidsetResource(String resource) voidsetResponseKind(V1GroupVersionKind responseKind) voidvoidsetShortNames(List<String> shortNames) voidsetSingularResource(String singularResource) voidsetSubresources(List<V2beta1APISubresourceDiscovery> subresources) voidshortNames(List<String> shortNames) singularResource(String singularResource) subresources(List<V2beta1APISubresourceDiscovery> subresources) toJson()Convert an instance of V2beta1APIResourceDiscovery 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_RESOURCE
- See Also:
-
SERIALIZED_NAME_RESPONSE_KIND
- See Also:
-
SERIALIZED_NAME_SCOPE
- See Also:
-
SERIALIZED_NAME_SINGULAR_RESOURCE
- See Also:
-
SERIALIZED_NAME_VERBS
- See Also:
-
SERIALIZED_NAME_SHORT_NAMES
- See Also:
-
SERIALIZED_NAME_CATEGORIES
- See Also:
-
SERIALIZED_NAME_SUBRESOURCES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V2beta1APIResourceDiscovery
public V2beta1APIResourceDiscovery()
-
-
Method Details
-
resource
-
getResource
resource is the plural name of the resource.- Returns:
- resource
-
setResource
-
responseKind
-
getResponseKind
Get responseKind- Returns:
- responseKind
-
setResponseKind
-
scope
-
getScope
scope indicates the scope of a resource, either Cluster or Namespaced- Returns:
- scope
-
setScope
-
singularResource
-
getSingularResource
singularResource is the singular name of the resource.- Returns:
- singularResource
-
setSingularResource
-
verbs
-
addVerbsItem
-
getVerbs
verbs is a list of supported API operation types- Returns:
- verbs
-
setVerbs
-
shortNames
-
addShortNamesItem
-
getShortNames
shortNames is a list of suggested short names of the resource.- Returns:
- shortNames
-
setShortNames
-
categories
-
addCategoriesItem
-
getCategories
categories is a list of the grouped resources this resource belongs to.- Returns:
- categories
-
setCategories
-
subresources
public V2beta1APIResourceDiscovery subresources(@Nullable List<V2beta1APISubresourceDiscovery> subresources) -
addSubresourcesItem
public V2beta1APIResourceDiscovery addSubresourcesItem(V2beta1APISubresourceDiscovery subresourcesItem) -
getSubresources
Get subresources- Returns:
- subresources
-
setSubresources
-
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 V2beta1APIResourceDiscovery
-
fromJson
Create an instance of V2beta1APIResourceDiscovery given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V2beta1APIResourceDiscovery
- Throws:
IOException- if the JSON string is invalid with respect to V2beta1APIResourceDiscovery
-
toJson
Convert an instance of V2beta1APIResourceDiscovery to an JSON string- Returns:
- JSON string
-