IqaApiResolver.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <?php
  2. namespace AlibabaCloud\Iqa\V20190813;
  3. use AlibabaCloud\Client\Resolver\ApiResolver;
  4. /**
  5. * @method CreateProject createProject(array $options = [])
  6. * @method DeleteProject deleteProject(array $options = [])
  7. * @method DeployService deployService(array $options = [])
  8. * @method DescribeProject describeProject(array $options = [])
  9. * @method GetPredictResult getPredictResult(array $options = [])
  10. * @method ListProjects listProjects(array $options = [])
  11. * @method ModifiyProject modifiyProject(array $options = [])
  12. * @method UploadDictionary uploadDictionary(array $options = [])
  13. * @method UploadDocument uploadDocument(array $options = [])
  14. */
  15. class IqaApiResolver extends ApiResolver
  16. {
  17. }
  18. class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
  19. {
  20. /** @var string */
  21. public $product = 'iqa';
  22. /** @var string */
  23. public $version = '2019-08-13';
  24. /** @var string */
  25. public $method = 'POST';
  26. /** @var string */
  27. public $serviceCode = 'iqa';
  28. }
  29. /**
  30. * @method string getProjectName()
  31. * @method string getModelId()
  32. * @method string getProjectType()
  33. */
  34. class CreateProject extends Rpc
  35. {
  36. /**
  37. * @param string $value
  38. *
  39. * @return $this
  40. */
  41. public function withProjectName($value)
  42. {
  43. $this->data['ProjectName'] = $value;
  44. $this->options['form_params']['ProjectName'] = $value;
  45. return $this;
  46. }
  47. /**
  48. * @param string $value
  49. *
  50. * @return $this
  51. */
  52. public function withModelId($value)
  53. {
  54. $this->data['ModelId'] = $value;
  55. $this->options['form_params']['ModelId'] = $value;
  56. return $this;
  57. }
  58. /**
  59. * @param string $value
  60. *
  61. * @return $this
  62. */
  63. public function withProjectType($value)
  64. {
  65. $this->data['ProjectType'] = $value;
  66. $this->options['form_params']['ProjectType'] = $value;
  67. return $this;
  68. }
  69. }
  70. /**
  71. * @method string getProjectId()
  72. * @method $this withProjectId($value)
  73. */
  74. class DeleteProject extends Rpc
  75. {
  76. }
  77. /**
  78. * @method string getProjectId()
  79. * @method $this withProjectId($value)
  80. */
  81. class DeployService extends Rpc
  82. {
  83. }
  84. /**
  85. * @method string getProjectId()
  86. * @method $this withProjectId($value)
  87. */
  88. class DescribeProject extends Rpc
  89. {
  90. }
  91. /**
  92. * @method string getTopK()
  93. * @method $this withTopK($value)
  94. * @method string getTraceTag()
  95. * @method $this withTraceTag($value)
  96. * @method string getQuestion()
  97. * @method string getProjectId()
  98. * @method $this withProjectId($value)
  99. */
  100. class GetPredictResult extends Rpc
  101. {
  102. /**
  103. * @param string $value
  104. *
  105. * @return $this
  106. */
  107. public function withQuestion($value)
  108. {
  109. $this->data['Question'] = $value;
  110. $this->options['form_params']['Question'] = $value;
  111. return $this;
  112. }
  113. }
  114. /**
  115. * @method string getFilterParam()
  116. * @method $this withFilterParam($value)
  117. * @method string getPageNumber()
  118. * @method $this withPageNumber($value)
  119. * @method string getPageSize()
  120. * @method $this withPageSize($value)
  121. * @method string getProjectType()
  122. * @method $this withProjectType($value)
  123. */
  124. class ListProjects extends Rpc
  125. {
  126. }
  127. /**
  128. * @method string getProjectName()
  129. * @method string getModelId()
  130. * @method string getProjectId()
  131. */
  132. class ModifiyProject extends Rpc
  133. {
  134. /**
  135. * @param string $value
  136. *
  137. * @return $this
  138. */
  139. public function withProjectName($value)
  140. {
  141. $this->data['ProjectName'] = $value;
  142. $this->options['form_params']['ProjectName'] = $value;
  143. return $this;
  144. }
  145. /**
  146. * @param string $value
  147. *
  148. * @return $this
  149. */
  150. public function withModelId($value)
  151. {
  152. $this->data['ModelId'] = $value;
  153. $this->options['form_params']['ModelId'] = $value;
  154. return $this;
  155. }
  156. /**
  157. * @param string $value
  158. *
  159. * @return $this
  160. */
  161. public function withProjectId($value)
  162. {
  163. $this->data['ProjectId'] = $value;
  164. $this->options['form_params']['ProjectId'] = $value;
  165. return $this;
  166. }
  167. }
  168. /**
  169. * @method string getDictionaryFileUrl()
  170. * @method string getProjectId()
  171. * @method string getDictionaryData()
  172. */
  173. class UploadDictionary extends Rpc
  174. {
  175. /**
  176. * @param string $value
  177. *
  178. * @return $this
  179. */
  180. public function withDictionaryFileUrl($value)
  181. {
  182. $this->data['DictionaryFileUrl'] = $value;
  183. $this->options['form_params']['DictionaryFileUrl'] = $value;
  184. return $this;
  185. }
  186. /**
  187. * @param string $value
  188. *
  189. * @return $this
  190. */
  191. public function withProjectId($value)
  192. {
  193. $this->data['ProjectId'] = $value;
  194. $this->options['form_params']['ProjectId'] = $value;
  195. return $this;
  196. }
  197. /**
  198. * @param string $value
  199. *
  200. * @return $this
  201. */
  202. public function withDictionaryData($value)
  203. {
  204. $this->data['DictionaryData'] = $value;
  205. $this->options['form_params']['DictionaryData'] = $value;
  206. return $this;
  207. }
  208. }
  209. /**
  210. * @method string getDocumentData()
  211. * @method string getDocumentFileUrl()
  212. * @method string getProjectId()
  213. */
  214. class UploadDocument extends Rpc
  215. {
  216. /**
  217. * @param string $value
  218. *
  219. * @return $this
  220. */
  221. public function withDocumentData($value)
  222. {
  223. $this->data['DocumentData'] = $value;
  224. $this->options['form_params']['DocumentData'] = $value;
  225. return $this;
  226. }
  227. /**
  228. * @param string $value
  229. *
  230. * @return $this
  231. */
  232. public function withDocumentFileUrl($value)
  233. {
  234. $this->data['DocumentFileUrl'] = $value;
  235. $this->options['form_params']['DocumentFileUrl'] = $value;
  236. return $this;
  237. }
  238. /**
  239. * @param string $value
  240. *
  241. * @return $this
  242. */
  243. public function withProjectId($value)
  244. {
  245. $this->data['ProjectId'] = $value;
  246. $this->options['form_params']['ProjectId'] = $value;
  247. return $this;
  248. }
  249. }