openc2lib.types.data.payload

 1from openc2lib.types.base import Choice, Binary
 2from openc2lib.types.data.uri import  URI
 3from openc2lib.core.register import Register
 4
 5
 6class Payload(Choice):
 7	""" OpenC2 Payload
 8
 9		Choice of literal content or URL (Sec. 3.4.2.13).
10	"""
11	register = Register({'bin': Binary, 'url': URI})
class Payload(openc2lib.types.base.choice.Choice):
 7class Payload(Choice):
 8	""" OpenC2 Payload
 9
10		Choice of literal content or URL (Sec. 3.4.2.13).
11	"""
12	register = Register({'bin': Binary, 'url': URI})

OpenC2 Payload

Choice of literal content or URL (Sec. 3.4.2.13).

register = {'bin': <class 'openc2lib.types.base.binary.Binary'>, 'url': <class 'openc2lib.types.data.uri.URI'>}

List of registered name/class options available