ActiontrailApiResolver.php
2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
namespace AlibabaCloud\Actiontrail\V20200706;
use AlibabaCloud\Client\Resolver\ApiResolver;
/**
* @method CreateDeliveryHistoryJob createDeliveryHistoryJob(array $options = [])
* @method DeleteDeliveryHistoryJob deleteDeliveryHistoryJob(array $options = [])
* @method ListDeliveryHistoryJobs listDeliveryHistoryJobs(array $options = [])
* @method LookupEvents lookupEvents(array $options = [])
*/
class ActiontrailApiResolver extends ApiResolver
{
}
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
{
/** @var string */
public $product = 'Actiontrail';
/** @var string */
public $version = '2020-07-06';
/** @var string */
public $method = 'POST';
/** @var string */
public $serviceCode = 'actiontrail';
}
/**
* @method string getClientToken()
* @method $this withClientToken($value)
* @method string getTrailName()
* @method $this withTrailName($value)
*/
class CreateDeliveryHistoryJob extends Rpc
{
}
/**
* @method string getJobId()
* @method $this withJobId($value)
*/
class DeleteDeliveryHistoryJob extends Rpc
{
}
/**
* @method string getPageNumber()
* @method $this withPageNumber($value)
* @method string getPageSize()
* @method $this withPageSize($value)
*/
class ListDeliveryHistoryJobs extends Rpc
{
}
/**
* @method string getEndTime()
* @method $this withEndTime($value)
* @method string getStartTime()
* @method $this withStartTime($value)
* @method string getNextToken()
* @method $this withNextToken($value)
* @method array getLookupAttribute()
* @method string getMaxResults()
* @method $this withMaxResults($value)
* @method string getDirection()
* @method $this withDirection($value)
*/
class LookupEvents extends Rpc
{
/**
* @param array $lookupAttribute
*
* @return $this
*/
public function withLookupAttribute(array $lookupAttribute)
{
$this->data['LookupAttribute'] = $lookupAttribute;
foreach ($lookupAttribute as $depth1 => $depth1Value) {
if(isset($depth1Value['Value'])){
$this->options['query']['LookupAttribute.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
}
if(isset($depth1Value['Key'])){
$this->options['query']['LookupAttribute.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
}
}
return $this;
}
}