|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace AlibabaCloud\Tag\V20180828; |
|
4
|
|
|
|
|
5
|
|
|
use AlibabaCloud\Client\Resolver\ApiResolver; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* @method ListTagResources listTagResources(array $options = []) |
|
9
|
|
|
* @method TagResources tagResources(array $options = []) |
|
10
|
|
|
* @method UntagResources untagResources(array $options = []) |
|
11
|
|
|
*/ |
|
12
|
|
|
class TagApiResolver extends ApiResolver |
|
13
|
|
|
{ |
|
14
|
|
|
} |
|
15
|
|
|
|
|
16
|
|
|
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc |
|
17
|
|
|
{ |
|
18
|
|
|
/** @var string */ |
|
19
|
|
|
public $product = 'Tag'; |
|
20
|
|
|
|
|
21
|
|
|
/** @var string */ |
|
22
|
|
|
public $version = '2018-08-28'; |
|
23
|
|
|
|
|
24
|
|
|
/** @var string */ |
|
25
|
|
|
public $method = 'POST'; |
|
26
|
|
|
|
|
27
|
|
|
/** @var string */ |
|
28
|
|
|
public $serviceCode = 'tag'; |
|
29
|
|
|
} |
|
30
|
|
|
|
|
31
|
|
|
/** |
|
32
|
|
|
* @method string getResourceOwnerId() |
|
33
|
|
|
* @method $this withResourceOwnerId($value) |
|
34
|
|
|
* @method string getNextToken() |
|
35
|
|
|
* @method $this withNextToken($value) |
|
36
|
|
|
* @method string getPageSize() |
|
37
|
|
|
* @method $this withPageSize($value) |
|
38
|
|
|
* @method array getResourceARN() |
|
39
|
|
|
* @method string getResourceOwnerAccount() |
|
40
|
|
|
* @method $this withResourceOwnerAccount($value) |
|
41
|
|
|
* @method string getOwnerAccount() |
|
42
|
|
|
* @method $this withOwnerAccount($value) |
|
43
|
|
|
* @method string getOwnerId() |
|
44
|
|
|
* @method $this withOwnerId($value) |
|
45
|
|
|
* @method string getTags() |
|
46
|
|
|
* @method $this withTags($value) |
|
47
|
|
|
* @method string getCategory() |
|
48
|
|
|
* @method $this withCategory($value) |
|
49
|
|
|
*/ |
|
50
|
|
|
class ListTagResources extends Rpc |
|
51
|
|
|
{ |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* @param array $resourceARN |
|
55
|
|
|
* |
|
56
|
|
|
* @return $this |
|
57
|
|
|
*/ |
|
58
|
|
|
public function withResourceARN(array $resourceARN) |
|
59
|
|
|
{ |
|
60
|
|
|
$this->data['ResourceARN'] = $resourceARN; |
|
61
|
|
|
foreach ($resourceARN as $i => $iValue) { |
|
62
|
|
|
$this->options['query']['ResourceARN.' . ($i + 1)] = $iValue; |
|
63
|
|
|
} |
|
64
|
|
|
|
|
65
|
|
|
return $this; |
|
66
|
|
|
} |
|
67
|
|
|
} |
|
68
|
|
|
|
|
69
|
|
|
/** |
|
70
|
|
|
* @method string getResourceOwnerId() |
|
71
|
|
|
* @method $this withResourceOwnerId($value) |
|
72
|
|
|
* @method array getResourceARN() |
|
73
|
|
|
* @method string getResourceOwnerAccount() |
|
74
|
|
|
* @method $this withResourceOwnerAccount($value) |
|
75
|
|
|
* @method string getOwnerAccount() |
|
76
|
|
|
* @method $this withOwnerAccount($value) |
|
77
|
|
|
* @method string getOwnerId() |
|
78
|
|
|
* @method $this withOwnerId($value) |
|
79
|
|
|
* @method string getTags() |
|
80
|
|
|
* @method $this withTags($value) |
|
81
|
|
|
*/ |
|
82
|
|
|
class TagResources extends Rpc |
|
83
|
|
|
{ |
|
84
|
|
|
|
|
85
|
|
|
/** |
|
86
|
|
|
* @param array $resourceARN |
|
87
|
|
|
* |
|
88
|
|
|
* @return $this |
|
89
|
|
|
*/ |
|
90
|
|
|
public function withResourceARN(array $resourceARN) |
|
91
|
|
|
{ |
|
92
|
|
|
$this->data['ResourceARN'] = $resourceARN; |
|
93
|
|
|
foreach ($resourceARN as $i => $iValue) { |
|
94
|
|
|
$this->options['query']['ResourceARN.' . ($i + 1)] = $iValue; |
|
95
|
|
|
} |
|
96
|
|
|
|
|
97
|
|
|
return $this; |
|
98
|
|
|
} |
|
99
|
|
|
} |
|
100
|
|
|
|
|
101
|
|
|
/** |
|
102
|
|
|
* @method string getResourceOwnerId() |
|
103
|
|
|
* @method $this withResourceOwnerId($value) |
|
104
|
|
|
* @method array getResourceARN() |
|
105
|
|
|
* @method string getResourceOwnerAccount() |
|
106
|
|
|
* @method $this withResourceOwnerAccount($value) |
|
107
|
|
|
* @method string getOwnerAccount() |
|
108
|
|
|
* @method $this withOwnerAccount($value) |
|
109
|
|
|
* @method string getOwnerId() |
|
110
|
|
|
* @method $this withOwnerId($value) |
|
111
|
|
|
* @method array getTagKey() |
|
112
|
|
|
*/ |
|
113
|
|
|
class UntagResources extends Rpc |
|
114
|
|
|
{ |
|
115
|
|
|
|
|
116
|
|
|
/** |
|
117
|
|
|
* @param array $resourceARN |
|
118
|
|
|
* |
|
119
|
|
|
* @return $this |
|
120
|
|
|
*/ |
|
121
|
|
|
public function withResourceARN(array $resourceARN) |
|
122
|
|
|
{ |
|
123
|
|
|
$this->data['ResourceARN'] = $resourceARN; |
|
124
|
|
|
foreach ($resourceARN as $i => $iValue) { |
|
125
|
|
|
$this->options['query']['ResourceARN.' . ($i + 1)] = $iValue; |
|
126
|
|
|
} |
|
127
|
|
|
|
|
128
|
|
|
return $this; |
|
129
|
|
|
} |
|
130
|
|
|
|
|
131
|
|
|
/** |
|
132
|
|
|
* @param array $tagKey |
|
133
|
|
|
* |
|
134
|
|
|
* @return $this |
|
135
|
|
|
*/ |
|
136
|
|
|
public function withTagKey(array $tagKey) |
|
137
|
|
|
{ |
|
138
|
|
|
$this->data['TagKey'] = $tagKey; |
|
139
|
|
|
foreach ($tagKey as $i => $iValue) { |
|
140
|
|
|
$this->options['query']['TagKey.' . ($i + 1)] = $iValue; |
|
141
|
|
|
} |
|
142
|
|
|
|
|
143
|
|
|
return $this; |
|
144
|
|
|
} |
|
145
|
|
|
} |
|
146
|
|
|
|