Class IDMappingOptions
java.lang.Object
io.github.alersrt.pod4j.openapi.model.IDMappingOptions
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class IDMappingOptions
extends Object
implements Serializable
IDMappingOptions are used for specifying how ID mapping should be set up for a layer or container.
- See Also:
-
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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
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
-
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 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
-
toJson
Convert an instance of IDMappingOptions to an JSON string- Returns:
- JSON string
-