Skip to content

Commit 3efa8fb

Browse files
Merge pull request #166 from jdcloud-apigateway/master
add updates
2 parents eb9e775 + f74bd38 commit 3efa8fb

3 files changed

Lines changed: 110 additions & 23 deletions

File tree

src/Ossopenapi/ChangeLog.md

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,34 @@
22
---------------------------------------------------------------------
33
API版本:0.8.5
44

5-
| 发布时间 | 版本号 | 更新 | 说明
6-
| ---------------| -----------|-----------|---------|
7-
| 2018-10-17 | 0.1.0 | 自定义域名、用量监控 | 自定义域名、用量监控
8-
| 2018-10-24 | 0.2.0 | 完善接口 |完善接口
9-
| 2018-10-26 | 0.3.0 | 添加原图保护接口,完善自定义域名接口 | 添加原图保护接口,完善自定义域名接口
10-
| 2018-11-21 | 0.4.0 | 添加bucket back source配置openapi | 添加bucket back source配置openapi
11-
| 2018-11-29 | 0.4.2 | 修改bucket back source配置openapi | 修改bucket back source配置openapi
12-
| 2018-12-21 | 0.4.4 | 解决map的生成问题 | 解决map的生成问题
13-
| 2018-12-21 | 0.4.5 | 将镜像回源的接口改为对外的接口 | 将镜像回源的接口改为对外的接口
14-
| 2019-01-03 | 0.5.0 | 添加bucket相关openapi接口 | 添加bucket相关openapi接口
15-
| 2019-04-28 | 0.5.5 | 添加清除缓存中用户的OSS开通状态接口 | 添加清除缓存中用户的OSS开通状态接口
16-
| 2019-05-16 | 0.6.0 | 添加签名接口 | 添加签名接口
17-
| 2019-05-20 | 0.6.5 | 添加开通服务接口 | 添加开通服务接口
18-
| 2019-05-20 | 0.7.0 | 添加Bucket容量接口 | 添加Bucket容量接口
19-
| 2019-06-10 | 0.7.2 | 更新签名接口 | 更新签名接口
20-
| 2019-06-26 | 0.7.5 | 修改Bucket容量接口 | 修改Bucket容量接口
21-
| 2019-07-08 | 0.7.6 | 修改open service接口 | 修改open service接口
22-
| 2019-07-10 | 0.7.9 | 添加设置用户BillCode内部接口 | 添加设置用户BillCode内部接口
23-
| 2019-07-30 | 0.8.0 | 将Single Bucket用量查询接口对外开放 | 将Single Bucket用量查询接口对外开放
24-
| 2019-08-01 | 0.8.2 | 根据bucketId查询bucket信息 | 根据bucketId查询bucket信息
25-
| 2019-08-19 | 0.8.3 | 批量查询bucket信息(用于tagging) | 批量查询bucket信息(用于tagging)
26-
| 2019-09-19 | 0.8.4 | 历史数据同步接口 | 历史数据同步接口
27-
| 2020-08-13 | 0.8.5 | 历史数据同步接口 | 历史数据同步接口
5+
| 发布时间 | 版本号 | 更新 | 说明
6+
|------------|-------|-----------|---------|
7+
| 2018-10-17 | 0.1.0 | 自定义域名、用量监控 | 自定义域名、用量监控
8+
| 2018-10-24 | 0.2.0 | 完善接口 |完善接口
9+
| 2018-10-26 | 0.3.0 | 添加原图保护接口,完善自定义域名接口 | 添加原图保护接口,完善自定义域名接口
10+
| 2018-11-21 | 0.4.0 | 添加bucket back source配置openapi | 添加bucket back source配置openapi
11+
| 2018-11-29 | 0.4.2 | 修改bucket back source配置openapi | 修改bucket back source配置openapi
12+
| 2018-12-21 | 0.4.4 | 解决map的生成问题 | 解决map的生成问题
13+
| 2018-12-21 | 0.4.5 | 将镜像回源的接口改为对外的接口 | 将镜像回源的接口改为对外的接口
14+
| 2019-01-03 | 0.5.0 | 添加bucket相关openapi接口 | 添加bucket相关openapi接口
15+
| 2019-04-28 | 0.5.5 | 添加清除缓存中用户的OSS开通状态接口 | 添加清除缓存中用户的OSS开通状态接口
16+
| 2019-05-16 | 0.6.0 | 添加签名接口 | 添加签名接口
17+
| 2019-05-20 | 0.6.5 | 添加开通服务接口 | 添加开通服务接口
18+
| 2019-05-20 | 0.7.0 | 添加Bucket容量接口 | 添加Bucket容量接口
19+
| 2019-06-10 | 0.7.2 | 更新签名接口 | 更新签名接口
20+
| 2019-06-26 | 0.7.5 | 修改Bucket容量接口 | 修改Bucket容量接口
21+
| 2019-07-08 | 0.7.6 | 修改open service接口 | 修改open service接口
22+
| 2019-07-10 | 0.7.9 | 添加设置用户BillCode内部接口 | 添加设置用户BillCode内部接口
23+
| 2019-07-30 | 0.8.0 | 将Single Bucket用量查询接口对外开放 | 将Single Bucket用量查询接口对外开放
24+
| 2019-08-01 | 0.8.2 | 根据bucketId查询bucket信息 | 根据bucketId查询bucket信息
25+
| 2019-08-19 | 0.8.3 | 批量查询bucket信息(用于tagging) | 批量查询bucket信息(用于tagging)
26+
| 2019-09-19 | 0.8.4 | 历史数据同步接口 | 历史数据同步接口
27+
| 2020-08-13 | 0.8.5 | 历史数据同步接口 | 历史数据同步接口
28+
| 2022-08-22 | 0.8.7 | 容量查询接口 | 容量查询接口自持子账号、增加查询已授权的buckets信息(本次只包含statistic权限)
29+
| 2022-08-23 | 0.8.8 | 修改monitor uri | monitor接口uri按照openapi规范修改
30+
| 2022-08-23 | 0.9.0 | 修改monitor uri | monitor接口uri按照openapi规范修改
31+
| 2022-08-23 | 0.9.4 | getBucketMonitorStatisticV2 | monitor接口uri按照openapi规范修改
32+
| 2022-11-10 | 0.9.5 | 添加vpc接口 | 添加vpc接口
33+
| 2022-11-15 | 0.9.6 | 修改vpc接口 | 修改vpc接口
34+
| 2023-09-19 | 0.9.8 | 自定义域名备案接口增加异常状态 | 自定义域名备案接口增加异常状态
35+

src/Ossopenapi/OssopenapiClient.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
/**
2121
* Client used to interact with ossopenapi.
2222
*
23+
* @method \Jdcloud\Result getBucketCapacity(array $args = [])
24+
* @method \GuzzleHttp\Promise\Promise getBucketCapacityAsync(array $args = [])
2325
* @method \Jdcloud\Result getSingleBucketCapacity(array $args = [])
2426
* @method \GuzzleHttp\Promise\Promise getSingleBucketCapacityAsync(array $args = [])
2527
* @method \Jdcloud\Result getBackSourceConfiguration(array $args = [])
@@ -36,6 +38,8 @@
3638
* @method \GuzzleHttp\Promise\Promise listHistoricalReplicatTasksAsync(array $args = [])
3739
* @method \Jdcloud\Result createHistoricalReplicatTask(array $args = [])
3840
* @method \GuzzleHttp\Promise\Promise createHistoricalReplicatTaskAsync(array $args = [])
41+
* @method \Jdcloud\Result openService(array $args = [])
42+
* @method \GuzzleHttp\Promise\Promise openServiceAsync(array $args = [])
3943
*/
4044
class OssopenapiClient extends JdCloudClient
4145
{

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

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@
1111
// 'serviceId' => 'ossopenapi',
1212
],
1313
'operations' => [
14+
'GetBucketCapacity' => [
15+
'name' => 'GetBucketCapacity',
16+
'http' => [
17+
'method' => 'POST',
18+
'requestUri' => '/v1/regions/{regionId}/capacity/',
19+
],
20+
'input' => [ 'shape' => 'GetBucketCapacityRequestShape', ],
21+
'output' => [ 'shape' => 'GetBucketCapacityResponseShape', ],
22+
],
1423
'GetSingleBucketCapacity' => [
1524
'name' => 'GetSingleBucketCapacity',
1625
'http' => [
@@ -83,6 +92,15 @@
8392
'input' => [ 'shape' => 'CreateHistoricalReplicatTaskRequestShape', ],
8493
'output' => [ 'shape' => 'CreateHistoricalReplicatTaskResponseShape', ],
8594
],
95+
'OpenService' => [
96+
'name' => 'OpenService',
97+
'http' => [
98+
'method' => 'POST',
99+
'requestUri' => '/v1/regions/{regionId}/users/{userId}/appCodes/{appCode}/serviceCodes/{serviceCode}/openService',
100+
],
101+
'input' => [ 'shape' => 'OpenServiceRequestShape', ],
102+
'output' => [ 'shape' => 'OpenServiceResponseShape', ],
103+
],
86104
],
87105
'shapes' => [
88106
'BucketCapacityStatistic' => [
@@ -94,6 +112,25 @@
94112
'capacityType' => [ 'type' => 'integer', 'locationName' => 'capacityType', ],
95113
],
96114
],
115+
'GetBucketCapacityRequestShape' => [
116+
'type' => 'structure',
117+
'members' => [
118+
'capacityTypes' => [ 'type' => 'list', 'member' => [ 'type' => 'integer', ], ],
119+
'beginTime' => [ 'type' => 'string', 'locationName' => 'beginTime', ],
120+
'endTime' => [ 'type' => 'string', 'locationName' => 'endTime', ],
121+
'periodType' => [ 'type' => 'integer', 'locationName' => 'periodType', ],
122+
'method' => [ 'type' => 'integer', 'locationName' => 'method', ],
123+
'bucketNames' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
124+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
125+
],
126+
],
127+
'GetBucketCapacityResponseShape' => [
128+
'type' => 'structure',
129+
'members' => [
130+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
131+
'result' => [ 'shape' => 'GetBucketCapacityResultShape', ],
132+
],
133+
],
97134
'GetSingleBucketCapacityRequestShape' => [
98135
'type' => 'structure',
99136
'members' => [
@@ -123,6 +160,12 @@
123160
'method' => [ 'type' => 'integer', 'locationName' => 'method', ],
124161
],
125162
],
163+
'GetBucketCapacityResultShape' => [
164+
'type' => 'structure',
165+
'members' => [
166+
'resultList' => [ 'type' => 'list', 'member' => [ 'shape' => 'BucketCapacityStatistic', ], ],
167+
],
168+
],
126169
'BucketCapacityCondition' => [
127170
'type' => 'structure',
128171
'members' => [
@@ -198,6 +241,12 @@
198241
'allowTagging' => [ 'type' => 'boolean', 'locationName' => 'allowTagging', ],
199242
],
200243
],
244+
'GetAuthorizedBuckets' => [
245+
'type' => 'structure',
246+
'members' => [
247+
'bucketInfoList' => [ 'type' => 'list', 'member' => [ 'shape' => 'BucketInfo', ], ],
248+
],
249+
],
201250
'BackSourceAddress' => [
202251
'type' => 'structure',
203252
'members' => [
@@ -506,6 +555,26 @@
506555
'authorization' => [ 'type' => 'string', 'locationName' => 'authorization', ],
507556
],
508557
],
558+
'OpenServiceRequestShape' => [
559+
'type' => 'structure',
560+
'members' => [
561+
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
562+
'userId' => [ 'type' => 'string', 'locationName' => 'userId', ],
563+
'appCode' => [ 'type' => 'string', 'locationName' => 'appCode', ],
564+
'serviceCode' => [ 'type' => 'string', 'locationName' => 'serviceCode', ],
565+
],
566+
],
567+
'OpenServiceResultShape' => [
568+
'type' => 'structure',
569+
'members' => [
570+
],
571+
],
572+
'OpenServiceResponseShape' => [
573+
'type' => 'structure',
574+
'members' => [
575+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
576+
],
577+
],
509578
'UserBillCode' => [
510579
'type' => 'structure',
511580
'members' => [
@@ -515,5 +584,11 @@
515584
'processResourceType' => [ 'type' => 'string', 'locationName' => 'processResourceType', ],
516585
],
517586
],
587+
'VpcInfo' => [
588+
'type' => 'structure',
589+
'members' => [
590+
'updateType' => [ 'type' => 'integer', 'locationName' => 'updateType', ],
591+
],
592+
],
518593
],
519594
];

0 commit comments

Comments
 (0)