Package kubevirt.io

Class V1APIGroup


  • @Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
               date="2019-11-10T14:44:51.030+02:00")
    public class V1APIGroup
    extends java.lang.Object
    APIGroup contains the name, the supported versions, and the preferred version of a group.
    • Constructor Detail

      • V1APIGroup

        public V1APIGroup()
    • Method Detail

      • apiVersion

        public V1APIGroup apiVersion​(java.lang.String apiVersion)
      • getApiVersion

        public java.lang.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/api-conventions.md#resources
        Returns:
        apiVersion
      • setApiVersion

        public void setApiVersion​(java.lang.String apiVersion)
      • kind

        public V1APIGroup kind​(java.lang.String kind)
      • getKind

        public java.lang.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/api-conventions.md#types-kinds
        Returns:
        kind
      • setKind

        public void setKind​(java.lang.String kind)
      • name

        public V1APIGroup name​(java.lang.String name)
      • getName

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

        public void setName​(java.lang.String name)
      • getPreferredVersion

        public V1GroupVersionForDiscovery getPreferredVersion()
        preferredVersion is the version preferred by the API server, which probably is the storage version.
        Returns:
        preferredVersion
      • getServerAddressByClientCIDRs

        public java.util.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​(java.util.List<V1ServerAddressByClientCIDR> serverAddressByClientCIDRs)
      • getVersions

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object