mirror of
https://github.com/appwrite/appwrite
synced 2026-05-20 23:48:23 +00:00
feat: update response models and response filters
This commit is contained in:
parent
a93e8f3b0b
commit
af9db5ac1c
4 changed files with 11 additions and 11 deletions
|
|
@ -28,8 +28,8 @@ class V07 extends Filter
|
|||
case Response::MODEL_COLLECTION:
|
||||
case Response::MODEL_FILE_LIST:
|
||||
case Response::MODEL_FILE:
|
||||
case Response::MODEL_TAG_LIST:
|
||||
case Response::MODEL_TAG:
|
||||
case Response::MODEL_DEPLOYMENT_LIST:
|
||||
case Response::MODEL_DEPLOYMENT:
|
||||
case Response::MODEL_EXECUTION_LIST:
|
||||
case Response::MODEL_EXECUTION:
|
||||
case Response::MODEL_TEAM_LIST:
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ class V08 extends Filter
|
|||
case Response::MODEL_COLLECTION:
|
||||
case Response::MODEL_FILE_LIST:
|
||||
case Response::MODEL_FILE:
|
||||
case Response::MODEL_TAG_LIST:
|
||||
case Response::MODEL_TAG:
|
||||
case Response::MODEL_DEPLOYMENT_LIST:
|
||||
case Response::MODEL_DEPLOYMENT:
|
||||
case Response::MODEL_EXECUTION_LIST:
|
||||
case Response::MODEL_EXECUTION:
|
||||
case Response::MODEL_TEAM_LIST:
|
||||
|
|
|
|||
|
|
@ -18,15 +18,15 @@ class Build extends Model
|
|||
])
|
||||
->addRule('dateCreated', [
|
||||
'type' => self::TYPE_INTEGER,
|
||||
'description' => 'The tag creation date in Unix timestamp.',
|
||||
'description' => 'The deployment creation date in Unix timestamp.',
|
||||
'default' => 0,
|
||||
'example' => 1592981250,
|
||||
])
|
||||
// Build Status
|
||||
// Failed - The tag build has failed. More details can usually be found in buildStderr
|
||||
// Ready - The tag build was successful and the tag is ready to be deployed
|
||||
// Processing - The tag is currently waiting to have a build triggered
|
||||
// Building - The tag is currently being built
|
||||
// Failed - The deployment build has failed. More details can usually be found in buildStderr
|
||||
// Ready - The deployment build was successful and the deployment is ready to be deployed
|
||||
// Processing - The deployment is currently waiting to have a build triggered
|
||||
// Building - The deployment is currently being built
|
||||
->addRule('status', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'The build status.',
|
||||
|
|
|
|||
|
|
@ -55,9 +55,9 @@ class Func extends Model
|
|||
'default' => '',
|
||||
'example' => 'python-3.8',
|
||||
])
|
||||
->addRule('tag', [
|
||||
->addRule('deployment', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Function active tag ID.',
|
||||
'description' => 'Function\'s active deployment ID.',
|
||||
'default' => '',
|
||||
'example' => '5e5ea5c16897e',
|
||||
])
|
||||
|
|
|
|||
Loading…
Reference in a new issue