Class V2APISubresourceDiscovery

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

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

  • Constructor Details

    • V2APISubresourceDiscovery

      public V2APISubresourceDiscovery()
  • Method Details

    • subresource

      public V2APISubresourceDiscovery subresource(@Nonnull String subresource)
    • getSubresource

      @Nonnull public String getSubresource()
      subresource is the name of the subresource.
      Returns:
      subresource
    • setSubresource

      public void setSubresource(@Nonnull String subresource)
    • responseKind

      public V2APISubresourceDiscovery responseKind(@Nullable V1GroupVersionKind responseKind)
    • getResponseKind

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

      public void setResponseKind(@Nullable V1GroupVersionKind responseKind)
    • acceptedTypes

      public V2APISubresourceDiscovery acceptedTypes(@Nullable List<V1GroupVersionKind> acceptedTypes)
    • addAcceptedTypesItem

      public V2APISubresourceDiscovery addAcceptedTypesItem(V1GroupVersionKind acceptedTypesItem)
    • getAcceptedTypes

      @Nullable public List<V1GroupVersionKind> getAcceptedTypes()
      Get acceptedTypes
      Returns:
      acceptedTypes
    • setAcceptedTypes

      public void setAcceptedTypes(@Nullable List<V1GroupVersionKind> acceptedTypes)
    • verbs

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

      public V2APISubresourceDiscovery 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)
    • 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 V2APISubresourceDiscovery
    • fromJson

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

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