[docs]classTenableOne(APIPlatform):""" The Tenable One object is the primary interaction point for users to interface with Tenable One via the pyTenable library. All the API endpoint classes that have been written will be grafted onto this class. Environment Variables: ``TO_ACCESS_KEY``: API Access Key for the Tenable One Application. ``TO_SECRET_KEY``: API Secret Key for the Tenable One Application. ``TO_URL``: The Application URL. Defaults to `https://cloud.tenable.com`. Examples: Basic Example: >>> from tenable.tenableone import TenableOne >>> tenable_one = TenableOne('ACCESS_KEY', 'SECRET_KEY') Example with proper identification: >>> tenable_inventory = TenableOne('ACCESS_KEY', 'SECRET_KEY', >>> vendor='Company Name', >>> product='My Awesome Widget', >>> build='1.0.0') """_env_base='TO'_url='https://cloud.tenable.com'_box=Truedef__init__(self,access_key:Optional[str]=None,secret_key:Optional[str]=None,**kwargs,):ifaccess_key:kwargs['access_key']=access_keyifsecret_key:kwargs['secret_key']=secret_keysuper().__init__(**kwargs)@propertydefattack_path(self):""" The interface object for the :doc:`Tenable One Attack Path APIs <attack_path/index>`. """returnAttackPathAPI(self)@propertydefinventory(self):""" The interface object for the :doc:`Tenable One Inventory APIs <inventory/index>`. """returnInventoryAPI(self)@propertydeftags(self):""" The interface object for the :doc:`Tenable One Tags APIs <tags/index>`. """returnTagsAPI(self)@propertydefexposure_view(self):""" The interface object for the :doc:`Tenable One Exposure View APIs <exposure_view/index>`. """returnExposureViewAPI(self)