Class LogConfigLibpod
java.lang.Object
io.github.alersrt.pod4j.openapi.model.LogConfigLibpod
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LogConfigLibpod
extends Object
implements Serializable
LogConfig describes the logging characteristics for a container
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LogConfigLibpodCreate an instance of LogConfigLibpod given an JSON stringLogDriver is the container's log driver.A set of options to accompany the log driver.getPath()LogPath is the path the container's logs will be stored at.getSize()Size is the maximum size of the log file Optional.inthashCode()putOptionsItem(String key, String optionsItem) voidvoidsetOptions(Map<String, String> options) voidvoidtoJson()Convert an instance of LogConfigLibpod to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_DRIVER
- See Also:
-
SERIALIZED_NAME_OPTIONS
- See Also:
-
SERIALIZED_NAME_PATH
- See Also:
-
SERIALIZED_NAME_SIZE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LogConfigLibpod
public LogConfigLibpod()
-
-
Method Details
-
driver
-
getDriver
LogDriver is the container's log driver. Optional.- Returns:
- driver
-
setDriver
-
options
-
putOptionsItem
-
getOptions
A set of options to accompany the log driver. Optional.- Returns:
- options
-
setOptions
-
path
-
getPath
LogPath is the path the container's logs will be stored at. Only available if LogDriver is set to \"json-file\" or \"k8s-file\". Optional.- Returns:
- path
-
setPath
-
size
-
getSize
Size is the maximum size of the log file Optional.- Returns:
- size
-
setSize
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to LogConfigLibpod
-
fromJson
Create an instance of LogConfigLibpod given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LogConfigLibpod
- Throws:
IOException- if the JSON string is invalid with respect to LogConfigLibpod
-
toJson
Convert an instance of LogConfigLibpod to an JSON string- Returns:
- JSON string
-