mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Merge branch 'feat-sb-create' into feat-sb-list
This commit is contained in:
commit
2a05eca0c4
1 changed files with 13 additions and 6 deletions
|
|
@ -17,12 +17,19 @@ class Bucket extends Model
|
||||||
'default' => '',
|
'default' => '',
|
||||||
'example' => '5e5ea5c16897e',
|
'example' => '5e5ea5c16897e',
|
||||||
])
|
])
|
||||||
->addRule('$permissions', [
|
->addRule('$read', [
|
||||||
'type' => Response::MODEL_PERMISSIONS,
|
'type' => self::TYPE_STRING,
|
||||||
'description' => 'Bucket permissions.',
|
'description' => 'File read permissions.',
|
||||||
'default' => new \stdClass,
|
'default' => [],
|
||||||
'example' => new \stdClass,
|
'example' => ['role:all'],
|
||||||
'array' => false,
|
'array' => true,
|
||||||
|
])
|
||||||
|
->addRule('$write', [
|
||||||
|
'type' => self::TYPE_STRING,
|
||||||
|
'description' => 'File write permissions.',
|
||||||
|
'default' => [],
|
||||||
|
'example' => ['user:608f9da25e7e1'],
|
||||||
|
'array' => true,
|
||||||
])
|
])
|
||||||
->addRule('dateCreated', [
|
->addRule('dateCreated', [
|
||||||
'type' => self::TYPE_INTEGER,
|
'type' => self::TYPE_INTEGER,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue