Skip to content

Commit e1c7ad9

Browse files
add updates
1 parent 1036e48 commit e1c7ad9

5 files changed

Lines changed: 268 additions & 2 deletions

File tree

src/Nativecontainer/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# 更新历史
22

3-
API版本:2.2.6
3+
API版本:2.3.0
44

55
| 发布时间 | 版本号 | 更新 | 说明 |
66
|------------|-------|------|-----------------|
7+
| 2023-04-07 | 2.3.0 | 新增接口 | * 新增接口:镜像缓存 |
78
| 2023-01-17 | 2.2.6 | 功能更新 | * 接入资源组 |
89
| 2020-11-27 | 2.2.5 | 功能更新 | * 支持创建打标 |
910
| 2020-07-24 | 2.2.4 | 文档更新 | * 文档更新 |

src/Pod/ChangeLog.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# 更新历史 #
22

3-
API版本:2.3.4
3+
API版本:2.5.1
44

55
| 发布时间 | 版本号 | 更新 | 说明 |
66
|------------|-------|------|-------------------------|
7+
| 2023-09-07 | 2.5.1 | 文档更新 | *文档更新 |
8+
| 2023-06-13 | 2.5.0 | 功能更新 | *多网卡创建 |
9+
| 2023-04-06 | 2.4.0 | 新增接口 | *新增接口:镜像缓存 |
710
| 2023-01-17 | 2.3.4 | 功能更新 | * 接入资源组 |
811
| 2022-08-05 | 2.3.3 | 文档更新 | *文档维护 |
912
| 2022-07-28 | 2.3.2 | 文档更新 | *文档维护及目录更改 |

src/Pod/PodClient.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,20 @@
4040
* @method \GuzzleHttp\Promise\Promise execStartAsync(array $args = [])
4141
* @method \Jdcloud\Result resizeTTY(array $args = [])
4242
* @method \GuzzleHttp\Promise\Promise resizeTTYAsync(array $args = [])
43+
* @method \Jdcloud\Result createImageCache(array $args = [])
44+
* @method \GuzzleHttp\Promise\Promise createImageCacheAsync(array $args = [])
45+
* @method \Jdcloud\Result describeImageCaches(array $args = [])
46+
* @method \GuzzleHttp\Promise\Promise describeImageCachesAsync(array $args = [])
47+
* @method \Jdcloud\Result createImageCaches(array $args = [])
48+
* @method \GuzzleHttp\Promise\Promise createImageCachesAsync(array $args = [])
49+
* @method \Jdcloud\Result describeImageCache(array $args = [])
50+
* @method \GuzzleHttp\Promise\Promise describeImageCacheAsync(array $args = [])
51+
* @method \Jdcloud\Result deleteImageCache(array $args = [])
52+
* @method \GuzzleHttp\Promise\Promise deleteImageCacheAsync(array $args = [])
53+
* @method \Jdcloud\Result getMostSuitableImageCache(array $args = [])
54+
* @method \GuzzleHttp\Promise\Promise getMostSuitableImageCacheAsync(array $args = [])
55+
* @method \Jdcloud\Result updateImageCache(array $args = [])
56+
* @method \GuzzleHttp\Promise\Promise updateImageCacheAsync(array $args = [])
4357
* @method \Jdcloud\Result describeInstanceTypes(array $args = [])
4458
* @method \GuzzleHttp\Promise\Promise describeInstanceTypesAsync(array $args = [])
4559
* @method \Jdcloud\Result describePods(array $args = [])

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,9 @@
438438
'charge' => [ 'shape' => 'ChargeSpec', ],
439439
'userTags' => [ 'type' => 'list', 'member' => [ 'shape' => 'Tag', ], ],
440440
'resourceGroupId' => [ 'type' => 'string', 'locationName' => 'resourceGroupId', ],
441+
'imageCacheId' => [ 'type' => 'string', 'locationName' => 'imageCacheId', ],
442+
'autoMatchImageCache' => [ 'type' => 'boolean', 'locationName' => 'autoMatchImageCache', ],
443+
'autoCreateImageCache' => [ 'type' => 'boolean', 'locationName' => 'autoCreateImageCache', ],
441444
],
442445
],
443446
'DiskSpec' => [

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

Lines changed: 245 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,69 @@
101101
'input' => [ 'shape' => 'ResizeTTYRequestShape', ],
102102
'output' => [ 'shape' => 'ResizeTTYResponseShape', ],
103103
],
104+
'CreateImageCache' => [
105+
'name' => 'CreateImageCache',
106+
'http' => [
107+
'method' => 'POST',
108+
'requestUri' => '/v1/regions/{regionId}/imageCache',
109+
],
110+
'input' => [ 'shape' => 'CreateImageCacheRequestShape', ],
111+
'output' => [ 'shape' => 'CreateImageCacheResponseShape', ],
112+
],
113+
'DescribeImageCaches' => [
114+
'name' => 'DescribeImageCaches',
115+
'http' => [
116+
'method' => 'GET',
117+
'requestUri' => '/v1/regions/{regionId}/imageCaches',
118+
],
119+
'input' => [ 'shape' => 'DescribeImageCachesRequestShape', ],
120+
'output' => [ 'shape' => 'DescribeImageCachesResponseShape', ],
121+
],
122+
'CreateImageCaches' => [
123+
'name' => 'CreateImageCaches',
124+
'http' => [
125+
'method' => 'POST',
126+
'requestUri' => '/v1/regions/{regionId}/imageCaches',
127+
],
128+
'input' => [ 'shape' => 'CreateImageCachesRequestShape', ],
129+
'output' => [ 'shape' => 'CreateImageCachesResponseShape', ],
130+
],
131+
'DescribeImageCache' => [
132+
'name' => 'DescribeImageCache',
133+
'http' => [
134+
'method' => 'GET',
135+
'requestUri' => '/v1/regions/{regionId}/imageCache/{imageCacheId}',
136+
],
137+
'input' => [ 'shape' => 'DescribeImageCacheRequestShape', ],
138+
'output' => [ 'shape' => 'DescribeImageCacheResponseShape', ],
139+
],
140+
'DeleteImageCache' => [
141+
'name' => 'DeleteImageCache',
142+
'http' => [
143+
'method' => 'DELETE',
144+
'requestUri' => '/v1/regions/{regionId}/imageCache/{imageCacheId}',
145+
],
146+
'input' => [ 'shape' => 'DeleteImageCacheRequestShape', ],
147+
'output' => [ 'shape' => 'DeleteImageCacheResponseShape', ],
148+
],
149+
'GetMostSuitableImageCache' => [
150+
'name' => 'GetMostSuitableImageCache',
151+
'http' => [
152+
'method' => 'GET',
153+
'requestUri' => '/v1/regions/{regionId}/imageCache:getMostSuitable',
154+
],
155+
'input' => [ 'shape' => 'GetMostSuitableImageCacheRequestShape', ],
156+
'output' => [ 'shape' => 'GetMostSuitableImageCacheResponseShape', ],
157+
],
158+
'UpdateImageCache' => [
159+
'name' => 'UpdateImageCache',
160+
'http' => [
161+
'method' => 'PATCH',
162+
'requestUri' => '/v1/regions/{regionId}/imageCache/{imageCacheId}:update',
163+
],
164+
'input' => [ 'shape' => 'UpdateImageCacheRequestShape', ],
165+
'output' => [ 'shape' => 'UpdateImageCacheResponseShape', ],
166+
],
104167
'DescribeInstanceTypes' => [
105168
'name' => 'DescribeInstanceTypes',
106169
'http' => [
@@ -580,6 +643,7 @@
580643
'resources' => [ 'shape' => 'ResourceRequestsSpec', ],
581644
'systemDisk' => [ 'shape' => 'CloudDiskSpec', ],
582645
'volumeMounts' => [ 'type' => 'list', 'member' => [ 'shape' => 'VolumeMountSpec', ], ],
646+
'imageCacheId' => [ 'type' => 'string', 'locationName' => 'imageCacheId', ],
583647
],
584648
],
585649
'ProbeSpec' => [
@@ -678,6 +742,28 @@
678742
'value' => [ 'type' => 'string', 'locationName' => 'value', ],
679743
],
680744
],
745+
'ImageCache' => [
746+
'type' => 'structure',
747+
'members' => [
748+
'imageCacheId' => [ 'type' => 'string', 'locationName' => 'imageCacheId', ],
749+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
750+
'size' => [ 'type' => 'integer', 'locationName' => 'size', ],
751+
'imageName' => [ 'type' => 'string', 'locationName' => 'imageName', ],
752+
'createTime' => [ 'type' => 'string', 'locationName' => 'createTime', ],
753+
'expireDateTime' => [ 'type' => 'string', 'locationName' => 'expireDateTime', ],
754+
'lastMatchedTime' => [ 'type' => 'string', 'locationName' => 'lastMatchedTime', ],
755+
'useCount' => [ 'type' => 'integer', 'locationName' => 'useCount', ],
756+
'snapShotId' => [ 'type' => 'string', 'locationName' => 'snapShotId', ],
757+
'status' => [ 'type' => 'string', 'locationName' => 'status', ],
758+
],
759+
],
760+
'GetMostSuitableImageCache' => [
761+
'type' => 'structure',
762+
'members' => [
763+
'found' => [ 'type' => 'boolean', 'locationName' => 'found', ],
764+
'imageCache' => [ 'shape' => 'ImageCache', ],
765+
],
766+
],
681767
'HostAlias' => [
682768
'type' => 'structure',
683769
'members' => [
@@ -692,6 +778,15 @@
692778
'ip' => [ 'type' => 'string', 'locationName' => 'ip', ],
693779
],
694780
],
781+
'ImageCacheSpec' => [
782+
'type' => 'structure',
783+
'members' => [
784+
'image' => [ 'type' => 'string', 'locationName' => 'image', ],
785+
'secret' => [ 'type' => 'string', 'locationName' => 'secret', ],
786+
'size' => [ 'type' => 'integer', 'locationName' => 'size', ],
787+
'retentionDays' => [ 'type' => 'integer', 'locationName' => 'retentionDays', ],
788+
],
789+
],
695790
'InstanceInfo' => [
696791
'type' => 'structure',
697792
'members' => [
@@ -924,8 +1019,11 @@
9241019
'charge' => [ 'shape' => 'ChargeSpec', ],
9251020
'elasticIp' => [ 'shape' => 'ElasticIpSpec', ],
9261021
'primaryNetworkInterface' => [ 'shape' => 'NetworkInterfaceAttachmentSpec', ],
1022+
'secondaryNetworkInterfaces' => [ 'type' => 'list', 'member' => [ 'shape' => 'NetworkInterfaceAttachmentSpec', ], ],
9271023
'userTags' => [ 'type' => 'list', 'member' => [ 'shape' => 'Tag', ], ],
9281024
'resourceGroupId' => [ 'type' => 'string', 'locationName' => 'resourceGroupId', ],
1025+
'autoMatchImageCache' => [ 'type' => 'boolean', 'locationName' => 'autoMatchImageCache', ],
1026+
'autoCreateImageCache' => [ 'type' => 'boolean', 'locationName' => 'autoCreateImageCache', ],
9291027
],
9301028
],
9311029
'VolumeSpec' => [
@@ -1209,6 +1307,152 @@
12091307
'values' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
12101308
],
12111309
],
1310+
'UpdateImageCacheRequestShape' => [
1311+
'type' => 'structure',
1312+
'members' => [
1313+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
1314+
'retentionDays' => [ 'type' => 'integer', 'locationName' => 'retentionDays', ],
1315+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
1316+
'imageCacheId' => [ 'type' => 'string', 'locationName' => 'imageCacheId', ],
1317+
],
1318+
],
1319+
'DescribeImageCachesRequestShape' => [
1320+
'type' => 'structure',
1321+
'members' => [
1322+
'pageNumber' => [ 'type' => 'integer', 'locationName' => 'pageNumber', ],
1323+
'pageSize' => [ 'type' => 'integer', 'locationName' => 'pageSize', ],
1324+
'filters' => [ 'type' => 'list', 'member' => [ 'shape' => 'Filter', ], ],
1325+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
1326+
],
1327+
],
1328+
'DescribeImageCacheResponseShape' => [
1329+
'type' => 'structure',
1330+
'members' => [
1331+
'result' => [ 'shape' => 'DescribeImageCacheResultShape', ],
1332+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
1333+
],
1334+
],
1335+
'GetMostSuitableImageCacheRequestShape' => [
1336+
'type' => 'structure',
1337+
'members' => [
1338+
'image' => [ 'type' => 'string', 'locationName' => 'image', ],
1339+
'secret' => [ 'type' => 'string', 'locationName' => 'secret', ],
1340+
'size' => [ 'type' => 'integer', 'locationName' => 'size', ],
1341+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
1342+
],
1343+
],
1344+
'DescribeImageCachesResultShape' => [
1345+
'type' => 'structure',
1346+
'members' => [
1347+
'imageCaches' => [ 'type' => 'list', 'member' => [ 'shape' => 'ImageCache', ], ],
1348+
'totalCount' => [ 'type' => 'double', 'locationName' => 'totalCount', ],
1349+
],
1350+
],
1351+
'CreateImageCachesRequestShape' => [
1352+
'type' => 'structure',
1353+
'members' => [
1354+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
1355+
'imageCacheSpecs' => [ 'type' => 'list', 'member' => [ 'shape' => 'ImageCacheSpec', ], ],
1356+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
1357+
],
1358+
],
1359+
'CreateImageCacheRequestShape' => [
1360+
'type' => 'structure',
1361+
'members' => [
1362+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
1363+
'imageCacheSpec' => [ 'shape' => 'ImageCacheSpec', ],
1364+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
1365+
],
1366+
],
1367+
'CreateImageCachesResponseShape' => [
1368+
'type' => 'structure',
1369+
'members' => [
1370+
'result' => [ 'shape' => 'CreateImageCachesResultShape', ],
1371+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
1372+
],
1373+
],
1374+
'GetMostSuitableImageCacheResponseShape' => [
1375+
'type' => 'structure',
1376+
'members' => [
1377+
'result' => [ 'shape' => 'GetMostSuitableImageCacheResultShape', ],
1378+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
1379+
],
1380+
],
1381+
'DeleteImageCacheResultShape' => [
1382+
'type' => 'structure',
1383+
'members' => [
1384+
],
1385+
],
1386+
'UpdateImageCacheResponseShape' => [
1387+
'type' => 'structure',
1388+
'members' => [
1389+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
1390+
],
1391+
],
1392+
'CreateImageCachesResultShape' => [
1393+
'type' => 'structure',
1394+
'members' => [
1395+
'imageCacheId' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
1396+
],
1397+
],
1398+
'GetMostSuitableImageCacheResultShape' => [
1399+
'type' => 'structure',
1400+
'members' => [
1401+
'found' => [ 'type' => 'boolean', 'locationName' => 'found', ],
1402+
'imageCache' => [ 'shape' => 'ImageCache', ],
1403+
],
1404+
],
1405+
'DeleteImageCacheRequestShape' => [
1406+
'type' => 'structure',
1407+
'members' => [
1408+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
1409+
'imageCacheId' => [ 'type' => 'string', 'locationName' => 'imageCacheId', ],
1410+
],
1411+
],
1412+
'DescribeImageCachesResponseShape' => [
1413+
'type' => 'structure',
1414+
'members' => [
1415+
'result' => [ 'shape' => 'DescribeImageCachesResultShape', ],
1416+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
1417+
],
1418+
],
1419+
'DescribeImageCacheRequestShape' => [
1420+
'type' => 'structure',
1421+
'members' => [
1422+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
1423+
'imageCacheId' => [ 'type' => 'string', 'locationName' => 'imageCacheId', ],
1424+
],
1425+
],
1426+
'DescribeImageCacheResultShape' => [
1427+
'type' => 'structure',
1428+
'members' => [
1429+
'imageCache' => [ 'shape' => 'ImageCache', ],
1430+
],
1431+
],
1432+
'UpdateImageCacheResultShape' => [
1433+
'type' => 'structure',
1434+
'members' => [
1435+
],
1436+
],
1437+
'CreateImageCacheResultShape' => [
1438+
'type' => 'structure',
1439+
'members' => [
1440+
'imageCacheId' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
1441+
],
1442+
],
1443+
'DeleteImageCacheResponseShape' => [
1444+
'type' => 'structure',
1445+
'members' => [
1446+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
1447+
],
1448+
],
1449+
'CreateImageCacheResponseShape' => [
1450+
'type' => 'structure',
1451+
'members' => [
1452+
'result' => [ 'shape' => 'CreateImageCacheResultShape', ],
1453+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
1454+
],
1455+
],
12121456
'DescribeInstanceTypesResultShape' => [
12131457
'type' => 'structure',
12141458
'members' => [
@@ -1340,6 +1584,7 @@
13401584
'DeletePodRequestShape' => [
13411585
'type' => 'structure',
13421586
'members' => [
1587+
'deletePrimaryNetworkInterfaceAllElasticIp' => [ 'type' => 'boolean', 'locationName' => 'deletePrimaryNetworkInterfaceAllElasticIp', ],
13431588
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
13441589
'podId' => [ 'type' => 'string', 'locationName' => 'podId', ],
13451590
],

0 commit comments

Comments
 (0)