1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace AlibabaCloud\ImageSearch\V20180120; |
4
|
|
|
|
5
|
|
|
use AlibabaCloud\Client\Resolver\ApiResolver; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* @method SearchItem searchItem(array $options = []) |
9
|
|
|
* @method DeleteItem deleteItem(array $options = []) |
10
|
|
|
* @method AddItem addItem(array $options = []) |
11
|
|
|
*/ |
12
|
|
|
class ImageSearchApiResolver extends ApiResolver |
13
|
|
|
{ |
14
|
|
|
} |
15
|
|
|
|
16
|
|
|
class Roa extends \AlibabaCloud\Client\Resolver\Roa |
17
|
|
|
{ |
18
|
|
|
/** @var string */ |
19
|
|
|
public $product = 'ImageSearch'; |
20
|
|
|
|
21
|
|
|
/** @var string */ |
22
|
|
|
public $version = '2018-01-20'; |
23
|
|
|
|
24
|
|
|
/** @var string */ |
25
|
|
|
public $method = 'POST'; |
26
|
|
|
} |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @method string getInstanceName() |
30
|
|
|
*/ |
31
|
|
|
class SearchItem extends Roa |
32
|
|
|
{ |
33
|
|
|
use Traits\SearchItemTrait; |
34
|
|
|
|
35
|
|
|
/** @var string */ |
36
|
|
|
public $pathPattern = '/item/search'; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @param string $value |
40
|
|
|
* |
41
|
|
|
* @return $this |
42
|
|
|
*/ |
43
|
1 |
|
public function withInstanceName($value) |
44
|
|
|
{ |
45
|
1 |
|
$this->data['InstanceName'] = $value; |
46
|
1 |
|
$this->options['query']['instanceName'] = $value; |
47
|
|
|
|
48
|
1 |
|
return $this; |
49
|
|
|
} |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @method string getInstanceName() |
54
|
|
|
*/ |
55
|
|
|
class DeleteItem extends Roa |
56
|
|
|
{ |
57
|
|
|
use Traits\DeleteItemTrait; |
58
|
|
|
|
59
|
|
|
/** @var string */ |
60
|
|
|
public $pathPattern = '/item/delete'; |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* @param string $value |
64
|
|
|
* |
65
|
|
|
* @return $this |
66
|
|
|
*/ |
67
|
1 |
|
public function withInstanceName($value) |
68
|
|
|
{ |
69
|
1 |
|
$this->data['InstanceName'] = $value; |
70
|
1 |
|
$this->options['query']['instanceName'] = $value; |
71
|
|
|
|
72
|
1 |
|
return $this; |
73
|
|
|
} |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* @method string getInstanceName() |
78
|
|
|
*/ |
79
|
|
|
class AddItem extends Roa |
80
|
|
|
{ |
81
|
|
|
use Traits\AddItemTrait; |
82
|
|
|
|
83
|
|
|
/** @var string */ |
84
|
|
|
public $pathPattern = '/item/add'; |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @param string $value |
88
|
|
|
* |
89
|
|
|
* @return $this |
90
|
|
|
*/ |
91
|
1 |
|
public function withInstanceName($value) |
92
|
|
|
{ |
93
|
1 |
|
$this->data['InstanceName'] = $value; |
94
|
1 |
|
$this->options['query']['instanceName'] = $value; |
95
|
|
|
|
96
|
1 |
|
return $this; |
97
|
|
|
} |
98
|
|
|
} |
99
|
|
|
|