Class V1APIGroup
java.lang.Object
io.kubernetes.client.openapi.models.V1APIGroup
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T23:08:31.638427Z[Etc/UTC]")
public class V1APIGroup
extends Object
APIGroup contains the name, the supported versions, and the preferred version of a group.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddServerAddressByClientCIDRsItem
(V1ServerAddressByClientCIDR serverAddressByClientCIDRsItem) addVersionsItem
(V1GroupVersionForDiscovery versionsItem) apiVersion
(String apiVersion) boolean
APIVersion defines the versioned schema of this representation of an object.getKind()
Kind is a string value representing the REST resource this object represents.getName()
name is the name of the group.Get preferredVersiona map of client CIDR to server address that is serving this group.versions are the versions supported in this group.int
hashCode()
preferredVersion
(V1GroupVersionForDiscovery preferredVersion) serverAddressByClientCIDRs
(List<V1ServerAddressByClientCIDR> serverAddressByClientCIDRs) void
setApiVersion
(String apiVersion) void
void
void
setPreferredVersion
(V1GroupVersionForDiscovery preferredVersion) void
setServerAddressByClientCIDRs
(List<V1ServerAddressByClientCIDR> serverAddressByClientCIDRs) void
setVersions
(List<V1GroupVersionForDiscovery> versions) toString()
versions
(List<V1GroupVersionForDiscovery> versions)
-
Field Details
-
SERIALIZED_NAME_API_VERSION
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_PREFERRED_VERSION
- See Also:
-
SERIALIZED_NAME_SERVER_ADDRESS_BY_CLIENT_C_I_D_RS
- See Also:
-
SERIALIZED_NAME_VERSIONS
- See Also:
-
-
Constructor Details
-
V1APIGroup
public V1APIGroup()
-
-
Method Details
-
apiVersion
-
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
-
kind
-
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
-
name
-
getName
name is the name of the group.- Returns:
- name
-
setName
-
preferredVersion
-
getPreferredVersion
Get preferredVersion- Returns:
- preferredVersion
-
setPreferredVersion
-
serverAddressByClientCIDRs
public V1APIGroup serverAddressByClientCIDRs(List<V1ServerAddressByClientCIDR> serverAddressByClientCIDRs) -
addServerAddressByClientCIDRsItem
public V1APIGroup addServerAddressByClientCIDRsItem(V1ServerAddressByClientCIDR serverAddressByClientCIDRsItem) -
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
-
addVersionsItem
-
getVersions
versions are the versions supported in this group.- Returns:
- versions
-
setVersions
-
equals
-
hashCode
public int hashCode() -
toString
-