Class V1APIVersions

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1APIVersions

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") 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

  • Method Details

    • getApiVersion

      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:
      the apiVersion property value
    • setApiVersion

      public void setApiVersion(String apiVersion)
      Set the apiVersion property value
    • apiVersion

      public V1APIVersions apiVersion(String apiVersion)
      Set apiVersion in a chainable fashion.
      Returns:
      The same instance of V1APIVersions for chaining.
    • getKind

      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:
      the kind property value
    • setKind

      public void setKind(String kind)
      Set the kind property value
    • kind

      public V1APIVersions kind(String kind)
      Set kind in a chainable fashion.
      Returns:
      The same instance of V1APIVersions for chaining.
    • getServerAddressByClientCIDRs

      public List<@Valid 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:
      the serverAddressByClientCIDRs property value
    • setServerAddressByClientCIDRs

      public void setServerAddressByClientCIDRs(List<@Valid V1ServerAddressByClientCIDR> serverAddressByClientCIDRs)
      Set the serverAddressByClientCIDRs property value
    • serverAddressByClientCIDRs

      public V1APIVersions serverAddressByClientCIDRs(List<@Valid V1ServerAddressByClientCIDR> serverAddressByClientCIDRs)
      Set serverAddressByClientCIDRs in a chainable fashion.
      Returns:
      The same instance of V1APIVersions for chaining.
    • addserverAddressByClientCIDRsItem

      public V1APIVersions addserverAddressByClientCIDRsItem(V1ServerAddressByClientCIDR serverAddressByClientCIDRsItem)
      Add an item to the serverAddressByClientCIDRs property in a chainable fashion.
      Returns:
      The same instance of V1APIVersions for chaining.
    • getVersions

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

      public void setVersions(List<String> versions)
      Set the versions property value
    • versions

      public V1APIVersions versions(List<String> versions)
      Set versions in a chainable fashion.
      Returns:
      The same instance of V1APIVersions for chaining.
    • addversionsItem

      public V1APIVersions addversionsItem(String versionsItem)
      Add an item to the versions property in a chainable fashion.
      Returns:
      The same instance of V1APIVersions for chaining.
    • 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