addRule('$id', [ 'type' => self::TYPE_STRING, 'description' => 'Deployment ID.', 'default' => '', 'example' => '5e5ea5c16897e', ]) ->addRule('$createdAt', [ 'type' => self::TYPE_DATETIME, 'description' => 'Deployment creation date in ISO 8601 format.', 'default' => '', 'example' => self::TYPE_DATETIME_EXAMPLE, ]) ->addRule('$updatedAt', [ 'type' => self::TYPE_DATETIME, 'description' => 'Deployment update date in ISO 8601 format.', 'default' => '', 'example' => self::TYPE_DATETIME_EXAMPLE, ]) ->addRule('resourceId', [ 'type' => self::TYPE_STRING, 'description' => 'Resource ID.', 'default' => '', 'example' => '5e5ea6g16897e', ]) ->addRule('resourceType', [ 'type' => self::TYPE_STRING, 'description' => 'Resource type.', 'default' => '', 'example' => 'functions', ]) ->addRule('entrypoint', [ 'type' => self::TYPE_STRING, 'description' => 'The entrypoint file to use to execute the deployment code.', 'default' => '', 'example' => 'enabled', ]) ->addRule('size', [ 'type' => self::TYPE_INTEGER, 'description' => 'The code size in bytes.', 'default' => 0, 'example' => 128, ]) ->addRule('buildId', [ 'type' => self::TYPE_STRING, 'description' => 'The current build ID.', 'default' => '', 'example' => '5e5ea5c16897e', ]) ->addRule('activate', [ 'type' => self::TYPE_BOOLEAN, 'description' => 'Whether the deployment should be automatically activated.', 'default' => false, 'example' => true, ]) ->addRule('status', [ 'type' => self::TYPE_STRING, 'description' => 'The deployment status. Possible values are "processing", "building", "pending", "ready", and "failed".', 'default' => '', 'example' => 'ready', ]) ->addRule('buildStdout', [ 'type' => self::TYPE_STRING, 'description' => 'The build stdout.', 'default' => '', 'example' => 'enabled', ]) ->addRule('buildStderr', [ 'type' => self::TYPE_STRING, 'description' => 'The build stderr.', 'default' => '', 'example' => 'enabled', ]) ->addRule('buildTime', [ 'type' => self::TYPE_INTEGER, 'description' => 'The current build time in seconds.', 'default' => 0, 'example' => 128, ]) ; } /** * Get Name * * @return string */ public function getName(): string { return 'Deployment'; } /** * Get Type * * @return string */ public function getType(): string { return Response::MODEL_DEPLOYMENT; } }