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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionV1APIVersions(List<@Valid V1ServerAddressByClientCIDR> serverAddressByClientCIDRs, List<String> versions) 
- 
Method SummaryModifier 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.booleanAPIVersion 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.inthashCode()Set kind in a chainable fashion.serverAddressByClientCIDRs(List<@Valid V1ServerAddressByClientCIDR> serverAddressByClientCIDRs) Set serverAddressByClientCIDRs in a chainable fashion.voidsetApiVersion(String apiVersion) Set the apiVersion property valuevoidSet the kind property valuevoidsetServerAddressByClientCIDRs(List<@Valid V1ServerAddressByClientCIDR> serverAddressByClientCIDRs) Set the serverAddressByClientCIDRs property valuevoidsetVersions(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- 
V1APIVersionspublic V1APIVersions(List<@Valid V1ServerAddressByClientCIDR> serverAddressByClientCIDRs, List<String> versions) 
 
- 
- 
Method Details- 
getApiVersionAPIVersion 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
 
- 
setApiVersionSet the apiVersion property value
- 
apiVersionSet apiVersion in a chainable fashion.- Returns:
- The same instance of V1APIVersions for chaining.
 
- 
getKindKind 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
 
- 
setKindSet the kind property value
- 
kindSet kind in a chainable fashion.- Returns:
- The same instance of V1APIVersions for chaining.
 
- 
getServerAddressByClientCIDRsa 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
 
- 
setServerAddressByClientCIDRspublic void setServerAddressByClientCIDRs(List<@Valid V1ServerAddressByClientCIDR> serverAddressByClientCIDRs) Set the serverAddressByClientCIDRs property value
- 
serverAddressByClientCIDRspublic V1APIVersions serverAddressByClientCIDRs(List<@Valid V1ServerAddressByClientCIDR> serverAddressByClientCIDRs) Set serverAddressByClientCIDRs in a chainable fashion.- Returns:
- The same instance of V1APIVersions for chaining.
 
- 
addserverAddressByClientCIDRsItempublic V1APIVersions addserverAddressByClientCIDRsItem(V1ServerAddressByClientCIDR serverAddressByClientCIDRsItem) Add an item to the serverAddressByClientCIDRs property in a chainable fashion.- Returns:
- The same instance of V1APIVersions for chaining.
 
- 
getVersionsversions are the api versions that are available.- Returns:
- the versions property value
 
- 
setVersionsSet the versions property value
- 
versionsSet versions in a chainable fashion.- Returns:
- The same instance of V1APIVersions for chaining.
 
- 
addversionsItemAdd an item to the versions property in a chainable fashion.- Returns:
- The same instance of V1APIVersions for chaining.
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-