module aixplain.modules.asset
class Asset
method __init__
__init__(
id: str,
name: str,
description: str,
supplier: Union[Dict, str, Supplier, int] = 'aiXplain',
version: str = '1.0',
license: Optional[License] = None,
privacy: Privacy = <Privacy.PRIVATE: 'Private'>,
cost: Optional[Dict, float] = None
) → None
Create an Asset with the necessary information
Args:
id
(Text): ID of the Assetname
(Text): Name of the Assetdescription
(Text): Description of the Assetsupplier
(Union[Dict, Text, Supplier, int], optional): supplier of the asset. Defaults to "aiXplain".version
(Optional[Text], optional): asset version. Defaults to "1.0".cost
(Optional[Union[Dict, float]], optional): asset price. Defaults to None.
method to_dict
to_dict() → dict
Get the asset info as a Dictionary
Returns:
dict
: Asset Information