Skip to content

Commit e535efe

Browse files
add updates
1 parent 777dfe2 commit e535efe

4 files changed

Lines changed: 959 additions & 0 deletions

File tree

src/Gcs/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+
|2024-01-04|1.0.1|文档初始化|项目首次初始化 |
8+
|2024-01-04|1.0.1|新增接口||

src/Gcs/GcsClient.php

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<?php
2+
/**
3+
* Gcs
4+
*
5+
* @category Jdcloud
6+
* @package Jdcloud\Gcs
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\Gcs;
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 gcs.
22+
*
23+
* @method \Jdcloud\Result describeArts(array $args = [])
24+
* @method \GuzzleHttp\Promise\Promise describeArtsAsync(array $args = [])
25+
* @method \Jdcloud\Result describeArt(array $args = [])
26+
* @method \GuzzleHttp\Promise\Promise describeArtAsync(array $args = [])
27+
* @method \Jdcloud\Result modifyInstance(array $args = [])
28+
* @method \GuzzleHttp\Promise\Promise modifyInstanceAsync(array $args = [])
29+
* @method \Jdcloud\Result createInstances(array $args = [])
30+
* @method \GuzzleHttp\Promise\Promise createInstancesAsync(array $args = [])
31+
* @method \Jdcloud\Result describeInstances(array $args = [])
32+
* @method \GuzzleHttp\Promise\Promise describeInstancesAsync(array $args = [])
33+
* @method \Jdcloud\Result describeInstance(array $args = [])
34+
* @method \GuzzleHttp\Promise\Promise describeInstanceAsync(array $args = [])
35+
* @method \Jdcloud\Result deleteInstance(array $args = [])
36+
* @method \GuzzleHttp\Promise\Promise deleteInstanceAsync(array $args = [])
37+
* @method \Jdcloud\Result startInstance(array $args = [])
38+
* @method \GuzzleHttp\Promise\Promise startInstanceAsync(array $args = [])
39+
* @method \Jdcloud\Result stopInstance(array $args = [])
40+
* @method \GuzzleHttp\Promise\Promise stopInstanceAsync(array $args = [])
41+
* @method \Jdcloud\Result modifyInstanceSpec(array $args = [])
42+
* @method \GuzzleHttp\Promise\Promise modifyInstanceSpecAsync(array $args = [])
43+
* @method \Jdcloud\Result stopInstanceTimer(array $args = [])
44+
* @method \GuzzleHttp\Promise\Promise stopInstanceTimerAsync(array $args = [])
45+
* @method \Jdcloud\Result stopInstanceTimerCancle(array $args = [])
46+
* @method \GuzzleHttp\Promise\Promise stopInstanceTimerCancleAsync(array $args = [])
47+
* @method \Jdcloud\Result modifyInstanceSecret(array $args = [])
48+
* @method \GuzzleHttp\Promise\Promise modifyInstanceSecretAsync(array $args = [])
49+
* @method \Jdcloud\Result modifyInstanceImage(array $args = [])
50+
* @method \GuzzleHttp\Promise\Promise modifyInstanceImageAsync(array $args = [])
51+
* @method \Jdcloud\Result describeOrderInfos(array $args = [])
52+
* @method \GuzzleHttp\Promise\Promise describeOrderInfosAsync(array $args = [])
53+
* @method \Jdcloud\Result describeRegions(array $args = [])
54+
* @method \GuzzleHttp\Promise\Promise describeRegionsAsync(array $args = [])
55+
* @method \Jdcloud\Result describeStock(array $args = [])
56+
* @method \GuzzleHttp\Promise\Promise describeStockAsync(array $args = [])
57+
* @method \Jdcloud\Result modifyNetDisk(array $args = [])
58+
* @method \GuzzleHttp\Promise\Promise modifyNetDiskAsync(array $args = [])
59+
* @method \Jdcloud\Result describeNetDisk(array $args = [])
60+
* @method \GuzzleHttp\Promise\Promise describeNetDiskAsync(array $args = [])
61+
*/
62+
class GcsClient extends JdCloudClient
63+
{
64+
public function __construct(array $args)
65+
{
66+
$args['with_resolved'] = function (array $args) {
67+
$this->getHandlerList()->appendInit(
68+
PresignUrlMiddleware::wrap(
69+
$this,
70+
$args['endpoint_provider'],
71+
[
72+
'operations' => [
73+
],
74+
'service' => 'gcs',
75+
'presign_param' => 'PresignedUrl',
76+
]
77+
),
78+
'gcs'
79+
);
80+
};
81+
82+
parent::__construct($args);
83+
}
84+
}

0 commit comments

Comments
 (0)