openc2lib.profiles.slpf.targets.rule_id

 1import openc2lib as oc2
 2
 3from openc2lib.profiles.slpf.profile import Profile
 4
 5@oc2.target(name='rule_number', nsid=Profile.nsid)
 6class RuleID(int):
 7	""" OpenC2 Rule-ID
 8
 9		Rule identifier returned from allow or deny Command.
10		See Sec. 2.1.3.2 of the SLPF Specification.
11
12		The definition is rather trivial in this case, because the Specification
13		defines this type as an integer.
14	"""
15	pass
@oc2.target(name='rule_number', nsid=Profile.nsid)
class RuleID(builtins.int):
 6@oc2.target(name='rule_number', nsid=Profile.nsid)
 7class RuleID(int):
 8	""" OpenC2 Rule-ID
 9
10		Rule identifier returned from allow or deny Command.
11		See Sec. 2.1.3.2 of the SLPF Specification.
12
13		The definition is rather trivial in this case, because the Specification
14		defines this type as an integer.
15	"""
16	pass

OpenC2 Rule-ID

Rule identifier returned from allow or deny Command. See Sec. 2.1.3.2 of the SLPF Specification.

The definition is rather trivial in this case, because the Specification defines this type as an integer.

Inherited Members
builtins.int
conjugate
bit_length
bit_count
to_bytes
from_bytes
as_integer_ratio
real
imag
numerator
denominator