Differential D7511 Diff 16936 src/applications/harbormaster/conduit/ConduitAPI_agent_nextbuild_Method.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/conduit/ConduitAPI_agent_nextbuild_Method.php
- This file was added.
<?php | |||||
/** | |||||
* @group conduit | |||||
*/ | |||||
final class ConduitAPI_agent_nextbuild_Method | |||||
extends ConduitAPI_agent_Method { | |||||
public function getMethodDescription() { | |||||
return "Retrieve the next build an agent should pick up."; | |||||
} | |||||
public function getMethodStatus() { | |||||
return self::METHOD_STATUS_UNSTABLE; | |||||
} | |||||
public function defineParamTypes() { | |||||
return array( | |||||
'category' => 'optional string', | |||||
); | |||||
} | |||||
public function defineReturnType() { | |||||
return 'list<dict>'; | |||||
} | |||||
public function defineErrorTypes() { | |||||
return array( | |||||
); | |||||
} | |||||
protected function execute(ConduitAPIRequest $request) { | |||||
return array( | |||||
"exists" => false, | |||||
"steps" => array()); | |||||
} | |||||
} |