gitee.com/openeuler/go-gitee@v0.0.0-20220530104019-3af895bc380c/gitee/model_repository_post_param.go (about) 1 /* 2 * 码云 Open API 3 * 4 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 * 6 * API version: 5.3.2 7 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 */ 9 10 package gitee 11 12 // create repository 13 type RepositoryPostParam struct { 14 // 用户授权码 15 AccessToken string `json:"access_token,omitempty"` 16 // 仓库名称 17 Name string `json:"name,omitempty"` 18 // 仓库描述 19 Description string `json:"description,omitempty"` 20 // 主页(eg: https://gitee.com) 21 Homepage string `json:"homepage,omitempty"` 22 // 允许提Issue与否。默认: 允许(true) 23 HasIssues bool `json:"has_issues,omitempty"` 24 // 提供Wiki与否。默认: 提供(true) 25 HasWiki bool `json:"has_wiki,omitempty"` 26 // 允许用户对仓库进行评论。默认: 允许(true) 27 CanComment bool `json:"can_comment,omitempty"` 28 // 仓库开源类型。0(私有), 1(外部开源), 2(内部开源),注:与private互斥,以public为主。 29 Public int32 `json:"public,omitempty"` 30 // 仓库公开或私有。默认: 公开(false),注:与public互斥,以public为主。 31 Private bool `json:"private,omitempty"` 32 // 值为true时则会用README初始化仓库。默认: 不初始化(false) 33 AutoInit bool `json:"auto_init,omitempty"` 34 // Git Ingore模版 35 GitignoreTemplate string `json:"gitignore_template,omitempty"` 36 // License模版 37 LicenseTemplate string `json:"license_template,omitempty"` 38 }