Skip to content

Commit 0790292

Browse files
add updates
1 parent 97172d3 commit 0790292

3 files changed

Lines changed: 510 additions & 0 deletions

File tree

src/Flowlog/FlowlogClient.php

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?php
2+
/**
3+
* Flowlog
4+
*
5+
* @category Jdcloud
6+
* @package Jdcloud\Flowlog
7+
* @author Jdcloud <jdcloud-api@jd.com>
8+
* @license Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0
9+
* @link https://www.jdcloud.com/help/faq
10+
*/
11+
12+
namespace Jdcloud\Flowlog;
13+
14+
use Jdcloud\JdCloudClient;
15+
use Jdcloud\Api\Service;
16+
use Jdcloud\Api\DocModel;
17+
use Jdcloud\Api\ApiProvider;
18+
use Jdcloud\PresignUrlMiddleware;
19+
20+
/**
21+
* Client used to interact with flowlog.
22+
*
23+
* @method \Jdcloud\Result describeFlowLogs(array $args = [])
24+
* @method \GuzzleHttp\Promise\Promise describeFlowLogsAsync(array $args = [])
25+
* @method \Jdcloud\Result createFlowLog(array $args = [])
26+
* @method \GuzzleHttp\Promise\Promise createFlowLogAsync(array $args = [])
27+
* @method \Jdcloud\Result describeFlowLog(array $args = [])
28+
* @method \GuzzleHttp\Promise\Promise describeFlowLogAsync(array $args = [])
29+
* @method \Jdcloud\Result modifyFlowLog(array $args = [])
30+
* @method \GuzzleHttp\Promise\Promise modifyFlowLogAsync(array $args = [])
31+
* @method \Jdcloud\Result deleteFlowLog(array $args = [])
32+
* @method \GuzzleHttp\Promise\Promise deleteFlowLogAsync(array $args = [])
33+
* @method \Jdcloud\Result startFlowLog(array $args = [])
34+
* @method \GuzzleHttp\Promise\Promise startFlowLogAsync(array $args = [])
35+
* @method \Jdcloud\Result stopFlowLog(array $args = [])
36+
* @method \GuzzleHttp\Promise\Promise stopFlowLogAsync(array $args = [])
37+
* @method \Jdcloud\Result addCollectResources(array $args = [])
38+
* @method \GuzzleHttp\Promise\Promise addCollectResourcesAsync(array $args = [])
39+
* @method \Jdcloud\Result removeCollectResources(array $args = [])
40+
* @method \GuzzleHttp\Promise\Promise removeCollectResourcesAsync(array $args = [])
41+
* @method \Jdcloud\Result describeCollectResources(array $args = [])
42+
* @method \GuzzleHttp\Promise\Promise describeCollectResourcesAsync(array $args = [])
43+
* @method \Jdcloud\Result describeQuota(array $args = [])
44+
* @method \GuzzleHttp\Promise\Promise describeQuotaAsync(array $args = [])
45+
*/
46+
class FlowlogClient extends JdCloudClient
47+
{
48+
public function __construct(array $args)
49+
{
50+
$args['with_resolved'] = function (array $args) {
51+
$this->getHandlerList()->appendInit(
52+
PresignUrlMiddleware::wrap(
53+
$this,
54+
$args['endpoint_provider'],
55+
[
56+
'operations' => [
57+
],
58+
'service' => 'flowlog',
59+
'presign_param' => 'PresignedUrl',
60+
]
61+
),
62+
'flowlog'
63+
);
64+
};
65+
66+
parent::__construct($args);
67+
}
68+
}

0 commit comments

Comments
 (0)