Class InspectPodInfraConfig
java.lang.Object
io.github.alersrt.pod4j.openapi.model.InspectPodInfraConfig
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class InspectPodInfraConfig
extends Object
InspectPodInfraConfig contains the configuration of the pod's infra container.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDnSOptionItem(String dnSOptionItem) addDnSSearchItem(String dnSSearchItem) addDnSServerItem(String dnSServerItem) addHostAddItem(String hostAddItem) addNetworksItem(String networksItem) cpusetCpus(String cpusetCpus) booleanstatic InspectPodInfraConfigCreate an instance of InspectPodInfraConfig given an JSON stringCPUPeriod contains the CPU period of the podCPUQuota contains the CPU quota of the podCPUSetCPUs contains linux specific CPU data for the containerDNSOption is a set of DNS options that will be used by the infra container's resolv.conf and shared with the remainder of the pod.DNSSearch is a set of DNS search domains that will be used by the infra container's resolv.conf and shared with the remainder of the pod.DNSServer is a set of DNS Servers that will be used by the infra container's resolv.conf and shared with the remainder of the pod.HostAdd adds a number of hosts to the infra container's resolv.conf which will be shared with the rest of the pod.HostNetwork is whether the infra container (and thus the whole pod) will use the host's network and not create a network namespace.NetworkOptions are additional options for each networkNetworks is a list of networks the pod will join.NoManageHosts indicates that the pod will not manage /etc/hosts and instead each container will handle their own.NoManageResolvConf indicates that the pod will not manage resolv.conf and instead each container will handle their own.getPidNs()Pid is the PID namespace mode of the pod's infra container@Valid Map<String,List<@Valid InspectHostPort>> PortBindings are ports that will be forwarded to the infra container and then shared with the pod.StaticIP is a static IPv4 that will be assigned to the infra container and then used by the pod.StaticMAC is a static MAC address that will be assigned to the infra container and then used by the pod.UserNS is the usernamespace that all the containers in the pod will join.getUtsNs()UtsNS is the uts namespace that all containers in the pod will joininthashCode()hostNetwork(Boolean hostNetwork) networkOptions(Map<String, List<String>> networkOptions) noManageHosts(Boolean noManageHosts) noManageResolvConf(Boolean noManageResolvConf) portBindings(Map<String, List<@Valid InspectHostPort>> portBindings) putNetworkOptionsItem(String key, List<String> networkOptionsItem) putPortBindingsItem(String key, List<@Valid InspectHostPort> portBindingsItem) voidsetCpuPeriod(Integer cpuPeriod) voidsetCpuQuota(Long cpuQuota) voidsetCpusetCpus(String cpusetCpus) voidsetDnSOption(List<String> dnSOption) voidsetDnSSearch(List<String> dnSSearch) voidsetDnSServer(List<String> dnSServer) voidsetHostAdd(List<String> hostAdd) voidsetHostNetwork(Boolean hostNetwork) voidsetNetworkOptions(Map<String, List<String>> networkOptions) voidsetNetworks(List<String> networks) voidsetNoManageHosts(Boolean noManageHosts) voidsetNoManageResolvConf(Boolean noManageResolvConf) voidvoidsetPortBindings(Map<String, List<@Valid InspectHostPort>> portBindings) voidsetStaticIP(String staticIP) voidsetStaticMAC(String staticMAC) voidvoidtoJson()Convert an instance of InspectPodInfraConfig to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_DN_S_OPTION
- See Also:
-
SERIALIZED_NAME_DN_S_SEARCH
- See Also:
-
SERIALIZED_NAME_DN_S_SERVER
- See Also:
-
SERIALIZED_NAME_HOST_ADD
- See Also:
-
SERIALIZED_NAME_HOST_NETWORK
- See Also:
-
SERIALIZED_NAME_NETWORK_OPTIONS
- See Also:
-
SERIALIZED_NAME_NETWORKS
- See Also:
-
SERIALIZED_NAME_NO_MANAGE_HOSTS
- See Also:
-
SERIALIZED_NAME_NO_MANAGE_RESOLV_CONF
- See Also:
-
SERIALIZED_NAME_PORT_BINDINGS
- See Also:
-
SERIALIZED_NAME_STATIC_I_P
- See Also:
-
SERIALIZED_NAME_STATIC_M_A_C
- See Also:
-
SERIALIZED_NAME_CPU_PERIOD
- See Also:
-
SERIALIZED_NAME_CPU_QUOTA
- See Also:
-
SERIALIZED_NAME_CPUSET_CPUS
- See Also:
-
SERIALIZED_NAME_PID_NS
- See Also:
-
SERIALIZED_NAME_USERNS
- See Also:
-
SERIALIZED_NAME_UTS_NS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
InspectPodInfraConfig
public InspectPodInfraConfig()
-
-
Method Details
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to InspectPodInfraConfig
-
fromJson
Create an instance of InspectPodInfraConfig given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InspectPodInfraConfig
- Throws:
IOException- if the JSON string is invalid with respect to InspectPodInfraConfig
-
dnSOption
-
addDnSOptionItem
-
getDnSOption
DNSOption is a set of DNS options that will be used by the infra container's resolv.conf and shared with the remainder of the pod.- Returns:
- dnSOption
-
setDnSOption
-
dnSSearch
-
addDnSSearchItem
-
getDnSSearch
DNSSearch is a set of DNS search domains that will be used by the infra container's resolv.conf and shared with the remainder of the pod.- Returns:
- dnSSearch
-
setDnSSearch
-
dnSServer
-
addDnSServerItem
-
getDnSServer
DNSServer is a set of DNS Servers that will be used by the infra container's resolv.conf and shared with the remainder of the pod.- Returns:
- dnSServer
-
setDnSServer
-
hostAdd
-
addHostAddItem
-
getHostAdd
HostAdd adds a number of hosts to the infra container's resolv.conf which will be shared with the rest of the pod.- Returns:
- hostAdd
-
setHostAdd
-
hostNetwork
-
getHostNetwork
HostNetwork is whether the infra container (and thus the whole pod) will use the host's network and not create a network namespace.- Returns:
- hostNetwork
-
setHostNetwork
-
networkOptions
-
putNetworkOptionsItem
-
getNetworkOptions
NetworkOptions are additional options for each network- Returns:
- networkOptions
-
setNetworkOptions
-
networks
-
addNetworksItem
-
getNetworks
Networks is a list of networks the pod will join.- Returns:
- networks
-
setNetworks
-
noManageHosts
-
getNoManageHosts
NoManageHosts indicates that the pod will not manage /etc/hosts and instead each container will handle their own.- Returns:
- noManageHosts
-
setNoManageHosts
-
noManageResolvConf
-
getNoManageResolvConf
NoManageResolvConf indicates that the pod will not manage resolv.conf and instead each container will handle their own.- Returns:
- noManageResolvConf
-
setNoManageResolvConf
-
portBindings
-
putPortBindingsItem
public InspectPodInfraConfig putPortBindingsItem(String key, List<@Valid InspectHostPort> portBindingsItem) -
getPortBindings
PortBindings are ports that will be forwarded to the infra container and then shared with the pod.- Returns:
- portBindings
-
setPortBindings
-
staticIP
-
getStaticIP
StaticIP is a static IPv4 that will be assigned to the infra container and then used by the pod.- Returns:
- staticIP
-
setStaticIP
-
staticMAC
-
getStaticMAC
StaticMAC is a static MAC address that will be assigned to the infra container and then used by the pod.- Returns:
- staticMAC
-
setStaticMAC
-
cpuPeriod
-
getCpuPeriod
CPUPeriod contains the CPU period of the pod- Returns:
- cpuPeriod
-
setCpuPeriod
-
cpuQuota
-
getCpuQuota
CPUQuota contains the CPU quota of the pod- Returns:
- cpuQuota
-
setCpuQuota
-
cpusetCpus
-
getCpusetCpus
CPUSetCPUs contains linux specific CPU data for the container- Returns:
- cpusetCpus
-
setCpusetCpus
-
pidNs
-
getPidNs
Pid is the PID namespace mode of the pod's infra container- Returns:
- pidNs
-
setPidNs
-
userns
-
getUserns
UserNS is the usernamespace that all the containers in the pod will join.- Returns:
- userns
-
setUserns
-
utsNs
-
getUtsNs
UtsNS is the uts namespace that all containers in the pod will join- Returns:
- utsNs
-
setUtsNs
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of InspectPodInfraConfig to an JSON string- Returns:
- JSON string
-