Class V2APIResourceDiscovery

java.lang.Object
io.kubernetes.client.openapi.models.V2APIResourceDiscovery

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-06-26T22:35:15.319369Z[Etc/UTC]", comments="Generator version: 7.18.0") public class V2APIResourceDiscovery extends Object
APIResourceDiscovery provides information about an API resource for discovery.
  • Field Details

  • Constructor Details

    • V2APIResourceDiscovery

      public V2APIResourceDiscovery()
  • Method Details

    • resource

      public V2APIResourceDiscovery resource(@Nonnull String resource)
    • getResource

      @Nonnull public String getResource()
      resource is the plural name of the resource.
      Returns:
      resource
    • setResource

      public void setResource(@Nonnull String resource)
    • responseKind

      public V2APIResourceDiscovery responseKind(@Nullable V1GroupVersionKind responseKind)
    • getResponseKind

      @Nullable public V1GroupVersionKind getResponseKind()
      Get responseKind
      Returns:
      responseKind
    • setResponseKind

      public void setResponseKind(@Nullable V1GroupVersionKind responseKind)
    • scope

      public V2APIResourceDiscovery scope(@Nonnull String scope)
    • getScope

      @Nonnull public String getScope()
      scope indicates the scope of a resource, either Cluster or Namespaced
      Returns:
      scope
    • setScope

      public void setScope(@Nonnull String scope)
    • singularResource

      public V2APIResourceDiscovery singularResource(@Nonnull String singularResource)
    • getSingularResource

      @Nonnull public String getSingularResource()
      singularResource is the singular name of the resource.
      Returns:
      singularResource
    • setSingularResource

      public void setSingularResource(@Nonnull String singularResource)
    • verbs

      public V2APIResourceDiscovery verbs(@Nonnull List<String> verbs)
    • addVerbsItem

      public V2APIResourceDiscovery addVerbsItem(String verbsItem)
    • getVerbs

      @Nonnull public List<String> getVerbs()
      verbs is a list of supported API operation types
      Returns:
      verbs
    • setVerbs

      public void setVerbs(@Nonnull List<String> verbs)
    • shortNames

      public V2APIResourceDiscovery shortNames(@Nullable List<String> shortNames)
    • addShortNamesItem

      public V2APIResourceDiscovery addShortNamesItem(String shortNamesItem)
    • getShortNames

      @Nullable public List<String> getShortNames()
      shortNames is a list of suggested short names of the resource.
      Returns:
      shortNames
    • setShortNames

      public void setShortNames(@Nullable List<String> shortNames)
    • categories

      public V2APIResourceDiscovery categories(@Nullable List<String> categories)
    • addCategoriesItem

      public V2APIResourceDiscovery addCategoriesItem(String categoriesItem)
    • getCategories

      @Nullable public List<String> getCategories()
      categories is a list of the grouped resources this resource belongs to.
      Returns:
      categories
    • setCategories

      public void setCategories(@Nullable List<String> categories)
    • subresources

      public V2APIResourceDiscovery subresources(@Nullable List<V2APISubresourceDiscovery> subresources)
    • addSubresourcesItem

      public V2APIResourceDiscovery addSubresourcesItem(V2APISubresourceDiscovery subresourcesItem)
    • getSubresources

      @Nullable public List<V2APISubresourceDiscovery> getSubresources()
      Get subresources
      Returns:
      subresources
    • setSubresources

      public void setSubresources(@Nullable List<V2APISubresourceDiscovery> subresources)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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 V2APIResourceDiscovery
    • fromJson

      public static V2APIResourceDiscovery fromJson(String jsonString) throws IOException
      Create an instance of V2APIResourceDiscovery given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V2APIResourceDiscovery
      Throws:
      IOException - if the JSON string is invalid with respect to V2APIResourceDiscovery
    • toJson

      public String toJson()
      Convert an instance of V2APIResourceDiscovery to an JSON string
      Returns:
      JSON string