summaryrefslogtreecommitdiffstats
path: root/src/commands/function-restore.json
blob: 0c37004b87298f39bfc4436d144df3476bd8369b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
    "RESTORE": {
        "summary": "Restores all libraries from a payload.",
        "complexity": "O(N) where N is the number of functions on the payload",
        "group": "scripting",
        "since": "7.0.0",
        "arity": -3,
        "container": "FUNCTION",
        "function": "functionRestoreCommand",
        "command_flags": [
            "NOSCRIPT",
            "WRITE",
            "DENYOOM"
        ],
        "acl_categories": [
            "SCRIPTING"
        ],
        "command_tips": [
            "REQUEST_POLICY:ALL_SHARDS",
            "RESPONSE_POLICY:ALL_SUCCEEDED"
        ],
        "arguments": [
            {
                "name": "serialized-value",
                "type": "string"
            },
            {
                "name": "policy",
                "type": "oneof",
                "optional": true,
                "arguments": [
                    {
                        "name": "flush",
                        "type": "pure-token",
                        "token": "FLUSH"
                    },
                    {
                        "name": "append",
                        "type": "pure-token",
                        "token": "APPEND"
                    },
                    {
                        "name": "replace",
                        "type": "pure-token",
                        "token": "REPLACE"
                    }
                ]
            }
        ],
        "reply_schema": {
            "const": "OK"
        }
    }
}