CloudauthApiResolver.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. <?php
  2. namespace AlibabaCloud\Cloudauth\V20180916;
  3. use AlibabaCloud\Client\Resolver\ApiResolver;
  4. /**
  5. * @method CompareFaces compareFaces(array $options = [])
  6. * @method CreateAuthKey createAuthKey(array $options = [])
  7. * @method CreateVerifySDK createVerifySDK(array $options = [])
  8. * @method DescribeDeviceInfo describeDeviceInfo(array $options = [])
  9. * @method DescribeVerifySDK describeVerifySDK(array $options = [])
  10. * @method DetectFaceAttributes detectFaceAttributes(array $options = [])
  11. * @method GetMaterials getMaterials(array $options = [])
  12. * @method GetStatus getStatus(array $options = [])
  13. * @method GetVerifyToken getVerifyToken(array $options = [])
  14. * @method ModifyDeviceInfo modifyDeviceInfo(array $options = [])
  15. * @method SubmitMaterials submitMaterials(array $options = [])
  16. * @method SubmitVerification submitVerification(array $options = [])
  17. */
  18. class CloudauthApiResolver extends ApiResolver
  19. {
  20. }
  21. class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
  22. {
  23. /** @var string */
  24. public $product = 'Cloudauth';
  25. /** @var string */
  26. public $version = '2018-09-16';
  27. /** @var string */
  28. public $method = 'POST';
  29. /** @var string */
  30. public $serviceCode = 'cloudauth';
  31. }
  32. /**
  33. * @method string getSourceImageType()
  34. * @method string getResourceOwnerId()
  35. * @method $this withResourceOwnerId($value)
  36. * @method string getTargetImageType()
  37. * @method string getTargetImageValue()
  38. * @method string getSourceIp()
  39. * @method $this withSourceIp($value)
  40. * @method string getSourceImageValue()
  41. */
  42. class CompareFaces extends Rpc
  43. {
  44. /** @var string */
  45. public $scheme = 'https';
  46. /**
  47. * @param string $value
  48. *
  49. * @return $this
  50. */
  51. public function withSourceImageType($value)
  52. {
  53. $this->data['SourceImageType'] = $value;
  54. $this->options['form_params']['SourceImageType'] = $value;
  55. return $this;
  56. }
  57. /**
  58. * @param string $value
  59. *
  60. * @return $this
  61. */
  62. public function withTargetImageType($value)
  63. {
  64. $this->data['TargetImageType'] = $value;
  65. $this->options['form_params']['TargetImageType'] = $value;
  66. return $this;
  67. }
  68. /**
  69. * @param string $value
  70. *
  71. * @return $this
  72. */
  73. public function withTargetImageValue($value)
  74. {
  75. $this->data['TargetImageValue'] = $value;
  76. $this->options['form_params']['TargetImageValue'] = $value;
  77. return $this;
  78. }
  79. /**
  80. * @param string $value
  81. *
  82. * @return $this
  83. */
  84. public function withSourceImageValue($value)
  85. {
  86. $this->data['SourceImageValue'] = $value;
  87. $this->options['form_params']['SourceImageValue'] = $value;
  88. return $this;
  89. }
  90. }
  91. /**
  92. * @method string getUserDeviceId()
  93. * @method $this withUserDeviceId($value)
  94. * @method string getTest()
  95. * @method $this withTest($value)
  96. * @method string getBizType()
  97. * @method $this withBizType($value)
  98. * @method string getSourceIp()
  99. * @method $this withSourceIp($value)
  100. * @method string getAuthYears()
  101. * @method $this withAuthYears($value)
  102. * @method string getLang()
  103. * @method $this withLang($value)
  104. */
  105. class CreateAuthKey extends Rpc
  106. {
  107. }
  108. /**
  109. * @method string getAppUrl()
  110. * @method $this withAppUrl($value)
  111. * @method string getPlatform()
  112. * @method $this withPlatform($value)
  113. * @method string getSourceIp()
  114. * @method $this withSourceIp($value)
  115. * @method string getLang()
  116. * @method $this withLang($value)
  117. */
  118. class CreateVerifySDK extends Rpc
  119. {
  120. }
  121. /**
  122. * @method string getUserDeviceId()
  123. * @method $this withUserDeviceId($value)
  124. * @method string getSourceIp()
  125. * @method $this withSourceIp($value)
  126. * @method string getPageSize()
  127. * @method $this withPageSize($value)
  128. * @method string getLang()
  129. * @method $this withLang($value)
  130. * @method string getExpiredStartDay()
  131. * @method $this withExpiredStartDay($value)
  132. * @method string getTotalCount()
  133. * @method $this withTotalCount($value)
  134. * @method string getCurrentPage()
  135. * @method $this withCurrentPage($value)
  136. * @method string getDeviceId()
  137. * @method $this withDeviceId($value)
  138. * @method string getBizType()
  139. * @method $this withBizType($value)
  140. * @method string getExpiredEndDay()
  141. * @method $this withExpiredEndDay($value)
  142. */
  143. class DescribeDeviceInfo extends Rpc
  144. {
  145. }
  146. /**
  147. * @method string getSourceIp()
  148. * @method $this withSourceIp($value)
  149. * @method string getLang()
  150. * @method $this withLang($value)
  151. * @method string getTaskId()
  152. * @method $this withTaskId($value)
  153. */
  154. class DescribeVerifySDK extends Rpc
  155. {
  156. }
  157. /**
  158. * @method string getMaxNumPhotosPerCategory()
  159. * @method string getMaxFaceNum()
  160. * @method string getResourceOwnerId()
  161. * @method $this withResourceOwnerId($value)
  162. * @method string getRetAttributes()
  163. * @method string getClientTag()
  164. * @method string getSourceIp()
  165. * @method $this withSourceIp($value)
  166. * @method string getMaterialValue()
  167. * @method string getDontSaveDB()
  168. */
  169. class DetectFaceAttributes extends Rpc
  170. {
  171. /**
  172. * @param string $value
  173. *
  174. * @return $this
  175. */
  176. public function withMaxNumPhotosPerCategory($value)
  177. {
  178. $this->data['MaxNumPhotosPerCategory'] = $value;
  179. $this->options['form_params']['MaxNumPhotosPerCategory'] = $value;
  180. return $this;
  181. }
  182. /**
  183. * @param string $value
  184. *
  185. * @return $this
  186. */
  187. public function withMaxFaceNum($value)
  188. {
  189. $this->data['MaxFaceNum'] = $value;
  190. $this->options['form_params']['MaxFaceNum'] = $value;
  191. return $this;
  192. }
  193. /**
  194. * @param string $value
  195. *
  196. * @return $this
  197. */
  198. public function withRetAttributes($value)
  199. {
  200. $this->data['RetAttributes'] = $value;
  201. $this->options['form_params']['RetAttributes'] = $value;
  202. return $this;
  203. }
  204. /**
  205. * @param string $value
  206. *
  207. * @return $this
  208. */
  209. public function withClientTag($value)
  210. {
  211. $this->data['ClientTag'] = $value;
  212. $this->options['form_params']['ClientTag'] = $value;
  213. return $this;
  214. }
  215. /**
  216. * @param string $value
  217. *
  218. * @return $this
  219. */
  220. public function withMaterialValue($value)
  221. {
  222. $this->data['MaterialValue'] = $value;
  223. $this->options['form_params']['MaterialValue'] = $value;
  224. return $this;
  225. }
  226. /**
  227. * @param string $value
  228. *
  229. * @return $this
  230. */
  231. public function withDontSaveDB($value)
  232. {
  233. $this->data['DontSaveDB'] = $value;
  234. $this->options['form_params']['DontSaveDB'] = $value;
  235. return $this;
  236. }
  237. }
  238. /**
  239. * @method string getBiz()
  240. * @method $this withBiz($value)
  241. * @method string getTicketId()
  242. * @method $this withTicketId($value)
  243. */
  244. class GetMaterials extends Rpc
  245. {
  246. /** @var string */
  247. public $scheme = 'https';
  248. }
  249. /**
  250. * @method string getBiz()
  251. * @method $this withBiz($value)
  252. * @method string getTicketId()
  253. * @method $this withTicketId($value)
  254. */
  255. class GetStatus extends Rpc
  256. {
  257. /** @var string */
  258. public $scheme = 'https';
  259. }
  260. /**
  261. * @method string getBinding()
  262. * @method string getVerifyConfigs()
  263. * @method $this withVerifyConfigs($value)
  264. * @method string getUserData()
  265. * @method $this withUserData($value)
  266. * @method string getBiz()
  267. * @method $this withBiz($value)
  268. * @method string getTicketId()
  269. * @method $this withTicketId($value)
  270. */
  271. class GetVerifyToken extends Rpc
  272. {
  273. /** @var string */
  274. public $scheme = 'https';
  275. /**
  276. * @param string $value
  277. *
  278. * @return $this
  279. */
  280. public function withBinding($value)
  281. {
  282. $this->data['Binding'] = $value;
  283. $this->options['form_params']['Binding'] = $value;
  284. return $this;
  285. }
  286. }
  287. /**
  288. * @method string getUserDeviceId()
  289. * @method $this withUserDeviceId($value)
  290. * @method string getDuration()
  291. * @method $this withDuration($value)
  292. * @method string getExpiredDay()
  293. * @method $this withExpiredDay($value)
  294. * @method string getSourceIp()
  295. * @method $this withSourceIp($value)
  296. * @method string getLang()
  297. * @method $this withLang($value)
  298. * @method string getDeviceId()
  299. * @method $this withDeviceId($value)
  300. * @method string getBizType()
  301. * @method $this withBizType($value)
  302. */
  303. class ModifyDeviceInfo extends Rpc
  304. {
  305. }
  306. /**
  307. * @method string getResourceOwnerId()
  308. * @method $this withResourceOwnerId($value)
  309. * @method string getVerifyToken()
  310. * @method string getSourceIp()
  311. * @method $this withSourceIp($value)
  312. * @method array getMaterial()
  313. */
  314. class SubmitMaterials extends Rpc
  315. {
  316. /**
  317. * @param string $value
  318. *
  319. * @return $this
  320. */
  321. public function withVerifyToken($value)
  322. {
  323. $this->data['VerifyToken'] = $value;
  324. $this->options['form_params']['VerifyToken'] = $value;
  325. return $this;
  326. }
  327. /**
  328. * @param array $material
  329. *
  330. * @return $this
  331. */
  332. public function withMaterial(array $material)
  333. {
  334. $this->data['Material'] = $material;
  335. foreach ($material as $depth1 => $depth1Value) {
  336. if(isset($depth1Value['MaterialType'])){
  337. $this->options['form_params']['Material.' . ($depth1 + 1) . '.MaterialType'] = $depth1Value['MaterialType'];
  338. }
  339. if(isset($depth1Value['Value'])){
  340. $this->options['form_params']['Material.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
  341. }
  342. }
  343. return $this;
  344. }
  345. }
  346. /**
  347. * @method string getResourceOwnerId()
  348. * @method $this withResourceOwnerId($value)
  349. * @method string getBiz()
  350. * @method string getSourceIp()
  351. * @method $this withSourceIp($value)
  352. * @method array getMaterial()
  353. * @method string getTicketId()
  354. */
  355. class SubmitVerification extends Rpc
  356. {
  357. /** @var string */
  358. public $scheme = 'https';
  359. /**
  360. * @param string $value
  361. *
  362. * @return $this
  363. */
  364. public function withBiz($value)
  365. {
  366. $this->data['Biz'] = $value;
  367. $this->options['form_params']['Biz'] = $value;
  368. return $this;
  369. }
  370. /**
  371. * @param array $material
  372. *
  373. * @return $this
  374. */
  375. public function withMaterial(array $material)
  376. {
  377. $this->data['Material'] = $material;
  378. foreach ($material as $depth1 => $depth1Value) {
  379. if(isset($depth1Value['MaterialType'])){
  380. $this->options['form_params']['Material.' . ($depth1 + 1) . '.MaterialType'] = $depth1Value['MaterialType'];
  381. }
  382. if(isset($depth1Value['Value'])){
  383. $this->options['form_params']['Material.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
  384. }
  385. }
  386. return $this;
  387. }
  388. /**
  389. * @param string $value
  390. *
  391. * @return $this
  392. */
  393. public function withTicketId($value)
  394. {
  395. $this->data['TicketId'] = $value;
  396. $this->options['form_params']['TicketId'] = $value;
  397. return $this;
  398. }
  399. }