CloudauthApiResolver.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?php
  2. namespace AlibabaCloud\Cloudauth\V20201112;
  3. use AlibabaCloud\Client\Resolver\ApiResolver;
  4. /**
  5. * @method LivenessDetect livenessDetect(array $options = [])
  6. */
  7. class CloudauthApiResolver extends ApiResolver
  8. {
  9. }
  10. class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
  11. {
  12. /** @var string */
  13. public $product = 'Cloudauth';
  14. /** @var string */
  15. public $version = '2020-11-12';
  16. /** @var string */
  17. public $method = 'POST';
  18. /** @var string */
  19. public $serviceCode = 'cloudauth';
  20. }
  21. /**
  22. * @method string getMediaCategory()
  23. * @method string getMediaUrl()
  24. * @method string getBizType()
  25. * @method string getBizId()
  26. * @method string getMediaFile()
  27. */
  28. class LivenessDetect extends Rpc
  29. {
  30. /**
  31. * @param string $value
  32. *
  33. * @return $this
  34. */
  35. public function withMediaCategory($value)
  36. {
  37. $this->data['MediaCategory'] = $value;
  38. $this->options['form_params']['MediaCategory'] = $value;
  39. return $this;
  40. }
  41. /**
  42. * @param string $value
  43. *
  44. * @return $this
  45. */
  46. public function withMediaUrl($value)
  47. {
  48. $this->data['MediaUrl'] = $value;
  49. $this->options['form_params']['MediaUrl'] = $value;
  50. return $this;
  51. }
  52. /**
  53. * @param string $value
  54. *
  55. * @return $this
  56. */
  57. public function withBizType($value)
  58. {
  59. $this->data['BizType'] = $value;
  60. $this->options['form_params']['BizType'] = $value;
  61. return $this;
  62. }
  63. /**
  64. * @param string $value
  65. *
  66. * @return $this
  67. */
  68. public function withBizId($value)
  69. {
  70. $this->data['BizId'] = $value;
  71. $this->options['form_params']['BizId'] = $value;
  72. return $this;
  73. }
  74. /**
  75. * @param string $value
  76. *
  77. * @return $this
  78. */
  79. public function withMediaFile($value)
  80. {
  81. $this->data['MediaFile'] = $value;
  82. $this->options['form_params']['MediaFile'] = $value;
  83. return $this;
  84. }
  85. }