Package kubevirt.io
Class V1APIGroup
- java.lang.Object
-
- kubevirt.io.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 Summary
Constructors Constructor Description V1APIGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V1APIGroup
addServerAddressByClientCIDRsItem(V1ServerAddressByClientCIDR serverAddressByClientCIDRsItem)
V1APIGroup
addVersionsItem(V1GroupVersionForDiscovery versionsItem)
V1APIGroup
apiVersion(java.lang.String apiVersion)
boolean
equals(java.lang.Object o)
java.lang.String
getApiVersion()
APIVersion defines the versioned schema of this representation of an object.java.lang.String
getKind()
Kind is a string value representing the REST resource this object represents.java.lang.String
getName()
name is the name of the group.V1GroupVersionForDiscovery
getPreferredVersion()
preferredVersion is the version preferred by the API server, which probably is the storage version.java.util.List<V1ServerAddressByClientCIDR>
getServerAddressByClientCIDRs()
a map of client CIDR to server address that is serving this group.java.util.List<V1GroupVersionForDiscovery>
getVersions()
versions are the versions supported in this group.int
hashCode()
V1APIGroup
kind(java.lang.String kind)
V1APIGroup
name(java.lang.String name)
V1APIGroup
preferredVersion(V1GroupVersionForDiscovery preferredVersion)
V1APIGroup
serverAddressByClientCIDRs(java.util.List<V1ServerAddressByClientCIDR> serverAddressByClientCIDRs)
void
setApiVersion(java.lang.String apiVersion)
void
setKind(java.lang.String kind)
void
setName(java.lang.String name)
void
setPreferredVersion(V1GroupVersionForDiscovery preferredVersion)
void
setServerAddressByClientCIDRs(java.util.List<V1ServerAddressByClientCIDR> serverAddressByClientCIDRs)
void
setVersions(java.util.List<V1GroupVersionForDiscovery> versions)
java.lang.String
toString()
V1APIGroup
versions(java.util.List<V1GroupVersionForDiscovery> versions)
-
-
-
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)
-
preferredVersion
public V1APIGroup preferredVersion(V1GroupVersionForDiscovery preferredVersion)
-
getPreferredVersion
public V1GroupVersionForDiscovery getPreferredVersion()
preferredVersion is the version preferred by the API server, which probably is the storage version.- Returns:
- preferredVersion
-
setPreferredVersion
public void setPreferredVersion(V1GroupVersionForDiscovery preferredVersion)
-
serverAddressByClientCIDRs
public V1APIGroup serverAddressByClientCIDRs(java.util.List<V1ServerAddressByClientCIDR> serverAddressByClientCIDRs)
-
addServerAddressByClientCIDRsItem
public V1APIGroup addServerAddressByClientCIDRsItem(V1ServerAddressByClientCIDR serverAddressByClientCIDRsItem)
-
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)
-
versions
public V1APIGroup versions(java.util.List<V1GroupVersionForDiscovery> versions)
-
addVersionsItem
public V1APIGroup addVersionsItem(V1GroupVersionForDiscovery versionsItem)
-
getVersions
public java.util.List<V1GroupVersionForDiscovery> getVersions()
versions are the versions supported in this group.- Returns:
- versions
-
setVersions
public void setVersions(java.util.List<V1GroupVersionForDiscovery> versions)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-