mage.api_resources.asset_group_connection module¶
-
class
mage.api_resources.asset_group_connection.AssetGroupConnection¶ Bases:
mage.api_resources.abstract.mutable_api_resource.MutableAPIResourceA connection indicating an asset belongs to an asset group.
-
asset_id¶ ID of the associated asset
- Type
str
-
created_at¶ When the connection was created (e.g., ‘2020-01-02T03:04:56.789Z’)
- Type
str
-
group_id¶ ID of the associated group
- Type
str
-
id¶ Unique connection ID
- Type
str
-
updated_at¶ When the connection was last updated (e.g., ‘2020-01-02T03:04:56.789Z’)
- Type
str
-
classmethod
create(asset_id, group_id)¶ Connects an asset and an asset group.
- Parameters
asset_id (str) – ID of the asset
group_id (str) – ID of the asset group
- Returns
Example
>>> import mage >>> mage.connect() >>> mage.AssetGroupConnection.create('11111111-1111-1111-1111-111111111111', '22222222-2222-2222-2222-222222222222')
-
property
group¶ The associated asset group.
- Returns
-