Class V1APIVersions

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1APIVersions extends Object
APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.
  • Field Details

  • Constructor Details

    • V1APIVersions

      public V1APIVersions()
  • Method Details

    • apiVersion

      public V1APIVersions apiVersion(String apiVersion)
    • getApiVersion

      @Nullable public String getApiVersion()
      APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
      Returns:
      apiVersion
    • setApiVersion

      public void setApiVersion(String apiVersion)
    • kind

      public V1APIVersions kind(String kind)
    • getKind

      @Nullable public String getKind()
      Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      Returns:
      kind
    • setKind

      public void setKind(String kind)
    • serverAddressByClientCIDRs

      public V1APIVersions serverAddressByClientCIDRs(List<V1ServerAddressByClientCIDR> serverAddressByClientCIDRs)
    • addServerAddressByClientCIDRsItem

      public V1APIVersions addServerAddressByClientCIDRsItem(V1ServerAddressByClientCIDR serverAddressByClientCIDRsItem)
    • getServerAddressByClientCIDRs

      @Nonnull public List<V1ServerAddressByClientCIDR> getServerAddressByClientCIDRs()
      a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
      Returns:
      serverAddressByClientCIDRs
    • setServerAddressByClientCIDRs

      public void setServerAddressByClientCIDRs(List<V1ServerAddressByClientCIDR> serverAddressByClientCIDRs)
    • versions

      public V1APIVersions versions(List<String> versions)
    • addVersionsItem

      public V1APIVersions addVersionsItem(String versionsItem)
    • getVersions

      @Nonnull public List<String> getVersions()
      versions are the api versions that are available.
      Returns:
      versions
    • setVersions

      public void setVersions(List<String> versions)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1APIVersions
    • fromJson

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

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