Skip to content

Commit d38c2c8

Browse files
add updates
1 parent ae3a2f3 commit d38c2c8

4 files changed

Lines changed: 1017 additions & 0 deletions

File tree

src/Fc/ChangeLog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# 更新历史 #
2+
3+
API版本:1.0.1
4+
5+
| 发布时间 | 版本号 | 更新 | 说明 |
6+
|------------|-------|------|-------------------------|
7+
| 2023-05-09 | 1.0.1 | 修复内容 | * 修复内容 |
8+
| 2023-05-08 | 1.0.0 | 初始版本 | * 初始版本 |

src/Fc/FcClient.php

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?php
2+
/**
3+
* Fc
4+
*
5+
* @category Jdcloud
6+
* @package Jdcloud\Fc
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\Fc;
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 fc.
22+
*
23+
* @method \Jdcloud\Result describeFunctions(array $args = [])
24+
* @method \GuzzleHttp\Promise\Promise describeFunctionsAsync(array $args = [])
25+
* @method \Jdcloud\Result createFunction(array $args = [])
26+
* @method \GuzzleHttp\Promise\Promise createFunctionAsync(array $args = [])
27+
* @method \Jdcloud\Result checkFunction(array $args = [])
28+
* @method \GuzzleHttp\Promise\Promise checkFunctionAsync(array $args = [])
29+
* @method \Jdcloud\Result describeFunction(array $args = [])
30+
* @method \GuzzleHttp\Promise\Promise describeFunctionAsync(array $args = [])
31+
* @method \Jdcloud\Result updateFunction(array $args = [])
32+
* @method \GuzzleHttp\Promise\Promise updateFunctionAsync(array $args = [])
33+
* @method \Jdcloud\Result deleteFunction(array $args = [])
34+
* @method \GuzzleHttp\Promise\Promise deleteFunctionAsync(array $args = [])
35+
* @method \Jdcloud\Result describeFunctionCode(array $args = [])
36+
* @method \GuzzleHttp\Promise\Promise describeFunctionCodeAsync(array $args = [])
37+
* @method \Jdcloud\Result describeRuntimes(array $args = [])
38+
* @method \GuzzleHttp\Promise\Promise describeRuntimesAsync(array $args = [])
39+
* @method \Jdcloud\Result invokeFunction(array $args = [])
40+
* @method \GuzzleHttp\Promise\Promise invokeFunctionAsync(array $args = [])
41+
* @method \Jdcloud\Result describeAllFunctions(array $args = [])
42+
* @method \GuzzleHttp\Promise\Promise describeAllFunctionsAsync(array $args = [])
43+
* @method \Jdcloud\Result internalCreateFunction(array $args = [])
44+
* @method \GuzzleHttp\Promise\Promise internalCreateFunctionAsync(array $args = [])
45+
* @method \Jdcloud\Result internalUpdateFunction(array $args = [])
46+
* @method \GuzzleHttp\Promise\Promise internalUpdateFunctionAsync(array $args = [])
47+
* @method \Jdcloud\Result describeInstanceTypes(array $args = [])
48+
* @method \GuzzleHttp\Promise\Promise describeInstanceTypesAsync(array $args = [])
49+
* @method \Jdcloud\Result describeServices(array $args = [])
50+
* @method \GuzzleHttp\Promise\Promise describeServicesAsync(array $args = [])
51+
* @method \Jdcloud\Result createService(array $args = [])
52+
* @method \GuzzleHttp\Promise\Promise createServiceAsync(array $args = [])
53+
* @method \Jdcloud\Result checkService(array $args = [])
54+
* @method \GuzzleHttp\Promise\Promise checkServiceAsync(array $args = [])
55+
* @method \Jdcloud\Result describeService(array $args = [])
56+
* @method \GuzzleHttp\Promise\Promise describeServiceAsync(array $args = [])
57+
* @method \Jdcloud\Result updateService(array $args = [])
58+
* @method \GuzzleHttp\Promise\Promise updateServiceAsync(array $args = [])
59+
* @method \Jdcloud\Result deleteService(array $args = [])
60+
* @method \GuzzleHttp\Promise\Promise deleteServiceAsync(array $args = [])
61+
* @method \Jdcloud\Result describeTriggers(array $args = [])
62+
* @method \GuzzleHttp\Promise\Promise describeTriggersAsync(array $args = [])
63+
* @method \Jdcloud\Result createTrigger(array $args = [])
64+
* @method \GuzzleHttp\Promise\Promise createTriggerAsync(array $args = [])
65+
* @method \Jdcloud\Result describeTrigger(array $args = [])
66+
* @method \GuzzleHttp\Promise\Promise describeTriggerAsync(array $args = [])
67+
* @method \Jdcloud\Result updateTrigger(array $args = [])
68+
* @method \GuzzleHttp\Promise\Promise updateTriggerAsync(array $args = [])
69+
* @method \Jdcloud\Result deleteTrigger(array $args = [])
70+
* @method \GuzzleHttp\Promise\Promise deleteTriggerAsync(array $args = [])
71+
*/
72+
class FcClient extends JdCloudClient
73+
{
74+
public function __construct(array $args)
75+
{
76+
$args['with_resolved'] = function (array $args) {
77+
$this->getHandlerList()->appendInit(
78+
PresignUrlMiddleware::wrap(
79+
$this,
80+
$args['endpoint_provider'],
81+
[
82+
'operations' => [
83+
],
84+
'service' => 'fc',
85+
'presign_param' => 'PresignedUrl',
86+
]
87+
),
88+
'fc'
89+
);
90+
};
91+
92+
parent::__construct($args);
93+
}
94+
}

0 commit comments

Comments
 (0)