ContainerCapabilities¶
-
class
oci.container_instances.models.
ContainerCapabilities
(**kwargs)¶ Bases:
object
Linux Container capabilities to configure capabilities of container.
Attributes
ADD_CAPABILITIES_ALL
A constant which can be used with the add_capabilities property of a ContainerCapabilities. ADD_CAPABILITIES_CAP_AUDIT_WRITE
A constant which can be used with the add_capabilities property of a ContainerCapabilities. ADD_CAPABILITIES_CAP_CHOWN
A constant which can be used with the add_capabilities property of a ContainerCapabilities. ADD_CAPABILITIES_CAP_DAC_OVERRIDE
A constant which can be used with the add_capabilities property of a ContainerCapabilities. ADD_CAPABILITIES_CAP_FOWNER
A constant which can be used with the add_capabilities property of a ContainerCapabilities. ADD_CAPABILITIES_CAP_FSETID
A constant which can be used with the add_capabilities property of a ContainerCapabilities. ADD_CAPABILITIES_CAP_KILL
A constant which can be used with the add_capabilities property of a ContainerCapabilities. ADD_CAPABILITIES_CAP_MKNOD
A constant which can be used with the add_capabilities property of a ContainerCapabilities. ADD_CAPABILITIES_CAP_NET_BIND_SERVICE
A constant which can be used with the add_capabilities property of a ContainerCapabilities. ADD_CAPABILITIES_CAP_NET_RAW
A constant which can be used with the add_capabilities property of a ContainerCapabilities. ADD_CAPABILITIES_CAP_SETFCAP
A constant which can be used with the add_capabilities property of a ContainerCapabilities. ADD_CAPABILITIES_CAP_SETGID
A constant which can be used with the add_capabilities property of a ContainerCapabilities. ADD_CAPABILITIES_CAP_SETPCAP
A constant which can be used with the add_capabilities property of a ContainerCapabilities. ADD_CAPABILITIES_CAP_SETUID
A constant which can be used with the add_capabilities property of a ContainerCapabilities. ADD_CAPABILITIES_CAP_SYS_CHROOT
A constant which can be used with the add_capabilities property of a ContainerCapabilities. DROP_CAPABILITIES_ALL
A constant which can be used with the drop_capabilities property of a ContainerCapabilities. DROP_CAPABILITIES_CAP_AUDIT_WRITE
A constant which can be used with the drop_capabilities property of a ContainerCapabilities. DROP_CAPABILITIES_CAP_CHOWN
A constant which can be used with the drop_capabilities property of a ContainerCapabilities. DROP_CAPABILITIES_CAP_DAC_OVERRIDE
A constant which can be used with the drop_capabilities property of a ContainerCapabilities. DROP_CAPABILITIES_CAP_FOWNER
A constant which can be used with the drop_capabilities property of a ContainerCapabilities. DROP_CAPABILITIES_CAP_FSETID
A constant which can be used with the drop_capabilities property of a ContainerCapabilities. DROP_CAPABILITIES_CAP_KILL
A constant which can be used with the drop_capabilities property of a ContainerCapabilities. DROP_CAPABILITIES_CAP_MKNOD
A constant which can be used with the drop_capabilities property of a ContainerCapabilities. DROP_CAPABILITIES_CAP_NET_BIND_SERVICE
A constant which can be used with the drop_capabilities property of a ContainerCapabilities. DROP_CAPABILITIES_CAP_NET_RAW
A constant which can be used with the drop_capabilities property of a ContainerCapabilities. DROP_CAPABILITIES_CAP_SETFCAP
A constant which can be used with the drop_capabilities property of a ContainerCapabilities. DROP_CAPABILITIES_CAP_SETGID
A constant which can be used with the drop_capabilities property of a ContainerCapabilities. DROP_CAPABILITIES_CAP_SETPCAP
A constant which can be used with the drop_capabilities property of a ContainerCapabilities. DROP_CAPABILITIES_CAP_SETUID
A constant which can be used with the drop_capabilities property of a ContainerCapabilities. DROP_CAPABILITIES_CAP_SYS_CHROOT
A constant which can be used with the drop_capabilities property of a ContainerCapabilities. add_capabilities
Gets the add_capabilities of this ContainerCapabilities. drop_capabilities
Gets the drop_capabilities of this ContainerCapabilities. Methods
__init__
(**kwargs)Initializes a new ContainerCapabilities object with values from keyword arguments. -
ADD_CAPABILITIES_ALL
= 'ALL'¶ A constant which can be used with the add_capabilities property of a ContainerCapabilities. This constant has a value of “ALL”
-
ADD_CAPABILITIES_CAP_AUDIT_WRITE
= 'CAP_AUDIT_WRITE'¶ A constant which can be used with the add_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_AUDIT_WRITE”
-
ADD_CAPABILITIES_CAP_CHOWN
= 'CAP_CHOWN'¶ A constant which can be used with the add_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_CHOWN”
-
ADD_CAPABILITIES_CAP_DAC_OVERRIDE
= 'CAP_DAC_OVERRIDE'¶ A constant which can be used with the add_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_DAC_OVERRIDE”
-
ADD_CAPABILITIES_CAP_FOWNER
= 'CAP_FOWNER'¶ A constant which can be used with the add_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_FOWNER”
-
ADD_CAPABILITIES_CAP_FSETID
= 'CAP_FSETID'¶ A constant which can be used with the add_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_FSETID”
-
ADD_CAPABILITIES_CAP_KILL
= 'CAP_KILL'¶ A constant which can be used with the add_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_KILL”
-
ADD_CAPABILITIES_CAP_MKNOD
= 'CAP_MKNOD'¶ A constant which can be used with the add_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_MKNOD”
-
ADD_CAPABILITIES_CAP_NET_BIND_SERVICE
= 'CAP_NET_BIND_SERVICE'¶ A constant which can be used with the add_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_NET_BIND_SERVICE”
-
ADD_CAPABILITIES_CAP_NET_RAW
= 'CAP_NET_RAW'¶ A constant which can be used with the add_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_NET_RAW”
-
ADD_CAPABILITIES_CAP_SETFCAP
= 'CAP_SETFCAP'¶ A constant which can be used with the add_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_SETFCAP”
-
ADD_CAPABILITIES_CAP_SETGID
= 'CAP_SETGID'¶ A constant which can be used with the add_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_SETGID”
-
ADD_CAPABILITIES_CAP_SETPCAP
= 'CAP_SETPCAP'¶ A constant which can be used with the add_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_SETPCAP”
-
ADD_CAPABILITIES_CAP_SETUID
= 'CAP_SETUID'¶ A constant which can be used with the add_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_SETUID”
-
ADD_CAPABILITIES_CAP_SYS_CHROOT
= 'CAP_SYS_CHROOT'¶ A constant which can be used with the add_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_SYS_CHROOT”
-
DROP_CAPABILITIES_ALL
= 'ALL'¶ A constant which can be used with the drop_capabilities property of a ContainerCapabilities. This constant has a value of “ALL”
-
DROP_CAPABILITIES_CAP_AUDIT_WRITE
= 'CAP_AUDIT_WRITE'¶ A constant which can be used with the drop_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_AUDIT_WRITE”
-
DROP_CAPABILITIES_CAP_CHOWN
= 'CAP_CHOWN'¶ A constant which can be used with the drop_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_CHOWN”
-
DROP_CAPABILITIES_CAP_DAC_OVERRIDE
= 'CAP_DAC_OVERRIDE'¶ A constant which can be used with the drop_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_DAC_OVERRIDE”
-
DROP_CAPABILITIES_CAP_FOWNER
= 'CAP_FOWNER'¶ A constant which can be used with the drop_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_FOWNER”
-
DROP_CAPABILITIES_CAP_FSETID
= 'CAP_FSETID'¶ A constant which can be used with the drop_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_FSETID”
-
DROP_CAPABILITIES_CAP_KILL
= 'CAP_KILL'¶ A constant which can be used with the drop_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_KILL”
-
DROP_CAPABILITIES_CAP_MKNOD
= 'CAP_MKNOD'¶ A constant which can be used with the drop_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_MKNOD”
-
DROP_CAPABILITIES_CAP_NET_BIND_SERVICE
= 'CAP_NET_BIND_SERVICE'¶ A constant which can be used with the drop_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_NET_BIND_SERVICE”
-
DROP_CAPABILITIES_CAP_NET_RAW
= 'CAP_NET_RAW'¶ A constant which can be used with the drop_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_NET_RAW”
-
DROP_CAPABILITIES_CAP_SETFCAP
= 'CAP_SETFCAP'¶ A constant which can be used with the drop_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_SETFCAP”
-
DROP_CAPABILITIES_CAP_SETGID
= 'CAP_SETGID'¶ A constant which can be used with the drop_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_SETGID”
-
DROP_CAPABILITIES_CAP_SETPCAP
= 'CAP_SETPCAP'¶ A constant which can be used with the drop_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_SETPCAP”
-
DROP_CAPABILITIES_CAP_SETUID
= 'CAP_SETUID'¶ A constant which can be used with the drop_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_SETUID”
-
DROP_CAPABILITIES_CAP_SYS_CHROOT
= 'CAP_SYS_CHROOT'¶ A constant which can be used with the drop_capabilities property of a ContainerCapabilities. This constant has a value of “CAP_SYS_CHROOT”
-
__init__
(**kwargs)¶ Initializes a new ContainerCapabilities object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - add_capabilities (list[str]) – The value to assign to the add_capabilities property of this ContainerCapabilities. Allowed values for items in this list are: “CAP_CHOWN”, “CAP_DAC_OVERRIDE”, “CAP_FSETID”, “CAP_FOWNER”, “CAP_MKNOD”, “CAP_NET_RAW”, “CAP_SETGID”, “CAP_SETUID”, “CAP_SETFCAP”, “CAP_SETPCAP”, “CAP_NET_BIND_SERVICE”, “CAP_SYS_CHROOT”, “CAP_KILL”, “CAP_AUDIT_WRITE”, “ALL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- drop_capabilities (list[str]) – The value to assign to the drop_capabilities property of this ContainerCapabilities. Allowed values for items in this list are: “CAP_CHOWN”, “CAP_DAC_OVERRIDE”, “CAP_FSETID”, “CAP_FOWNER”, “CAP_MKNOD”, “CAP_NET_RAW”, “CAP_SETGID”, “CAP_SETUID”, “CAP_SETFCAP”, “CAP_SETPCAP”, “CAP_NET_BIND_SERVICE”, “CAP_SYS_CHROOT”, “CAP_KILL”, “CAP_AUDIT_WRITE”, “ALL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
-
add_capabilities
¶ Gets the add_capabilities of this ContainerCapabilities. A list of additional configurable container capabilities.
Allowed values for items in this list are: “CAP_CHOWN”, “CAP_DAC_OVERRIDE”, “CAP_FSETID”, “CAP_FOWNER”, “CAP_MKNOD”, “CAP_NET_RAW”, “CAP_SETGID”, “CAP_SETUID”, “CAP_SETFCAP”, “CAP_SETPCAP”, “CAP_NET_BIND_SERVICE”, “CAP_SYS_CHROOT”, “CAP_KILL”, “CAP_AUDIT_WRITE”, “ALL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The add_capabilities of this ContainerCapabilities. Return type: list[str]
-
drop_capabilities
¶ Gets the drop_capabilities of this ContainerCapabilities. A list of container capabilities that can be dropped.
Allowed values for items in this list are: “CAP_CHOWN”, “CAP_DAC_OVERRIDE”, “CAP_FSETID”, “CAP_FOWNER”, “CAP_MKNOD”, “CAP_NET_RAW”, “CAP_SETGID”, “CAP_SETUID”, “CAP_SETFCAP”, “CAP_SETPCAP”, “CAP_NET_BIND_SERVICE”, “CAP_SYS_CHROOT”, “CAP_KILL”, “CAP_AUDIT_WRITE”, “ALL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The drop_capabilities of this ContainerCapabilities. Return type: list[str]
-