Class V1APIGroup

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-18T15:05:57.863601Z[Etc/UTC]") public class V1APIGroup extends Object
APIGroup contains the name, the supported versions, and the preferred version of a group.
  • Field Details

  • Constructor Details

    • V1APIGroup

      public V1APIGroup()
  • Method Details

    • apiVersion

      public V1APIGroup 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 V1APIGroup 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)
    • name

      public V1APIGroup name(String name)
    • getName

      public String getName()
      name is the name of the group.
      Returns:
      name
    • setName

      public void setName(String name)
    • preferredVersion

      public V1APIGroup preferredVersion(V1GroupVersionForDiscovery preferredVersion)
    • getPreferredVersion

      @Nullable public V1GroupVersionForDiscovery getPreferredVersion()
      Get preferredVersion
      Returns:
      preferredVersion
    • setPreferredVersion

      public void setPreferredVersion(V1GroupVersionForDiscovery preferredVersion)
    • serverAddressByClientCIDRs

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

      public V1APIGroup addServerAddressByClientCIDRsItem(V1ServerAddressByClientCIDR serverAddressByClientCIDRsItem)
    • getServerAddressByClientCIDRs

      @Nullable 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 V1APIGroup versions(List<V1GroupVersionForDiscovery> versions)
    • addVersionsItem

      public V1APIGroup addVersionsItem(V1GroupVersionForDiscovery versionsItem)
    • getVersions

      public List<V1GroupVersionForDiscovery> getVersions()
      versions are the versions supported in this group.
      Returns:
      versions
    • setVersions

      public void setVersions(List<V1GroupVersionForDiscovery> 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