京东云

This commit is contained in:
“wanyongkang”
2024-05-28 17:04:50 +08:00
parent f644932afb
commit f3c7432100
672 changed files with 209344 additions and 6593 deletions

View File

@@ -0,0 +1,24 @@
# 更新历史 #
API版本0.12.7
|发布时间|版本号|更新|说明|
|---|---|---|---|
| 2021-12-29|0.12.7|新增接口|新增soldout接口|
| 2020-03-02|0.12.6|新增接口|新增quota查询和快照策略相关接口|
| 2020-02-12|0.12.5|新增接口|新增批量删除快照接口|
| 2019-10-21|0.12.4|升级|升级charge版本|
| 2019-06-27|0.12.3|新增接口|新增续费系统查询资源名称/资源绑定关系接口|
| 2019-06-11|0.12.2|修改接口|Model.disk的一个bug字段名字和代码不符合|
|2019-02-18|0.12.1|修改接口| *创建云盘和扩容云盘接口增加可定制iops数量参数当且仅当ssd.io1型的云盘有效。|
| 2019-01-02 | 0.12.0 | 新增接口 | 添加 resumeVolume 和suspendVolume的接口。|
|2018-12-05|0.11.0|新增接口|* 修改 DiskSpecification 返回参数,增加云盘规格的详细描述 |
|2018-11-23|0.10.0|新增接口|* 新增describeDiskSpecification,describeQuota接口 |
|2018-09-13|0.9.0|新增接口|* 新增copySnapshotshareSnapshot和unshareSnapshot接口<br>* 重做describeSnapshot和describeSnapshots 接口|
|2018-08-27|0.8.0|新增接口|* 新增modifySnapshotAttribute接口|
|2018-08-14|0.7.0|接口新增字段|* 查询云硬盘列表时增加multiAttach作为过滤<br>* 云硬盘信息详情中增加multiAttachable信息<br>* 创建云硬盘时增加multiAttachable作为可选项|
|2018-06-25|0.6.0|接口新增字段|* 查询云硬盘列表时增加Tag信息作为过滤条件<br>* 云硬盘信息详情中增加Tag信息|
|2018-05-10|0.5.0|新增接口|* 增加云硬盘批量创建接口<br>* 增加云硬盘删除接口<br>* 增加云硬盘扩容接口|
|2018-04-24|0.4.0|新增接口|* 增加云硬盘、快照名字和描述信息变更相关接口<br>* 增加删除快照相关接口<br>* 完善文档描述,针对逻辑不清楚的地方补充描述|
|2018-04-08|0.3.0|文档完善|* 完善文档描述,针对逻辑不清楚的地方补充描述|
|2018-03-31|0.2.0|增加snapshot相关接口|* 增加snapshot相关接口|
|2018-01-31|0.1.0|初始版本|* API及分组定义基础接口|

View File

@@ -0,0 +1,22 @@
2018-06-25 version 0.6.0
1. 查询云硬盘列表时增加Tag信息作为过滤条件
2. 云硬盘信息详情中增加Tag信息
2018-05-10 version 0.5.0
1. 增加云硬盘批量创建接口
2. 增加云硬盘删除接口
3. 增加云硬盘扩容接口
2018-04-24 version 0.4.0
1. 增加云硬盘、快照名字和描述信息变更相关接口
2. 增加删除快照相关接口
3. 完善文档描述,针对逻辑不清楚的地方补充描述
2018-04-08 version 0.3.1
1. 完善文档描述,针对逻辑不清楚的地方补充描述
2018-03-31 version: 0.2.0
1. 增加snapshot相关接口
2018-01-31 version: 0.1.0
1. 初始版本

View File

@@ -0,0 +1,98 @@
<?php
/**
* Disk
*
* @category Jdcloud
* @package Jdcloud\Disk
* @author Jdcloud <jdcloud-api@jd.com>
* @license Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0
* @link https://www.jdcloud.com/help/faq
*/
namespace Jdcloud\Disk;
use Jdcloud\JdCloudClient;
use Jdcloud\Api\Service;
use Jdcloud\Api\DocModel;
use Jdcloud\Api\ApiProvider;
use Jdcloud\PresignUrlMiddleware;
/**
* Client used to interact with disk.
*
* @method \Jdcloud\Result describeDisks(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeDisksAsync(array $args = [])
* @method \Jdcloud\Result createDisks(array $args = [])
* @method \GuzzleHttp\Promise\Promise createDisksAsync(array $args = [])
* @method \Jdcloud\Result describeDisk(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeDiskAsync(array $args = [])
* @method \Jdcloud\Result modifyDiskAttribute(array $args = [])
* @method \GuzzleHttp\Promise\Promise modifyDiskAttributeAsync(array $args = [])
* @method \Jdcloud\Result deleteDisk(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteDiskAsync(array $args = [])
* @method \Jdcloud\Result restoreDisk(array $args = [])
* @method \GuzzleHttp\Promise\Promise restoreDiskAsync(array $args = [])
* @method \Jdcloud\Result extendDisk(array $args = [])
* @method \GuzzleHttp\Promise\Promise extendDiskAsync(array $args = [])
* @method \Jdcloud\Result describeVolumesIgnoreServiceCode(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeVolumesIgnoreServiceCodeAsync(array $args = [])
* @method \Jdcloud\Result recoverDisk(array $args = [])
* @method \GuzzleHttp\Promise\Promise recoverDiskAsync(array $args = [])
* @method \Jdcloud\Result describeQuota(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeQuotaAsync(array $args = [])
* @method \Jdcloud\Result describeSnapshots(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeSnapshotsAsync(array $args = [])
* @method \Jdcloud\Result createSnapshot(array $args = [])
* @method \GuzzleHttp\Promise\Promise createSnapshotAsync(array $args = [])
* @method \Jdcloud\Result deleteSnapshots(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteSnapshotsAsync(array $args = [])
* @method \Jdcloud\Result describeSnapshot(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeSnapshotAsync(array $args = [])
* @method \Jdcloud\Result modifySnapshotAttribute(array $args = [])
* @method \GuzzleHttp\Promise\Promise modifySnapshotAttributeAsync(array $args = [])
* @method \Jdcloud\Result deleteSnapshot(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteSnapshotAsync(array $args = [])
* @method \Jdcloud\Result describeSnapshotsCapacity(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeSnapshotsCapacityAsync(array $args = [])
* @method \Jdcloud\Result describeSnapshotChain(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeSnapshotChainAsync(array $args = [])
* @method \Jdcloud\Result createSnapshotPolicy(array $args = [])
* @method \GuzzleHttp\Promise\Promise createSnapshotPolicyAsync(array $args = [])
* @method \Jdcloud\Result updateSnapshotPolicy(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateSnapshotPolicyAsync(array $args = [])
* @method \Jdcloud\Result deleteSnapshotPolicy(array $args = [])
* @method \GuzzleHttp\Promise\Promise deleteSnapshotPolicyAsync(array $args = [])
* @method \Jdcloud\Result describeSnapshotPolicies(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeSnapshotPoliciesAsync(array $args = [])
* @method \Jdcloud\Result describeSnapPolices(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeSnapPolicesAsync(array $args = [])
* @method \Jdcloud\Result applySnapshotPolicies(array $args = [])
* @method \GuzzleHttp\Promise\Promise applySnapshotPoliciesAsync(array $args = [])
* @method \Jdcloud\Result describeSnapshotPolicyDiskRelations(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeSnapshotPolicyDiskRelationsAsync(array $args = [])
* @method \Jdcloud\Result describeSoldout(array $args = [])
* @method \GuzzleHttp\Promise\Promise describeSoldoutAsync(array $args = [])
*/
class DiskClient extends JdCloudClient
{
public function __construct(array $args)
{
$args['with_resolved'] = function (array $args) {
$this->getHandlerList()->appendInit(
PresignUrlMiddleware::wrap(
$this,
$args['endpoint_provider'],
[
'operations' => [
],
'service' => 'disk',
'presign_param' => 'PresignedUrl',
]
),
'disk'
);
};
parent::__construct($args);
}
}