16 Star 27 Fork 39

openEuler / go-gitee

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model_repository_post_param.go 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
/*
* 码云 Open API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: 5.3.2
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package gitee
// create repository
type RepositoryPostParam struct {
// 用户授权码
AccessToken string `json:"access_token,omitempty"`
// 仓库名称
Name string `json:"name,omitempty"`
// 仓库描述
Description string `json:"description,omitempty"`
// 主页(eg: https://gitee.com)
Homepage string `json:"homepage,omitempty"`
// 允许提Issue与否。默认: 允许(true)
HasIssues bool `json:"has_issues,omitempty"`
// 提供Wiki与否。默认: 提供(true)
HasWiki bool `json:"has_wiki,omitempty"`
// 允许用户对仓库进行评论。默认: 允许(true)
CanComment bool `json:"can_comment,omitempty"`
// 仓库开源类型。0(私有), 1(外部开源), 2(内部开源),注:与private互斥,以public为主。
Public int32 `json:"public,omitempty"`
// 仓库公开或私有。默认: 公开(false),注:与public互斥,以public为主。
Private bool `json:"private,omitempty"`
// 值为true时则会用README初始化仓库。默认: 不初始化(false)
AutoInit bool `json:"auto_init,omitempty"`
// Git Ingore模版
GitignoreTemplate string `json:"gitignore_template,omitempty"`
// License模版
LicenseTemplate string `json:"license_template,omitempty"`
}
Go
1
https://gitee.com/openeuler/go-gitee.git
git@gitee.com:openeuler/go-gitee.git
openeuler
go-gitee
go-gitee
3af895bc380c

搜索帮助