Class IDMappingOptions
java.lang.Object
io.github.alersrt.pod4j.openapi.model.IDMappingOptions
@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 IDMappingOptions
extends Object
IDMappingOptions are used for specifying how ID mapping should be set up for a layer or container.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGiDMapItem(IDMap giDMapItem) addUiDMapItem(IDMap uiDMapItem) autoUserNs(Boolean autoUserNs) autoUserNsOpts(AutoUserNsOptions autoUserNsOpts) booleanstatic IDMappingOptionsCreate an instance of IDMappingOptions given an JSON stringGet autoUserNs@Valid AutoUserNsOptionsGet autoUserNsOptsGet giDMapGet hostGIDMappingUIDMap and GIDMap are used for setting up a layer's root filesystem for use inside of a user namespace where ID mapping is being used.Get uiDMapinthashCode()hostGIDMapping(Boolean hostGIDMapping) hostUIDMapping(Boolean hostUIDMapping) voidsetAutoUserNs(Boolean autoUserNs) voidsetAutoUserNsOpts(AutoUserNsOptions autoUserNsOpts) voidvoidsetHostGIDMapping(Boolean hostGIDMapping) voidsetHostUIDMapping(Boolean hostUIDMapping) voidtoJson()Convert an instance of IDMappingOptions 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_AUTO_USER_NS
- See Also:
-
SERIALIZED_NAME_AUTO_USER_NS_OPTS
- See Also:
-
SERIALIZED_NAME_GI_D_MAP
- See Also:
-
SERIALIZED_NAME_HOST_G_I_D_MAPPING
- See Also:
-
SERIALIZED_NAME_HOST_U_I_D_MAPPING
- See Also:
-
SERIALIZED_NAME_UI_D_MAP
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
IDMappingOptions
public IDMappingOptions()
-
-
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 IDMappingOptions
-
fromJson
Create an instance of IDMappingOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of IDMappingOptions
- Throws:
IOException- if the JSON string is invalid with respect to IDMappingOptions
-
autoUserNs
-
getAutoUserNs
Get autoUserNs- Returns:
- autoUserNs
-
setAutoUserNs
-
autoUserNsOpts
-
getAutoUserNsOpts
Get autoUserNsOpts- Returns:
- autoUserNsOpts
-
setAutoUserNsOpts
-
giDMap
-
addGiDMapItem
-
getGiDMap
Get giDMap- Returns:
- giDMap
-
setGiDMap
-
hostGIDMapping
-
getHostGIDMapping
Get hostGIDMapping- Returns:
- hostGIDMapping
-
setHostGIDMapping
-
hostUIDMapping
-
getHostUIDMapping
UIDMap and GIDMap are used for setting up a layer's root filesystem for use inside of a user namespace where ID mapping is being used. If HostUIDMapping/HostGIDMapping is true, no mapping of the respective type will be used. Otherwise, if UIDMap and/or GIDMap contain at least one mapping, one or both will be used. By default, if neither of those conditions apply, if the layer has a parent layer, the parent layer's mapping will be used, and if it does not have a parent layer, the mapping which was passed to the Store object when it was initialized will be used.- Returns:
- hostUIDMapping
-
setHostUIDMapping
-
uiDMap
-
addUiDMapItem
-
getUiDMap
Get uiDMap- Returns:
- uiDMap
-
setUiDMap
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of IDMappingOptions to an JSON string- Returns:
- JSON string
-