gitee.com/openeuler/go-gitee@v0.0.0-20220530104019-3af895bc380c/docs/RepositoriesApi.md (about) 1 # \RepositoriesApi 2 3 All URIs are relative to *https://gitee.com/api* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**DeleteV5ReposOwnerRepo**](RepositoriesApi.md#DeleteV5ReposOwnerRepo) | **Delete** /v5/repos/{owner}/{repo} | 删除一个仓库 8 [**DeleteV5ReposOwnerRepoBranchesBranchProtection**](RepositoriesApi.md#DeleteV5ReposOwnerRepoBranchesBranchProtection) | **Delete** /v5/repos/{owner}/{repo}/branches/{branch}/protection | 取消保护分支的设置 9 [**DeleteV5ReposOwnerRepoCollaboratorsUsername**](RepositoriesApi.md#DeleteV5ReposOwnerRepoCollaboratorsUsername) | **Delete** /v5/repos/{owner}/{repo}/collaborators/{username} | 移除仓库成员 10 [**DeleteV5ReposOwnerRepoCommentsId**](RepositoriesApi.md#DeleteV5ReposOwnerRepoCommentsId) | **Delete** /v5/repos/{owner}/{repo}/comments/{id} | 删除Commit评论 11 [**DeleteV5ReposOwnerRepoContentsPath**](RepositoriesApi.md#DeleteV5ReposOwnerRepoContentsPath) | **Delete** /v5/repos/{owner}/{repo}/contents/{path} | 删除文件 12 [**DeleteV5ReposOwnerRepoKeysEnableId**](RepositoriesApi.md#DeleteV5ReposOwnerRepoKeysEnableId) | **Delete** /v5/repos/{owner}/{repo}/keys/enable/{id} | 停用仓库公钥 13 [**DeleteV5ReposOwnerRepoKeysId**](RepositoriesApi.md#DeleteV5ReposOwnerRepoKeysId) | **Delete** /v5/repos/{owner}/{repo}/keys/{id} | 删除一个仓库公钥 14 [**DeleteV5ReposOwnerRepoReleasesId**](RepositoriesApi.md#DeleteV5ReposOwnerRepoReleasesId) | **Delete** /v5/repos/{owner}/{repo}/releases/{id} | 删除仓库Release 15 [**GetV5EnterprisesEnterpriseRepos**](RepositoriesApi.md#GetV5EnterprisesEnterpriseRepos) | **Get** /v5/enterprises/{enterprise}/repos | 获取企业的所有仓库 16 [**GetV5OrgsOrgRepos**](RepositoriesApi.md#GetV5OrgsOrgRepos) | **Get** /v5/orgs/{org}/repos | 获取一个组织的仓库 17 [**GetV5ReposOwnerRepo**](RepositoriesApi.md#GetV5ReposOwnerRepo) | **Get** /v5/repos/{owner}/{repo} | 获取用户的某个仓库 18 [**GetV5ReposOwnerRepoBranches**](RepositoriesApi.md#GetV5ReposOwnerRepoBranches) | **Get** /v5/repos/{owner}/{repo}/branches | 获取所有分支 19 [**GetV5ReposOwnerRepoBranchesBranch**](RepositoriesApi.md#GetV5ReposOwnerRepoBranchesBranch) | **Get** /v5/repos/{owner}/{repo}/branches/{branch} | 获取单个分支 20 [**GetV5ReposOwnerRepoCollaborators**](RepositoriesApi.md#GetV5ReposOwnerRepoCollaborators) | **Get** /v5/repos/{owner}/{repo}/collaborators | 获取仓库的所有成员 21 [**GetV5ReposOwnerRepoCollaboratorsUsername**](RepositoriesApi.md#GetV5ReposOwnerRepoCollaboratorsUsername) | **Get** /v5/repos/{owner}/{repo}/collaborators/{username} | 判断用户是否为仓库成员 22 [**GetV5ReposOwnerRepoCollaboratorsUsernamePermission**](RepositoriesApi.md#GetV5ReposOwnerRepoCollaboratorsUsernamePermission) | **Get** /v5/repos/{owner}/{repo}/collaborators/{username}/permission | 查看仓库成员的权限 23 [**GetV5ReposOwnerRepoComments**](RepositoriesApi.md#GetV5ReposOwnerRepoComments) | **Get** /v5/repos/{owner}/{repo}/comments | 获取仓库的Commit评论 24 [**GetV5ReposOwnerRepoCommentsId**](RepositoriesApi.md#GetV5ReposOwnerRepoCommentsId) | **Get** /v5/repos/{owner}/{repo}/comments/{id} | 获取仓库的某条Commit评论 25 [**GetV5ReposOwnerRepoCommits**](RepositoriesApi.md#GetV5ReposOwnerRepoCommits) | **Get** /v5/repos/{owner}/{repo}/commits | 仓库的所有提交 26 [**GetV5ReposOwnerRepoCommitsRefComments**](RepositoriesApi.md#GetV5ReposOwnerRepoCommitsRefComments) | **Get** /v5/repos/{owner}/{repo}/commits/{ref}/comments | 获取单个Commit的评论 27 [**GetV5ReposOwnerRepoCommitsSha**](RepositoriesApi.md#GetV5ReposOwnerRepoCommitsSha) | **Get** /v5/repos/{owner}/{repo}/commits/{sha} | 仓库的某个提交 28 [**GetV5ReposOwnerRepoCompareBaseHead**](RepositoriesApi.md#GetV5ReposOwnerRepoCompareBaseHead) | **Get** /v5/repos/{owner}/{repo}/compare/{base}...{head} | 两个Commits之间对比的版本差异 29 [**GetV5ReposOwnerRepoContentsPath**](RepositoriesApi.md#GetV5ReposOwnerRepoContentsPath) | **Get** /v5/repos/{owner}/{repo}/contents/{path} | 获取仓库具体路径下的内容 30 [**GetV5ReposOwnerRepoContributors**](RepositoriesApi.md#GetV5ReposOwnerRepoContributors) | **Get** /v5/repos/{owner}/{repo}/contributors | 获取仓库贡献者 31 [**GetV5ReposOwnerRepoForks**](RepositoriesApi.md#GetV5ReposOwnerRepoForks) | **Get** /v5/repos/{owner}/{repo}/forks | 查看仓库的Forks 32 [**GetV5ReposOwnerRepoKeys**](RepositoriesApi.md#GetV5ReposOwnerRepoKeys) | **Get** /v5/repos/{owner}/{repo}/keys | 获取仓库已部署的公钥 33 [**GetV5ReposOwnerRepoKeysAvailable**](RepositoriesApi.md#GetV5ReposOwnerRepoKeysAvailable) | **Get** /v5/repos/{owner}/{repo}/keys/available | 获取仓库可部署的公钥 34 [**GetV5ReposOwnerRepoKeysId**](RepositoriesApi.md#GetV5ReposOwnerRepoKeysId) | **Get** /v5/repos/{owner}/{repo}/keys/{id} | 获取仓库的单个公钥 35 [**GetV5ReposOwnerRepoPages**](RepositoriesApi.md#GetV5ReposOwnerRepoPages) | **Get** /v5/repos/{owner}/{repo}/pages | 获取Pages信息 36 [**GetV5ReposOwnerRepoReadme**](RepositoriesApi.md#GetV5ReposOwnerRepoReadme) | **Get** /v5/repos/{owner}/{repo}/readme | 获取仓库README 37 [**GetV5ReposOwnerRepoReleases**](RepositoriesApi.md#GetV5ReposOwnerRepoReleases) | **Get** /v5/repos/{owner}/{repo}/releases | 获取仓库的所有Releases 38 [**GetV5ReposOwnerRepoReleasesId**](RepositoriesApi.md#GetV5ReposOwnerRepoReleasesId) | **Get** /v5/repos/{owner}/{repo}/releases/{id} | 获取仓库的单个Releases 39 [**GetV5ReposOwnerRepoReleasesLatest**](RepositoriesApi.md#GetV5ReposOwnerRepoReleasesLatest) | **Get** /v5/repos/{owner}/{repo}/releases/latest | 获取仓库的最后更新的Release 40 [**GetV5ReposOwnerRepoReleasesTagsTag**](RepositoriesApi.md#GetV5ReposOwnerRepoReleasesTagsTag) | **Get** /v5/repos/{owner}/{repo}/releases/tags/{tag} | 根据Tag名称获取仓库的Release 41 [**GetV5ReposOwnerRepoTags**](RepositoriesApi.md#GetV5ReposOwnerRepoTags) | **Get** /v5/repos/{owner}/{repo}/tags | 列出仓库所有的tags 42 [**GetV5UserRepos**](RepositoriesApi.md#GetV5UserRepos) | **Get** /v5/user/repos | 列出授权用户的所有仓库 43 [**GetV5UsersUsernameRepos**](RepositoriesApi.md#GetV5UsersUsernameRepos) | **Get** /v5/users/{username}/repos | 获取某个用户的公开仓库 44 [**PatchV5ReposOwnerRepo**](RepositoriesApi.md#PatchV5ReposOwnerRepo) | **Patch** /v5/repos/{owner}/{repo} | 更新仓库设置 45 [**PatchV5ReposOwnerRepoCommentsId**](RepositoriesApi.md#PatchV5ReposOwnerRepoCommentsId) | **Patch** /v5/repos/{owner}/{repo}/comments/{id} | 更新Commit评论 46 [**PatchV5ReposOwnerRepoReleasesId**](RepositoriesApi.md#PatchV5ReposOwnerRepoReleasesId) | **Patch** /v5/repos/{owner}/{repo}/releases/{id} | 更新仓库Release 47 [**PostV5EnterprisesEnterpriseRepos**](RepositoriesApi.md#PostV5EnterprisesEnterpriseRepos) | **Post** /v5/enterprises/{enterprise}/repos | 创建企业仓库 48 [**PostV5OrgsOrgRepos**](RepositoriesApi.md#PostV5OrgsOrgRepos) | **Post** /v5/orgs/{org}/repos | 创建组织仓库 49 [**PostV5ReposOwnerRepoBranches**](RepositoriesApi.md#PostV5ReposOwnerRepoBranches) | **Post** /v5/repos/{owner}/{repo}/branches | 创建分支 50 [**PostV5ReposOwnerRepoCommitsShaComments**](RepositoriesApi.md#PostV5ReposOwnerRepoCommitsShaComments) | **Post** /v5/repos/{owner}/{repo}/commits/{sha}/comments | 创建Commit评论 51 [**PostV5ReposOwnerRepoContentsPath**](RepositoriesApi.md#PostV5ReposOwnerRepoContentsPath) | **Post** /v5/repos/{owner}/{repo}/contents/{path} | 新建文件 52 [**PostV5ReposOwnerRepoForks**](RepositoriesApi.md#PostV5ReposOwnerRepoForks) | **Post** /v5/repos/{owner}/{repo}/forks | Fork一个仓库 53 [**PostV5ReposOwnerRepoKeys**](RepositoriesApi.md#PostV5ReposOwnerRepoKeys) | **Post** /v5/repos/{owner}/{repo}/keys | 为仓库添加公钥 54 [**PostV5ReposOwnerRepoPagesBuilds**](RepositoriesApi.md#PostV5ReposOwnerRepoPagesBuilds) | **Post** /v5/repos/{owner}/{repo}/pages/builds | 请求建立Pages 55 [**PostV5ReposOwnerRepoReleases**](RepositoriesApi.md#PostV5ReposOwnerRepoReleases) | **Post** /v5/repos/{owner}/{repo}/releases | 创建仓库Release 56 [**PostV5UserRepos**](RepositoriesApi.md#PostV5UserRepos) | **Post** /v5/user/repos | 创建一个仓库 57 [**PutV5ReposOwnerRepoBranchesBranchProtection**](RepositoriesApi.md#PutV5ReposOwnerRepoBranchesBranchProtection) | **Put** /v5/repos/{owner}/{repo}/branches/{branch}/protection | 设置分支保护 58 [**PutV5ReposOwnerRepoClear**](RepositoriesApi.md#PutV5ReposOwnerRepoClear) | **Put** /v5/repos/{owner}/{repo}/clear | 清空一个仓库 59 [**PutV5ReposOwnerRepoCollaboratorsUsername**](RepositoriesApi.md#PutV5ReposOwnerRepoCollaboratorsUsername) | **Put** /v5/repos/{owner}/{repo}/collaborators/{username} | 添加仓库成员 60 [**PutV5ReposOwnerRepoContentsPath**](RepositoriesApi.md#PutV5ReposOwnerRepoContentsPath) | **Put** /v5/repos/{owner}/{repo}/contents/{path} | 更新文件 61 [**PutV5ReposOwnerRepoKeysEnableId**](RepositoriesApi.md#PutV5ReposOwnerRepoKeysEnableId) | **Put** /v5/repos/{owner}/{repo}/keys/enable/{id} | 启用仓库公钥 62 [**PutV5ReposOwnerRepoReviewer**](RepositoriesApi.md#PutV5ReposOwnerRepoReviewer) | **Put** /v5/repos/{owner}/{repo}/reviewer | 修改代码审查设置 63 64 65 # **DeleteV5ReposOwnerRepo** 66 > DeleteV5ReposOwnerRepo(ctx, owner, repo, optional) 67 删除一个仓库 68 69 删除一个仓库 70 71 ### Required Parameters 72 73 Name | Type | Description | Notes 74 ------------- | ------------- | ------------- | ------------- 75 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 76 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 77 **repo** | **string**| 仓库路径(path) | 78 **optional** | ***DeleteV5ReposOwnerRepoOpts** | optional parameters | nil if no parameters 79 80 ### Optional Parameters 81 Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoOpts struct 82 83 Name | Type | Description | Notes 84 ------------- | ------------- | ------------- | ------------- 85 86 87 **accessToken** | **optional.String**| 用户授权码 | 88 89 ### Return type 90 91 (empty response body) 92 93 ### Authorization 94 95 No authorization required 96 97 ### HTTP request headers 98 99 - **Content-Type**: application/json, multipart/form-data 100 - **Accept**: application/json 101 102 [[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) 103 104 # **DeleteV5ReposOwnerRepoBranchesBranchProtection** 105 > DeleteV5ReposOwnerRepoBranchesBranchProtection(ctx, owner, repo, branch, optional) 106 取消保护分支的设置 107 108 取消保护分支的设置 109 110 ### Required Parameters 111 112 Name | Type | Description | Notes 113 ------------- | ------------- | ------------- | ------------- 114 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 115 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 116 **repo** | **string**| 仓库路径(path) | 117 **branch** | **string**| 分支名称 | 118 **optional** | ***DeleteV5ReposOwnerRepoBranchesBranchProtectionOpts** | optional parameters | nil if no parameters 119 120 ### Optional Parameters 121 Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoBranchesBranchProtectionOpts struct 122 123 Name | Type | Description | Notes 124 ------------- | ------------- | ------------- | ------------- 125 126 127 128 **accessToken** | **optional.String**| 用户授权码 | 129 130 ### Return type 131 132 (empty response body) 133 134 ### Authorization 135 136 No authorization required 137 138 ### HTTP request headers 139 140 - **Content-Type**: application/json, multipart/form-data 141 - **Accept**: application/json 142 143 [[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) 144 145 # **DeleteV5ReposOwnerRepoCollaboratorsUsername** 146 > DeleteV5ReposOwnerRepoCollaboratorsUsername(ctx, owner, repo, username, optional) 147 移除仓库成员 148 149 移除仓库成员 150 151 ### Required Parameters 152 153 Name | Type | Description | Notes 154 ------------- | ------------- | ------------- | ------------- 155 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 156 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 157 **repo** | **string**| 仓库路径(path) | 158 **username** | **string**| 用户名(username/login) | 159 **optional** | ***DeleteV5ReposOwnerRepoCollaboratorsUsernameOpts** | optional parameters | nil if no parameters 160 161 ### Optional Parameters 162 Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoCollaboratorsUsernameOpts struct 163 164 Name | Type | Description | Notes 165 ------------- | ------------- | ------------- | ------------- 166 167 168 169 **accessToken** | **optional.String**| 用户授权码 | 170 171 ### Return type 172 173 (empty response body) 174 175 ### Authorization 176 177 No authorization required 178 179 ### HTTP request headers 180 181 - **Content-Type**: application/json, multipart/form-data 182 - **Accept**: application/json 183 184 [[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) 185 186 # **DeleteV5ReposOwnerRepoCommentsId** 187 > DeleteV5ReposOwnerRepoCommentsId(ctx, owner, repo, id, optional) 188 删除Commit评论 189 190 删除Commit评论 191 192 ### Required Parameters 193 194 Name | Type | Description | Notes 195 ------------- | ------------- | ------------- | ------------- 196 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 197 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 198 **repo** | **string**| 仓库路径(path) | 199 **id** | **int32**| 评论的ID | 200 **optional** | ***DeleteV5ReposOwnerRepoCommentsIdOpts** | optional parameters | nil if no parameters 201 202 ### Optional Parameters 203 Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoCommentsIdOpts struct 204 205 Name | Type | Description | Notes 206 ------------- | ------------- | ------------- | ------------- 207 208 209 210 **accessToken** | **optional.String**| 用户授权码 | 211 212 ### Return type 213 214 (empty response body) 215 216 ### Authorization 217 218 No authorization required 219 220 ### HTTP request headers 221 222 - **Content-Type**: application/json, multipart/form-data 223 - **Accept**: application/json 224 225 [[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) 226 227 # **DeleteV5ReposOwnerRepoContentsPath** 228 > CommitContent DeleteV5ReposOwnerRepoContentsPath(ctx, owner, repo, path, sha, message, optional) 229 删除文件 230 231 删除文件 232 233 ### Required Parameters 234 235 Name | Type | Description | Notes 236 ------------- | ------------- | ------------- | ------------- 237 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 238 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 239 **repo** | **string**| 仓库路径(path) | 240 **path** | **string**| 文件的路径 | 241 **sha** | **string**| 文件的 Blob SHA,可通过 [获取仓库具体路径下的内容] API 获取 | 242 **message** | **string**| 提交信息 | 243 **optional** | ***DeleteV5ReposOwnerRepoContentsPathOpts** | optional parameters | nil if no parameters 244 245 ### Optional Parameters 246 Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoContentsPathOpts struct 247 248 Name | Type | Description | Notes 249 ------------- | ------------- | ------------- | ------------- 250 251 252 253 254 255 **accessToken** | **optional.String**| 用户授权码 | 256 **branch** | **optional.String**| 分支名称。默认为仓库对默认分支 | 257 **committerName** | **optional.String**| Committer的名字,默认为当前用户的名字 | 258 **committerEmail** | **optional.String**| Committer的邮箱,默认为当前用户的邮箱 | 259 **authorName** | **optional.String**| Author的名字,默认为当前用户的名字 | 260 **authorEmail** | **optional.String**| Author的邮箱,默认为当前用户的邮箱 | 261 262 ### Return type 263 264 [**CommitContent**](CommitContent.md) 265 266 ### Authorization 267 268 No authorization required 269 270 ### HTTP request headers 271 272 - **Content-Type**: application/json, multipart/form-data 273 - **Accept**: application/json 274 275 [[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) 276 277 # **DeleteV5ReposOwnerRepoKeysEnableId** 278 > DeleteV5ReposOwnerRepoKeysEnableId(ctx, owner, repo, id, optional) 279 停用仓库公钥 280 281 停用仓库公钥 282 283 ### Required Parameters 284 285 Name | Type | Description | Notes 286 ------------- | ------------- | ------------- | ------------- 287 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 288 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 289 **repo** | **string**| 仓库路径(path) | 290 **id** | **int32**| 公钥 ID | 291 **optional** | ***DeleteV5ReposOwnerRepoKeysEnableIdOpts** | optional parameters | nil if no parameters 292 293 ### Optional Parameters 294 Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoKeysEnableIdOpts struct 295 296 Name | Type | Description | Notes 297 ------------- | ------------- | ------------- | ------------- 298 299 300 301 **accessToken** | **optional.String**| 用户授权码 | 302 303 ### Return type 304 305 (empty response body) 306 307 ### Authorization 308 309 No authorization required 310 311 ### HTTP request headers 312 313 - **Content-Type**: application/json, multipart/form-data 314 - **Accept**: application/json 315 316 [[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) 317 318 # **DeleteV5ReposOwnerRepoKeysId** 319 > DeleteV5ReposOwnerRepoKeysId(ctx, owner, repo, id, optional) 320 删除一个仓库公钥 321 322 删除一个仓库公钥 323 324 ### Required Parameters 325 326 Name | Type | Description | Notes 327 ------------- | ------------- | ------------- | ------------- 328 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 329 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 330 **repo** | **string**| 仓库路径(path) | 331 **id** | **int32**| 公钥 ID | 332 **optional** | ***DeleteV5ReposOwnerRepoKeysIdOpts** | optional parameters | nil if no parameters 333 334 ### Optional Parameters 335 Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoKeysIdOpts struct 336 337 Name | Type | Description | Notes 338 ------------- | ------------- | ------------- | ------------- 339 340 341 342 **accessToken** | **optional.String**| 用户授权码 | 343 344 ### Return type 345 346 (empty response body) 347 348 ### Authorization 349 350 No authorization required 351 352 ### HTTP request headers 353 354 - **Content-Type**: application/json, multipart/form-data 355 - **Accept**: application/json 356 357 [[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) 358 359 # **DeleteV5ReposOwnerRepoReleasesId** 360 > DeleteV5ReposOwnerRepoReleasesId(ctx, owner, repo, id, optional) 361 删除仓库Release 362 363 删除仓库Release 364 365 ### Required Parameters 366 367 Name | Type | Description | Notes 368 ------------- | ------------- | ------------- | ------------- 369 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 370 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 371 **repo** | **string**| 仓库路径(path) | 372 **id** | **int32**| | 373 **optional** | ***DeleteV5ReposOwnerRepoReleasesIdOpts** | optional parameters | nil if no parameters 374 375 ### Optional Parameters 376 Optional parameters are passed through a pointer to a DeleteV5ReposOwnerRepoReleasesIdOpts struct 377 378 Name | Type | Description | Notes 379 ------------- | ------------- | ------------- | ------------- 380 381 382 383 **accessToken** | **optional.String**| 用户授权码 | 384 385 ### Return type 386 387 (empty response body) 388 389 ### Authorization 390 391 No authorization required 392 393 ### HTTP request headers 394 395 - **Content-Type**: application/json, multipart/form-data 396 - **Accept**: application/json 397 398 [[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) 399 400 # **GetV5EnterprisesEnterpriseRepos** 401 > Project GetV5EnterprisesEnterpriseRepos(ctx, enterprise, optional) 402 获取企业的所有仓库 403 404 获取企业的所有仓库 405 406 ### Required Parameters 407 408 Name | Type | Description | Notes 409 ------------- | ------------- | ------------- | ------------- 410 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 411 **enterprise** | **string**| 企业的路径(path/login) | 412 **optional** | ***GetV5EnterprisesEnterpriseReposOpts** | optional parameters | nil if no parameters 413 414 ### Optional Parameters 415 Optional parameters are passed through a pointer to a GetV5EnterprisesEnterpriseReposOpts struct 416 417 Name | Type | Description | Notes 418 ------------- | ------------- | ------------- | ------------- 419 420 **accessToken** | **optional.String**| 用户授权码 | 421 **type_** | **optional.String**| 筛选仓库的类型,可以是 all, public, internal, private。默认: all | [default to all] 422 **direct** | **optional.Bool**| 只获取直属仓库,默认: false | 423 **page** | **optional.Int32**| 当前的页码 | [default to 1] 424 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 425 426 ### Return type 427 428 [**Project**](Project.md) 429 430 ### Authorization 431 432 No authorization required 433 434 ### HTTP request headers 435 436 - **Content-Type**: application/json, multipart/form-data 437 - **Accept**: application/json 438 439 [[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) 440 441 # **GetV5OrgsOrgRepos** 442 > []Project GetV5OrgsOrgRepos(ctx, org, optional) 443 获取一个组织的仓库 444 445 获取一个组织的仓库 446 447 ### Required Parameters 448 449 Name | Type | Description | Notes 450 ------------- | ------------- | ------------- | ------------- 451 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 452 **org** | **string**| 组织的路径(path/login) | 453 **optional** | ***GetV5OrgsOrgReposOpts** | optional parameters | nil if no parameters 454 455 ### Optional Parameters 456 Optional parameters are passed through a pointer to a GetV5OrgsOrgReposOpts struct 457 458 Name | Type | Description | Notes 459 ------------- | ------------- | ------------- | ------------- 460 461 **accessToken** | **optional.String**| 用户授权码 | 462 **type_** | **optional.String**| 筛选仓库的类型,可以是 all, public, private。默认: all | [default to all] 463 **page** | **optional.Int32**| 当前的页码 | [default to 1] 464 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 465 466 ### Return type 467 468 [**[]Project**](Project.md) 469 470 ### Authorization 471 472 No authorization required 473 474 ### HTTP request headers 475 476 - **Content-Type**: application/json, multipart/form-data 477 - **Accept**: application/json 478 479 [[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) 480 481 # **GetV5ReposOwnerRepo** 482 > Project GetV5ReposOwnerRepo(ctx, owner, repo, optional) 483 获取用户的某个仓库 484 485 获取用户的某个仓库 486 487 ### Required Parameters 488 489 Name | Type | Description | Notes 490 ------------- | ------------- | ------------- | ------------- 491 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 492 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 493 **repo** | **string**| 仓库路径(path) | 494 **optional** | ***GetV5ReposOwnerRepoOpts** | optional parameters | nil if no parameters 495 496 ### Optional Parameters 497 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoOpts struct 498 499 Name | Type | Description | Notes 500 ------------- | ------------- | ------------- | ------------- 501 502 503 **accessToken** | **optional.String**| 用户授权码 | 504 505 ### Return type 506 507 [**Project**](Project.md) 508 509 ### Authorization 510 511 No authorization required 512 513 ### HTTP request headers 514 515 - **Content-Type**: application/json, multipart/form-data 516 - **Accept**: application/json 517 518 [[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) 519 520 # **GetV5ReposOwnerRepoBranches** 521 > []Branch GetV5ReposOwnerRepoBranches(ctx, owner, repo, optional) 522 获取所有分支 523 524 获取所有分支 525 526 ### Required Parameters 527 528 Name | Type | Description | Notes 529 ------------- | ------------- | ------------- | ------------- 530 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 531 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 532 **repo** | **string**| 仓库路径(path) | 533 **optional** | ***GetV5ReposOwnerRepoBranchesOpts** | optional parameters | nil if no parameters 534 535 ### Optional Parameters 536 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoBranchesOpts struct 537 538 Name | Type | Description | Notes 539 ------------- | ------------- | ------------- | ------------- 540 541 542 **accessToken** | **optional.String**| 用户授权码 | 543 544 ### Return type 545 546 [**[]Branch**](Branch.md) 547 548 ### Authorization 549 550 No authorization required 551 552 ### HTTP request headers 553 554 - **Content-Type**: application/json, multipart/form-data 555 - **Accept**: application/json 556 557 [[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) 558 559 # **GetV5ReposOwnerRepoBranchesBranch** 560 > Branch GetV5ReposOwnerRepoBranchesBranch(ctx, owner, repo, branch, optional) 561 获取单个分支 562 563 获取单个分支 564 565 ### Required Parameters 566 567 Name | Type | Description | Notes 568 ------------- | ------------- | ------------- | ------------- 569 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 570 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 571 **repo** | **string**| 仓库路径(path) | 572 **branch** | **string**| 分支名称 | 573 **optional** | ***GetV5ReposOwnerRepoBranchesBranchOpts** | optional parameters | nil if no parameters 574 575 ### Optional Parameters 576 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoBranchesBranchOpts struct 577 578 Name | Type | Description | Notes 579 ------------- | ------------- | ------------- | ------------- 580 581 582 583 **accessToken** | **optional.String**| 用户授权码 | 584 585 ### Return type 586 587 [**Branch**](Branch.md) 588 589 ### Authorization 590 591 No authorization required 592 593 ### HTTP request headers 594 595 - **Content-Type**: application/json, multipart/form-data 596 - **Accept**: application/json 597 598 [[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) 599 600 # **GetV5ReposOwnerRepoCollaborators** 601 > []ProjectMember GetV5ReposOwnerRepoCollaborators(ctx, owner, repo, optional) 602 获取仓库的所有成员 603 604 获取仓库的所有成员 605 606 ### Required Parameters 607 608 Name | Type | Description | Notes 609 ------------- | ------------- | ------------- | ------------- 610 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 611 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 612 **repo** | **string**| 仓库路径(path) | 613 **optional** | ***GetV5ReposOwnerRepoCollaboratorsOpts** | optional parameters | nil if no parameters 614 615 ### Optional Parameters 616 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoCollaboratorsOpts struct 617 618 Name | Type | Description | Notes 619 ------------- | ------------- | ------------- | ------------- 620 621 622 **accessToken** | **optional.String**| 用户授权码 | 623 **page** | **optional.Int32**| 当前的页码 | [default to 1] 624 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 625 626 ### Return type 627 628 [**[]ProjectMember**](ProjectMember.md) 629 630 ### Authorization 631 632 No authorization required 633 634 ### HTTP request headers 635 636 - **Content-Type**: application/json, multipart/form-data 637 - **Accept**: application/json 638 639 [[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) 640 641 # **GetV5ReposOwnerRepoCollaboratorsUsername** 642 > GetV5ReposOwnerRepoCollaboratorsUsername(ctx, owner, repo, username, optional) 643 判断用户是否为仓库成员 644 645 判断用户是否为仓库成员 646 647 ### Required Parameters 648 649 Name | Type | Description | Notes 650 ------------- | ------------- | ------------- | ------------- 651 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 652 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 653 **repo** | **string**| 仓库路径(path) | 654 **username** | **string**| 用户名(username/login) | 655 **optional** | ***GetV5ReposOwnerRepoCollaboratorsUsernameOpts** | optional parameters | nil if no parameters 656 657 ### Optional Parameters 658 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoCollaboratorsUsernameOpts struct 659 660 Name | Type | Description | Notes 661 ------------- | ------------- | ------------- | ------------- 662 663 664 665 **accessToken** | **optional.String**| 用户授权码 | 666 667 ### Return type 668 669 (empty response body) 670 671 ### Authorization 672 673 No authorization required 674 675 ### HTTP request headers 676 677 - **Content-Type**: application/json, multipart/form-data 678 - **Accept**: application/json 679 680 [[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) 681 682 # **GetV5ReposOwnerRepoCollaboratorsUsernamePermission** 683 > ProjectMemberPermission GetV5ReposOwnerRepoCollaboratorsUsernamePermission(ctx, owner, repo, username, optional) 684 查看仓库成员的权限 685 686 查看仓库成员的权限 687 688 ### Required Parameters 689 690 Name | Type | Description | Notes 691 ------------- | ------------- | ------------- | ------------- 692 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 693 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 694 **repo** | **string**| 仓库路径(path) | 695 **username** | **string**| 用户名(username/login) | 696 **optional** | ***GetV5ReposOwnerRepoCollaboratorsUsernamePermissionOpts** | optional parameters | nil if no parameters 697 698 ### Optional Parameters 699 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoCollaboratorsUsernamePermissionOpts struct 700 701 Name | Type | Description | Notes 702 ------------- | ------------- | ------------- | ------------- 703 704 705 706 **accessToken** | **optional.String**| 用户授权码 | 707 708 ### Return type 709 710 [**ProjectMemberPermission**](ProjectMemberPermission.md) 711 712 ### Authorization 713 714 No authorization required 715 716 ### HTTP request headers 717 718 - **Content-Type**: application/json, multipart/form-data 719 - **Accept**: application/json 720 721 [[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) 722 723 # **GetV5ReposOwnerRepoComments** 724 > Note GetV5ReposOwnerRepoComments(ctx, owner, repo, optional) 725 获取仓库的Commit评论 726 727 获取仓库的Commit评论 728 729 ### Required Parameters 730 731 Name | Type | Description | Notes 732 ------------- | ------------- | ------------- | ------------- 733 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 734 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 735 **repo** | **string**| 仓库路径(path) | 736 **optional** | ***GetV5ReposOwnerRepoCommentsOpts** | optional parameters | nil if no parameters 737 738 ### Optional Parameters 739 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoCommentsOpts struct 740 741 Name | Type | Description | Notes 742 ------------- | ------------- | ------------- | ------------- 743 744 745 **accessToken** | **optional.String**| 用户授权码 | 746 **page** | **optional.Int32**| 当前的页码 | [default to 1] 747 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 748 749 ### Return type 750 751 [**Note**](Note.md) 752 753 ### Authorization 754 755 No authorization required 756 757 ### HTTP request headers 758 759 - **Content-Type**: application/json, multipart/form-data 760 - **Accept**: application/json 761 762 [[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) 763 764 # **GetV5ReposOwnerRepoCommentsId** 765 > Note GetV5ReposOwnerRepoCommentsId(ctx, owner, repo, id, optional) 766 获取仓库的某条Commit评论 767 768 获取仓库的某条Commit评论 769 770 ### Required Parameters 771 772 Name | Type | Description | Notes 773 ------------- | ------------- | ------------- | ------------- 774 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 775 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 776 **repo** | **string**| 仓库路径(path) | 777 **id** | **int32**| 评论的ID | 778 **optional** | ***GetV5ReposOwnerRepoCommentsIdOpts** | optional parameters | nil if no parameters 779 780 ### Optional Parameters 781 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoCommentsIdOpts struct 782 783 Name | Type | Description | Notes 784 ------------- | ------------- | ------------- | ------------- 785 786 787 788 **accessToken** | **optional.String**| 用户授权码 | 789 790 ### Return type 791 792 [**Note**](Note.md) 793 794 ### Authorization 795 796 No authorization required 797 798 ### HTTP request headers 799 800 - **Content-Type**: application/json, multipart/form-data 801 - **Accept**: application/json 802 803 [[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) 804 805 # **GetV5ReposOwnerRepoCommits** 806 > []RepoCommit GetV5ReposOwnerRepoCommits(ctx, owner, repo, optional) 807 仓库的所有提交 808 809 仓库的所有提交 810 811 ### Required Parameters 812 813 Name | Type | Description | Notes 814 ------------- | ------------- | ------------- | ------------- 815 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 816 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 817 **repo** | **string**| 仓库路径(path) | 818 **optional** | ***GetV5ReposOwnerRepoCommitsOpts** | optional parameters | nil if no parameters 819 820 ### Optional Parameters 821 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoCommitsOpts struct 822 823 Name | Type | Description | Notes 824 ------------- | ------------- | ------------- | ------------- 825 826 827 **accessToken** | **optional.String**| 用户授权码 | 828 **sha** | **optional.String**| 提交起始的SHA值或者分支名. 默认: 仓库的默认分支 | 829 **path** | **optional.String**| 包含该文件的提交 | 830 **author** | **optional.String**| 提交作者的邮箱或个人空间地址(username/login) | 831 **since** | **optional.String**| 提交的起始时间,时间格式为 ISO 8601 | 832 **until** | **optional.String**| 提交的最后时间,时间格式为 ISO 8601 | 833 **page** | **optional.Int32**| 当前的页码 | [default to 1] 834 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 835 836 ### Return type 837 838 [**[]RepoCommit**](RepoCommit.md) 839 840 ### Authorization 841 842 No authorization required 843 844 ### HTTP request headers 845 846 - **Content-Type**: application/json, multipart/form-data 847 - **Accept**: application/json 848 849 [[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) 850 851 # **GetV5ReposOwnerRepoCommitsRefComments** 852 > Note GetV5ReposOwnerRepoCommitsRefComments(ctx, owner, repo, ref, optional) 853 获取单个Commit的评论 854 855 获取单个Commit的评论 856 857 ### Required Parameters 858 859 Name | Type | Description | Notes 860 ------------- | ------------- | ------------- | ------------- 861 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 862 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 863 **repo** | **string**| 仓库路径(path) | 864 **ref** | **string**| Commit的Reference | 865 **optional** | ***GetV5ReposOwnerRepoCommitsRefCommentsOpts** | optional parameters | nil if no parameters 866 867 ### Optional Parameters 868 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoCommitsRefCommentsOpts struct 869 870 Name | Type | Description | Notes 871 ------------- | ------------- | ------------- | ------------- 872 873 874 875 **accessToken** | **optional.String**| 用户授权码 | 876 **page** | **optional.Int32**| 当前的页码 | [default to 1] 877 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 878 879 ### Return type 880 881 [**Note**](Note.md) 882 883 ### Authorization 884 885 No authorization required 886 887 ### HTTP request headers 888 889 - **Content-Type**: application/json, multipart/form-data 890 - **Accept**: application/json 891 892 [[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) 893 894 # **GetV5ReposOwnerRepoCommitsSha** 895 > RepoCommit GetV5ReposOwnerRepoCommitsSha(ctx, owner, repo, sha, optional) 896 仓库的某个提交 897 898 仓库的某个提交 899 900 ### Required Parameters 901 902 Name | Type | Description | Notes 903 ------------- | ------------- | ------------- | ------------- 904 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 905 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 906 **repo** | **string**| 仓库路径(path) | 907 **sha** | **string**| 提交的SHA值或者分支名 | 908 **optional** | ***GetV5ReposOwnerRepoCommitsShaOpts** | optional parameters | nil if no parameters 909 910 ### Optional Parameters 911 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoCommitsShaOpts struct 912 913 Name | Type | Description | Notes 914 ------------- | ------------- | ------------- | ------------- 915 916 917 918 **accessToken** | **optional.String**| 用户授权码 | 919 920 ### Return type 921 922 [**RepoCommit**](RepoCommit.md) 923 924 ### Authorization 925 926 No authorization required 927 928 ### HTTP request headers 929 930 - **Content-Type**: application/json, multipart/form-data 931 - **Accept**: application/json 932 933 [[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) 934 935 # **GetV5ReposOwnerRepoCompareBaseHead** 936 > Compare GetV5ReposOwnerRepoCompareBaseHead(ctx, owner, repo, base, head, optional) 937 两个Commits之间对比的版本差异 938 939 两个Commits之间对比的版本差异 940 941 ### Required Parameters 942 943 Name | Type | Description | Notes 944 ------------- | ------------- | ------------- | ------------- 945 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 946 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 947 **repo** | **string**| 仓库路径(path) | 948 **base** | **string**| Commit提交的SHA值或者分支名作为对比起点 | 949 **head** | **string**| Commit提交的SHA值或者分支名作为对比终点 | 950 **optional** | ***GetV5ReposOwnerRepoCompareBaseHeadOpts** | optional parameters | nil if no parameters 951 952 ### Optional Parameters 953 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoCompareBaseHeadOpts struct 954 955 Name | Type | Description | Notes 956 ------------- | ------------- | ------------- | ------------- 957 958 959 960 961 **accessToken** | **optional.String**| 用户授权码 | 962 963 ### Return type 964 965 [**Compare**](Compare.md) 966 967 ### Authorization 968 969 No authorization required 970 971 ### HTTP request headers 972 973 - **Content-Type**: application/json, multipart/form-data 974 - **Accept**: application/json 975 976 [[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) 977 978 # **GetV5ReposOwnerRepoContentsPath** 979 > Content GetV5ReposOwnerRepoContentsPath(ctx, owner, repo, path, optional) 980 获取仓库具体路径下的内容 981 982 获取仓库具体路径下的内容 983 984 ### Required Parameters 985 986 Name | Type | Description | Notes 987 ------------- | ------------- | ------------- | ------------- 988 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 989 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 990 **repo** | **string**| 仓库路径(path) | 991 **path** | **string**| 文件的路径 | 992 **optional** | ***GetV5ReposOwnerRepoContentsPathOpts** | optional parameters | nil if no parameters 993 994 ### Optional Parameters 995 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoContentsPathOpts struct 996 997 Name | Type | Description | Notes 998 ------------- | ------------- | ------------- | ------------- 999 1000 1001 1002 **accessToken** | **optional.String**| 用户授权码 | 1003 **ref** | **optional.String**| 分支、tag或commit。默认: 仓库的默认分支(通常是master) | 1004 1005 ### Return type 1006 1007 [**Content**](Content.md) 1008 1009 ### Authorization 1010 1011 No authorization required 1012 1013 ### HTTP request headers 1014 1015 - **Content-Type**: application/json, multipart/form-data 1016 - **Accept**: application/json 1017 1018 [[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) 1019 1020 # **GetV5ReposOwnerRepoContributors** 1021 > Contributor GetV5ReposOwnerRepoContributors(ctx, owner, repo, optional) 1022 获取仓库贡献者 1023 1024 获取仓库贡献者 1025 1026 ### Required Parameters 1027 1028 Name | Type | Description | Notes 1029 ------------- | ------------- | ------------- | ------------- 1030 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1031 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1032 **repo** | **string**| 仓库路径(path) | 1033 **optional** | ***GetV5ReposOwnerRepoContributorsOpts** | optional parameters | nil if no parameters 1034 1035 ### Optional Parameters 1036 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoContributorsOpts struct 1037 1038 Name | Type | Description | Notes 1039 ------------- | ------------- | ------------- | ------------- 1040 1041 1042 **accessToken** | **optional.String**| 用户授权码 | 1043 1044 ### Return type 1045 1046 [**Contributor**](Contributor.md) 1047 1048 ### Authorization 1049 1050 No authorization required 1051 1052 ### HTTP request headers 1053 1054 - **Content-Type**: application/json, multipart/form-data 1055 - **Accept**: application/json 1056 1057 [[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) 1058 1059 # **GetV5ReposOwnerRepoForks** 1060 > Project GetV5ReposOwnerRepoForks(ctx, owner, repo, optional) 1061 查看仓库的Forks 1062 1063 查看仓库的Forks 1064 1065 ### Required Parameters 1066 1067 Name | Type | Description | Notes 1068 ------------- | ------------- | ------------- | ------------- 1069 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1070 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1071 **repo** | **string**| 仓库路径(path) | 1072 **optional** | ***GetV5ReposOwnerRepoForksOpts** | optional parameters | nil if no parameters 1073 1074 ### Optional Parameters 1075 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoForksOpts struct 1076 1077 Name | Type | Description | Notes 1078 ------------- | ------------- | ------------- | ------------- 1079 1080 1081 **accessToken** | **optional.String**| 用户授权码 | 1082 **sort** | **optional.String**| 排序方式: fork的时间(newest, oldest),star的人数(stargazers) | [default to newest] 1083 **page** | **optional.Int32**| 当前的页码 | [default to 1] 1084 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 1085 1086 ### Return type 1087 1088 [**Project**](Project.md) 1089 1090 ### Authorization 1091 1092 No authorization required 1093 1094 ### HTTP request headers 1095 1096 - **Content-Type**: application/json, multipart/form-data 1097 - **Accept**: application/json 1098 1099 [[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) 1100 1101 # **GetV5ReposOwnerRepoKeys** 1102 > []SshKey GetV5ReposOwnerRepoKeys(ctx, owner, repo, optional) 1103 获取仓库已部署的公钥 1104 1105 获取仓库已部署的公钥 1106 1107 ### Required Parameters 1108 1109 Name | Type | Description | Notes 1110 ------------- | ------------- | ------------- | ------------- 1111 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1112 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1113 **repo** | **string**| 仓库路径(path) | 1114 **optional** | ***GetV5ReposOwnerRepoKeysOpts** | optional parameters | nil if no parameters 1115 1116 ### Optional Parameters 1117 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoKeysOpts struct 1118 1119 Name | Type | Description | Notes 1120 ------------- | ------------- | ------------- | ------------- 1121 1122 1123 **accessToken** | **optional.String**| 用户授权码 | 1124 **page** | **optional.Int32**| 当前的页码 | [default to 1] 1125 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 1126 1127 ### Return type 1128 1129 [**[]SshKey**](SSHKey.md) 1130 1131 ### Authorization 1132 1133 No authorization required 1134 1135 ### HTTP request headers 1136 1137 - **Content-Type**: application/json, multipart/form-data 1138 - **Accept**: application/json 1139 1140 [[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) 1141 1142 # **GetV5ReposOwnerRepoKeysAvailable** 1143 > []SshKeyBasic GetV5ReposOwnerRepoKeysAvailable(ctx, owner, repo, optional) 1144 获取仓库可部署的公钥 1145 1146 获取仓库可部署的公钥 1147 1148 ### Required Parameters 1149 1150 Name | Type | Description | Notes 1151 ------------- | ------------- | ------------- | ------------- 1152 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1153 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1154 **repo** | **string**| 仓库路径(path) | 1155 **optional** | ***GetV5ReposOwnerRepoKeysAvailableOpts** | optional parameters | nil if no parameters 1156 1157 ### Optional Parameters 1158 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoKeysAvailableOpts struct 1159 1160 Name | Type | Description | Notes 1161 ------------- | ------------- | ------------- | ------------- 1162 1163 1164 **accessToken** | **optional.String**| 用户授权码 | 1165 **page** | **optional.Int32**| 当前的页码 | [default to 1] 1166 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 1167 1168 ### Return type 1169 1170 [**[]SshKeyBasic**](SSHKeyBasic.md) 1171 1172 ### Authorization 1173 1174 No authorization required 1175 1176 ### HTTP request headers 1177 1178 - **Content-Type**: application/json, multipart/form-data 1179 - **Accept**: application/json 1180 1181 [[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) 1182 1183 # **GetV5ReposOwnerRepoKeysId** 1184 > SshKey GetV5ReposOwnerRepoKeysId(ctx, owner, repo, id, optional) 1185 获取仓库的单个公钥 1186 1187 获取仓库的单个公钥 1188 1189 ### Required Parameters 1190 1191 Name | Type | Description | Notes 1192 ------------- | ------------- | ------------- | ------------- 1193 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1194 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1195 **repo** | **string**| 仓库路径(path) | 1196 **id** | **int32**| 公钥 ID | 1197 **optional** | ***GetV5ReposOwnerRepoKeysIdOpts** | optional parameters | nil if no parameters 1198 1199 ### Optional Parameters 1200 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoKeysIdOpts struct 1201 1202 Name | Type | Description | Notes 1203 ------------- | ------------- | ------------- | ------------- 1204 1205 1206 1207 **accessToken** | **optional.String**| 用户授权码 | 1208 1209 ### Return type 1210 1211 [**SshKey**](SSHKey.md) 1212 1213 ### Authorization 1214 1215 No authorization required 1216 1217 ### HTTP request headers 1218 1219 - **Content-Type**: application/json, multipart/form-data 1220 - **Accept**: application/json 1221 1222 [[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) 1223 1224 # **GetV5ReposOwnerRepoPages** 1225 > GetV5ReposOwnerRepoPages(ctx, owner, repo, optional) 1226 获取Pages信息 1227 1228 获取Pages信息 1229 1230 ### Required Parameters 1231 1232 Name | Type | Description | Notes 1233 ------------- | ------------- | ------------- | ------------- 1234 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1235 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1236 **repo** | **string**| 仓库路径(path) | 1237 **optional** | ***GetV5ReposOwnerRepoPagesOpts** | optional parameters | nil if no parameters 1238 1239 ### Optional Parameters 1240 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoPagesOpts struct 1241 1242 Name | Type | Description | Notes 1243 ------------- | ------------- | ------------- | ------------- 1244 1245 1246 **accessToken** | **optional.String**| 用户授权码 | 1247 1248 ### Return type 1249 1250 (empty response body) 1251 1252 ### Authorization 1253 1254 No authorization required 1255 1256 ### HTTP request headers 1257 1258 - **Content-Type**: application/json, multipart/form-data 1259 - **Accept**: application/json 1260 1261 [[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) 1262 1263 # **GetV5ReposOwnerRepoReadme** 1264 > Content GetV5ReposOwnerRepoReadme(ctx, owner, repo, optional) 1265 获取仓库README 1266 1267 获取仓库README 1268 1269 ### Required Parameters 1270 1271 Name | Type | Description | Notes 1272 ------------- | ------------- | ------------- | ------------- 1273 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1274 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1275 **repo** | **string**| 仓库路径(path) | 1276 **optional** | ***GetV5ReposOwnerRepoReadmeOpts** | optional parameters | nil if no parameters 1277 1278 ### Optional Parameters 1279 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoReadmeOpts struct 1280 1281 Name | Type | Description | Notes 1282 ------------- | ------------- | ------------- | ------------- 1283 1284 1285 **accessToken** | **optional.String**| 用户授权码 | 1286 **ref** | **optional.String**| 分支、tag或commit。默认: 仓库的默认分支(通常是master) | 1287 1288 ### Return type 1289 1290 [**Content**](Content.md) 1291 1292 ### Authorization 1293 1294 No authorization required 1295 1296 ### HTTP request headers 1297 1298 - **Content-Type**: application/json, multipart/form-data 1299 - **Accept**: application/json 1300 1301 [[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) 1302 1303 # **GetV5ReposOwnerRepoReleases** 1304 > []Release GetV5ReposOwnerRepoReleases(ctx, owner, repo, optional) 1305 获取仓库的所有Releases 1306 1307 获取仓库的所有Releases 1308 1309 ### Required Parameters 1310 1311 Name | Type | Description | Notes 1312 ------------- | ------------- | ------------- | ------------- 1313 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1314 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1315 **repo** | **string**| 仓库路径(path) | 1316 **optional** | ***GetV5ReposOwnerRepoReleasesOpts** | optional parameters | nil if no parameters 1317 1318 ### Optional Parameters 1319 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoReleasesOpts struct 1320 1321 Name | Type | Description | Notes 1322 ------------- | ------------- | ------------- | ------------- 1323 1324 1325 **accessToken** | **optional.String**| 用户授权码 | 1326 **page** | **optional.Int32**| 当前的页码 | [default to 1] 1327 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 1328 1329 ### Return type 1330 1331 [**[]Release**](Release.md) 1332 1333 ### Authorization 1334 1335 No authorization required 1336 1337 ### HTTP request headers 1338 1339 - **Content-Type**: application/json, multipart/form-data 1340 - **Accept**: application/json 1341 1342 [[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) 1343 1344 # **GetV5ReposOwnerRepoReleasesId** 1345 > Release GetV5ReposOwnerRepoReleasesId(ctx, owner, repo, id, optional) 1346 获取仓库的单个Releases 1347 1348 获取仓库的单个Releases 1349 1350 ### Required Parameters 1351 1352 Name | Type | Description | Notes 1353 ------------- | ------------- | ------------- | ------------- 1354 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1355 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1356 **repo** | **string**| 仓库路径(path) | 1357 **id** | **int32**| 发行版本的ID | 1358 **optional** | ***GetV5ReposOwnerRepoReleasesIdOpts** | optional parameters | nil if no parameters 1359 1360 ### Optional Parameters 1361 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoReleasesIdOpts struct 1362 1363 Name | Type | Description | Notes 1364 ------------- | ------------- | ------------- | ------------- 1365 1366 1367 1368 **accessToken** | **optional.String**| 用户授权码 | 1369 1370 ### Return type 1371 1372 [**Release**](Release.md) 1373 1374 ### Authorization 1375 1376 No authorization required 1377 1378 ### HTTP request headers 1379 1380 - **Content-Type**: application/json, multipart/form-data 1381 - **Accept**: application/json 1382 1383 [[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) 1384 1385 # **GetV5ReposOwnerRepoReleasesLatest** 1386 > Release GetV5ReposOwnerRepoReleasesLatest(ctx, owner, repo, optional) 1387 获取仓库的最后更新的Release 1388 1389 获取仓库的最后更新的Release 1390 1391 ### Required Parameters 1392 1393 Name | Type | Description | Notes 1394 ------------- | ------------- | ------------- | ------------- 1395 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1396 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1397 **repo** | **string**| 仓库路径(path) | 1398 **optional** | ***GetV5ReposOwnerRepoReleasesLatestOpts** | optional parameters | nil if no parameters 1399 1400 ### Optional Parameters 1401 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoReleasesLatestOpts struct 1402 1403 Name | Type | Description | Notes 1404 ------------- | ------------- | ------------- | ------------- 1405 1406 1407 **accessToken** | **optional.String**| 用户授权码 | 1408 1409 ### Return type 1410 1411 [**Release**](Release.md) 1412 1413 ### Authorization 1414 1415 No authorization required 1416 1417 ### HTTP request headers 1418 1419 - **Content-Type**: application/json, multipart/form-data 1420 - **Accept**: application/json 1421 1422 [[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) 1423 1424 # **GetV5ReposOwnerRepoReleasesTagsTag** 1425 > Release GetV5ReposOwnerRepoReleasesTagsTag(ctx, owner, repo, tag, optional) 1426 根据Tag名称获取仓库的Release 1427 1428 根据Tag名称获取仓库的Release 1429 1430 ### Required Parameters 1431 1432 Name | Type | Description | Notes 1433 ------------- | ------------- | ------------- | ------------- 1434 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1435 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1436 **repo** | **string**| 仓库路径(path) | 1437 **tag** | **string**| Tag 名称 | 1438 **optional** | ***GetV5ReposOwnerRepoReleasesTagsTagOpts** | optional parameters | nil if no parameters 1439 1440 ### Optional Parameters 1441 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoReleasesTagsTagOpts struct 1442 1443 Name | Type | Description | Notes 1444 ------------- | ------------- | ------------- | ------------- 1445 1446 1447 1448 **accessToken** | **optional.String**| 用户授权码 | 1449 1450 ### Return type 1451 1452 [**Release**](Release.md) 1453 1454 ### Authorization 1455 1456 No authorization required 1457 1458 ### HTTP request headers 1459 1460 - **Content-Type**: application/json, multipart/form-data 1461 - **Accept**: application/json 1462 1463 [[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) 1464 1465 # **GetV5ReposOwnerRepoTags** 1466 > Tag GetV5ReposOwnerRepoTags(ctx, owner, repo, optional) 1467 列出仓库所有的tags 1468 1469 列出仓库所有的tags 1470 1471 ### Required Parameters 1472 1473 Name | Type | Description | Notes 1474 ------------- | ------------- | ------------- | ------------- 1475 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1476 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1477 **repo** | **string**| 仓库路径(path) | 1478 **optional** | ***GetV5ReposOwnerRepoTagsOpts** | optional parameters | nil if no parameters 1479 1480 ### Optional Parameters 1481 Optional parameters are passed through a pointer to a GetV5ReposOwnerRepoTagsOpts struct 1482 1483 Name | Type | Description | Notes 1484 ------------- | ------------- | ------------- | ------------- 1485 1486 1487 **accessToken** | **optional.String**| 用户授权码 | 1488 1489 ### Return type 1490 1491 [**Tag**](Tag.md) 1492 1493 ### Authorization 1494 1495 No authorization required 1496 1497 ### HTTP request headers 1498 1499 - **Content-Type**: application/json, multipart/form-data 1500 - **Accept**: application/json 1501 1502 [[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) 1503 1504 # **GetV5UserRepos** 1505 > Project GetV5UserRepos(ctx, optional) 1506 列出授权用户的所有仓库 1507 1508 列出授权用户的所有仓库 1509 1510 ### Required Parameters 1511 1512 Name | Type | Description | Notes 1513 ------------- | ------------- | ------------- | ------------- 1514 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1515 **optional** | ***GetV5UserReposOpts** | optional parameters | nil if no parameters 1516 1517 ### Optional Parameters 1518 Optional parameters are passed through a pointer to a GetV5UserReposOpts struct 1519 1520 Name | Type | Description | Notes 1521 ------------- | ------------- | ------------- | ------------- 1522 **accessToken** | **optional.String**| 用户授权码 | 1523 **visibility** | **optional.String**| 公开(public)、私有(private)或者所有(all),默认: 所有(all) | 1524 **affiliation** | **optional.String**| owner(授权用户拥有的仓库)、collaborator(授权用户为仓库成员)、organization_member(授权用户为仓库所在组织并有访问仓库权限)、enterprise_member(授权用户所在企业并有访问仓库权限)、admin(所有有权限的,包括所管理的组织中所有仓库、所管理的企业的所有仓库)。 可以用逗号分隔符组合。如: owner, organization_member 或 owner, collaborator, organization_member | 1525 **type_** | **optional.String**| 筛选用户仓库: 其创建(owner)、个人(personal)、其为成员(member)、公开(public)、私有(private),不能与 visibility 或 affiliation 参数一并使用,否则会报 422 错误 | 1526 **sort** | **optional.String**| 排序方式: 创建时间(created),更新时间(updated),最后推送时间(pushed),仓库所属与名称(full_name)。默认: full_name | [default to full_name] 1527 **direction** | **optional.String**| 如果sort参数为full_name,用升序(asc)。否则降序(desc) | 1528 **page** | **optional.Int32**| 当前的页码 | [default to 1] 1529 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 1530 1531 ### Return type 1532 1533 [**Project**](Project.md) 1534 1535 ### Authorization 1536 1537 No authorization required 1538 1539 ### HTTP request headers 1540 1541 - **Content-Type**: application/json, multipart/form-data 1542 - **Accept**: application/json 1543 1544 [[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) 1545 1546 # **GetV5UsersUsernameRepos** 1547 > Project GetV5UsersUsernameRepos(ctx, username, optional) 1548 获取某个用户的公开仓库 1549 1550 获取某个用户的公开仓库 1551 1552 ### Required Parameters 1553 1554 Name | Type | Description | Notes 1555 ------------- | ------------- | ------------- | ------------- 1556 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1557 **username** | **string**| 用户名(username/login) | 1558 **optional** | ***GetV5UsersUsernameReposOpts** | optional parameters | nil if no parameters 1559 1560 ### Optional Parameters 1561 Optional parameters are passed through a pointer to a GetV5UsersUsernameReposOpts struct 1562 1563 Name | Type | Description | Notes 1564 ------------- | ------------- | ------------- | ------------- 1565 1566 **accessToken** | **optional.String**| 用户授权码 | 1567 **type_** | **optional.String**| 用户创建的仓库(owner),用户个人仓库(personal),用户为仓库成员(member),所有(all)。默认: 所有(all) | [default to all] 1568 **sort** | **optional.String**| 排序方式: 创建时间(created),更新时间(updated),最后推送时间(pushed),仓库所属与名称(full_name)。默认: full_name | [default to full_name] 1569 **direction** | **optional.String**| 如果sort参数为full_name,用升序(asc)。否则降序(desc) | 1570 **page** | **optional.Int32**| 当前的页码 | [default to 1] 1571 **perPage** | **optional.Int32**| 每页的数量,最大为 100 | [default to 20] 1572 1573 ### Return type 1574 1575 [**Project**](Project.md) 1576 1577 ### Authorization 1578 1579 No authorization required 1580 1581 ### HTTP request headers 1582 1583 - **Content-Type**: application/json, multipart/form-data 1584 - **Accept**: application/json 1585 1586 [[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) 1587 1588 # **PatchV5ReposOwnerRepo** 1589 > Project PatchV5ReposOwnerRepo(ctx, owner, repo, body) 1590 更新仓库设置 1591 1592 更新仓库设置 1593 1594 ### Required Parameters 1595 1596 Name | Type | Description | Notes 1597 ------------- | ------------- | ------------- | ------------- 1598 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1599 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1600 **repo** | **string**| 仓库路径(path) | 1601 **body** | [**RepoPatchParam**](RepoPatchParam.md)| repo patch param | 1602 1603 ### Return type 1604 1605 [**Project**](Project.md) 1606 1607 ### Authorization 1608 1609 No authorization required 1610 1611 ### HTTP request headers 1612 1613 - **Content-Type**: application/json, multipart/form-data 1614 - **Accept**: application/json 1615 1616 [[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) 1617 1618 # **PatchV5ReposOwnerRepoCommentsId** 1619 > Note PatchV5ReposOwnerRepoCommentsId(ctx, owner, repo, id, body, optional) 1620 更新Commit评论 1621 1622 更新Commit评论 1623 1624 ### Required Parameters 1625 1626 Name | Type | Description | Notes 1627 ------------- | ------------- | ------------- | ------------- 1628 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1629 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1630 **repo** | **string**| 仓库路径(path) | 1631 **id** | **int32**| 评论的ID | 1632 **body** | **string**| 评论的内容 | 1633 **optional** | ***PatchV5ReposOwnerRepoCommentsIdOpts** | optional parameters | nil if no parameters 1634 1635 ### Optional Parameters 1636 Optional parameters are passed through a pointer to a PatchV5ReposOwnerRepoCommentsIdOpts struct 1637 1638 Name | Type | Description | Notes 1639 ------------- | ------------- | ------------- | ------------- 1640 1641 1642 1643 1644 **accessToken** | **optional.String**| 用户授权码 | 1645 1646 ### Return type 1647 1648 [**Note**](Note.md) 1649 1650 ### Authorization 1651 1652 No authorization required 1653 1654 ### HTTP request headers 1655 1656 - **Content-Type**: application/json, multipart/form-data 1657 - **Accept**: application/json 1658 1659 [[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) 1660 1661 # **PatchV5ReposOwnerRepoReleasesId** 1662 > Release PatchV5ReposOwnerRepoReleasesId(ctx, owner, repo, tagName, name, body, id, optional) 1663 更新仓库Release 1664 1665 更新仓库Release 1666 1667 ### Required Parameters 1668 1669 Name | Type | Description | Notes 1670 ------------- | ------------- | ------------- | ------------- 1671 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1672 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1673 **repo** | **string**| 仓库路径(path) | 1674 **tagName** | **string**| Tag 名称, 提倡以v字母为前缀做为Release名称,例如v1.0或者v2.3.4 | 1675 **name** | **string**| Release 名称 | 1676 **body** | **string**| Release 描述 | 1677 **id** | **int32**| | 1678 **optional** | ***PatchV5ReposOwnerRepoReleasesIdOpts** | optional parameters | nil if no parameters 1679 1680 ### Optional Parameters 1681 Optional parameters are passed through a pointer to a PatchV5ReposOwnerRepoReleasesIdOpts struct 1682 1683 Name | Type | Description | Notes 1684 ------------- | ------------- | ------------- | ------------- 1685 1686 1687 1688 1689 1690 1691 **accessToken** | **optional.String**| 用户授权码 | 1692 **prerelease** | **optional.Bool**| 是否为预览版本。默认: false(非预览版本) | 1693 1694 ### Return type 1695 1696 [**Release**](Release.md) 1697 1698 ### Authorization 1699 1700 No authorization required 1701 1702 ### HTTP request headers 1703 1704 - **Content-Type**: application/json, multipart/form-data 1705 - **Accept**: application/json 1706 1707 [[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) 1708 1709 # **PostV5EnterprisesEnterpriseRepos** 1710 > Project PostV5EnterprisesEnterpriseRepos(ctx, name, enterprise, optional) 1711 创建企业仓库 1712 1713 创建企业仓库 1714 1715 ### Required Parameters 1716 1717 Name | Type | Description | Notes 1718 ------------- | ------------- | ------------- | ------------- 1719 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1720 **name** | **string**| 仓库名称 | 1721 **enterprise** | **string**| 企业的路径(path/login) | 1722 **optional** | ***PostV5EnterprisesEnterpriseReposOpts** | optional parameters | nil if no parameters 1723 1724 ### Optional Parameters 1725 Optional parameters are passed through a pointer to a PostV5EnterprisesEnterpriseReposOpts struct 1726 1727 Name | Type | Description | Notes 1728 ------------- | ------------- | ------------- | ------------- 1729 1730 1731 **accessToken** | **optional.String**| 用户授权码 | 1732 **description** | **optional.String**| 仓库描述 | 1733 **homepage** | **optional.String**| 主页(eg: https://gitee.com) | 1734 **hasIssues** | **optional.Bool**| 允许提Issue与否。默认: 允许(true) | [default to true] 1735 **hasWiki** | **optional.Bool**| 提供Wiki与否。默认: 提供(true) | [default to true] 1736 **canComment** | **optional.Bool**| 允许用户对仓库进行评论。默认: 允许(true) | [default to true] 1737 **autoInit** | **optional.Bool**| 值为true时则会用README初始化仓库。默认: 不初始化(false) | 1738 **gitignoreTemplate** | **optional.String**| Git Ingore模版 | 1739 **licenseTemplate** | **optional.String**| License模版 | 1740 **private** | **optional.Int32**| 仓库开源类型。0(私有), 1(外部开源), 2(内部开源)。默认: 0 | [default to 0] 1741 **outsourced** | **optional.Bool**| 值为true值为外包仓库, false值为内部仓库。默认: 内部仓库(false) | 1742 **projectCreator** | **optional.String**| 负责人的username | 1743 **members** | **optional.String**| 用逗号分开的仓库成员。如: member1,member2 | 1744 1745 ### Return type 1746 1747 [**Project**](Project.md) 1748 1749 ### Authorization 1750 1751 No authorization required 1752 1753 ### HTTP request headers 1754 1755 - **Content-Type**: application/json, multipart/form-data 1756 - **Accept**: application/json 1757 1758 [[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) 1759 1760 # **PostV5OrgsOrgRepos** 1761 > Project PostV5OrgsOrgRepos(ctx, org, body) 1762 创建组织仓库 1763 1764 创建组织仓库 1765 1766 ### Required Parameters 1767 1768 Name | Type | Description | Notes 1769 ------------- | ------------- | ------------- | ------------- 1770 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1771 **org** | **string**| 组织的路径(path/login) | 1772 **body** | [**RepositoryPostParam**](RepositoryPostParam.md)| Repositorie 内容 | 1773 1774 ### Return type 1775 1776 [**Project**](Project.md) 1777 1778 ### Authorization 1779 1780 No authorization required 1781 1782 ### HTTP request headers 1783 1784 - **Content-Type**: application/json, multipart/form-data 1785 - **Accept**: application/json 1786 1787 [[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) 1788 1789 # **PostV5ReposOwnerRepoBranches** 1790 > CompleteBranch PostV5ReposOwnerRepoBranches(ctx, owner, repo, body) 1791 创建分支 1792 1793 创建分支 1794 1795 ### Required Parameters 1796 1797 Name | Type | Description | Notes 1798 ------------- | ------------- | ------------- | ------------- 1799 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1800 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1801 **repo** | **string**| 仓库路径(path) | 1802 **body** | [**CreateBranchParam**](CreateBranchParam.md)| 新建分支内容 | 1803 1804 ### Return type 1805 1806 [**CompleteBranch**](CompleteBranch.md) 1807 1808 ### Authorization 1809 1810 No authorization required 1811 1812 ### HTTP request headers 1813 1814 - **Content-Type**: application/json, multipart/form-data 1815 - **Accept**: application/json 1816 1817 [[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) 1818 1819 # **PostV5ReposOwnerRepoCommitsShaComments** 1820 > Note PostV5ReposOwnerRepoCommitsShaComments(ctx, owner, repo, sha, body, optional) 1821 创建Commit评论 1822 1823 创建Commit评论 1824 1825 ### Required Parameters 1826 1827 Name | Type | Description | Notes 1828 ------------- | ------------- | ------------- | ------------- 1829 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1830 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1831 **repo** | **string**| 仓库路径(path) | 1832 **sha** | **string**| 评论的sha值 | 1833 **body** | **string**| 评论的内容 | 1834 **optional** | ***PostV5ReposOwnerRepoCommitsShaCommentsOpts** | optional parameters | nil if no parameters 1835 1836 ### Optional Parameters 1837 Optional parameters are passed through a pointer to a PostV5ReposOwnerRepoCommitsShaCommentsOpts struct 1838 1839 Name | Type | Description | Notes 1840 ------------- | ------------- | ------------- | ------------- 1841 1842 1843 1844 1845 **accessToken** | **optional.String**| 用户授权码 | 1846 **path** | **optional.String**| 文件的相对路径 | 1847 **position** | **optional.Int32**| Diff的相对行数 | 1848 1849 ### Return type 1850 1851 [**Note**](Note.md) 1852 1853 ### Authorization 1854 1855 No authorization required 1856 1857 ### HTTP request headers 1858 1859 - **Content-Type**: application/json, multipart/form-data 1860 - **Accept**: application/json 1861 1862 [[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) 1863 1864 # **PostV5ReposOwnerRepoContentsPath** 1865 > CommitContent PostV5ReposOwnerRepoContentsPath(ctx, owner, repo, path, body) 1866 新建文件 1867 1868 新建文件 1869 1870 ### Required Parameters 1871 1872 Name | Type | Description | Notes 1873 ------------- | ------------- | ------------- | ------------- 1874 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1875 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1876 **repo** | **string**| 仓库路径(path) | 1877 **path** | **string**| 文件的路径 | 1878 **body** | [**NewFileParam**](NewFileParam.md)| 描述文件信息 | 1879 1880 ### Return type 1881 1882 [**CommitContent**](CommitContent.md) 1883 1884 ### Authorization 1885 1886 No authorization required 1887 1888 ### HTTP request headers 1889 1890 - **Content-Type**: application/json, multipart/form-data 1891 - **Accept**: application/json 1892 1893 [[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) 1894 1895 # **PostV5ReposOwnerRepoForks** 1896 > Project PostV5ReposOwnerRepoForks(ctx, owner, repo, optional) 1897 Fork一个仓库 1898 1899 Fork一个仓库 1900 1901 ### Required Parameters 1902 1903 Name | Type | Description | Notes 1904 ------------- | ------------- | ------------- | ------------- 1905 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1906 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1907 **repo** | **string**| 仓库路径(path) | 1908 **optional** | ***PostV5ReposOwnerRepoForksOpts** | optional parameters | nil if no parameters 1909 1910 ### Optional Parameters 1911 Optional parameters are passed through a pointer to a PostV5ReposOwnerRepoForksOpts struct 1912 1913 Name | Type | Description | Notes 1914 ------------- | ------------- | ------------- | ------------- 1915 1916 1917 **accessToken** | **optional.String**| 用户授权码 | 1918 **organization** | **optional.String**| 组织空间地址,不填写默认Fork到用户个人空间地址 | 1919 1920 ### Return type 1921 1922 [**Project**](Project.md) 1923 1924 ### Authorization 1925 1926 No authorization required 1927 1928 ### HTTP request headers 1929 1930 - **Content-Type**: application/json, multipart/form-data 1931 - **Accept**: application/json 1932 1933 [[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) 1934 1935 # **PostV5ReposOwnerRepoKeys** 1936 > SshKey PostV5ReposOwnerRepoKeys(ctx, owner, repo, key, title, optional) 1937 为仓库添加公钥 1938 1939 为仓库添加公钥 1940 1941 ### Required Parameters 1942 1943 Name | Type | Description | Notes 1944 ------------- | ------------- | ------------- | ------------- 1945 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1946 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1947 **repo** | **string**| 仓库路径(path) | 1948 **key** | **string**| 公钥内容 | 1949 **title** | **string**| 公钥名称 | 1950 **optional** | ***PostV5ReposOwnerRepoKeysOpts** | optional parameters | nil if no parameters 1951 1952 ### Optional Parameters 1953 Optional parameters are passed through a pointer to a PostV5ReposOwnerRepoKeysOpts struct 1954 1955 Name | Type | Description | Notes 1956 ------------- | ------------- | ------------- | ------------- 1957 1958 1959 1960 1961 **accessToken** | **optional.String**| 用户授权码 | 1962 1963 ### Return type 1964 1965 [**SshKey**](SSHKey.md) 1966 1967 ### Authorization 1968 1969 No authorization required 1970 1971 ### HTTP request headers 1972 1973 - **Content-Type**: application/json, multipart/form-data 1974 - **Accept**: application/json 1975 1976 [[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) 1977 1978 # **PostV5ReposOwnerRepoPagesBuilds** 1979 > PostV5ReposOwnerRepoPagesBuilds(ctx, owner, repo, optional) 1980 请求建立Pages 1981 1982 请求建立Pages 1983 1984 ### Required Parameters 1985 1986 Name | Type | Description | Notes 1987 ------------- | ------------- | ------------- | ------------- 1988 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 1989 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 1990 **repo** | **string**| 仓库路径(path) | 1991 **optional** | ***PostV5ReposOwnerRepoPagesBuildsOpts** | optional parameters | nil if no parameters 1992 1993 ### Optional Parameters 1994 Optional parameters are passed through a pointer to a PostV5ReposOwnerRepoPagesBuildsOpts struct 1995 1996 Name | Type | Description | Notes 1997 ------------- | ------------- | ------------- | ------------- 1998 1999 2000 **accessToken** | **optional.String**| 用户授权码 | 2001 2002 ### Return type 2003 2004 (empty response body) 2005 2006 ### Authorization 2007 2008 No authorization required 2009 2010 ### HTTP request headers 2011 2012 - **Content-Type**: application/json, multipart/form-data 2013 - **Accept**: application/json 2014 2015 [[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) 2016 2017 # **PostV5ReposOwnerRepoReleases** 2018 > Release PostV5ReposOwnerRepoReleases(ctx, owner, repo, tagName, name, body, targetCommitish, optional) 2019 创建仓库Release 2020 2021 创建仓库Release 2022 2023 ### Required Parameters 2024 2025 Name | Type | Description | Notes 2026 ------------- | ------------- | ------------- | ------------- 2027 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 2028 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 2029 **repo** | **string**| 仓库路径(path) | 2030 **tagName** | **string**| Tag 名称, 提倡以v字母为前缀做为Release名称,例如v1.0或者v2.3.4 | 2031 **name** | **string**| Release 名称 | 2032 **body** | **string**| Release 描述 | 2033 **targetCommitish** | **string**| 分支名称或者commit SHA, 默认是当前默认分支 | 2034 **optional** | ***PostV5ReposOwnerRepoReleasesOpts** | optional parameters | nil if no parameters 2035 2036 ### Optional Parameters 2037 Optional parameters are passed through a pointer to a PostV5ReposOwnerRepoReleasesOpts struct 2038 2039 Name | Type | Description | Notes 2040 ------------- | ------------- | ------------- | ------------- 2041 2042 2043 2044 2045 2046 2047 **accessToken** | **optional.String**| 用户授权码 | 2048 **prerelease** | **optional.Bool**| 是否为预览版本。默认: false(非预览版本) | 2049 2050 ### Return type 2051 2052 [**Release**](Release.md) 2053 2054 ### Authorization 2055 2056 No authorization required 2057 2058 ### HTTP request headers 2059 2060 - **Content-Type**: application/json, multipart/form-data 2061 - **Accept**: application/json 2062 2063 [[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) 2064 2065 # **PostV5UserRepos** 2066 > Project PostV5UserRepos(ctx, name, optional) 2067 创建一个仓库 2068 2069 创建一个仓库 2070 2071 ### Required Parameters 2072 2073 Name | Type | Description | Notes 2074 ------------- | ------------- | ------------- | ------------- 2075 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 2076 **name** | **string**| 仓库名称 | 2077 **optional** | ***PostV5UserReposOpts** | optional parameters | nil if no parameters 2078 2079 ### Optional Parameters 2080 Optional parameters are passed through a pointer to a PostV5UserReposOpts struct 2081 2082 Name | Type | Description | Notes 2083 ------------- | ------------- | ------------- | ------------- 2084 2085 **accessToken** | **optional.String**| 用户授权码 | 2086 **description** | **optional.String**| 仓库描述 | 2087 **homepage** | **optional.String**| 主页(eg: https://gitee.com) | 2088 **hasIssues** | **optional.Bool**| 允许提Issue与否。默认: 允许(true) | [default to true] 2089 **hasWiki** | **optional.Bool**| 提供Wiki与否。默认: 提供(true) | [default to true] 2090 **canComment** | **optional.Bool**| 允许用户对仓库进行评论。默认: 允许(true) | [default to true] 2091 **autoInit** | **optional.Bool**| 值为true时则会用README初始化仓库。默认: 不初始化(false) | 2092 **gitignoreTemplate** | **optional.String**| Git Ingore模版 | 2093 **licenseTemplate** | **optional.String**| License模版 | 2094 **private** | **optional.Bool**| 仓库公开或私有。默认: 公开(false) | 2095 2096 ### Return type 2097 2098 [**Project**](Project.md) 2099 2100 ### Authorization 2101 2102 No authorization required 2103 2104 ### HTTP request headers 2105 2106 - **Content-Type**: application/json, multipart/form-data 2107 - **Accept**: application/json 2108 2109 [[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) 2110 2111 # **PutV5ReposOwnerRepoBranchesBranchProtection** 2112 > CompleteBranch PutV5ReposOwnerRepoBranchesBranchProtection(ctx, owner, repo, branch, body) 2113 设置分支保护 2114 2115 设置分支保护 2116 2117 ### Required Parameters 2118 2119 Name | Type | Description | Notes 2120 ------------- | ------------- | ------------- | ------------- 2121 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 2122 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 2123 **repo** | **string**| 仓库路径(path) | 2124 **branch** | **string**| 分支名称 | 2125 **body** | [**BranchProtectionPutParam**](BranchProtectionPutParam.md)| 设置分支保护参数 | 2126 2127 ### Return type 2128 2129 [**CompleteBranch**](CompleteBranch.md) 2130 2131 ### Authorization 2132 2133 No authorization required 2134 2135 ### HTTP request headers 2136 2137 - **Content-Type**: application/json, multipart/form-data 2138 - **Accept**: application/json 2139 2140 [[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) 2141 2142 # **PutV5ReposOwnerRepoClear** 2143 > PutV5ReposOwnerRepoClear(ctx, owner, repo, optional) 2144 清空一个仓库 2145 2146 清空一个仓库 2147 2148 ### Required Parameters 2149 2150 Name | Type | Description | Notes 2151 ------------- | ------------- | ------------- | ------------- 2152 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 2153 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 2154 **repo** | **string**| 仓库路径(path) | 2155 **optional** | ***PutV5ReposOwnerRepoClearOpts** | optional parameters | nil if no parameters 2156 2157 ### Optional Parameters 2158 Optional parameters are passed through a pointer to a PutV5ReposOwnerRepoClearOpts struct 2159 2160 Name | Type | Description | Notes 2161 ------------- | ------------- | ------------- | ------------- 2162 2163 2164 **accessToken** | **optional.String**| 用户授权码 | 2165 2166 ### Return type 2167 2168 (empty response body) 2169 2170 ### Authorization 2171 2172 No authorization required 2173 2174 ### HTTP request headers 2175 2176 - **Content-Type**: application/json, multipart/form-data 2177 - **Accept**: application/json 2178 2179 [[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) 2180 2181 # **PutV5ReposOwnerRepoCollaboratorsUsername** 2182 > ProjectMember PutV5ReposOwnerRepoCollaboratorsUsername(ctx, owner, repo, username, body) 2183 添加仓库成员 2184 2185 添加仓库成员 2186 2187 ### Required Parameters 2188 2189 Name | Type | Description | Notes 2190 ------------- | ------------- | ------------- | ------------- 2191 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 2192 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 2193 **repo** | **string**| 仓库路径(path) | 2194 **username** | **string**| 用户名(username/login) | 2195 **body** | [**ProjectMemberPutParam**](ProjectMemberPutParam.md)| 仓库成员内容 | 2196 2197 ### Return type 2198 2199 [**ProjectMember**](ProjectMember.md) 2200 2201 ### Authorization 2202 2203 No authorization required 2204 2205 ### HTTP request headers 2206 2207 - **Content-Type**: application/json, multipart/form-data 2208 - **Accept**: application/json 2209 2210 [[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) 2211 2212 # **PutV5ReposOwnerRepoContentsPath** 2213 > CommitContent PutV5ReposOwnerRepoContentsPath(ctx, owner, repo, path, content, sha, message, optional) 2214 更新文件 2215 2216 更新文件 2217 2218 ### Required Parameters 2219 2220 Name | Type | Description | Notes 2221 ------------- | ------------- | ------------- | ------------- 2222 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 2223 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 2224 **repo** | **string**| 仓库路径(path) | 2225 **path** | **string**| 文件的路径 | 2226 **content** | **string**| 文件内容, 要用 base64 编码 | 2227 **sha** | **string**| 文件的 Blob SHA,可通过 [获取仓库具体路径下的内容] API 获取 | 2228 **message** | **string**| 提交信息 | 2229 **optional** | ***PutV5ReposOwnerRepoContentsPathOpts** | optional parameters | nil if no parameters 2230 2231 ### Optional Parameters 2232 Optional parameters are passed through a pointer to a PutV5ReposOwnerRepoContentsPathOpts struct 2233 2234 Name | Type | Description | Notes 2235 ------------- | ------------- | ------------- | ------------- 2236 2237 2238 2239 2240 2241 2242 **accessToken** | **optional.String**| 用户授权码 | 2243 **branch** | **optional.String**| 分支名称。默认为仓库对默认分支 | 2244 **committerName** | **optional.String**| Committer的名字,默认为当前用户的名字 | 2245 **committerEmail** | **optional.String**| Committer的邮箱,默认为当前用户的邮箱 | 2246 **authorName** | **optional.String**| Author的名字,默认为当前用户的名字 | 2247 **authorEmail** | **optional.String**| Author的邮箱,默认为当前用户的邮箱 | 2248 2249 ### Return type 2250 2251 [**CommitContent**](CommitContent.md) 2252 2253 ### Authorization 2254 2255 No authorization required 2256 2257 ### HTTP request headers 2258 2259 - **Content-Type**: application/json, multipart/form-data 2260 - **Accept**: application/json 2261 2262 [[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) 2263 2264 # **PutV5ReposOwnerRepoKeysEnableId** 2265 > PutV5ReposOwnerRepoKeysEnableId(ctx, owner, repo, id, optional) 2266 启用仓库公钥 2267 2268 启用仓库公钥 2269 2270 ### Required Parameters 2271 2272 Name | Type | Description | Notes 2273 ------------- | ------------- | ------------- | ------------- 2274 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 2275 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 2276 **repo** | **string**| 仓库路径(path) | 2277 **id** | **int32**| 公钥 ID | 2278 **optional** | ***PutV5ReposOwnerRepoKeysEnableIdOpts** | optional parameters | nil if no parameters 2279 2280 ### Optional Parameters 2281 Optional parameters are passed through a pointer to a PutV5ReposOwnerRepoKeysEnableIdOpts struct 2282 2283 Name | Type | Description | Notes 2284 ------------- | ------------- | ------------- | ------------- 2285 2286 2287 2288 **accessToken** | **optional.String**| 用户授权码 | 2289 2290 ### Return type 2291 2292 (empty response body) 2293 2294 ### Authorization 2295 2296 No authorization required 2297 2298 ### HTTP request headers 2299 2300 - **Content-Type**: application/json, multipart/form-data 2301 - **Accept**: application/json 2302 2303 [[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) 2304 2305 # **PutV5ReposOwnerRepoReviewer** 2306 > PutV5ReposOwnerRepoReviewer(ctx, owner, repo, body) 2307 修改代码审查设置 2308 2309 修改代码审查设置 2310 2311 ### Required Parameters 2312 2313 Name | Type | Description | Notes 2314 ------------- | ------------- | ------------- | ------------- 2315 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 2316 **owner** | **string**| 仓库所属空间地址(企业、组织或个人的地址path) | 2317 **repo** | **string**| 仓库路径(path) | 2318 **body** | [**SetRepoReviewer**](SetRepoReviewer.md)| 修改代码审查的信息 | 2319 2320 ### Return type 2321 2322 (empty response body) 2323 2324 ### Authorization 2325 2326 No authorization required 2327 2328 ### HTTP request headers 2329 2330 - **Content-Type**: application/json, multipart/form-data 2331 - **Accept**: application/json 2332 2333 [[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) 2334