Source code for tenable.tenableone.attack_path.api

"""
Attack Path
===========

The following sub-package allows for interaction with the Tenable One
Attack Path APIs.

.. rst-class:: hide-signature
.. autoclass:: AttackPathAPI
    :members:

.. toctree::
    :hidden:
    :glob:

    export/index
    findings/index
    vectors/index
"""

from tenable.base.endpoint import APIEndpoint
from tenable.tenableone.attack_path.export.api import ExportAPI
from tenable.tenableone.attack_path.findings.api import FindingsAPI
from tenable.tenableone.attack_path.vectors.api import VectorsAPI


[docs] class AttackPathAPI(APIEndpoint): @property def export(self): """ The interface object for the :doc:`Tenable One Attack Path Export APIs <export/index>`. """ return ExportAPI(self._api) @property def findings(self): """ The interface object for the :doc:`Tenable One Attack Path Findings APIs <findings/index>`. """ return FindingsAPI(self._api) @property def vectors(self): """ The interface object for the :doc:`Tenable One Attack Path Vectors APIs <vectors/index>`. """ return VectorsAPI(self._api)