Skip to content

Commit 70a6858

Browse files
add updates
1 parent 0a9d908 commit 70a6858

3 files changed

Lines changed: 86 additions & 0 deletions

File tree

src/Vm/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ API版本:1.5.10
33

44
| 发布时间 | 版本号 |更新| 说明 |
55
|------------|-------|---|----------------------------------------------------------------------------------------------------------------|
6+
| 2023-02-15 | 1.5.13 | 增加字段 | * 查询主机及查询主机列表返回字段新增osVersion、platform及architecture字段。 |
7+
| 2023-02-09 | 1.5.12 | 增加字段 | * 导出镜像任务返回值新增系统盘和数据盘对应的ossObject名称列表字段,导出镜像接口新增参数isAllDisk。 |
8+
| 2023-02-07 | 1.5.11 | 增加镜像接口 | * 基于快照创建镜像。 |
69
| 2023-01-09 | 1.5.10 | 增加字段 | * 镜像详情、列表增加到期时间属性。 |
710
| 2023-01-05 | 1.5.9 |增加字段 | * 创建实例依赖计费chargeSpec结构体发生变更,增加autoChangeChargeMode及autoChangeChargeModeDate字段 |
811
| 2022-12-21 | 1.5.8 |增加字段 | * 专有宿主机支持cpu拓扑 |

src/Vm/VmClient.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
* @method \GuzzleHttp\Promise\Promise describeImageAsync(array $args = [])
2525
* @method \Jdcloud\Result deleteImage(array $args = [])
2626
* @method \GuzzleHttp\Promise\Promise deleteImageAsync(array $args = [])
27+
* @method \Jdcloud\Result createImageFromSnapshots(array $args = [])
28+
* @method \GuzzleHttp\Promise\Promise createImageFromSnapshotsAsync(array $args = [])
2729
* @method \Jdcloud\Result describeImages(array $args = [])
2830
* @method \GuzzleHttp\Promise\Promise describeImagesAsync(array $args = [])
2931
* @method \Jdcloud\Result describeImageConstraints(array $args = [])
@@ -70,6 +72,8 @@
7072
* @method \GuzzleHttp\Promise\Promise startInstanceAsync(array $args = [])
7173
* @method \Jdcloud\Result rebootInstance(array $args = [])
7274
* @method \GuzzleHttp\Promise\Promise rebootInstanceAsync(array $args = [])
75+
* @method \Jdcloud\Result redeployInstance(array $args = [])
76+
* @method \GuzzleHttp\Promise\Promise redeployInstanceAsync(array $args = [])
7377
* @method \Jdcloud\Result attachNetworkInterface(array $args = [])
7478
* @method \GuzzleHttp\Promise\Promise attachNetworkInterfaceAsync(array $args = [])
7579
* @method \Jdcloud\Result detachNetworkInterface(array $args = [])

src/data/vm/v1/api-2.json.php

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@
2929
'input' => [ 'shape' => 'DeleteImageRequestShape', ],
3030
'output' => [ 'shape' => 'DeleteImageResponseShape', ],
3131
],
32+
'CreateImageFromSnapshots' => [
33+
'name' => 'CreateImageFromSnapshots',
34+
'http' => [
35+
'method' => 'POST',
36+
'requestUri' => '/v1/regions/{regionId}/images:createImageFromSnapshots',
37+
],
38+
'input' => [ 'shape' => 'CreateImageFromSnapshotsRequestShape', ],
39+
'output' => [ 'shape' => 'CreateImageFromSnapshotsResponseShape', ],
40+
],
3241
'DescribeImages' => [
3342
'name' => 'DescribeImages',
3443
'http' => [
@@ -236,6 +245,15 @@
236245
'input' => [ 'shape' => 'RebootInstanceRequestShape', ],
237246
'output' => [ 'shape' => 'RebootInstanceResponseShape', ],
238247
],
248+
'RedeployInstance' => [
249+
'name' => 'RedeployInstance',
250+
'http' => [
251+
'method' => 'POST',
252+
'requestUri' => '/v1/regions/{regionId}/instances/{instanceId}:redeployInstance',
253+
],
254+
'input' => [ 'shape' => 'RedeployInstanceRequestShape', ],
255+
'output' => [ 'shape' => 'RedeployInstanceResponseShape', ],
256+
],
239257
'AttachNetworkInterface' => [
240258
'name' => 'AttachNetworkInterface',
241259
'http' => [
@@ -619,6 +637,16 @@
619637
'stopTime' => [ 'type' => 'string', 'locationName' => 'stopTime', ],
620638
],
621639
],
640+
'CloudDiskSpec' => [
641+
'type' => 'structure',
642+
'members' => [
643+
'snapshotId' => [ 'type' => 'string', 'locationName' => 'snapshotId', ],
644+
'deviceName' => [ 'type' => 'string', 'locationName' => 'deviceName', ],
645+
'diskType' => [ 'type' => 'string', 'locationName' => 'diskType', ],
646+
'diskSizeGB' => [ 'type' => 'integer', 'locationName' => 'diskSizeGB', ],
647+
'autoDelete' => [ 'type' => 'boolean', 'locationName' => 'autoDelete', ],
648+
],
649+
],
622650
'CopyImage' => [
623651
'type' => 'structure',
624652
'members' => [
@@ -939,6 +967,7 @@
939967
'az' => [ 'type' => 'string', 'locationName' => 'az', ],
940968
'keyNames' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
941969
'charge' => [ 'shape' => 'Charge', ],
970+
'spotStatus' => [ 'type' => 'string', 'locationName' => 'spotStatus', ],
942971
'ag' => [ 'shape' => 'Ag', ],
943972
'faultDomain' => [ 'type' => 'string', 'locationName' => 'faultDomain', ],
944973
'tags' => [ 'type' => 'list', 'member' => [ 'shape' => 'Tag', ], ],
@@ -950,6 +979,9 @@
950979
'resourceGroupId' => [ 'type' => 'string', 'locationName' => 'resourceGroupId', ],
951980
'osType' => [ 'type' => 'string', 'locationName' => 'osType', ],
952981
'cpuTopology' => [ 'shape' => 'CpuTopology', ],
982+
'osVersion' => [ 'type' => 'string', 'locationName' => 'osVersion', ],
983+
'platform' => [ 'type' => 'string', 'locationName' => 'platform', ],
984+
'architecture' => [ 'type' => 'string', 'locationName' => 'architecture', ],
953985
],
954986
],
955987
'Policy' => [
@@ -1392,6 +1424,7 @@
13921424
'imageId' => [ 'type' => 'string', 'locationName' => 'imageId', ],
13931425
'ossUrl' => [ 'type' => 'string', 'locationName' => 'ossUrl', ],
13941426
'ossObject' => [ 'type' => 'string', 'locationName' => 'ossObject', ],
1427+
'ossObjects' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
13951428
'imageName' => [ 'type' => 'string', 'locationName' => 'imageName', ],
13961429
'imageUrl' => [ 'type' => 'string', 'locationName' => 'imageUrl', ],
13971430
],
@@ -1503,6 +1536,19 @@
15031536
'imageConstraints' => [ 'type' => 'list', 'member' => [ 'shape' => 'ImageConstraint', ], ],
15041537
],
15051538
],
1539+
'CreateImageFromSnapshotsRequestShape' => [
1540+
'type' => 'structure',
1541+
'members' => [
1542+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
1543+
'description' => [ 'type' => 'string', 'locationName' => 'description', ],
1544+
'platform' => [ 'type' => 'string', 'locationName' => 'platform', ],
1545+
'osVersion' => [ 'type' => 'string', 'locationName' => 'osVersion', ],
1546+
'architecture' => [ 'type' => 'string', 'locationName' => 'architecture', ],
1547+
'cloudDisks' => [ 'type' => 'list', 'member' => [ 'shape' => 'CloudDiskSpec', ], ],
1548+
'clientToken' => [ 'type' => 'string', 'locationName' => 'clientToken', ],
1549+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
1550+
],
1551+
],
15061552
'ReleaseImageRequestShape' => [
15071553
'type' => 'structure',
15081554
'members' => [
@@ -1540,6 +1586,12 @@
15401586
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
15411587
],
15421588
],
1589+
'CreateImageFromSnapshotsResultShape' => [
1590+
'type' => 'structure',
1591+
'members' => [
1592+
'imageId' => [ 'type' => 'string', 'locationName' => 'imageId', ],
1593+
],
1594+
],
15431595
'UnShareImageRequestShape' => [
15441596
'type' => 'structure',
15451597
'members' => [
@@ -1722,6 +1774,13 @@
17221774
'members' => [
17231775
],
17241776
],
1777+
'CreateImageFromSnapshotsResponseShape' => [
1778+
'type' => 'structure',
1779+
'members' => [
1780+
'result' => [ 'shape' => 'CreateImageFromSnapshotsResultShape', ],
1781+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
1782+
],
1783+
],
17251784
'DescribeImageConstraintsRequestShape' => [
17261785
'type' => 'structure',
17271786
'members' => [
@@ -1754,6 +1813,7 @@
17541813
'ossUrl' => [ 'type' => 'string', 'locationName' => 'ossUrl', ],
17551814
'ossPrefix' => [ 'type' => 'string', 'locationName' => 'ossPrefix', ],
17561815
'clientToken' => [ 'type' => 'string', 'locationName' => 'clientToken', ],
1816+
'isAllDisk' => [ 'type' => 'boolean', 'locationName' => 'isAllDisk', ],
17571817
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
17581818
'imageId' => [ 'type' => 'string', 'locationName' => 'imageId', ],
17591819
],
@@ -2183,6 +2243,11 @@
21832243
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
21842244
],
21852245
],
2246+
'RedeployInstanceResultShape' => [
2247+
'type' => 'structure',
2248+
'members' => [
2249+
],
2250+
],
21862251
'ModifyInstanceVpcAttributeResultShape' => [
21872252
'type' => 'structure',
21882253
'members' => [
@@ -2253,6 +2318,13 @@
22532318
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
22542319
],
22552320
],
2321+
'RedeployInstanceRequestShape' => [
2322+
'type' => 'structure',
2323+
'members' => [
2324+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
2325+
'instanceId' => [ 'type' => 'string', 'locationName' => 'instanceId', ],
2326+
],
2327+
],
22562328
'AttachNetworkInterfaceResponseShape' => [
22572329
'type' => 'structure',
22582330
'members' => [
@@ -2314,6 +2386,12 @@
23142386
'instanceId' => [ 'type' => 'string', 'locationName' => 'instanceId', ],
23152387
],
23162388
],
2389+
'RedeployInstanceResponseShape' => [
2390+
'type' => 'structure',
2391+
'members' => [
2392+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
2393+
],
2394+
],
23172395
'ModifyInstanceDiskAttributeResponseShape' => [
23182396
'type' => 'structure',
23192397
'members' => [
@@ -2476,6 +2554,7 @@
24762554
'type' => 'structure',
24772555
'members' => [
24782556
'serviceName' => [ 'type' => 'string', 'locationName' => 'serviceName', ],
2557+
'chargeMode' => [ 'type' => 'string', 'locationName' => 'chargeMode', ],
24792558
'filters' => [ 'type' => 'list', 'member' => [ 'shape' => 'Filter', ], ],
24802559
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
24812560
],

0 commit comments

Comments
 (0)