Skip to content

Commit a31bfb3

Browse files
add updates
1 parent 42cb252 commit a31bfb3

2 files changed

Lines changed: 109 additions & 1 deletion

File tree

src/Tidb/TidbClient.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,12 @@
4646
* @method \GuzzleHttp\Promise\Promise describeInstancesAsync(array $args = [])
4747
* @method \Jdcloud\Result describeInstanceClasses(array $args = [])
4848
* @method \GuzzleHttp\Promise\Promise describeInstanceClassesAsync(array $args = [])
49+
* @method \Jdcloud\Result createInstanceByTime(array $args = [])
50+
* @method \GuzzleHttp\Promise\Promise createInstanceByTimeAsync(array $args = [])
4951
* @method \Jdcloud\Result createInstanceFromBackup(array $args = [])
5052
* @method \GuzzleHttp\Promise\Promise createInstanceFromBackupAsync(array $args = [])
53+
* @method \Jdcloud\Result describeRestoreTimeInterval(array $args = [])
54+
* @method \GuzzleHttp\Promise\Promise describeRestoreTimeIntervalAsync(array $args = [])
5155
* @method \Jdcloud\Result describeBackupPolicy(array $args = [])
5256
* @method \GuzzleHttp\Promise\Promise describeBackupPolicyAsync(array $args = [])
5357
* @method \Jdcloud\Result modifyBackupPolicy(array $args = [])
@@ -82,6 +86,8 @@
8286
* @method \GuzzleHttp\Promise\Promise disableSSLAsync(array $args = [])
8387
* @method \Jdcloud\Result describeSSL(array $args = [])
8488
* @method \GuzzleHttp\Promise\Promise describeSSLAsync(array $args = [])
89+
* @method \Jdcloud\Result describeAvailableDBInfoInternel(array $args = [])
90+
* @method \GuzzleHttp\Promise\Promise describeAvailableDBInfoInternelAsync(array $args = [])
8591
* @method \Jdcloud\Result describeDataMigration(array $args = [])
8692
* @method \GuzzleHttp\Promise\Promise describeDataMigrationAsync(array $args = [])
8793
* @method \Jdcloud\Result createDataMigration(array $args = [])

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

Lines changed: 103 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
'DescribeInstances' => [
114114
'name' => 'DescribeInstances',
115115
'http' => [
116-
'method' => 'POST',
116+
'method' => 'GET',
117117
'requestUri' => '/v1/regions/{regionId}/instances:describeInstances',
118118
],
119119
'input' => [ 'shape' => 'DescribeInstancesRequestShape', ],
@@ -128,6 +128,15 @@
128128
'input' => [ 'shape' => 'DescribeInstanceClassesRequestShape', ],
129129
'output' => [ 'shape' => 'DescribeInstanceClassesResponseShape', ],
130130
],
131+
'CreateInstanceByTime' => [
132+
'name' => 'CreateInstanceByTime',
133+
'http' => [
134+
'method' => 'POST',
135+
'requestUri' => '/v1/regions/{regionId}/instances/{instanceId}:createInstanceByTime',
136+
],
137+
'input' => [ 'shape' => 'CreateInstanceByTimeRequestShape', ],
138+
'output' => [ 'shape' => 'CreateInstanceByTimeResponseShape', ],
139+
],
131140
'CreateInstanceFromBackup' => [
132141
'name' => 'CreateInstanceFromBackup',
133142
'http' => [
@@ -137,6 +146,15 @@
137146
'input' => [ 'shape' => 'CreateInstanceFromBackupRequestShape', ],
138147
'output' => [ 'shape' => 'CreateInstanceFromBackupResponseShape', ],
139148
],
149+
'DescribeRestoreTimeInterval' => [
150+
'name' => 'DescribeRestoreTimeInterval',
151+
'http' => [
152+
'method' => 'GET',
153+
'requestUri' => '/v1/regions/{regionId}/instances/{instanceId}:describeRestoreTimeInterval',
154+
],
155+
'input' => [ 'shape' => 'DescribeRestoreTimeIntervalRequestShape', ],
156+
'output' => [ 'shape' => 'DescribeRestoreTimeIntervalResponseShape', ],
157+
],
140158
'DescribeBackupPolicy' => [
141159
'name' => 'DescribeBackupPolicy',
142160
'http' => [
@@ -290,6 +308,15 @@
290308
'input' => [ 'shape' => 'DescribeSSLRequestShape', ],
291309
'output' => [ 'shape' => 'DescribeSSLResponseShape', ],
292310
],
311+
'DescribeAvailableDBInfoInternel' => [
312+
'name' => 'DescribeAvailableDBInfoInternel',
313+
'http' => [
314+
'method' => 'GET',
315+
'requestUri' => '/v1/regions/{regionId}/instances:describeAvailableDBInfoInternel',
316+
],
317+
'input' => [ 'shape' => 'DescribeAvailableDBInfoInternelRequestShape', ],
318+
'output' => [ 'shape' => 'DescribeAvailableDBInfoInternelResponseShape', ],
319+
],
293320
'DescribeDataMigration' => [
294321
'name' => 'DescribeDataMigration',
295322
'http' => [
@@ -486,6 +513,7 @@
486513
'instanceId' => [ 'type' => 'string', 'locationName' => 'instanceId', ],
487514
'instanceName' => [ 'type' => 'string', 'locationName' => 'instanceName', ],
488515
'engineVersion' => [ 'type' => 'string', 'locationName' => 'engineVersion', ],
516+
'architecture' => [ 'type' => 'string', 'locationName' => 'architecture', ],
489517
'minorVersion' => [ 'type' => 'string', 'locationName' => 'minorVersion', ],
490518
'totalNodeNum' => [ 'type' => 'integer', 'locationName' => 'totalNodeNum', ],
491519
'totalCPU' => [ 'type' => 'integer', 'locationName' => 'totalCPU', ],
@@ -624,6 +652,14 @@
624652
'orderableStorageTypes' => [ 'type' => 'list', 'member' => [ 'shape' => 'Disk', ], ],
625653
],
626654
],
655+
'ArchitectureVersion' => [
656+
'type' => 'structure',
657+
'members' => [
658+
'engineVersion' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
659+
'arch' => [ 'type' => 'string', 'locationName' => 'arch', ],
660+
'version' => [ 'type' => 'string', 'locationName' => 'version', ],
661+
],
662+
],
627663
'TiDBNode' => [
628664
'type' => 'structure',
629665
'members' => [
@@ -641,6 +677,7 @@
641677
'instanceId' => [ 'type' => 'string', 'locationName' => 'instanceId', ],
642678
'instanceName' => [ 'type' => 'string', 'locationName' => 'instanceName', ],
643679
'engineVersion' => [ 'type' => 'string', 'locationName' => 'engineVersion', ],
680+
'architecture' => [ 'type' => 'string', 'locationName' => 'architecture', ],
644681
'minorVersion' => [ 'type' => 'string', 'locationName' => 'minorVersion', ],
645682
'totalNodeNum' => [ 'type' => 'integer', 'locationName' => 'totalNodeNum', ],
646683
'tidbNodeSpec' => [ 'shape' => 'NodeSpec', ],
@@ -691,6 +728,7 @@
691728
'members' => [
692729
'instanceName' => [ 'type' => 'string', 'locationName' => 'instanceName', ],
693730
'engineVersion' => [ 'type' => 'string', 'locationName' => 'engineVersion', ],
731+
'architecture' => [ 'type' => 'string', 'locationName' => 'architecture', ],
694732
'tidbNodeSpec' => [ 'shape' => 'NodeSpec', ],
695733
'tikvNodeSpec' => [ 'shape' => 'NodeSpec', ],
696734
'pdNodeSpec' => [ 'shape' => 'NodeSpec', ],
@@ -907,6 +945,13 @@
907945
'instanceId' => [ 'type' => 'string', 'locationName' => 'instanceId', ],
908946
],
909947
],
948+
'DescribeRestoreTimeIntervalRequestShape' => [
949+
'type' => 'structure',
950+
'members' => [
951+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
952+
'instanceId' => [ 'type' => 'string', 'locationName' => 'instanceId', ],
953+
],
954+
],
910955
'RebootPodResponseShape' => [
911956
'type' => 'structure',
912957
'members' => [
@@ -950,6 +995,13 @@
950995
'result' => [ 'shape' => 'DescribeUpgradePlanResultShape', ],
951996
],
952997
],
998+
'DescribeAvailableDBInfoInternelRequestShape' => [
999+
'type' => 'structure',
1000+
'members' => [
1001+
'azs' => [ 'type' => 'string', 'locationName' => 'azs', ],
1002+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
1003+
],
1004+
],
9531005
'ModifyBackupPolicyRequestShape' => [
9541006
'type' => 'structure',
9551007
'members' => [
@@ -1109,11 +1161,24 @@
11091161
'direction' => [ 'type' => 'string', 'locationName' => 'direction', ],
11101162
],
11111163
],
1164+
'DescribeRestoreTimeIntervalResponseShape' => [
1165+
'type' => 'structure',
1166+
'members' => [
1167+
'result' => [ 'shape' => 'DescribeRestoreTimeIntervalResultShape', ],
1168+
],
1169+
],
11121170
'ModifyParametersResponseShape' => [
11131171
'type' => 'structure',
11141172
'members' => [
11151173
],
11161174
],
1175+
'DescribeRestoreTimeIntervalResultShape' => [
1176+
'type' => 'structure',
1177+
'members' => [
1178+
'startTime' => [ 'type' => 'string', 'locationName' => 'startTime', ],
1179+
'endTime' => [ 'type' => 'string', 'locationName' => 'endTime', ],
1180+
],
1181+
],
11171182
'DescribeUpgradePlanResultShape' => [
11181183
'type' => 'structure',
11191184
'members' => [
@@ -1179,6 +1244,13 @@
11791244
'versions' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
11801245
],
11811246
],
1247+
'CreateInstanceByTimeResultShape' => [
1248+
'type' => 'structure',
1249+
'members' => [
1250+
'instanceId' => [ 'type' => 'string', 'locationName' => 'instanceId', ],
1251+
'orderId' => [ 'type' => 'string', 'locationName' => 'orderId', ],
1252+
],
1253+
],
11821254
'DisableSSLResponseShape' => [
11831255
'type' => 'structure',
11841256
'members' => [
@@ -1213,6 +1285,22 @@
12131285
'members' => [
12141286
],
12151287
],
1288+
'DescribeAvailableDBInfoInternelResponseShape' => [
1289+
'type' => 'structure',
1290+
'members' => [
1291+
'result' => [ 'shape' => 'DescribeAvailableDBInfoInternelResultShape', ],
1292+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
1293+
],
1294+
],
1295+
'CreateInstanceByTimeRequestShape' => [
1296+
'type' => 'structure',
1297+
'members' => [
1298+
'restoreTime' => [ 'type' => 'string', 'locationName' => 'restoreTime', ],
1299+
'instanceSpec' => [ 'shape' => 'TidbInstanceSpec', ],
1300+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
1301+
'instanceId' => [ 'type' => 'string', 'locationName' => 'instanceId', ],
1302+
],
1303+
],
12161304
'DescribeInstanceAttributesResultShape' => [
12171305
'type' => 'structure',
12181306
'members' => [
@@ -1319,13 +1407,27 @@
13191407
'values' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
13201408
],
13211409
],
1410+
'CreateInstanceByTimeResponseShape' => [
1411+
'type' => 'structure',
1412+
'members' => [
1413+
'result' => [ 'shape' => 'CreateInstanceByTimeResultShape', ],
1414+
],
1415+
],
13221416
'DescribeNodesResponseShape' => [
13231417
'type' => 'structure',
13241418
'members' => [
13251419
'result' => [ 'shape' => 'DescribeNodesResultShape', ],
13261420
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
13271421
],
13281422
],
1423+
'DescribeAvailableDBInfoInternelResultShape' => [
1424+
'type' => 'structure',
1425+
'members' => [
1426+
'engineVersion' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
1427+
'architectureType' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
1428+
'architectureVersion' => [ 'type' => 'list', 'member' => [ 'shape' => 'ArchitectureVersion', ], ],
1429+
],
1430+
],
13291431
'DescribeParametersRequestShape' => [
13301432
'type' => 'structure',
13311433
'members' => [

0 commit comments

Comments
 (0)