node-cnb 1.13.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{src/client.d.ts → dist/index.d.mts} +1957 -471
- package/dist/index.d.ts +4827 -0
- package/dist/index.js +7590 -89
- package/dist/index.mjs +7567 -0
- package/dist/paths.json +703 -184
- package/package.json +11 -4
- package/dist/index.js.map +0 -1
- package/pathMethodMap.json +0 -6
- package/src/index.d.ts +0 -3
- package/src/index.ts +0 -100
- package/src/types.d.ts +0 -4566
- package/tsconfig.json +0 -14
package/dist/paths.json
CHANGED
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
"type": "string"
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
|
-
"description": "
|
|
278
|
+
"description": "RType",
|
|
279
279
|
"enum": [
|
|
280
280
|
"private",
|
|
281
281
|
"public",
|
|
@@ -298,6 +298,15 @@
|
|
|
298
298
|
"name": "role",
|
|
299
299
|
"type": "string"
|
|
300
300
|
},
|
|
301
|
+
{
|
|
302
|
+
"description": "仓库类型标记,逗号分隔。Repository type flags, comma separated",
|
|
303
|
+
"enum": [
|
|
304
|
+
"KnowledgeBase"
|
|
305
|
+
],
|
|
306
|
+
"in": "query",
|
|
307
|
+
"name": "flags",
|
|
308
|
+
"type": "string"
|
|
309
|
+
},
|
|
301
310
|
{
|
|
302
311
|
"description": "Order field,default(last_updated_at)",
|
|
303
312
|
"enum": [
|
|
@@ -1784,6 +1793,39 @@
|
|
|
1784
1793
|
"path": "/{group}/-/sub-groups",
|
|
1785
1794
|
"method": "get"
|
|
1786
1795
|
},
|
|
1796
|
+
"group.transfer.post": {
|
|
1797
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
|
|
1798
|
+
"operationId": "TransferGroup",
|
|
1799
|
+
"tags": [
|
|
1800
|
+
"Organizations"
|
|
1801
|
+
],
|
|
1802
|
+
"summary": "转移组织",
|
|
1803
|
+
"parameters": [
|
|
1804
|
+
{
|
|
1805
|
+
"description": "slug",
|
|
1806
|
+
"in": "path",
|
|
1807
|
+
"name": "group",
|
|
1808
|
+
"required": true,
|
|
1809
|
+
"type": "string"
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
"description": "request",
|
|
1813
|
+
"in": "body",
|
|
1814
|
+
"name": "request",
|
|
1815
|
+
"required": true,
|
|
1816
|
+
"schema": {
|
|
1817
|
+
"$ref": "#/definitions/dto.TransferSlugReq"
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
],
|
|
1821
|
+
"responses": {
|
|
1822
|
+
"200": {
|
|
1823
|
+
"description": "OK"
|
|
1824
|
+
}
|
|
1825
|
+
},
|
|
1826
|
+
"path": "/{group}/-/transfer",
|
|
1827
|
+
"method": "post"
|
|
1828
|
+
},
|
|
1787
1829
|
"group.upload.logos.post": {
|
|
1788
1830
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \ngroup-manage:rw",
|
|
1789
1831
|
"operationId": "UploadLogos",
|
|
@@ -1993,7 +2035,7 @@
|
|
|
1993
2035
|
},
|
|
1994
2036
|
"repo.get": {
|
|
1995
2037
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-basic-info:r",
|
|
1996
|
-
"operationId": "
|
|
2038
|
+
"operationId": "GetByID",
|
|
1997
2039
|
"tags": [
|
|
1998
2040
|
"Repositories"
|
|
1999
2041
|
],
|
|
@@ -2179,10 +2221,7 @@
|
|
|
2179
2221
|
"200": {
|
|
2180
2222
|
"description": "OK",
|
|
2181
2223
|
"schema": {
|
|
2182
|
-
"
|
|
2183
|
-
"$ref": "#/definitions/dto.BuildResult"
|
|
2184
|
-
},
|
|
2185
|
-
"type": "array"
|
|
2224
|
+
"$ref": "#/definitions/dto.BuildResult"
|
|
2186
2225
|
}
|
|
2187
2226
|
}
|
|
2188
2227
|
},
|
|
@@ -2250,10 +2289,7 @@
|
|
|
2250
2289
|
"200": {
|
|
2251
2290
|
"description": "OK",
|
|
2252
2291
|
"schema": {
|
|
2253
|
-
"
|
|
2254
|
-
"$ref": "#/definitions/dto.BuildResult"
|
|
2255
|
-
},
|
|
2256
|
-
"type": "array"
|
|
2292
|
+
"$ref": "#/definitions/dto.BuildResult"
|
|
2257
2293
|
}
|
|
2258
2294
|
}
|
|
2259
2295
|
},
|
|
@@ -2282,6 +2318,13 @@
|
|
|
2282
2318
|
"name": "fileName",
|
|
2283
2319
|
"required": true,
|
|
2284
2320
|
"type": "string"
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
"default": false,
|
|
2324
|
+
"description": "true 的话 302 的下载地址有效期为12个小时,但最多只能下载10次",
|
|
2325
|
+
"in": "query",
|
|
2326
|
+
"name": "share",
|
|
2327
|
+
"type": "boolean"
|
|
2285
2328
|
}
|
|
2286
2329
|
],
|
|
2287
2330
|
"responses": {
|
|
@@ -4380,6 +4423,61 @@
|
|
|
4380
4423
|
"path": "/{repo}/-/issues/{number}",
|
|
4381
4424
|
"method": "patch"
|
|
4382
4425
|
},
|
|
4426
|
+
"repo.issues.assignees.delete": {
|
|
4427
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
4428
|
+
"operationId": "DeleteIssueAssignees",
|
|
4429
|
+
"tags": [
|
|
4430
|
+
"Issues"
|
|
4431
|
+
],
|
|
4432
|
+
"summary": "删除 Issue 中的 Assignees。 Removes one or more assignees from an issue.",
|
|
4433
|
+
"parameters": [
|
|
4434
|
+
{
|
|
4435
|
+
"description": "repo",
|
|
4436
|
+
"in": "path",
|
|
4437
|
+
"name": "repo",
|
|
4438
|
+
"required": true,
|
|
4439
|
+
"type": "string"
|
|
4440
|
+
},
|
|
4441
|
+
{
|
|
4442
|
+
"description": "issue number",
|
|
4443
|
+
"in": "path",
|
|
4444
|
+
"name": "number",
|
|
4445
|
+
"required": true,
|
|
4446
|
+
"type": "string"
|
|
4447
|
+
},
|
|
4448
|
+
{
|
|
4449
|
+
"description": "Delete Issue Assignees Form",
|
|
4450
|
+
"in": "body",
|
|
4451
|
+
"name": "delete_issue_assignees_form",
|
|
4452
|
+
"required": true,
|
|
4453
|
+
"schema": {
|
|
4454
|
+
"$ref": "#/definitions/api.DeleteIssueAssigneesForm"
|
|
4455
|
+
}
|
|
4456
|
+
}
|
|
4457
|
+
],
|
|
4458
|
+
"responses": {
|
|
4459
|
+
"200": {
|
|
4460
|
+
"description": "OK",
|
|
4461
|
+
"schema": {
|
|
4462
|
+
"$ref": "#/definitions/api.IssueDetail"
|
|
4463
|
+
}
|
|
4464
|
+
},
|
|
4465
|
+
"404": {
|
|
4466
|
+
"description": "Not Found",
|
|
4467
|
+
"schema": {
|
|
4468
|
+
"$ref": "#/definitions/die.WebError"
|
|
4469
|
+
}
|
|
4470
|
+
},
|
|
4471
|
+
"500": {
|
|
4472
|
+
"description": "Internal Server Error",
|
|
4473
|
+
"schema": {
|
|
4474
|
+
"$ref": "#/definitions/die.WebError"
|
|
4475
|
+
}
|
|
4476
|
+
}
|
|
4477
|
+
},
|
|
4478
|
+
"path": "/{repo}/-/issues/{number}/assignees",
|
|
4479
|
+
"method": "delete"
|
|
4480
|
+
},
|
|
4383
4481
|
"repo.issues.assignees.list": {
|
|
4384
4482
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
4385
4483
|
"operationId": "ListIssueAssignees",
|
|
@@ -4429,6 +4527,61 @@
|
|
|
4429
4527
|
"path": "/{repo}/-/issues/{number}/assignees",
|
|
4430
4528
|
"method": "get"
|
|
4431
4529
|
},
|
|
4530
|
+
"repo.issues.assignees.patch": {
|
|
4531
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
4532
|
+
"operationId": "PatchIssueAssignees",
|
|
4533
|
+
"tags": [
|
|
4534
|
+
"Issues"
|
|
4535
|
+
],
|
|
4536
|
+
"summary": "更新 Issue 中的 Assignees。 Updates the assignees of an issue.",
|
|
4537
|
+
"parameters": [
|
|
4538
|
+
{
|
|
4539
|
+
"description": "repo",
|
|
4540
|
+
"in": "path",
|
|
4541
|
+
"name": "repo",
|
|
4542
|
+
"required": true,
|
|
4543
|
+
"type": "string"
|
|
4544
|
+
},
|
|
4545
|
+
{
|
|
4546
|
+
"description": "issue number",
|
|
4547
|
+
"in": "path",
|
|
4548
|
+
"name": "number",
|
|
4549
|
+
"required": true,
|
|
4550
|
+
"type": "string"
|
|
4551
|
+
},
|
|
4552
|
+
{
|
|
4553
|
+
"description": "Patch Issue Assignees Form",
|
|
4554
|
+
"in": "body",
|
|
4555
|
+
"name": "patch_issue_assignees_form",
|
|
4556
|
+
"required": true,
|
|
4557
|
+
"schema": {
|
|
4558
|
+
"$ref": "#/definitions/api.PatchIssueAssigneesForm"
|
|
4559
|
+
}
|
|
4560
|
+
}
|
|
4561
|
+
],
|
|
4562
|
+
"responses": {
|
|
4563
|
+
"200": {
|
|
4564
|
+
"description": "OK",
|
|
4565
|
+
"schema": {
|
|
4566
|
+
"$ref": "#/definitions/api.IssueDetail"
|
|
4567
|
+
}
|
|
4568
|
+
},
|
|
4569
|
+
"404": {
|
|
4570
|
+
"description": "Not Found",
|
|
4571
|
+
"schema": {
|
|
4572
|
+
"$ref": "#/definitions/die.WebError"
|
|
4573
|
+
}
|
|
4574
|
+
},
|
|
4575
|
+
"500": {
|
|
4576
|
+
"description": "Internal Server Error",
|
|
4577
|
+
"schema": {
|
|
4578
|
+
"$ref": "#/definitions/die.WebError"
|
|
4579
|
+
}
|
|
4580
|
+
}
|
|
4581
|
+
},
|
|
4582
|
+
"path": "/{repo}/-/issues/{number}/assignees",
|
|
4583
|
+
"method": "patch"
|
|
4584
|
+
},
|
|
4432
4585
|
"repo.issues.assignees.post": {
|
|
4433
4586
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
4434
4587
|
"operationId": "PostIssueAssignees",
|
|
@@ -4465,10 +4618,7 @@
|
|
|
4465
4618
|
"201": {
|
|
4466
4619
|
"description": "Created",
|
|
4467
4620
|
"schema": {
|
|
4468
|
-
"
|
|
4469
|
-
"$ref": "#/definitions/api.IssueDetail"
|
|
4470
|
-
},
|
|
4471
|
-
"type": "array"
|
|
4621
|
+
"$ref": "#/definitions/api.IssueDetail"
|
|
4472
4622
|
}
|
|
4473
4623
|
},
|
|
4474
4624
|
"404": {
|
|
@@ -4487,6 +4637,56 @@
|
|
|
4487
4637
|
"path": "/{repo}/-/issues/{number}/assignees",
|
|
4488
4638
|
"method": "post"
|
|
4489
4639
|
},
|
|
4640
|
+
"repo.issues.assignees.get": {
|
|
4641
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
4642
|
+
"operationId": "CanUserBeAssignedToIssue",
|
|
4643
|
+
"tags": [
|
|
4644
|
+
"Issues"
|
|
4645
|
+
],
|
|
4646
|
+
"summary": "检查用户是否可以被添加到 Issue 的 Assignees 中。 Checks if a user can be assigned to an issue.",
|
|
4647
|
+
"parameters": [
|
|
4648
|
+
{
|
|
4649
|
+
"description": "repo",
|
|
4650
|
+
"in": "path",
|
|
4651
|
+
"name": "repo",
|
|
4652
|
+
"required": true,
|
|
4653
|
+
"type": "string"
|
|
4654
|
+
},
|
|
4655
|
+
{
|
|
4656
|
+
"description": "issue number",
|
|
4657
|
+
"in": "path",
|
|
4658
|
+
"name": "number",
|
|
4659
|
+
"required": true,
|
|
4660
|
+
"type": "string"
|
|
4661
|
+
},
|
|
4662
|
+
{
|
|
4663
|
+
"description": "assignee",
|
|
4664
|
+
"in": "path",
|
|
4665
|
+
"name": "assignee",
|
|
4666
|
+
"required": true,
|
|
4667
|
+
"type": "string"
|
|
4668
|
+
}
|
|
4669
|
+
],
|
|
4670
|
+
"responses": {
|
|
4671
|
+
"204": {
|
|
4672
|
+
"description": "No Content"
|
|
4673
|
+
},
|
|
4674
|
+
"404": {
|
|
4675
|
+
"description": "Not Found",
|
|
4676
|
+
"schema": {
|
|
4677
|
+
"$ref": "#/definitions/die.WebError"
|
|
4678
|
+
}
|
|
4679
|
+
},
|
|
4680
|
+
"500": {
|
|
4681
|
+
"description": "Internal Server Error",
|
|
4682
|
+
"schema": {
|
|
4683
|
+
"$ref": "#/definitions/die.WebError"
|
|
4684
|
+
}
|
|
4685
|
+
}
|
|
4686
|
+
},
|
|
4687
|
+
"path": "/{repo}/-/issues/{number}/assignees/{assignee}",
|
|
4688
|
+
"method": "get"
|
|
4689
|
+
},
|
|
4490
4690
|
"repo.issues.comments.list": {
|
|
4491
4691
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
4492
4692
|
"operationId": "ListIssueComments",
|
|
@@ -5197,6 +5397,53 @@
|
|
|
5197
5397
|
"path": "/{repo}/-/labels/{name}",
|
|
5198
5398
|
"method": "patch"
|
|
5199
5399
|
},
|
|
5400
|
+
"repo.lfs.get": {
|
|
5401
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-code:r",
|
|
5402
|
+
"operationId": "GetPresignedLFSDownloadLink",
|
|
5403
|
+
"tags": [
|
|
5404
|
+
"Git"
|
|
5405
|
+
],
|
|
5406
|
+
"summary": "获取 git lfs 文件下载链接",
|
|
5407
|
+
"parameters": [
|
|
5408
|
+
{
|
|
5409
|
+
"description": "slug",
|
|
5410
|
+
"in": "path",
|
|
5411
|
+
"name": "repo",
|
|
5412
|
+
"required": true,
|
|
5413
|
+
"type": "string"
|
|
5414
|
+
},
|
|
5415
|
+
{
|
|
5416
|
+
"description": "lfs oid",
|
|
5417
|
+
"in": "path",
|
|
5418
|
+
"name": "oid",
|
|
5419
|
+
"required": true,
|
|
5420
|
+
"type": "string"
|
|
5421
|
+
},
|
|
5422
|
+
{
|
|
5423
|
+
"description": "download filename",
|
|
5424
|
+
"in": "query",
|
|
5425
|
+
"name": "name",
|
|
5426
|
+
"required": true,
|
|
5427
|
+
"type": "string"
|
|
5428
|
+
}
|
|
5429
|
+
],
|
|
5430
|
+
"responses": {
|
|
5431
|
+
"404": {
|
|
5432
|
+
"description": "Not Found",
|
|
5433
|
+
"schema": {
|
|
5434
|
+
"$ref": "#/definitions/die.WebError"
|
|
5435
|
+
}
|
|
5436
|
+
},
|
|
5437
|
+
"500": {
|
|
5438
|
+
"description": "Internal Server Error",
|
|
5439
|
+
"schema": {
|
|
5440
|
+
"$ref": "#/definitions/die.WebError"
|
|
5441
|
+
}
|
|
5442
|
+
}
|
|
5443
|
+
},
|
|
5444
|
+
"path": "/{repo}/-/lfs/{oid}",
|
|
5445
|
+
"method": "get"
|
|
5446
|
+
},
|
|
5200
5447
|
"repo.listMembers.list": {
|
|
5201
5448
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
|
|
5202
5449
|
"operationId": "ListAllMembers",
|
|
@@ -5954,13 +6201,13 @@
|
|
|
5954
6201
|
"path": "/{repo}/-/pulls/{number}",
|
|
5955
6202
|
"method": "patch"
|
|
5956
6203
|
},
|
|
5957
|
-
"repo.pulls.assignees.
|
|
5958
|
-
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:
|
|
5959
|
-
"operationId": "
|
|
6204
|
+
"repo.pulls.assignees.delete": {
|
|
6205
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
6206
|
+
"operationId": "DeletePullAssignees",
|
|
5960
6207
|
"tags": [
|
|
5961
6208
|
"Pulls"
|
|
5962
6209
|
],
|
|
5963
|
-
"summary": "
|
|
6210
|
+
"summary": "删除 PullRequest 中的 Assignees。 Removes one or more assignees from a pull request.",
|
|
5964
6211
|
"parameters": [
|
|
5965
6212
|
{
|
|
5966
6213
|
"description": "repo",
|
|
@@ -5970,21 +6217,27 @@
|
|
|
5970
6217
|
"type": "string"
|
|
5971
6218
|
},
|
|
5972
6219
|
{
|
|
5973
|
-
"description": "
|
|
6220
|
+
"description": "number",
|
|
5974
6221
|
"in": "path",
|
|
5975
6222
|
"name": "number",
|
|
5976
6223
|
"required": true,
|
|
5977
6224
|
"type": "string"
|
|
6225
|
+
},
|
|
6226
|
+
{
|
|
6227
|
+
"description": "Delete Pull Assignees Form",
|
|
6228
|
+
"in": "body",
|
|
6229
|
+
"name": "delete_pull_assignees_form",
|
|
6230
|
+
"required": true,
|
|
6231
|
+
"schema": {
|
|
6232
|
+
"$ref": "#/definitions/api.DeletePullAssigneesForm"
|
|
6233
|
+
}
|
|
5978
6234
|
}
|
|
5979
6235
|
],
|
|
5980
6236
|
"responses": {
|
|
5981
6237
|
"200": {
|
|
5982
6238
|
"description": "OK",
|
|
5983
6239
|
"schema": {
|
|
5984
|
-
"
|
|
5985
|
-
"$ref": "#/definitions/git_woa_com_cnb_monorepo_git_internal_app_git_service_bff_api.UserInfo"
|
|
5986
|
-
},
|
|
5987
|
-
"type": "array"
|
|
6240
|
+
"$ref": "#/definitions/api.Pull"
|
|
5988
6241
|
}
|
|
5989
6242
|
},
|
|
5990
6243
|
"404": {
|
|
@@ -6001,13 +6254,62 @@
|
|
|
6001
6254
|
}
|
|
6002
6255
|
},
|
|
6003
6256
|
"path": "/{repo}/-/pulls/{number}/assignees",
|
|
6004
|
-
"method": "
|
|
6257
|
+
"method": "delete"
|
|
6005
6258
|
},
|
|
6006
|
-
"repo.pulls.assignees.
|
|
6007
|
-
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:
|
|
6008
|
-
"operationId": "
|
|
6009
|
-
"tags": [
|
|
6010
|
-
"Pulls"
|
|
6259
|
+
"repo.pulls.assignees.list": {
|
|
6260
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
6261
|
+
"operationId": "ListPullAssignees",
|
|
6262
|
+
"tags": [
|
|
6263
|
+
"Pulls"
|
|
6264
|
+
],
|
|
6265
|
+
"summary": "查询指定 PullRequest 的 Assignees。List repository pull request assignees.",
|
|
6266
|
+
"parameters": [
|
|
6267
|
+
{
|
|
6268
|
+
"description": "repo",
|
|
6269
|
+
"in": "path",
|
|
6270
|
+
"name": "repo",
|
|
6271
|
+
"required": true,
|
|
6272
|
+
"type": "string"
|
|
6273
|
+
},
|
|
6274
|
+
{
|
|
6275
|
+
"description": "pull request number",
|
|
6276
|
+
"in": "path",
|
|
6277
|
+
"name": "number",
|
|
6278
|
+
"required": true,
|
|
6279
|
+
"type": "string"
|
|
6280
|
+
}
|
|
6281
|
+
],
|
|
6282
|
+
"responses": {
|
|
6283
|
+
"200": {
|
|
6284
|
+
"description": "OK",
|
|
6285
|
+
"schema": {
|
|
6286
|
+
"items": {
|
|
6287
|
+
"$ref": "#/definitions/git_woa_com_cnb_monorepo_git_internal_app_git_service_bff_api.UserInfo"
|
|
6288
|
+
},
|
|
6289
|
+
"type": "array"
|
|
6290
|
+
}
|
|
6291
|
+
},
|
|
6292
|
+
"404": {
|
|
6293
|
+
"description": "Not Found",
|
|
6294
|
+
"schema": {
|
|
6295
|
+
"$ref": "#/definitions/die.WebError"
|
|
6296
|
+
}
|
|
6297
|
+
},
|
|
6298
|
+
"500": {
|
|
6299
|
+
"description": "Internal Server Error",
|
|
6300
|
+
"schema": {
|
|
6301
|
+
"$ref": "#/definitions/die.WebError"
|
|
6302
|
+
}
|
|
6303
|
+
}
|
|
6304
|
+
},
|
|
6305
|
+
"path": "/{repo}/-/pulls/{number}/assignees",
|
|
6306
|
+
"method": "get"
|
|
6307
|
+
},
|
|
6308
|
+
"repo.pulls.assignees.post": {
|
|
6309
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
6310
|
+
"operationId": "PostPullAssignees",
|
|
6311
|
+
"tags": [
|
|
6312
|
+
"Pulls"
|
|
6011
6313
|
],
|
|
6012
6314
|
"summary": "添加 Assignees 到指定的 PullRequest。 Adds up to 10 assignees to a pull request. Users already assigned to an issue are not replaced.",
|
|
6013
6315
|
"parameters": [
|
|
@@ -6058,6 +6360,56 @@
|
|
|
6058
6360
|
"path": "/{repo}/-/pulls/{number}/assignees",
|
|
6059
6361
|
"method": "post"
|
|
6060
6362
|
},
|
|
6363
|
+
"repo.pulls.assignees.get": {
|
|
6364
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
6365
|
+
"operationId": "CanUserBeAssignedToPull",
|
|
6366
|
+
"tags": [
|
|
6367
|
+
"Pulls"
|
|
6368
|
+
],
|
|
6369
|
+
"summary": "检查用户是否可以被添加到 PullRequest 的 Assignees 中。 Checks if a user can be assigned to a pull request.",
|
|
6370
|
+
"parameters": [
|
|
6371
|
+
{
|
|
6372
|
+
"description": "repo",
|
|
6373
|
+
"in": "path",
|
|
6374
|
+
"name": "repo",
|
|
6375
|
+
"required": true,
|
|
6376
|
+
"type": "string"
|
|
6377
|
+
},
|
|
6378
|
+
{
|
|
6379
|
+
"description": "number",
|
|
6380
|
+
"in": "path",
|
|
6381
|
+
"name": "number",
|
|
6382
|
+
"required": true,
|
|
6383
|
+
"type": "string"
|
|
6384
|
+
},
|
|
6385
|
+
{
|
|
6386
|
+
"description": "assignee",
|
|
6387
|
+
"in": "path",
|
|
6388
|
+
"name": "assignee",
|
|
6389
|
+
"required": true,
|
|
6390
|
+
"type": "string"
|
|
6391
|
+
}
|
|
6392
|
+
],
|
|
6393
|
+
"responses": {
|
|
6394
|
+
"204": {
|
|
6395
|
+
"description": "No Content"
|
|
6396
|
+
},
|
|
6397
|
+
"404": {
|
|
6398
|
+
"description": "Not Found",
|
|
6399
|
+
"schema": {
|
|
6400
|
+
"$ref": "#/definitions/die.WebError"
|
|
6401
|
+
}
|
|
6402
|
+
},
|
|
6403
|
+
"500": {
|
|
6404
|
+
"description": "Internal Server Error",
|
|
6405
|
+
"schema": {
|
|
6406
|
+
"$ref": "#/definitions/die.WebError"
|
|
6407
|
+
}
|
|
6408
|
+
}
|
|
6409
|
+
},
|
|
6410
|
+
"path": "/{repo}/-/pulls/{number}/assignees/{assignee}",
|
|
6411
|
+
"method": "get"
|
|
6412
|
+
},
|
|
6061
6413
|
"repo.pulls.comments.list": {
|
|
6062
6414
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:r",
|
|
6063
6415
|
"operationId": "ListPullComments",
|
|
@@ -6497,6 +6849,61 @@
|
|
|
6497
6849
|
"path": "/{repo}/-/pulls/{number}/merge",
|
|
6498
6850
|
"method": "put"
|
|
6499
6851
|
},
|
|
6852
|
+
"repo.pulls.revert.post": {
|
|
6853
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-pr:rw",
|
|
6854
|
+
"operationId": "RevertPullRequest",
|
|
6855
|
+
"tags": [
|
|
6856
|
+
"Pulls"
|
|
6857
|
+
],
|
|
6858
|
+
"summary": "还原一个已合并的 Pull Request",
|
|
6859
|
+
"parameters": [
|
|
6860
|
+
{
|
|
6861
|
+
"description": "repo",
|
|
6862
|
+
"in": "path",
|
|
6863
|
+
"name": "repo",
|
|
6864
|
+
"required": true,
|
|
6865
|
+
"type": "string"
|
|
6866
|
+
},
|
|
6867
|
+
{
|
|
6868
|
+
"description": "Pull Request Number",
|
|
6869
|
+
"in": "path",
|
|
6870
|
+
"name": "number",
|
|
6871
|
+
"required": true,
|
|
6872
|
+
"type": "integer"
|
|
6873
|
+
},
|
|
6874
|
+
{
|
|
6875
|
+
"description": "Revert Pull Request Form",
|
|
6876
|
+
"in": "body",
|
|
6877
|
+
"name": "revert_pull_request_form",
|
|
6878
|
+
"required": true,
|
|
6879
|
+
"schema": {
|
|
6880
|
+
"$ref": "#/definitions/webapi.RevertPullRequestForm"
|
|
6881
|
+
}
|
|
6882
|
+
}
|
|
6883
|
+
],
|
|
6884
|
+
"responses": {
|
|
6885
|
+
"201": {
|
|
6886
|
+
"description": "Created",
|
|
6887
|
+
"schema": {
|
|
6888
|
+
"$ref": "#/definitions/web.CommitRevert"
|
|
6889
|
+
}
|
|
6890
|
+
},
|
|
6891
|
+
"404": {
|
|
6892
|
+
"description": "Not Found",
|
|
6893
|
+
"schema": {
|
|
6894
|
+
"$ref": "#/definitions/die.WebError"
|
|
6895
|
+
}
|
|
6896
|
+
},
|
|
6897
|
+
"500": {
|
|
6898
|
+
"description": "Internal Server Error",
|
|
6899
|
+
"schema": {
|
|
6900
|
+
"$ref": "#/definitions/die.WebError"
|
|
6901
|
+
}
|
|
6902
|
+
}
|
|
6903
|
+
},
|
|
6904
|
+
"path": "/{repo}/-/pulls/{number}/revert",
|
|
6905
|
+
"method": "post"
|
|
6906
|
+
},
|
|
6500
6907
|
"repo.pulls.reviews.post": {
|
|
6501
6908
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-notes:rw",
|
|
6502
6909
|
"operationId": "PostPullReview",
|
|
@@ -6681,6 +7088,13 @@
|
|
|
6681
7088
|
"name": "fileName",
|
|
6682
7089
|
"required": true,
|
|
6683
7090
|
"type": "string"
|
|
7091
|
+
},
|
|
7092
|
+
{
|
|
7093
|
+
"default": false,
|
|
7094
|
+
"description": "true 的话 302 的下载地址有效期为12个小时,但最多只能下载10次",
|
|
7095
|
+
"in": "query",
|
|
7096
|
+
"name": "share",
|
|
7097
|
+
"type": "boolean"
|
|
6684
7098
|
}
|
|
6685
7099
|
],
|
|
6686
7100
|
"responses": {
|
|
@@ -7164,6 +7578,30 @@
|
|
|
7164
7578
|
"path": "/{repo}/-/releases/{release_id}/assets/{asset_id}",
|
|
7165
7579
|
"method": "get"
|
|
7166
7580
|
},
|
|
7581
|
+
"repo.settings.archive.post": {
|
|
7582
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw,repo-code:rw",
|
|
7583
|
+
"operationId": "ArchiveRepo",
|
|
7584
|
+
"tags": [
|
|
7585
|
+
"Repositories"
|
|
7586
|
+
],
|
|
7587
|
+
"summary": "仓库归档",
|
|
7588
|
+
"parameters": [
|
|
7589
|
+
{
|
|
7590
|
+
"description": "repo path",
|
|
7591
|
+
"in": "path",
|
|
7592
|
+
"name": "repo",
|
|
7593
|
+
"required": true,
|
|
7594
|
+
"type": "string"
|
|
7595
|
+
}
|
|
7596
|
+
],
|
|
7597
|
+
"responses": {
|
|
7598
|
+
"200": {
|
|
7599
|
+
"description": "OK"
|
|
7600
|
+
}
|
|
7601
|
+
},
|
|
7602
|
+
"path": "/{repo}/-/settings/archive",
|
|
7603
|
+
"method": "post"
|
|
7604
|
+
},
|
|
7167
7605
|
"repo.settings.branchProtections.list": {
|
|
7168
7606
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:r",
|
|
7169
7607
|
"operationId": "ListBranchProtections",
|
|
@@ -7644,6 +8082,30 @@
|
|
|
7644
8082
|
"path": "/{repo}/-/settings/push-limit",
|
|
7645
8083
|
"method": "put"
|
|
7646
8084
|
},
|
|
8085
|
+
"repo.settings.unarchive.post": {
|
|
8086
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw,repo-code:rw",
|
|
8087
|
+
"operationId": "UnArchiveRepo",
|
|
8088
|
+
"tags": [
|
|
8089
|
+
"Repositories"
|
|
8090
|
+
],
|
|
8091
|
+
"summary": "解除仓库归档",
|
|
8092
|
+
"parameters": [
|
|
8093
|
+
{
|
|
8094
|
+
"description": "repo path",
|
|
8095
|
+
"in": "path",
|
|
8096
|
+
"name": "repo",
|
|
8097
|
+
"required": true,
|
|
8098
|
+
"type": "string"
|
|
8099
|
+
}
|
|
8100
|
+
],
|
|
8101
|
+
"responses": {
|
|
8102
|
+
"200": {
|
|
8103
|
+
"description": "OK"
|
|
8104
|
+
}
|
|
8105
|
+
},
|
|
8106
|
+
"path": "/{repo}/-/settings/unarchive",
|
|
8107
|
+
"method": "post"
|
|
8108
|
+
},
|
|
7647
8109
|
"repo.stars.get": {
|
|
7648
8110
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-basic-info:r",
|
|
7649
8111
|
"operationId": "ListStarUsers",
|
|
@@ -7735,6 +8197,39 @@
|
|
|
7735
8197
|
"path": "/{repo}/-/top-activity-users",
|
|
7736
8198
|
"method": "get"
|
|
7737
8199
|
},
|
|
8200
|
+
"repo.transfer.post": {
|
|
8201
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-manage:rw,repo-code:rw",
|
|
8202
|
+
"operationId": "TransferRepo",
|
|
8203
|
+
"tags": [
|
|
8204
|
+
"Repositories"
|
|
8205
|
+
],
|
|
8206
|
+
"summary": "转移仓库",
|
|
8207
|
+
"parameters": [
|
|
8208
|
+
{
|
|
8209
|
+
"description": "slug",
|
|
8210
|
+
"in": "path",
|
|
8211
|
+
"name": "repo",
|
|
8212
|
+
"required": true,
|
|
8213
|
+
"type": "string"
|
|
8214
|
+
},
|
|
8215
|
+
{
|
|
8216
|
+
"description": "request",
|
|
8217
|
+
"in": "body",
|
|
8218
|
+
"name": "request",
|
|
8219
|
+
"required": true,
|
|
8220
|
+
"schema": {
|
|
8221
|
+
"$ref": "#/definitions/dto.TransferSlugReq"
|
|
8222
|
+
}
|
|
8223
|
+
}
|
|
8224
|
+
],
|
|
8225
|
+
"responses": {
|
|
8226
|
+
"200": {
|
|
8227
|
+
"description": "OK"
|
|
8228
|
+
}
|
|
8229
|
+
},
|
|
8230
|
+
"path": "/{repo}/-/transfer",
|
|
8231
|
+
"method": "post"
|
|
8232
|
+
},
|
|
7738
8233
|
"repo.upload.files.post": {
|
|
7739
8234
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nrepo-contents:rw",
|
|
7740
8235
|
"operationId": "UploadFiles",
|
|
@@ -7910,7 +8405,10 @@
|
|
|
7910
8405
|
"helm",
|
|
7911
8406
|
"maven",
|
|
7912
8407
|
"npm",
|
|
7913
|
-
"ohpm"
|
|
8408
|
+
"ohpm",
|
|
8409
|
+
"pypi",
|
|
8410
|
+
"nuget",
|
|
8411
|
+
"composer"
|
|
7914
8412
|
],
|
|
7915
8413
|
"in": "query",
|
|
7916
8414
|
"name": "type",
|
|
@@ -8041,13 +8539,13 @@
|
|
|
8041
8539
|
"path": "/{slug}/-/packages",
|
|
8042
8540
|
"method": "head"
|
|
8043
8541
|
},
|
|
8044
|
-
"slug.packages.
|
|
8542
|
+
"slug.packages.get": {
|
|
8045
8543
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
|
|
8046
|
-
"operationId": "
|
|
8544
|
+
"operationId": "GetPackage",
|
|
8047
8545
|
"tags": [
|
|
8048
8546
|
"Artifactory"
|
|
8049
8547
|
],
|
|
8050
|
-
"summary": "
|
|
8548
|
+
"summary": "获取某一制品的详细信息。 Get the package detail.",
|
|
8051
8549
|
"parameters": [
|
|
8052
8550
|
{
|
|
8053
8551
|
"description": "Slug",
|
|
@@ -8063,38 +8561,42 @@
|
|
|
8063
8561
|
"helm",
|
|
8064
8562
|
"maven",
|
|
8065
8563
|
"npm",
|
|
8066
|
-
"ohpm"
|
|
8564
|
+
"ohpm",
|
|
8565
|
+
"pypi",
|
|
8566
|
+
"nuget",
|
|
8567
|
+
"composer"
|
|
8067
8568
|
],
|
|
8068
8569
|
"in": "path",
|
|
8069
8570
|
"name": "type",
|
|
8070
8571
|
"required": true,
|
|
8071
8572
|
"type": "string"
|
|
8573
|
+
},
|
|
8574
|
+
{
|
|
8575
|
+
"description": "Name",
|
|
8576
|
+
"in": "path",
|
|
8577
|
+
"name": "name",
|
|
8578
|
+
"required": true,
|
|
8579
|
+
"type": "string"
|
|
8072
8580
|
}
|
|
8073
8581
|
],
|
|
8074
8582
|
"responses": {
|
|
8075
8583
|
"200": {
|
|
8076
8584
|
"description": "OK",
|
|
8077
8585
|
"schema": {
|
|
8078
|
-
"$ref": "#/definitions/dto.
|
|
8079
|
-
}
|
|
8080
|
-
},
|
|
8081
|
-
"400": {
|
|
8082
|
-
"description": "Bad Request",
|
|
8083
|
-
"schema": {
|
|
8084
|
-
"$ref": "#/definitions/die.WebError"
|
|
8586
|
+
"$ref": "#/definitions/dto.PackageDetail"
|
|
8085
8587
|
}
|
|
8086
8588
|
}
|
|
8087
8589
|
},
|
|
8088
|
-
"path": "/{slug}/-/packages/{type}
|
|
8590
|
+
"path": "/{slug}/-/packages/{type}/{name}",
|
|
8089
8591
|
"method": "get"
|
|
8090
8592
|
},
|
|
8091
|
-
"slug.packages.
|
|
8092
|
-
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:
|
|
8093
|
-
"operationId": "
|
|
8593
|
+
"slug.packages.name.tag.delete": {
|
|
8594
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package-delete:rw",
|
|
8595
|
+
"operationId": "DeletePackageTag",
|
|
8094
8596
|
"tags": [
|
|
8095
8597
|
"Artifactory"
|
|
8096
8598
|
],
|
|
8097
|
-
"summary": "
|
|
8599
|
+
"summary": "删除制品标签。 Delete the specific tag under specific package",
|
|
8098
8600
|
"parameters": [
|
|
8099
8601
|
{
|
|
8100
8602
|
"description": "Slug",
|
|
@@ -8110,7 +8612,10 @@
|
|
|
8110
8612
|
"helm",
|
|
8111
8613
|
"maven",
|
|
8112
8614
|
"npm",
|
|
8113
|
-
"ohpm"
|
|
8615
|
+
"ohpm",
|
|
8616
|
+
"pypi",
|
|
8617
|
+
"nuget",
|
|
8618
|
+
"composer"
|
|
8114
8619
|
],
|
|
8115
8620
|
"in": "path",
|
|
8116
8621
|
"name": "type",
|
|
@@ -8118,57 +8623,35 @@
|
|
|
8118
8623
|
"type": "string"
|
|
8119
8624
|
},
|
|
8120
8625
|
{
|
|
8121
|
-
"
|
|
8122
|
-
"
|
|
8123
|
-
"
|
|
8124
|
-
"
|
|
8125
|
-
"type": "
|
|
8126
|
-
},
|
|
8127
|
-
{
|
|
8128
|
-
"default": 10,
|
|
8129
|
-
"description": "Pagination page size",
|
|
8130
|
-
"in": "query",
|
|
8131
|
-
"name": "page_size",
|
|
8132
|
-
"type": "integer"
|
|
8626
|
+
"description": "Name",
|
|
8627
|
+
"in": "path",
|
|
8628
|
+
"name": "name",
|
|
8629
|
+
"required": true,
|
|
8630
|
+
"type": "string"
|
|
8133
8631
|
},
|
|
8134
8632
|
{
|
|
8135
|
-
"description": "
|
|
8136
|
-
"
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
],
|
|
8140
|
-
"in": "query",
|
|
8141
|
-
"name": "ordering",
|
|
8633
|
+
"description": "Tag",
|
|
8634
|
+
"in": "path",
|
|
8635
|
+
"name": "tag",
|
|
8636
|
+
"required": true,
|
|
8142
8637
|
"type": "string"
|
|
8143
8638
|
}
|
|
8144
8639
|
],
|
|
8145
8640
|
"responses": {
|
|
8146
8641
|
"200": {
|
|
8147
|
-
"description": "OK"
|
|
8148
|
-
"schema": {
|
|
8149
|
-
"items": {
|
|
8150
|
-
"$ref": "#/definitions/dto.QuotaRsp"
|
|
8151
|
-
},
|
|
8152
|
-
"type": "array"
|
|
8153
|
-
}
|
|
8154
|
-
},
|
|
8155
|
-
"400": {
|
|
8156
|
-
"description": "Bad Request",
|
|
8157
|
-
"schema": {
|
|
8158
|
-
"$ref": "#/definitions/die.WebError"
|
|
8159
|
-
}
|
|
8642
|
+
"description": "OK"
|
|
8160
8643
|
}
|
|
8161
8644
|
},
|
|
8162
|
-
"path": "/{slug}/-/packages/{type}/-/
|
|
8163
|
-
"method": "
|
|
8645
|
+
"path": "/{slug}/-/packages/{type}/{name}/-/tag/{tag}",
|
|
8646
|
+
"method": "delete"
|
|
8164
8647
|
},
|
|
8165
|
-
"slug.packages.
|
|
8648
|
+
"slug.packages.name.tag.get": {
|
|
8166
8649
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
|
|
8167
|
-
"operationId": "
|
|
8650
|
+
"operationId": "GetPackageTagDetail",
|
|
8168
8651
|
"tags": [
|
|
8169
8652
|
"Artifactory"
|
|
8170
8653
|
],
|
|
8171
|
-
"summary": "
|
|
8654
|
+
"summary": "获取制品标签详情。 Get the specific tag under specific package.",
|
|
8172
8655
|
"parameters": [
|
|
8173
8656
|
{
|
|
8174
8657
|
"description": "Slug",
|
|
@@ -8184,7 +8667,10 @@
|
|
|
8184
8667
|
"helm",
|
|
8185
8668
|
"maven",
|
|
8186
8669
|
"npm",
|
|
8187
|
-
"ohpm"
|
|
8670
|
+
"ohpm",
|
|
8671
|
+
"pypi",
|
|
8672
|
+
"nuget",
|
|
8673
|
+
"composer"
|
|
8188
8674
|
],
|
|
8189
8675
|
"in": "path",
|
|
8190
8676
|
"name": "type",
|
|
@@ -8192,27 +8678,23 @@
|
|
|
8192
8678
|
"type": "string"
|
|
8193
8679
|
},
|
|
8194
8680
|
{
|
|
8195
|
-
"
|
|
8196
|
-
"
|
|
8197
|
-
"
|
|
8198
|
-
"
|
|
8199
|
-
"type": "
|
|
8681
|
+
"description": "Name",
|
|
8682
|
+
"in": "path",
|
|
8683
|
+
"name": "name",
|
|
8684
|
+
"required": true,
|
|
8685
|
+
"type": "string"
|
|
8200
8686
|
},
|
|
8201
8687
|
{
|
|
8202
|
-
"
|
|
8203
|
-
"
|
|
8204
|
-
"
|
|
8205
|
-
"
|
|
8206
|
-
"type": "
|
|
8688
|
+
"description": "Tag",
|
|
8689
|
+
"in": "path",
|
|
8690
|
+
"name": "tag",
|
|
8691
|
+
"required": true,
|
|
8692
|
+
"type": "string"
|
|
8207
8693
|
},
|
|
8208
8694
|
{
|
|
8209
|
-
"description": "
|
|
8210
|
-
"enum": [
|
|
8211
|
-
"used_ascend",
|
|
8212
|
-
"used_descend"
|
|
8213
|
-
],
|
|
8695
|
+
"description": "摘要,容器制品时必须。Digest (SHA256), required for container artifacts.",
|
|
8214
8696
|
"in": "query",
|
|
8215
|
-
"name": "
|
|
8697
|
+
"name": "sha256",
|
|
8216
8698
|
"type": "string"
|
|
8217
8699
|
}
|
|
8218
8700
|
],
|
|
@@ -8220,29 +8702,20 @@
|
|
|
8220
8702
|
"200": {
|
|
8221
8703
|
"description": "OK",
|
|
8222
8704
|
"schema": {
|
|
8223
|
-
"
|
|
8224
|
-
"$ref": "#/definitions/dto.QuotaRsp"
|
|
8225
|
-
},
|
|
8226
|
-
"type": "array"
|
|
8227
|
-
}
|
|
8228
|
-
},
|
|
8229
|
-
"400": {
|
|
8230
|
-
"description": "Bad Request",
|
|
8231
|
-
"schema": {
|
|
8232
|
-
"$ref": "#/definitions/die.WebError"
|
|
8705
|
+
"$ref": "#/definitions/dto.TagDetail"
|
|
8233
8706
|
}
|
|
8234
8707
|
}
|
|
8235
8708
|
},
|
|
8236
|
-
"path": "/{slug}/-/packages/{type}/-/
|
|
8709
|
+
"path": "/{slug}/-/packages/{type}/{name}/-/tag/{tag}",
|
|
8237
8710
|
"method": "get"
|
|
8238
8711
|
},
|
|
8239
|
-
"slug.packages.get": {
|
|
8712
|
+
"slug.packages.pkgname.tags.get": {
|
|
8240
8713
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
|
|
8241
|
-
"operationId": "
|
|
8714
|
+
"operationId": "ListPackageTags",
|
|
8242
8715
|
"tags": [
|
|
8243
8716
|
"Artifactory"
|
|
8244
8717
|
],
|
|
8245
|
-
"summary": "
|
|
8718
|
+
"summary": "查询制品标签列表。 List all tags under specific package.",
|
|
8246
8719
|
"parameters": [
|
|
8247
8720
|
{
|
|
8248
8721
|
"description": "Slug",
|
|
@@ -8258,7 +8731,10 @@
|
|
|
8258
8731
|
"helm",
|
|
8259
8732
|
"maven",
|
|
8260
8733
|
"npm",
|
|
8261
|
-
"ohpm"
|
|
8734
|
+
"ohpm",
|
|
8735
|
+
"pypi",
|
|
8736
|
+
"nuget",
|
|
8737
|
+
"composer"
|
|
8262
8738
|
],
|
|
8263
8739
|
"in": "path",
|
|
8264
8740
|
"name": "type",
|
|
@@ -8266,31 +8742,61 @@
|
|
|
8266
8742
|
"type": "string"
|
|
8267
8743
|
},
|
|
8268
8744
|
{
|
|
8269
|
-
"description": "
|
|
8745
|
+
"description": "Package name",
|
|
8270
8746
|
"in": "path",
|
|
8271
|
-
"name": "
|
|
8747
|
+
"name": "pkgname",
|
|
8272
8748
|
"required": true,
|
|
8273
8749
|
"type": "string"
|
|
8750
|
+
},
|
|
8751
|
+
{
|
|
8752
|
+
"default": 1,
|
|
8753
|
+
"description": "Pagination page number",
|
|
8754
|
+
"in": "query",
|
|
8755
|
+
"name": "page",
|
|
8756
|
+
"type": "integer"
|
|
8757
|
+
},
|
|
8758
|
+
{
|
|
8759
|
+
"default": 10,
|
|
8760
|
+
"description": "Pagination page size",
|
|
8761
|
+
"in": "query",
|
|
8762
|
+
"name": "page_size",
|
|
8763
|
+
"type": "integer"
|
|
8764
|
+
},
|
|
8765
|
+
{
|
|
8766
|
+
"description": "Ordering type",
|
|
8767
|
+
"enum": [
|
|
8768
|
+
"pull_count",
|
|
8769
|
+
"last_push_at"
|
|
8770
|
+
],
|
|
8771
|
+
"in": "query",
|
|
8772
|
+
"name": "ordering",
|
|
8773
|
+
"type": "string"
|
|
8774
|
+
},
|
|
8775
|
+
{
|
|
8776
|
+
"description": "Key word",
|
|
8777
|
+
"in": "query",
|
|
8778
|
+
"name": "name",
|
|
8779
|
+
"type": "string"
|
|
8274
8780
|
}
|
|
8275
8781
|
],
|
|
8276
8782
|
"responses": {
|
|
8277
8783
|
"200": {
|
|
8278
8784
|
"description": "OK",
|
|
8279
8785
|
"schema": {
|
|
8280
|
-
"$ref": "#/definitions/dto.
|
|
8786
|
+
"$ref": "#/definitions/dto.Tag"
|
|
8281
8787
|
}
|
|
8282
8788
|
}
|
|
8283
8789
|
},
|
|
8284
|
-
"path": "/{slug}/-/packages/{type}/{
|
|
8790
|
+
"path": "/{slug}/-/packages/{type}/{pkgname}/-/tags",
|
|
8285
8791
|
"method": "get"
|
|
8286
8792
|
},
|
|
8287
|
-
"slug.
|
|
8288
|
-
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package
|
|
8289
|
-
"operationId": "
|
|
8793
|
+
"slug.registry.quota.get": {
|
|
8794
|
+
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
|
|
8795
|
+
"operationId": "GetRegistryQuota",
|
|
8290
8796
|
"tags": [
|
|
8291
8797
|
"Artifactory"
|
|
8292
8798
|
],
|
|
8293
|
-
"summary": "
|
|
8799
|
+
"summary": "查询制品配额。 Get quota of specific registry.",
|
|
8294
8800
|
"parameters": [
|
|
8295
8801
|
{
|
|
8296
8802
|
"description": "Slug",
|
|
@@ -8306,43 +8812,41 @@
|
|
|
8306
8812
|
"helm",
|
|
8307
8813
|
"maven",
|
|
8308
8814
|
"npm",
|
|
8309
|
-
"ohpm"
|
|
8815
|
+
"ohpm",
|
|
8816
|
+
"pypi",
|
|
8817
|
+
"nuget",
|
|
8818
|
+
"composer"
|
|
8310
8819
|
],
|
|
8311
|
-
"in": "
|
|
8820
|
+
"in": "query",
|
|
8312
8821
|
"name": "type",
|
|
8313
8822
|
"required": true,
|
|
8314
8823
|
"type": "string"
|
|
8315
|
-
},
|
|
8316
|
-
{
|
|
8317
|
-
"description": "Name",
|
|
8318
|
-
"in": "path",
|
|
8319
|
-
"name": "name",
|
|
8320
|
-
"required": true,
|
|
8321
|
-
"type": "string"
|
|
8322
|
-
},
|
|
8323
|
-
{
|
|
8324
|
-
"description": "Tag",
|
|
8325
|
-
"in": "path",
|
|
8326
|
-
"name": "tag",
|
|
8327
|
-
"required": true,
|
|
8328
|
-
"type": "string"
|
|
8329
8824
|
}
|
|
8330
8825
|
],
|
|
8331
8826
|
"responses": {
|
|
8332
8827
|
"200": {
|
|
8333
|
-
"description": "OK"
|
|
8828
|
+
"description": "OK",
|
|
8829
|
+
"schema": {
|
|
8830
|
+
"$ref": "#/definitions/dto.RegistryLevelQuotaRsp"
|
|
8831
|
+
}
|
|
8832
|
+
},
|
|
8833
|
+
"400": {
|
|
8834
|
+
"description": "Bad Request",
|
|
8835
|
+
"schema": {
|
|
8836
|
+
"$ref": "#/definitions/die.WebError"
|
|
8837
|
+
}
|
|
8334
8838
|
}
|
|
8335
8839
|
},
|
|
8336
|
-
"path": "/{slug}/-/
|
|
8337
|
-
"method": "
|
|
8840
|
+
"path": "/{slug}/-/registry/-/quota",
|
|
8841
|
+
"method": "get"
|
|
8338
8842
|
},
|
|
8339
|
-
"slug.
|
|
8843
|
+
"slug.registry.quotas.list": {
|
|
8340
8844
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
|
|
8341
|
-
"operationId": "
|
|
8845
|
+
"operationId": "GetRegistryQuotas",
|
|
8342
8846
|
"tags": [
|
|
8343
8847
|
"Artifactory"
|
|
8344
8848
|
],
|
|
8345
|
-
"summary": "
|
|
8849
|
+
"summary": "查询全部制品配额。 Get quotas of packages under one registry.",
|
|
8346
8850
|
"parameters": [
|
|
8347
8851
|
{
|
|
8348
8852
|
"description": "Slug",
|
|
@@ -8358,31 +8862,38 @@
|
|
|
8358
8862
|
"helm",
|
|
8359
8863
|
"maven",
|
|
8360
8864
|
"npm",
|
|
8361
|
-
"ohpm"
|
|
8865
|
+
"ohpm",
|
|
8866
|
+
"pypi",
|
|
8867
|
+
"nuget",
|
|
8868
|
+
"composer"
|
|
8362
8869
|
],
|
|
8363
|
-
"in": "
|
|
8870
|
+
"in": "query",
|
|
8364
8871
|
"name": "type",
|
|
8365
8872
|
"required": true,
|
|
8366
8873
|
"type": "string"
|
|
8367
8874
|
},
|
|
8368
8875
|
{
|
|
8369
|
-
"
|
|
8370
|
-
"
|
|
8371
|
-
"
|
|
8372
|
-
"
|
|
8373
|
-
"type": "
|
|
8876
|
+
"default": 1,
|
|
8877
|
+
"description": "Pagination page number",
|
|
8878
|
+
"in": "query",
|
|
8879
|
+
"name": "page",
|
|
8880
|
+
"type": "integer"
|
|
8374
8881
|
},
|
|
8375
8882
|
{
|
|
8376
|
-
"
|
|
8377
|
-
"
|
|
8378
|
-
"
|
|
8379
|
-
"
|
|
8380
|
-
"type": "
|
|
8883
|
+
"default": 10,
|
|
8884
|
+
"description": "Pagination page size",
|
|
8885
|
+
"in": "query",
|
|
8886
|
+
"name": "page_size",
|
|
8887
|
+
"type": "integer"
|
|
8381
8888
|
},
|
|
8382
8889
|
{
|
|
8383
|
-
"description": "
|
|
8890
|
+
"description": "Ordering type",
|
|
8891
|
+
"enum": [
|
|
8892
|
+
"used_ascend",
|
|
8893
|
+
"used_descend"
|
|
8894
|
+
],
|
|
8384
8895
|
"in": "query",
|
|
8385
|
-
"name": "
|
|
8896
|
+
"name": "ordering",
|
|
8386
8897
|
"type": "string"
|
|
8387
8898
|
}
|
|
8388
8899
|
],
|
|
@@ -8390,20 +8901,29 @@
|
|
|
8390
8901
|
"200": {
|
|
8391
8902
|
"description": "OK",
|
|
8392
8903
|
"schema": {
|
|
8393
|
-
"
|
|
8904
|
+
"items": {
|
|
8905
|
+
"$ref": "#/definitions/dto.QuotaRsp"
|
|
8906
|
+
},
|
|
8907
|
+
"type": "array"
|
|
8908
|
+
}
|
|
8909
|
+
},
|
|
8910
|
+
"400": {
|
|
8911
|
+
"description": "Bad Request",
|
|
8912
|
+
"schema": {
|
|
8913
|
+
"$ref": "#/definitions/die.WebError"
|
|
8394
8914
|
}
|
|
8395
8915
|
}
|
|
8396
8916
|
},
|
|
8397
|
-
"path": "/{slug}/-/
|
|
8917
|
+
"path": "/{slug}/-/registry/-/quotas",
|
|
8398
8918
|
"method": "get"
|
|
8399
8919
|
},
|
|
8400
|
-
"slug.
|
|
8920
|
+
"slug.registry.quotas.download.list": {
|
|
8401
8921
|
"description": "访问令牌调用此接口需包含以下权限。Required permissions for access token. \nregistry-package:r",
|
|
8402
|
-
"operationId": "
|
|
8922
|
+
"operationId": "DownloadRegistryQuotas",
|
|
8403
8923
|
"tags": [
|
|
8404
8924
|
"Artifactory"
|
|
8405
8925
|
],
|
|
8406
|
-
"summary": "
|
|
8926
|
+
"summary": "下载制品配额信息。 Download registry quota details.",
|
|
8407
8927
|
"parameters": [
|
|
8408
8928
|
{
|
|
8409
8929
|
"description": "Slug",
|
|
@@ -8419,20 +8939,16 @@
|
|
|
8419
8939
|
"helm",
|
|
8420
8940
|
"maven",
|
|
8421
8941
|
"npm",
|
|
8422
|
-
"ohpm"
|
|
8942
|
+
"ohpm",
|
|
8943
|
+
"pypi",
|
|
8944
|
+
"nuget",
|
|
8945
|
+
"composer"
|
|
8423
8946
|
],
|
|
8424
|
-
"in": "
|
|
8947
|
+
"in": "query",
|
|
8425
8948
|
"name": "type",
|
|
8426
8949
|
"required": true,
|
|
8427
8950
|
"type": "string"
|
|
8428
8951
|
},
|
|
8429
|
-
{
|
|
8430
|
-
"description": "Package name",
|
|
8431
|
-
"in": "path",
|
|
8432
|
-
"name": "pkgname",
|
|
8433
|
-
"required": true,
|
|
8434
|
-
"type": "string"
|
|
8435
|
-
},
|
|
8436
8952
|
{
|
|
8437
8953
|
"default": 1,
|
|
8438
8954
|
"description": "Pagination page number",
|
|
@@ -8450,29 +8966,32 @@
|
|
|
8450
8966
|
{
|
|
8451
8967
|
"description": "Ordering type",
|
|
8452
8968
|
"enum": [
|
|
8453
|
-
"
|
|
8454
|
-
"
|
|
8969
|
+
"used_ascend",
|
|
8970
|
+
"used_descend"
|
|
8455
8971
|
],
|
|
8456
8972
|
"in": "query",
|
|
8457
8973
|
"name": "ordering",
|
|
8458
8974
|
"type": "string"
|
|
8459
|
-
},
|
|
8460
|
-
{
|
|
8461
|
-
"description": "Key word",
|
|
8462
|
-
"in": "query",
|
|
8463
|
-
"name": "name",
|
|
8464
|
-
"type": "string"
|
|
8465
8975
|
}
|
|
8466
8976
|
],
|
|
8467
8977
|
"responses": {
|
|
8468
8978
|
"200": {
|
|
8469
8979
|
"description": "OK",
|
|
8470
8980
|
"schema": {
|
|
8471
|
-
"
|
|
8981
|
+
"items": {
|
|
8982
|
+
"$ref": "#/definitions/dto.QuotaRsp"
|
|
8983
|
+
},
|
|
8984
|
+
"type": "array"
|
|
8985
|
+
}
|
|
8986
|
+
},
|
|
8987
|
+
"400": {
|
|
8988
|
+
"description": "Bad Request",
|
|
8989
|
+
"schema": {
|
|
8990
|
+
"$ref": "#/definitions/die.WebError"
|
|
8472
8991
|
}
|
|
8473
8992
|
}
|
|
8474
8993
|
},
|
|
8475
|
-
"path": "/{slug}/-/
|
|
8994
|
+
"path": "/{slug}/-/registry/-/quotas/download",
|
|
8476
8995
|
"method": "get"
|
|
8477
8996
|
}
|
|
8478
8997
|
}
|