idmtools.core.interfaces.iassets_enabled module

class idmtools.core.interfaces.iassets_enabled.IAssetsEnabled(assets: idmtools.assets.asset_collection.AssetCollection = <factory>)

Bases: object

Base class for objects containing an asset collection.

assets: idmtools.assets.asset_collection.AssetCollection
abstract gather_assets() → NoReturn

Function called at runtime to gather all assets in the collection.

add_assets(assets: Union[List[TAsset], idmtools.assets.asset_collection.AssetCollection] = None, fail_on_duplicate: bool = True) → NoReturn

Add more assets to AssetCollection.

add_asset(asset: Union[str, TAsset] = None, fail_on_duplicate: bool = True) → NoReturn