<filename>api-reference-examples/python/pytx/pytx/threat_descriptor.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from .common import Common
from .vocabulary import ThreatDescriptor as td
from .vocabulary import ThreatExchange as t


class ThreatDescriptor(Common):

    _URL = t.URL + t.VERSION + t.THREAT_DESCRIPTORS
    _DETAILS = t.URL + t.VERSION
    _RELATED = t.URL + t.VERSION

    _fields = [
        td.ADDED_ON,
        td.CONFIDENCE,
        td.DESCRIPTION,
        td.EXPIRED_ON,
        td.FIRST_ACTIVE,
        td.ID,
        td.INDICATOR,
        td.LAST_ACTIVE,
        td.LAST_UPDATED,
        td.METADATA,
        td.MY_REACTIONS,
        td.OWNER,
        td.PRECISION,
        td.PRIVACY_MEMBERS,
        td.PRIVACY_TYPE,
        td.RAW_INDICATOR,
        td.REVIEW_STATUS,
        td.SEVERITY,
        td.SHARE_LEVEL,
        td.SOURCE_URI,
        td.STATUS,
        td.TAGS,
        td.TYPE,
    ]

    _default_fields = [
        td.ADDED_ON,
        td.CONFIDENCE,
        td.DESCRIPTION,
        td.EXPIRED_ON,
        td.FIRST_ACTIVE,
        td.ID,
        td.INDICATOR,
        td.LAST_ACTIVE,
        td.LAST_UPDATED,
        td.METADATA,
        td.MY_REACTIONS,
        td.OWNER,
        td.PRECISION,
        td.RAW_INDICATOR,
        td.REVIEW_STATUS,
        td.SEVERITY,
        td.SHARE_LEVEL,
        td.SOURCE_URI,
        td.STATUS,
        td.TAGS,
        td.TYPE,
    ]

    _connections = [
    ]

    _unique = [
    ]

<filename>api-reference-examples/python/pytx/pytx/threat_descriptor.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from .common import Common
from .vocabulary import ThreatDescriptor as td
from .vocabulary import ThreatExchange as t


class ThreatDescriptor(Common):

    _URL = t.URL + t.VERSION + t.THREAT_DESCRIPTORS
    _DETAILS = t.URL + t.VERSION
    _RELATED = t.URL + t.VERSION

    _fields = [
        td.ADDED_ON,
        td.CONFIDENCE,
        td.DESCRIPTION,
        td.EXPIRED_ON,
        td.FIRST_ACTIVE,
        td.ID,
        td.INDICATOR,
        td.LAST_ACTIVE,
        td.LAST_UPDATED,
        td.METADATA,
        td.MY_REACTIONS,
        td.OWNER,
        td.PRECISION,
        td.PRIVACY_MEMBERS,
        td.PRIVACY_TYPE,
        td.RAW_INDICATOR,
        td.REVIEW_STATUS,
        td.SEVERITY,
        td.SHARE_LEVEL,
        td.SOURCE_URI,
        td.STATUS,
        td.TAGS,
        td.TYPE,
    ]

    _default_fields = [
        td.ADDED_ON,
        td.CONFIDENCE,
        td.DESCRIPTION,
        td.EXPIRED_ON,
        td.FIRST_ACTIVE,
        td.ID,
        td.INDICATOR,
        td.LAST_ACTIVE,
        td.LAST_UPDATED,
        td.METADATA,
        td.MY_REACTIONS,
        td.OWNER,
        td.PRECISION,
        td.RAW_INDICATOR,
        td.REVIEW_STATUS,
        td.SEVERITY,
        td.SHARE_LEVEL,
        td.SOURCE_URI,
        td.STATUS,
        td.TAGS,
        td.TYPE,
    ]

    _connections = [
    ]

    _unique = [
    ]

# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved