1 | <?php |
||
21 | class StackScriptApi extends BaseLinodeApi |
||
22 | { |
||
23 | /** |
||
24 | * Create a StackScript. |
||
25 | * |
||
26 | * @param string $script [required] The actual script |
||
27 | * @param string $DistributionIDList [required] Comma delimited list of DistributionIDs that this script works on |
||
28 | * @param string $Label [required] The Label for this StackScript |
||
29 | * @param string $Description [optional] |
||
30 | * @param bool $isPublic [optional] Whether this StackScript is published in the Library, for everyone to use |
||
31 | * @param string $rev_note [optional] |
||
32 | * |
||
33 | * @return array |
||
34 | */ |
||
35 | 1 | public function create($script, $DistributionIDList, $Label, $Description = null, $isPublic = null, $rev_note = null) |
|
46 | |||
47 | /** |
||
48 | * @param int $StackScriptID [required] |
||
49 | * |
||
50 | * @return array |
||
51 | */ |
||
52 | 1 | public function delete($StackScriptID) |
|
58 | |||
59 | /** |
||
60 | * Lists StackScripts you have access to. |
||
61 | * |
||
62 | * @param int $StackScriptID [optional] Limits the list to the specified StackScriptID |
||
63 | * |
||
64 | * @return array |
||
65 | */ |
||
66 | 1 | public function getList($StackScriptID = null) |
|
72 | |||
73 | /** |
||
74 | * Update a StackScript. |
||
75 | * |
||
76 | * @param int $StackScriptID [required] |
||
77 | * @param string $script [optional] The actual script |
||
78 | * @param string $DistributionIDList [optional] Comma delimited list of DistributionIDs that this script works on |
||
79 | * @param string $Label [optional] The Label for this StackScript |
||
80 | * @param string $Description [optional] |
||
81 | * @param bool $isPublic [optional] Whether this StackScript is published in the Library, for everyone to use |
||
82 | * @param string $rev_note [optional] |
||
83 | * |
||
84 | * @return array |
||
85 | */ |
||
86 | 1 | public function update($StackScriptID, $script = null, $DistributionIDList = null, $Label = null, $Description = null, $isPublic = null, $rev_note = null) |
|
98 | } |
||
99 |