Skip to content

Commit 9b4ec9b

Browse files
authored
Upgrade OpenAPI spec version to 5.4.85 (#3)
1 parent bf0f17f commit 9b4ec9b

File tree

181 files changed

+18948
-4190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+18948
-4190
lines changed

README.md

+39-17
Large diffs are not rendered by default.

docs/Api/ActivityApi.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ No authorization required
251251
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
252252

253253
# **getV5NotificationsMessages**
254-
> \Gitee\Model\UserMessage[] getV5NotificationsMessages($accessToken, $unread, $since, $before, $ids, $page, $perPage)
254+
> \Gitee\Model\UserMessageList getV5NotificationsMessages($accessToken, $unread, $since, $before, $ids, $page, $perPage)
255255
256256
列出授权用户的所有私信
257257

@@ -298,7 +298,7 @@ Name | Type | Description | Notes
298298

299299
### Return type
300300

301-
[**\Gitee\Model\UserMessage[]**](../Model/UserMessage.md)
301+
[**\Gitee\Model\UserMessageList**](../Model/UserMessageList.md)
302302

303303
### Authorization
304304

@@ -363,7 +363,7 @@ No authorization required
363363
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
364364

365365
# **getV5NotificationsThreads**
366-
> \Gitee\Model\UserNotification[] getV5NotificationsThreads($accessToken, $unread, $participating, $type, $since, $before, $ids, $page, $perPage)
366+
> \Gitee\Model\UserNotificationList getV5NotificationsThreads($accessToken, $unread, $participating, $type, $since, $before, $ids, $page, $perPage)
367367
368368
列出授权用户的所有通知
369369

@@ -414,7 +414,7 @@ Name | Type | Description | Notes
414414

415415
### Return type
416416

417-
[**\Gitee\Model\UserNotification[]**](../Model/UserNotification.md)
417+
[**\Gitee\Model\UserNotificationList**](../Model/UserNotificationList.md)
418418

419419
### Authorization
420420

@@ -591,7 +591,7 @@ No authorization required
591591
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
592592

593593
# **getV5ReposOwnerRepoNotifications**
594-
> \Gitee\Model\UserNotification[] getV5ReposOwnerRepoNotifications($owner, $repo, $accessToken, $unread, $participating, $type, $since, $before, $ids, $page, $perPage)
594+
> \Gitee\Model\UserNotificationList getV5ReposOwnerRepoNotifications($owner, $repo, $accessToken, $unread, $participating, $type, $since, $before, $ids, $page, $perPage)
595595
596596
列出一个仓库里的通知
597597

@@ -646,7 +646,7 @@ Name | Type | Description | Notes
646646

647647
### Return type
648648

649-
[**\Gitee\Model\UserNotification[]**](../Model/UserNotification.md)
649+
[**\Gitee\Model\UserNotificationList**](../Model/UserNotificationList.md)
650650

651651
### Authorization
652652

docs/Api/ChecksApi.md

+404
Large diffs are not rendered by default.

docs/Api/EmailsApi.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Method | HTTP request | Description
88

99

1010
# **getV5Emails**
11-
> \Gitee\Model\UserEmail getV5Emails($accessToken)
11+
> \Gitee\Model\UserEmail[] getV5Emails($accessToken)
1212
1313
获取授权用户的全部邮箱
1414

@@ -43,7 +43,7 @@ Name | Type | Description | Notes
4343

4444
### Return type
4545

46-
[**\Gitee\Model\UserEmail**](../Model/UserEmail.md)
46+
[**\Gitee\Model\UserEmail[]**](../Model/UserEmail.md)
4747

4848
### Authorization
4949

docs/Api/EnterprisesApi.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ No authorization required
315315
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
316316

317317
# **getV5EnterprisesEnterpriseMembersSearch**
318-
> getV5EnterprisesEnterpriseMembersSearch($enterprise, $queryType, $queryValue, $accessToken)
318+
> \Gitee\Model\EnterpriseMember getV5EnterprisesEnterpriseMembersSearch($enterprise, $queryType, $queryValue, $accessToken)
319319
320320
获取企业成员信息(通过用户名/邮箱)
321321

@@ -337,7 +337,8 @@ $queryValue = "queryValue_example"; // string | 查询值
337337
$accessToken = "accessToken_example"; // string | 用户授权码
338338

339339
try {
340-
$apiInstance->getV5EnterprisesEnterpriseMembersSearch($enterprise, $queryType, $queryValue, $accessToken);
340+
$result = $apiInstance->getV5EnterprisesEnterpriseMembersSearch($enterprise, $queryType, $queryValue, $accessToken);
341+
print_r($result);
341342
} catch (Exception $e) {
342343
echo 'Exception when calling EnterprisesApi->getV5EnterprisesEnterpriseMembersSearch: ', $e->getMessage(), PHP_EOL;
343344
}
@@ -355,7 +356,7 @@ Name | Type | Description | Notes
355356

356357
### Return type
357358

358-
void (empty response body)
359+
[**\Gitee\Model\EnterpriseMember**](../Model/EnterpriseMember.md)
359360

360361
### Authorization
361362

docs/Api/GistsApi.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ $apiInstance = new Gitee\Api\GistsApi(
674674
);
675675
$id = "id_example"; // string | 代码片段的ID
676676
$accessToken = "accessToken_example"; // string | 用户授权码
677-
$files = array('key' => "files_example"); // map[string,string] | Hash形式的代码片段文件名以及文件内容。如: { \"file1.txt\": { \"content\": \"String file contents\" } }
677+
$files = array("files_example"); // string[] | Hash形式的代码片段文件名以及文件内容。如: { \"file1.txt\": { \"content\": \"String file contents\" } }
678678
$description = "description_example"; // string | 代码片段描述,1~30个字符
679679

680680
try {
@@ -692,7 +692,7 @@ Name | Type | Description | Notes
692692
------------- | ------------- | ------------- | -------------
693693
**id** | **string**| 代码片段的ID |
694694
**accessToken** | **string**| 用户授权码 | [optional]
695-
**files** | [**map[string,string]**](../Model/string.md)| Hash形式的代码片段文件名以及文件内容。如: { \"file1.txt\": { \"content\": \"String file contents\" } } | [optional]
695+
**files** | [**string[]**](../Model/string.md)| Hash形式的代码片段文件名以及文件内容。如: { \"file1.txt\": { \"content\": \"String file contents\" } } | [optional]
696696
**description** | **string**| 代码片段描述,1~30个字符 | [optional]
697697

698698
### Return type
@@ -727,7 +727,7 @@ $apiInstance = new Gitee\Api\GistsApi(
727727
// This is optional, `GuzzleHttp\Client` will be used as default.
728728
new GuzzleHttp\Client()
729729
);
730-
$files = array('key' => "files_example"); // map[string,string] | Hash形式的代码片段文件名以及文件内容。如: { \"file1.txt\": { \"content\": \"String file contents\" } }
730+
$files = array("files_example"); // string[] | Hash形式的代码片段文件名以及文件内容。如: { \"file1.txt\": { \"content\": \"String file contents\" } }
731731
$description = "description_example"; // string | 代码片段描述,1~30个字符
732732
$accessToken = "accessToken_example"; // string | 用户授权码
733733
$public = true; // bool | 公开/私有,默认: 私有
@@ -745,7 +745,7 @@ try {
745745

746746
Name | Type | Description | Notes
747747
------------- | ------------- | ------------- | -------------
748-
**files** | [**map[string,string]**](../Model/string.md)| Hash形式的代码片段文件名以及文件内容。如: { \"file1.txt\": { \"content\": \"String file contents\" } } |
748+
**files** | [**string[]**](../Model/string.md)| Hash形式的代码片段文件名以及文件内容。如: { \"file1.txt\": { \"content\": \"String file contents\" } } |
749749
**description** | **string**| 代码片段描述,1~30个字符 |
750750
**accessToken** | **string**| 用户授权码 | [optional]
751751
**public** | **bool**| 公开/私有,默认: 私有 | [optional]

docs/Api/IssuesApi.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ No authorization required
726726
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
727727

728728
# **getV5ReposOwnerRepoIssuesComments**
729-
> \Gitee\Model\Note getV5ReposOwnerRepoIssuesComments($owner, $repo, $accessToken, $sort, $direction, $since, $page, $perPage)
729+
> \Gitee\Model\Note[] getV5ReposOwnerRepoIssuesComments($owner, $repo, $accessToken, $sort, $direction, $since, $page, $perPage)
730730
731731
获取仓库所有Issue的评论
732732

@@ -775,7 +775,7 @@ Name | Type | Description | Notes
775775

776776
### Return type
777777

778-
[**\Gitee\Model\Note**](../Model/Note.md)
778+
[**\Gitee\Model\Note[]**](../Model/Note.md)
779779

780780
### Authorization
781781

@@ -899,7 +899,7 @@ No authorization required
899899
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
900900

901901
# **getV5ReposOwnerRepoIssuesNumberComments**
902-
> \Gitee\Model\Note getV5ReposOwnerRepoIssuesNumberComments($owner, $repo, $number, $accessToken, $since, $page, $perPage, $order)
902+
> \Gitee\Model\Note[] getV5ReposOwnerRepoIssuesNumberComments($owner, $repo, $number, $accessToken, $since, $page, $perPage, $order)
903903
904904
获取仓库某个Issue所有的评论
905905

@@ -948,7 +948,7 @@ Name | Type | Description | Notes
948948

949949
### Return type
950950

951-
[**\Gitee\Model\Note**](../Model/Note.md)
951+
[**\Gitee\Model\Note[]**](../Model/Note.md)
952952

953953
### Authorization
954954

docs/Api/LabelsApi.md

+62-8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Method | HTTP request | Description
1313
[**getV5ReposOwnerRepoIssuesNumberLabels**](LabelsApi.md#getV5ReposOwnerRepoIssuesNumberLabels) | **GET** /v5/repos/{owner}/{repo}/issues/{number}/labels | 获取仓库任务的所有标签
1414
[**getV5ReposOwnerRepoLabels**](LabelsApi.md#getV5ReposOwnerRepoLabels) | **GET** /v5/repos/{owner}/{repo}/labels | 获取仓库所有任务标签
1515
[**getV5ReposOwnerRepoLabelsName**](LabelsApi.md#getV5ReposOwnerRepoLabelsName) | **GET** /v5/repos/{owner}/{repo}/labels/{name} | 根据标签名称获取单个标签
16+
[**getV5ReposOwnerRepoProjectLabels**](LabelsApi.md#getV5ReposOwnerRepoProjectLabels) | **GET** /v5/repos/{owner}/{repo}/project_labels | 获取仓库所有标签
1617
[**patchV5ReposOwnerRepoLabelsOriginalName**](LabelsApi.md#patchV5ReposOwnerRepoLabelsOriginalName) | **PATCH** /v5/repos/{owner}/{repo}/labels/{original_name} | 更新一个仓库任务标签
1718
[**postV5ReposOwnerRepoIssuesNumberLabels**](LabelsApi.md#postV5ReposOwnerRepoIssuesNumberLabels) | **POST** /v5/repos/{owner}/{repo}/issues/{number}/labels | 创建Issue标签
1819
[**postV5ReposOwnerRepoLabels**](LabelsApi.md#postV5ReposOwnerRepoLabels) | **POST** /v5/repos/{owner}/{repo}/labels | 创建仓库任务标签
@@ -506,6 +507,59 @@ No authorization required
506507

507508
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
508509

510+
# **getV5ReposOwnerRepoProjectLabels**
511+
> \Gitee\Model\ProjectLabel[] getV5ReposOwnerRepoProjectLabels($owner, $repo, $accessToken)
512+
513+
获取仓库所有标签
514+
515+
获取仓库所有标签
516+
517+
### Example
518+
```php
519+
<?php
520+
require_once(__DIR__ . '/vendor/autoload.php');
521+
522+
$apiInstance = new Gitee\Api\LabelsApi(
523+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
524+
// This is optional, `GuzzleHttp\Client` will be used as default.
525+
new GuzzleHttp\Client()
526+
);
527+
$owner = "owner_example"; // string | 仓库所属空间地址(企业、组织或个人的地址path)
528+
$repo = "repo_example"; // string | 仓库路径(path)
529+
$accessToken = "accessToken_example"; // string | 用户授权码
530+
531+
try {
532+
$result = $apiInstance->getV5ReposOwnerRepoProjectLabels($owner, $repo, $accessToken);
533+
print_r($result);
534+
} catch (Exception $e) {
535+
echo 'Exception when calling LabelsApi->getV5ReposOwnerRepoProjectLabels: ', $e->getMessage(), PHP_EOL;
536+
}
537+
?>
538+
```
539+
540+
### Parameters
541+
542+
Name | Type | Description | Notes
543+
------------- | ------------- | ------------- | -------------
544+
**owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) |
545+
**repo** | **string**| 仓库路径(path) |
546+
**accessToken** | **string**| 用户授权码 | [optional]
547+
548+
### Return type
549+
550+
[**\Gitee\Model\ProjectLabel[]**](../Model/ProjectLabel.md)
551+
552+
### Authorization
553+
554+
No authorization required
555+
556+
### HTTP request headers
557+
558+
- **Content-Type**: Not defined
559+
- **Accept**: application/json
560+
561+
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
562+
509563
# **patchV5ReposOwnerRepoLabelsOriginalName**
510564
> \Gitee\Model\Label patchV5ReposOwnerRepoLabelsOriginalName($owner, $repo, $originalName, $accessToken, $name, $color)
511565
@@ -566,7 +620,7 @@ No authorization required
566620
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
567621

568622
# **postV5ReposOwnerRepoIssuesNumberLabels**
569-
> \Gitee\Model\Label postV5ReposOwnerRepoIssuesNumberLabels($owner, $repo, $number, $body, $accessToken)
623+
> \Gitee\Model\Label[] postV5ReposOwnerRepoIssuesNumberLabels($owner, $repo, $number, $body, $accessToken)
570624
571625
创建Issue标签
572626

@@ -609,7 +663,7 @@ Name | Type | Description | Notes
609663

610664
### Return type
611665

612-
[**\Gitee\Model\Label**](../Model/Label.md)
666+
[**\Gitee\Model\Label[]**](../Model/Label.md)
613667

614668
### Authorization
615669

@@ -680,7 +734,7 @@ No authorization required
680734
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
681735

682736
# **postV5ReposOwnerRepoProjectLabels**
683-
> \Gitee\Model\ProjectLabel postV5ReposOwnerRepoProjectLabels($owner, $repo, $body, $accessToken)
737+
> \Gitee\Model\ProjectLabel[] postV5ReposOwnerRepoProjectLabels($owner, $repo, $body, $accessToken)
684738
685739
添加仓库标签
686740

@@ -721,7 +775,7 @@ Name | Type | Description | Notes
721775

722776
### Return type
723777

724-
[**\Gitee\Model\ProjectLabel**](../Model/ProjectLabel.md)
778+
[**\Gitee\Model\ProjectLabel[]**](../Model/ProjectLabel.md)
725779

726780
### Authorization
727781

@@ -735,7 +789,7 @@ No authorization required
735789
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
736790

737791
# **putV5ReposOwnerRepoIssuesNumberLabels**
738-
> \Gitee\Model\Label putV5ReposOwnerRepoIssuesNumberLabels($owner, $repo, $number, $body, $accessToken)
792+
> \Gitee\Model\Label[] putV5ReposOwnerRepoIssuesNumberLabels($owner, $repo, $number, $body, $accessToken)
739793
740794
替换Issue所有标签
741795

@@ -778,7 +832,7 @@ Name | Type | Description | Notes
778832

779833
### Return type
780834

781-
[**\Gitee\Model\Label**](../Model/Label.md)
835+
[**\Gitee\Model\Label[]**](../Model/Label.md)
782836

783837
### Authorization
784838

@@ -792,7 +846,7 @@ No authorization required
792846
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
793847

794848
# **putV5ReposOwnerRepoProjectLabels**
795-
> \Gitee\Model\ProjectLabel putV5ReposOwnerRepoProjectLabels($owner, $repo, $body, $accessToken)
849+
> \Gitee\Model\ProjectLabel[] putV5ReposOwnerRepoProjectLabels($owner, $repo, $body, $accessToken)
796850
797851
替换所有仓库标签
798852

@@ -833,7 +887,7 @@ Name | Type | Description | Notes
833887

834888
### Return type
835889

836-
[**\Gitee\Model\ProjectLabel**](../Model/ProjectLabel.md)
890+
[**\Gitee\Model\ProjectLabel[]**](../Model/ProjectLabel.md)
837891

838892
### Authorization
839893

docs/Api/MilestonesApi.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ $owner = "owner_example"; // string | 仓库所属空间地址(企业、组织
204204
$repo = "repo_example"; // string | 仓库路径(path)
205205
$number = 56; // int | 里程碑序号(id)
206206
$title = "title_example"; // string | 里程碑标题
207-
$dueOn = "dueOn_example"; // string | 里程碑的截止日期
207+
$dueOn = new \DateTime("2013-10-20"); // \DateTime | 里程碑的截止日期
208208
$accessToken = "accessToken_example"; // string | 用户授权码
209209
$state = "open"; // string | 里程碑状态: open, closed, all。默认: open
210210
$description = "description_example"; // string | 里程碑具体描述
@@ -226,7 +226,7 @@ Name | Type | Description | Notes
226226
**repo** | **string**| 仓库路径(path) |
227227
**number** | **int**| 里程碑序号(id) |
228228
**title** | **string**| 里程碑标题 |
229-
**dueOn** | **string**| 里程碑的截止日期 |
229+
**dueOn** | **\DateTime**| 里程碑的截止日期 |
230230
**accessToken** | **string**| 用户授权码 | [optional]
231231
**state** | **string**| 里程碑状态: open, closed, all。默认: open | [optional] [default to open]
232232
**description** | **string**| 里程碑具体描述 | [optional]
@@ -266,7 +266,7 @@ $apiInstance = new Gitee\Api\MilestonesApi(
266266
$owner = "owner_example"; // string | 仓库所属空间地址(企业、组织或个人的地址path)
267267
$repo = "repo_example"; // string | 仓库路径(path)
268268
$title = "title_example"; // string | 里程碑标题
269-
$dueOn = "dueOn_example"; // string | 里程碑的截止日期
269+
$dueOn = new \DateTime("2013-10-20"); // \DateTime | 里程碑的截止日期
270270
$accessToken = "accessToken_example"; // string | 用户授权码
271271
$state = "open"; // string | 里程碑状态: open, closed, all。默认: open
272272
$description = "description_example"; // string | 里程碑具体描述
@@ -287,7 +287,7 @@ Name | Type | Description | Notes
287287
**owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) |
288288
**repo** | **string**| 仓库路径(path) |
289289
**title** | **string**| 里程碑标题 |
290-
**dueOn** | **string**| 里程碑的截止日期 |
290+
**dueOn** | **\DateTime**| 里程碑的截止日期 |
291291
**accessToken** | **string**| 用户授权码 | [optional]
292292
**state** | **string**| 里程碑状态: open, closed, all。默认: open | [optional] [default to open]
293293
**description** | **string**| 里程碑具体描述 | [optional]

docs/Api/OrganizationsApi.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ No authorization required
123123
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
124124

125125
# **getV5OrgsOrg**
126-
> \Gitee\Model\Group getV5OrgsOrg($org, $accessToken)
126+
> \Gitee\Model\GroupDetail getV5OrgsOrg($org, $accessToken)
127127
128128
获取一个组织
129129

@@ -160,7 +160,7 @@ Name | Type | Description | Notes
160160

161161
### Return type
162162

163-
[**\Gitee\Model\Group**](../Model/Group.md)
163+
[**\Gitee\Model\GroupDetail**](../Model/GroupDetail.md)
164164

165165
### Authorization
166166

0 commit comments

Comments
 (0)