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 Summary
-
Constructor Summary
ConstructorDescriptionV1APIVersions
(List<@Valid V1ServerAddressByClientCIDR> serverAddressByClientCIDRs, List<String> versions) -
Method Summary
Modifier and TypeMethodDescriptionaddserverAddressByClientCIDRsItem
(V1ServerAddressByClientCIDR serverAddressByClientCIDRsItem) Add an item to the serverAddressByClientCIDRs property in a chainable fashion.addversionsItem
(String versionsItem) Add an item to the versions property in a chainable fashion.apiVersion
(String apiVersion) Set apiVersion in a chainable fashion.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.List<@Valid V1ServerAddressByClientCIDR>
a map of client CIDR to server address that is serving this group.versions are the api versions that are available.int
hashCode()
Set kind in a chainable fashion.serverAddressByClientCIDRs
(List<@Valid V1ServerAddressByClientCIDR> serverAddressByClientCIDRs) Set serverAddressByClientCIDRs in a chainable fashion.void
setApiVersion
(String apiVersion) Set the apiVersion property valuevoid
Set the kind property valuevoid
setServerAddressByClientCIDRs
(List<@Valid V1ServerAddressByClientCIDR> serverAddressByClientCIDRs) Set the serverAddressByClientCIDRs property valuevoid
setVersions
(List<String> versions) Set the versions property valuetoString()
Set versions in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_API_VERSION
- See Also:
-
JSON_PROPERTY_KIND
- See Also:
-
JSON_PROPERTY_SERVER_ADDRESS_BY_CLIENT_C_I_D_RS
- See Also:
-
JSON_PROPERTY_VERSIONS
- See Also:
-
-
Constructor Details
-
V1APIVersions
public V1APIVersions(List<@Valid V1ServerAddressByClientCIDR> serverAddressByClientCIDRs, List<String> versions)
-
-
Method Details
-
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
Set the apiVersion property value -
apiVersion
Set apiVersion in a chainable fashion.- Returns:
- The same instance of V1APIVersions for chaining.
-
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
Set the kind property value -
kind
Set kind in a chainable fashion.- Returns:
- The same instance of V1APIVersions for chaining.
-
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
versions are the api versions that are available.- Returns:
- the versions property value
-
setVersions
Set the versions property value -
versions
Set versions in a chainable fashion.- Returns:
- The same instance of V1APIVersions for chaining.
-
addversionsItem
Add an item to the versions property in a chainable fashion.- Returns:
- The same instance of V1APIVersions for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-