# assets

Canonical URL: https://developers.iagenify.com/ar/sdk/ref/brand-object/assets/
Language: ar

`brand.assets.add(asset) · update(id, changes) · remove(id) · byRole(role) · last · lastCredits`

الصور ومقاطع الفيديو والرسوم التوضيحية التي تظهر بها العلامة التجارية: واجهة محل، منتج، فريق. SDK 0.5.2+.

Status: 60 at most · 25 MB uploaded · 200 MB from Cloud · ~1 credit to describe

```javascript
// A file already in the account's Object Storage: nothing is uploaded again.
await brand.assets.add({ cloud: "Brand/storefront.jpg", role: "hero" });

// Or bytes, like a logo.
await brand.assets.add({ name: "team.jpg", content: bytes, role: "team", description: "The roasting team" });

brand.assets.last;          // the resource just added, with its url
brand.assets.lastCredits;   // what its description cost
brand.assets.byRole("hero");
```

## الأدوار {#roles}

`hero` أو `place` أو `interior` أو `product` أو `team` أو `work` أو `detail` أو `texture` أو `other`.

## الصورة بلا وصف تُوصف {#describe}

يكتب النموذج وصفها مقابل رصيد واحد تقريبًا، حتى يختار الوكيل أو الصفحة الصورة المناسبة دون رؤيتها. قدّم `description` بنفسك، أو `describe: false`، فلا يُنفق شيء. والملف نفسه إذا أُضيف مرتين يُعاد استخدامه: يشير إلى ذلك `lastReused`.

- [Brand](/ar/sdk/ref/brand-object): ما تحمله العلامة التجارية، وكيف تعدّلها.
- [api.cloud](/ar/sdk/ref/cloud): Object Storage الذي تُحفظ فيه هذه الملفات.

```python
# A file already in the account's Object Storage: nothing is uploaded again.
brand.assets.add({"cloud": "Brand/storefront.jpg", "role": "hero"})

# Or bytes, like a logo.
brand.assets.add({"name": "team.jpg", "content": image_bytes, "role": "team", "description": "The roasting team"})

brand.assets.last           # the resource just added, with its url
brand.assets.last_credits   # what its description cost
brand.assets.by_role("hero")
```
