model

package
v0.1.107 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddDeployKeyRequest

type AddDeployKeyRequest struct {

	// 仓库短id
	RepositoryId int32 `json:"repository_id"`

	Body *AddDeployKeyRequestBody `json:"body,omitempty"`
}

AddDeployKeyRequest Request Object

func (AddDeployKeyRequest) String

func (o AddDeployKeyRequest) String() string

type AddDeployKeyRequestBody

type AddDeployKeyRequestBody struct {

	// 部署使用的SSH密钥的来源
	Application string `json:"application"`

	// 部署使用的SSH密钥是否可以推送代码
	CanPush bool `json:"can_push"`

	// 部署使用的SSH密钥
	Key string `json:"key"`

	// 部署使用的SSH密钥名称
	KeyTitle string `json:"key_title"`
}

func (AddDeployKeyRequestBody) String

func (o AddDeployKeyRequestBody) String() string

type AddDeployKeyResponse

type AddDeployKeyResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *Key `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AddDeployKeyResponse Response Object

func (AddDeployKeyResponse) String

func (o AddDeployKeyResponse) String() string

type AddDeployKeyV2Request

type AddDeployKeyV2Request struct {

	// 仓库主键id
	RepositoryId int32 `json:"repository_id"`

	Body *AddDeployKeyRequestBody `json:"body,omitempty"`
}

AddDeployKeyV2Request Request Object

func (AddDeployKeyV2Request) String

func (o AddDeployKeyV2Request) String() string

type AddDeployKeyV2Response

type AddDeployKeyV2Response struct {
	Error *Error `json:"error,omitempty"`

	Result *Key `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AddDeployKeyV2Response Response Object

func (AddDeployKeyV2Response) String

func (o AddDeployKeyV2Response) String() string

type AddHooksRequest

type AddHooksRequest struct {

	// 组名(克隆地址中域名后面仓库名前的一段 示例:git@repo.alpha.devcloud.inhuawei.com:Demo00228/testword.git  组名:Demo00228 )
	GroupName string `json:"group_name"`

	// 仓库名
	RepositoryName string `json:"repository_name"`

	Body *RepositoryHookRequest `json:"body,omitempty"`
}

AddHooksRequest Request Object

func (AddHooksRequest) String

func (o AddHooksRequest) String() string

type AddHooksResponse

type AddHooksResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *RepoHook `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AddHooksResponse Response Object

func (AddHooksResponse) String

func (o AddHooksResponse) String() string

type AddProtectAccessLevel added in v0.0.88

type AddProtectAccessLevel struct {

	// 提交权限 0:任何人不允许提交,30:开发者及管理员可提交,40:管理员可提交
	PushAccessLevel AddProtectAccessLevelPushAccessLevel `json:"push_access_level"`

	// 合并权限 0:任何人不允许合并,30:开发者及管理员可合并,40:管理员可合并,合并权限必须大于等于提交权限
	MergeAccessLevel AddProtectAccessLevelMergeAccessLevel `json:"merge_access_level"`
}

func (AddProtectAccessLevel) String added in v0.0.88

func (o AddProtectAccessLevel) String() string

type AddProtectAccessLevelMergeAccessLevel added in v0.1.1

type AddProtectAccessLevelMergeAccessLevel struct {
	// contains filtered or unexported fields
}

func (AddProtectAccessLevelMergeAccessLevel) MarshalJSON added in v0.1.1

func (c AddProtectAccessLevelMergeAccessLevel) MarshalJSON() ([]byte, error)

func (*AddProtectAccessLevelMergeAccessLevel) UnmarshalJSON added in v0.1.1

func (c *AddProtectAccessLevelMergeAccessLevel) UnmarshalJSON(b []byte) error

func (AddProtectAccessLevelMergeAccessLevel) Value added in v0.1.1

type AddProtectAccessLevelMergeAccessLevelEnum added in v0.1.1

type AddProtectAccessLevelMergeAccessLevelEnum struct {
	E_0  AddProtectAccessLevelMergeAccessLevel
	E_30 AddProtectAccessLevelMergeAccessLevel
	E_40 AddProtectAccessLevelMergeAccessLevel
}

func GetAddProtectAccessLevelMergeAccessLevelEnum added in v0.1.1

func GetAddProtectAccessLevelMergeAccessLevelEnum() AddProtectAccessLevelMergeAccessLevelEnum

type AddProtectAccessLevelPushAccessLevel added in v0.1.1

type AddProtectAccessLevelPushAccessLevel struct {
	// contains filtered or unexported fields
}

func (AddProtectAccessLevelPushAccessLevel) MarshalJSON added in v0.1.1

func (c AddProtectAccessLevelPushAccessLevel) MarshalJSON() ([]byte, error)

func (*AddProtectAccessLevelPushAccessLevel) UnmarshalJSON added in v0.1.1

func (c *AddProtectAccessLevelPushAccessLevel) UnmarshalJSON(b []byte) error

func (AddProtectAccessLevelPushAccessLevel) Value added in v0.1.1

type AddProtectAccessLevelPushAccessLevelEnum added in v0.1.1

type AddProtectAccessLevelPushAccessLevelEnum struct {
	E_0  AddProtectAccessLevelPushAccessLevel
	E_30 AddProtectAccessLevelPushAccessLevel
	E_40 AddProtectAccessLevelPushAccessLevel
}

func GetAddProtectAccessLevelPushAccessLevelEnum added in v0.1.1

func GetAddProtectAccessLevelPushAccessLevelEnum() AddProtectAccessLevelPushAccessLevelEnum

type AddProtectBranchV2Request added in v0.0.88

type AddProtectBranchV2Request struct {

	// 仓库主键id
	RepositoryId int32 `json:"repository_id"`

	// 分支名称
	BranchName string `json:"branch_name"`

	Body *AddProtectRequest `json:"body,omitempty"`
}

AddProtectBranchV2Request Request Object

func (AddProtectBranchV2Request) String added in v0.0.88

func (o AddProtectBranchV2Request) String() string

type AddProtectBranchV2Response added in v0.0.88

type AddProtectBranchV2Response struct {
	Error *Error `json:"error,omitempty"`

	Result *AddProtectResponse `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AddProtectBranchV2Response Response Object

func (AddProtectBranchV2Response) String added in v0.0.88

type AddProtectRequest added in v0.0.88

type AddProtectRequest struct {
	AccessLevel *AddProtectAccessLevel `json:"access_level"`
}

func (AddProtectRequest) String added in v0.0.88

func (o AddProtectRequest) String() string

type AddProtectResponse added in v0.0.88

type AddProtectResponse struct {

	// 分支名称
	Name *string `json:"name,omitempty"`

	Commit *CommitRepoV2 `json:"commit,omitempty"`

	// 是否保护
	Protected *bool `json:"protected,omitempty"`

	// 是否允许开发者提交
	DevelopersCanPush *bool `json:"developers_can_push,omitempty"`

	// 是否允许开发者合并
	DevelopersCanMerge *bool `json:"developers_can_merge,omitempty"`

	// 是否允许管理员提交
	MasterCanPush *bool `json:"master_can_push,omitempty"`

	// 是否允许管理员合并
	MasterCanMerge *bool `json:"master_can_merge,omitempty"`

	// 没有人允许提交
	NoOneCanPush *bool `json:"no_one_can_push,omitempty"`

	// 没有人允许合并
	NoOneCanMerge *bool `json:"no_one_can_merge,omitempty"`

	// 是否在一个打开的合并请求
	InAnOpenedMergeRequest *bool `json:"in_an_opened_merge_request,omitempty"`
}

func (AddProtectResponse) String added in v0.0.88

func (o AddProtectResponse) String() string

type AddRepoMembersRequest

type AddRepoMembersRequest struct {

	// 仓库uuid(由CreateRepository接口返回)
	RepositoryUuid string `json:"repository_uuid"`

	Body *CreateRepoMemberRequest `json:"body,omitempty"`
}

AddRepoMembersRequest Request Object

func (AddRepoMembersRequest) String

func (o AddRepoMembersRequest) String() string

type AddRepoMembersResponse

type AddRepoMembersResponse struct {
	Error *Error `json:"error,omitempty"`

	// 响应结果
	Result *[]CreateRepoMemberResult `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AddRepoMembersResponse Response Object

func (AddRepoMembersResponse) String

func (o AddRepoMembersResponse) String() string

type AddSshKeyRequest

type AddSshKeyRequest struct {
	Body *AddSshKeyRequestBody `json:"body,omitempty"`
}

AddSshKeyRequest Request Object

func (AddSshKeyRequest) String

func (o AddSshKeyRequest) String() string

type AddSshKeyRequestBody

type AddSshKeyRequestBody struct {

	// 密钥
	Key string `json:"key"`

	// 密钥名称
	Title string `json:"title"`
}

func (AddSshKeyRequestBody) String

func (o AddSshKeyRequestBody) String() string

type AddSshKeyResponse

type AddSshKeyResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *PublicKey `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AddSshKeyResponse Response Object

func (AddSshKeyResponse) String

func (o AddSshKeyResponse) String() string

type AddTagV2Request added in v0.0.88

type AddTagV2Request struct {

	// 仓库主键id
	RepositoryId int32 `json:"repository_id"`

	Body *AddTagsRequest `json:"body,omitempty"`
}

AddTagV2Request Request Object

func (AddTagV2Request) String added in v0.0.88

func (o AddTagV2Request) String() string

type AddTagV2Response added in v0.0.88

type AddTagV2Response struct {
	Error *Error `json:"error,omitempty"`

	Result *AddTagsResponse `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AddTagV2Response Response Object

func (AddTagV2Response) String added in v0.0.88

func (o AddTagV2Response) String() string

type AddTagsRequest added in v0.0.88

type AddTagsRequest struct {

	// 标签名称
	TagName string `json:"tag_name"`

	// 分支名称
	Ref string `json:"ref"`

	// 备注
	Message *string `json:"message,omitempty"`
}

func (AddTagsRequest) String added in v0.0.88

func (o AddTagsRequest) String() string

type AddTagsResponse added in v0.0.88

type AddTagsResponse struct {

	// 标签名称
	Name *string `json:"name,omitempty"`

	// 备注
	Message *string `json:"message,omitempty"`

	Commit *CommitRepoV2 `json:"commit,omitempty"`
}

func (AddTagsResponse) String added in v0.0.88

func (o AddTagsResponse) String() string

type ApprovalMergeRequestApproversItem added in v0.1.1

type ApprovalMergeRequestApproversItem struct {

	// 用户id
	Id *float64 `json:"id,omitempty"`

	// 用户名
	Name *string `json:"name,omitempty"`

	// 用户昵称
	NickName *string `json:"nick_name,omitempty"`

	// 用户状态
	State *string `json:"state,omitempty"`

	// 用户iamId
	Username *string `json:"username,omitempty"`
}

func (ApprovalMergeRequestApproversItem) String added in v0.1.1

type AssociateIssuesRequest added in v0.1.1

type AssociateIssuesRequest struct {
	Body *AssociateIssuesRequestBody `json:"body,omitempty"`
}

AssociateIssuesRequest Request Object

func (AssociateIssuesRequest) String added in v0.1.1

func (o AssociateIssuesRequest) String() string

type AssociateIssuesRequestBody added in v0.1.1

type AssociateIssuesRequestBody struct {

	// 分支名
	Branch string `json:"branch"`

	// 项目ID,获取方式请参见[获取项目ID](codehub_api_0014.xml)。
	ProjectId string `json:"project_id"`

	// 工作项集合
	RelatedId []string `json:"related_id"`

	// 仓库id
	RepoId string `json:"repo_id"`
}

func (AssociateIssuesRequestBody) String added in v0.1.1

type AssociateIssuesResponse added in v0.1.1

type AssociateIssuesResponse struct {
	Error *Error `json:"error,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

AssociateIssuesResponse Response Object

func (AssociateIssuesResponse) String added in v0.1.1

func (o AssociateIssuesResponse) String() string

type Author added in v0.1.1

type Author struct {

	// 用户id
	Id *float64 `json:"id,omitempty"`

	// 用户名
	Name *string `json:"name,omitempty"`

	// 用户状态
	State *string `json:"state,omitempty"`

	// 用户iamId
	Username *string `json:"username,omitempty"`
}

func (Author) String added in v0.1.1

func (o Author) String() string

type Branch

type Branch struct {

	// 是否开启保护分支功能
	IsProtected *bool `json:"is_protected,omitempty"`

	// 分支名
	Name *string `json:"name,omitempty"`
}

func (Branch) String

func (o Branch) String() string

type BranchList

type BranchList struct {

	// 指定仓库的分支列表
	Branches *[]Branch `json:"branches,omitempty"`

	// 指定仓库的分支总数
	Total *int32 `json:"total,omitempty"`
}

func (BranchList) String

func (o BranchList) String() string

type BranchResponse added in v0.1.1

type BranchResponse struct {

	// 分支信息
	Branches *[]BranchesItem `json:"branches,omitempty"`

	// 总数
	Total *float64 `json:"total,omitempty"`
}

func (BranchResponse) String added in v0.1.1

func (o BranchResponse) String() string

type BranchesItem added in v0.1.1

type BranchesItem struct {
	Commit *CommitV2 `json:"commit,omitempty"`

	DivergingCommitCounts *DivergingCommitCounts `json:"diverging_commit_counts,omitempty"`

	// 分支名
	Name *string `json:"name,omitempty"`
}

func (BranchesItem) String added in v0.1.1

func (o BranchesItem) String() string

type CategoryDto added in v0.1.50

type CategoryDto struct {

	// key
	Key *string `json:"key,omitempty"`

	// 中文名
	NameZh *string `json:"name_zh,omitempty"`

	// 英文名
	NameEn *string `json:"name_en,omitempty"`

	// 二级分类
	SubCategories *[]CategoryDto `json:"sub_categories,omitempty"`
}

func (CategoryDto) String added in v0.1.50

func (o CategoryDto) String() string

type Commit

type Commit struct {

	// 作者邮箱
	AuthorEmail *string `json:"author_email,omitempty"`

	// 作者
	AuthorName *string `json:"author_name,omitempty"`

	// 作者提交时间
	AuthoredDate *sdktime.SdkTime `json:"authored_date,omitempty"`

	// 提交时间
	CommittedDate *sdktime.SdkTime `json:"committed_date,omitempty"`

	// 提交作者邮箱
	CommitterEmail *string `json:"committer_email,omitempty"`

	// 提交作者
	CommitterName *string `json:"committer_name,omitempty"`

	// 文件变更的详情信息,其格式由请求查询参数 stat_format 决定
	Format *interface{} `json:"format,omitempty"`

	// 提交对应的SHA id
	Id *string `json:"id,omitempty"`

	// 提交的信息
	Message *string `json:"message,omitempty"`

	// 父提交id
	ParentIds *[]string `json:"parent_ids,omitempty"`
}

func (Commit) String

func (o Commit) String() string

type CommitAction

type CommitAction struct {

	// 要执行的操作:create、delete、move、update、chmod
	Action string `json:"action"`

	// 文件的完整路径。例如lib/class.rb
	FilePath string `json:"file_path"`

	// 要移动的文件的原始完整路径。例如lib/class1.rb。仅在move操作时生效
	PreviousPath *string `json:"previous_path,omitempty"`

	// 文件内容,create和update操作时必须。未指定内容的移动操作将保留现有文件内容,内容的任何其他值将覆盖文件内容。
	Content *string `json:"content,omitempty"`

	// 文件编码:text、base64。默认为text
	Encoding *string `json:"encoding,omitempty"`

	// 最后一个已知的提交ID。仅在update、move、delete操作时生效
	LastCommitId *string `json:"last_commit_id,omitempty"`

	// 启用或者禁用文件的执行模式。仅在chmod操作时生效
	ExecuteFilemode *bool `json:"execute_filemode,omitempty"`
}

func (CommitAction) String

func (o CommitAction) String() string

type CommitInfo

type CommitInfo struct {

	// 提交对应的SHA id
	Id *string `json:"id,omitempty"`

	// 提交对应的短SHA id
	ShortId *string `json:"short_id,omitempty"`

	// 提交标题
	Title *string `json:"title,omitempty"`

	// 作者
	AuthorName *string `json:"author_name,omitempty"`

	// 作者邮箱
	AuthorEmail *string `json:"author_email,omitempty"`

	// 提交作者
	CommitterName *string `json:"committer_name,omitempty"`

	// 提交作者邮箱
	CommitterEmail *string `json:"committer_email,omitempty"`

	// 创建时间
	CreatedAt *string `json:"created_at,omitempty"`

	// 提交信息
	Message *string `json:"message,omitempty"`

	// 父提交id
	ParentIds *[]string `json:"parent_ids,omitempty"`

	// 提交时间
	CommittedDate *sdktime.SdkTime `json:"committed_date,omitempty"`

	// 作者提交时间
	AuthoredDate *sdktime.SdkTime `json:"authored_date,omitempty"`
}

func (CommitInfo) String

func (o CommitInfo) String() string

type CommitList

type CommitList struct {

	// 提交列表
	Commits *[]Commit `json:"commits,omitempty"`

	// 提交总数
	Total *int32 `json:"total,omitempty"`
}

func (CommitList) String

func (o CommitList) String() string

type CommitRepoV2 added in v0.0.88

type CommitRepoV2 struct {

	// 提交对应的SHA id
	Id *string `json:"id,omitempty"`

	// 提交对应的短SHA id
	ShortId *string `json:"short_id,omitempty"`

	// 创建时间
	CreatedAt *string `json:"created_at,omitempty"`

	// 提交标题
	Title *string `json:"title,omitempty"`

	// 父提交id
	ParentIds *[]string `json:"parent_ids,omitempty"`

	// 提交信息
	Message *string `json:"message,omitempty"`

	// 作者
	AuthorName *string `json:"author_name,omitempty"`

	// 提交作者
	CommitterName *string `json:"committer_name,omitempty"`

	// 提交时间
	CommittedDate *sdktime.SdkTime `json:"committed_date,omitempty"`
}

func (CommitRepoV2) String added in v0.0.88

func (o CommitRepoV2) String() string

type CommitStatistic

type CommitStatistic struct {

	// 增加的行数
	Additions *int32 `json:"additions,omitempty"`

	// 删除的行数
	Deletions *int32 `json:"deletions,omitempty"`
}

func (CommitStatistic) String

func (o CommitStatistic) String() string

type CommitV2 added in v0.1.1

type CommitV2 struct {

	// 提交时间
	CommittedDate *string `json:"committed_date,omitempty"`

	// 提交者
	CommitterName *string `json:"committer_name,omitempty"`

	// 提交id
	Id *string `json:"id,omitempty"`

	// 提交信息
	Message *string `json:"message,omitempty"`

	// 提交短id
	ShortId *string `json:"short_id,omitempty"`

	// 提交标题
	Title *string `json:"title,omitempty"`
}

func (CommitV2) String added in v0.1.1

func (o CommitV2) String() string

type CreateCommitRequest

type CreateCommitRequest struct {

	// 仓库短id
	RepoId int32 `json:"repo_id"`

	Body *CreateCommitRequestBody `json:"body,omitempty"`
}

CreateCommitRequest Request Object

func (CreateCommitRequest) String

func (o CreateCommitRequest) String() string

type CreateCommitRequestBody

type CreateCommitRequestBody struct {

	// 目标分支
	Branch string `json:"branch"`

	// 提交信息
	CommitMessage string `json:"commit_message"`

	// 创建分支时,新的分支名
	StartBranch *string `json:"start_branch,omitempty"`

	// 提交处理列表
	Actions []CommitAction `json:"actions"`

	// 提交作者的电子邮件地址
	AuthorEmail *string `json:"author_email,omitempty"`

	// 提交作者的名称
	AuthorName *string `json:"author_name,omitempty"`

	// 是否包括提交统计信息。默认值为true
	Stats *bool `json:"stats,omitempty"`

	// 是否覆盖目标分支。当true时,使用基于start_branch的新提交覆盖目标分支
	Force *bool `json:"force,omitempty"`
}

func (CreateCommitRequestBody) String

func (o CreateCommitRequestBody) String() string

type CreateCommitResponse

type CreateCommitResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *CreateCommitResponseBody `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateCommitResponse Response Object

func (CreateCommitResponse) String

func (o CreateCommitResponse) String() string

type CreateCommitResponseBody

type CreateCommitResponseBody struct {

	// 提交对应的SHA id
	Id *string `json:"id,omitempty"`

	// 提交对应的短SHA id
	ShortId *string `json:"short_id,omitempty"`

	// 提交标题
	Title *string `json:"title,omitempty"`

	// 作者
	AuthorName *string `json:"author_name,omitempty"`

	// 作者邮箱
	AuthorEmail *string `json:"author_email,omitempty"`

	// 提交作者
	CommitterName *string `json:"committer_name,omitempty"`

	// 提交作者邮箱
	CommitterEmail *string `json:"committer_email,omitempty"`

	// 创建时间
	CreatedAt *string `json:"created_at,omitempty"`

	// 提交信息
	Message *string `json:"message,omitempty"`

	// 父提交id
	ParentIds *[]string `json:"parent_ids,omitempty"`

	// 提交时间
	CommittedDate *sdktime.SdkTime `json:"committed_date,omitempty"`

	// 作者提交时间
	AuthoredDate *sdktime.SdkTime `json:"authored_date,omitempty"`

	Stats *CreateCommitResponseBodyStats `json:"stats,omitempty"`
}

func (CreateCommitResponseBody) String

func (o CreateCommitResponseBody) String() string

type CreateCommitResponseBodyStats

type CreateCommitResponseBodyStats struct {

	// 变更增加的行数
	Additions *int32 `json:"additions,omitempty"`

	// 变更删除的行数
	Deletions *int32 `json:"deletions,omitempty"`

	// 变更的总行数
	Total *int32 `json:"total,omitempty"`
}

CreateCommitResponseBodyStats 统计信息

func (CreateCommitResponseBodyStats) String

type CreateMergeRequestDiscussionBodyDto added in v0.1.50

type CreateMergeRequestDiscussionBodyDto struct {

	// 检视意见内容
	Body string `json:"body"`

	// 严重程度
	Severity *string `json:"severity,omitempty"`

	// 指派人id
	AssigneeId *string `json:"assignee_id,omitempty"`

	// 检视意见分类
	ReviewCategories *string `json:"review_categories,omitempty"`

	// 检视意见模块
	ReviewModules *string `json:"review_modules,omitempty"`

	// 提出人id
	ProposerId *string `json:"proposer_id,omitempty"`

	Position *PositionDto `json:"position,omitempty"`
}

func (CreateMergeRequestDiscussionBodyDto) String added in v0.1.50

type CreateMergeRequestDiscussionNoteDto added in v0.1.50

type CreateMergeRequestDiscussionNoteDto struct {

	// 检视意见内容
	Body string `json:"body"`
}

func (CreateMergeRequestDiscussionNoteDto) String added in v0.1.50

type CreateMergeRequestDiscussionNoteRequest added in v0.1.50

type CreateMergeRequestDiscussionNoteRequest struct {

	// 仓库短id
	RepositoryId int32 `json:"repository_id"`

	// 合并请求iid
	MergeRequestIid int32 `json:"merge_request_iid"`

	// 评论id
	DiscussionId string `json:"discussion_id"`

	Body *CreateMergeRequestDiscussionNoteDto `json:"body,omitempty"`
}

CreateMergeRequestDiscussionNoteRequest Request Object

func (CreateMergeRequestDiscussionNoteRequest) String added in v0.1.50

type CreateMergeRequestDiscussionNoteResponse added in v0.1.50

type CreateMergeRequestDiscussionNoteResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *NoteDto `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateMergeRequestDiscussionNoteResponse Response Object

func (CreateMergeRequestDiscussionNoteResponse) String added in v0.1.50

type CreateMergeRequestDiscussionRequest added in v0.1.50

type CreateMergeRequestDiscussionRequest struct {

	// 仓库短id
	RepositoryId int32 `json:"repository_id"`

	// 合并请求iid
	MergeRequestIid int32 `json:"merge_request_iid"`

	Body *CreateMergeRequestDiscussionBodyDto `json:"body,omitempty"`
}

CreateMergeRequestDiscussionRequest Request Object

func (CreateMergeRequestDiscussionRequest) String added in v0.1.50

type CreateMergeRequestDiscussionResponse added in v0.1.50

type CreateMergeRequestDiscussionResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *MergeRequestDiscussionDto `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateMergeRequestDiscussionResponse Response Object

func (CreateMergeRequestDiscussionResponse) String added in v0.1.50

type CreateNewBranchRequest added in v0.1.1

type CreateNewBranchRequest struct {

	// 仓库的主键id
	RepositoryId string `json:"repository_id"`

	Body *CreateNewBranchRequestBody `json:"body,omitempty"`
}

CreateNewBranchRequest Request Object

func (CreateNewBranchRequest) String added in v0.1.1

func (o CreateNewBranchRequest) String() string

type CreateNewBranchRequestBody added in v0.1.1

type CreateNewBranchRequestBody struct {

	// 分支名称
	BranchName string `json:"branch_name"`

	// 源分支名称
	Ref string `json:"ref"`
}

func (CreateNewBranchRequestBody) String added in v0.1.1

type CreateNewBranchResponse added in v0.1.1

type CreateNewBranchResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *AddProtectResponse `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateNewBranchResponse Response Object

func (CreateNewBranchResponse) String added in v0.1.1

func (o CreateNewBranchResponse) String() string

type CreateProjectAndRepositoriesRequest

type CreateProjectAndRepositoriesRequest struct {
	Body *CreateProjectRepoRequest `json:"body,omitempty"`
}

CreateProjectAndRepositoriesRequest Request Object

func (CreateProjectAndRepositoriesRequest) String

type CreateProjectAndRepositoriesResponse

type CreateProjectAndRepositoriesResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *ProjectRepository `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateProjectAndRepositoriesResponse Response Object

func (CreateProjectAndRepositoriesResponse) String

type CreateProjectAndforkRepositoriesRequest

type CreateProjectAndforkRepositoriesRequest struct {
	Body *ForkProjectRepoRequest `json:"body,omitempty"`
}

CreateProjectAndforkRepositoriesRequest Request Object

func (CreateProjectAndforkRepositoriesRequest) String

type CreateProjectAndforkRepositoriesResponse

type CreateProjectAndforkRepositoriesResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *ProjectRepository `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateProjectAndforkRepositoriesResponse Response Object

func (CreateProjectAndforkRepositoriesResponse) String

type CreateProjectRepoRequest

type CreateProjectRepoRequest struct {

	// 是否导入项目成员,取值范围:0->不导入项目成员,1->导入项目成员
	ImportMembers *int32 `json:"import_members,omitempty"`

	// 项目名称,取值范围:可以输入英文大小写字母、数字、连字符、下划线,且必须以字母开头
	ProjectName string `json:"project_name"`

	// 仓库名称,取值范围:可以输入英文大小写字母、数字、连字符、下划线,且必须以字母开头
	RepoName string `json:"repo_name"`

	// 项目类型,scrum
	Type *string `json:"type,omitempty"`

	// 仓库可见性:  *私有仓库:仓库仅对仓库成员可见,仓库成员可读写和访问仓库,取值范围为0  *公开仓库:   1.项目内成员只读仓库:仓库对项目内成员公开只读,并项目内成员可在项目下和代码组下的仓库列表中查看和搜索,取值范围为10   2.租户内成员只读仓库:仓库对租户内成员公开只读,并租户内成员可在项目下和代码组下的仓库列表中查看和搜索,取值范围为10   3.所有访客只读仓库:仓库对所有访客公开只读,并所有访客可在项目下和代码组下的仓库列表中查看和搜索,取值范围为20
	VisibilityLevel *int32 `json:"visibility_level,omitempty"`

	ExternalProjectInfo *ExternalKeyMessage `json:"external_project_info,omitempty"`
}

func (CreateProjectRepoRequest) String

func (o CreateProjectRepoRequest) String() string

type CreateRepoMemberRequest

type CreateRepoMemberRequest struct {

	// 添加用户的信息列表
	Users *[]RepoMemberInfo `json:"users,omitempty"`
}

func (CreateRepoMemberRequest) String

func (o CreateRepoMemberRequest) String() string

type CreateRepoMemberResult

type CreateRepoMemberResult struct {

	// 用户id
	Id *string `json:"id,omitempty"`

	// 创建仓库成员信息
	Message *string `json:"message,omitempty"`

	// 用户名
	Name *string `json:"name,omitempty"`

	// 创建仓库成员状态
	Status *string `json:"status,omitempty"`
}

func (CreateRepoMemberResult) String

func (o CreateRepoMemberResult) String() string

type CreateRepoRequest

type CreateRepoRequest struct {

	// 是否导入项目成员,取值范围:0->不导入项目成员,1->导入项目成员
	ImportMembers *int32 `json:"import_members,omitempty"`

	// 仓库名称,取值范围:可以输入英文大小写字母、数字、连字符、下划线,且必须以字母开头
	Name string `json:"name"`

	// 指定项目ID,获取方式请参见[获取项目ID](codehub_api_0014.xml)。
	ProjectUuid string `json:"project_uuid"`

	// 复制模板的ID
	TemplateId *string `json:"template_id,omitempty"`

	// 仓库状态,取值范围:0->私有,20->公开只读
	VisibilityLevel *int32 `json:"visibility_level,omitempty"`

	// 模板仓库的https地址的base64加密
	ImportUrl *string `json:"import_url,omitempty"`

	// 仓库描述信息
	Description *string `json:"description,omitempty"`

	// 根据编程语言生成.gitignore文件
	GitignoreId *string `json:"gitignore_id,omitempty"`

	// 许可证id
	LicenseId *int32 `json:"license_id,omitempty"`

	// 是否允许生成README文件
	EnableReadme *int32 `json:"enable_readme,omitempty"`

	// 调用者
	Caller *string `json:"caller,omitempty"`
}

func (CreateRepoRequest) String

func (o CreateRepoRequest) String() string

type CreateRepositoryRequest

type CreateRepositoryRequest struct {
	Body *CreateRepoRequest `json:"body,omitempty"`
}

CreateRepositoryRequest Request Object

func (CreateRepositoryRequest) String

func (o CreateRepositoryRequest) String() string

type CreateRepositoryResponse

type CreateRepositoryResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *Repository `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateRepositoryResponse Response Object

func (CreateRepositoryResponse) String

func (o CreateRepositoryResponse) String() string

type DeleteDeployKeyRequest

type DeleteDeployKeyRequest struct {

	// 部署密钥id
	KeyId int32 `json:"key_id"`

	// 仓库短id
	RepositoryId int32 `json:"repository_id"`
}

DeleteDeployKeyRequest Request Object

func (DeleteDeployKeyRequest) String

func (o DeleteDeployKeyRequest) String() string

type DeleteDeployKeyResponse

type DeleteDeployKeyResponse struct {
	Error *Error `json:"error,omitempty"`

	// 响应结果
	Result *bool `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteDeployKeyResponse Response Object

func (DeleteDeployKeyResponse) String

func (o DeleteDeployKeyResponse) String() string

type DeleteDeployKeyV2Request

type DeleteDeployKeyV2Request struct {

	// 部署密钥id
	KeyId int32 `json:"key_id"`

	// 仓库主键id
	RepositoryId int32 `json:"repository_id"`
}

DeleteDeployKeyV2Request Request Object

func (DeleteDeployKeyV2Request) String

func (o DeleteDeployKeyV2Request) String() string

type DeleteDeployKeyV2Response

type DeleteDeployKeyV2Response struct {
	Error *Error `json:"error,omitempty"`

	// 响应结果
	Result *bool `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteDeployKeyV2Response Response Object

func (DeleteDeployKeyV2Response) String

func (o DeleteDeployKeyV2Response) String() string

type DeleteHooksRequest

type DeleteHooksRequest struct {

	// 组名(克隆地址中域名后面仓库名前的一段 示例:git@repo.alpha.devcloud.inhuawei.com:Demo00228/testword.git  组名:Demo00228 )
	GroupName string `json:"group_name"`

	// 通过id删除指定仓库的hook
	HookId int32 `json:"hook_id"`

	// 仓库名
	RepositoryName string `json:"repository_name"`
}

DeleteHooksRequest Request Object

func (DeleteHooksRequest) String

func (o DeleteHooksRequest) String() string

type DeleteHooksResponse

type DeleteHooksResponse struct {
	Error *Error `json:"error,omitempty"`

	// 响应结果
	Result *interface{} `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteHooksResponse Response Object

func (DeleteHooksResponse) String

func (o DeleteHooksResponse) String() string

type DeleteRepoMemberRequest

type DeleteRepoMemberRequest struct {

	// 仓库成员id
	MemberId string `json:"member_id"`

	// 仓库uuid(由CreateRepository接口返回)
	RepositoryUuid string `json:"repository_uuid"`
}

DeleteRepoMemberRequest Request Object

func (DeleteRepoMemberRequest) String

func (o DeleteRepoMemberRequest) String() string

type DeleteRepoMemberResponse

type DeleteRepoMemberResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *Empty `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteRepoMemberResponse Response Object

func (DeleteRepoMemberResponse) String

func (o DeleteRepoMemberResponse) String() string

type DeleteRepositoryRequest

type DeleteRepositoryRequest struct {

	// 仓库uuid(由CreateRepository接口返回),用来指定删除的仓库
	RepositoryUuid string `json:"repository_uuid"`
}

DeleteRepositoryRequest Request Object

func (DeleteRepositoryRequest) String

func (o DeleteRepositoryRequest) String() string

type DeleteRepositoryResponse

type DeleteRepositoryResponse struct {
	Error *Error `json:"error,omitempty"`

	// 响应结果
	Result *bool `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteRepositoryResponse Response Object

func (DeleteRepositoryResponse) String

func (o DeleteRepositoryResponse) String() string

type DeleteSShkeyRequest

type DeleteSShkeyRequest struct {

	// sshKey的id
	Id string `json:"id"`
}

DeleteSShkeyRequest Request Object

func (DeleteSShkeyRequest) String

func (o DeleteSShkeyRequest) String() string

type DeleteSShkeyResponse

type DeleteSShkeyResponse struct {
	Error *Error `json:"error,omitempty"`

	// 响应结果
	Result *string `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteSShkeyResponse Response Object

func (DeleteSShkeyResponse) String

func (o DeleteSShkeyResponse) String() string

type DevstarRepoInfo

type DevstarRepoInfo struct {

	// 仓库的uuid
	Uuid *string `json:"uuid,omitempty"`

	// 仓库ID
	RepoId *string `json:"repo_id,omitempty"`

	// 仓库名称
	RepoName *string `json:"repo_name,omitempty"`

	// 仓库SSH地址
	SshUrl *string `json:"ssh_url,omitempty"`

	// 仓库HTTPS地址
	CodeUrl *string `json:"code_url,omitempty"`

	// 仓库预览地址
	DetailUrl *string `json:"detail_url,omitempty"`
}

func (DevstarRepoInfo) String

func (o DevstarRepoInfo) String() string

type DiffCommitInfo

type DiffCommitInfo struct {

	// 变更前文件路径
	OldPath *string `json:"old_path,omitempty"`

	// 变更后文件路径
	NewPath *string `json:"new_path,omitempty"`

	// 变更前文件模式
	AMode *string `json:"a_mode,omitempty"`

	// 变更后文件模式
	BMode *string `json:"b_mode,omitempty"`

	// 此次变更是否新增文件
	NewFile *bool `json:"new_file,omitempty"`

	// 此次变更是否重命名文件
	RenamedFile *bool `json:"renamed_file,omitempty"`

	// 此次变更是否删除文件
	DeletedFile *bool `json:"deleted_file,omitempty"`

	// 差异信息
	Diff *string `json:"diff,omitempty"`
}

func (DiffCommitInfo) String

func (o DiffCommitInfo) String() string

type DivergingCommitCounts added in v0.1.1

type DivergingCommitCounts struct {

	// 领先提交数
	Ahead *float64 `json:"ahead,omitempty"`

	// 滞后提交数
	Behind *float64 `json:"behind,omitempty"`
}

func (DivergingCommitCounts) String added in v0.1.1

func (o DivergingCommitCounts) String() string

type Empty

type Empty struct {
}

func (Empty) String

func (o Empty) String() string

type Error

type Error struct {

	// 错误码
	Code *string `json:"code,omitempty"`

	// 错误信息
	Message *string `json:"message,omitempty"`
}

func (Error) String

func (o Error) String() string

type ExternalKeyMessage

type ExternalKeyMessage struct {

	// 第三方保存在代码托管的关键信息
	ExternalKeyMessage *string `json:"external_key_message,omitempty"`

	// 外部服务名称
	ExternalService *string `json:"external_service,omitempty"`
}

func (ExternalKeyMessage) String

func (o ExternalKeyMessage) String() string

type FileContentInfo

type FileContentInfo struct {

	// 文件名
	FileName *string `json:"file_name,omitempty"`

	// 文件路径
	FilePath *string `json:"file_path,omitempty"`

	// 文件大小
	Size *int32 `json:"size,omitempty"`

	// 文件编码
	Encoding *string `json:"encoding,omitempty"`

	// sha256编码的文件内容
	ContentSha256 *string `json:"content_sha256,omitempty"`

	// 分支名
	Ref *string `json:"ref,omitempty"`

	// blob sha
	BlobId *string `json:"blob_id,omitempty"`

	// 提交对应的SHA id
	CommitId *string `json:"commit_id,omitempty"`

	// 最后一个提交对应的SHA id
	LastCommitId *string `json:"last_commit_id,omitempty"`

	// base64编码的文件内容
	Content *string `json:"content,omitempty"`
}

func (FileContentInfo) String

func (o FileContentInfo) String() string

type FilesResponseInfo

type FilesResponseInfo struct {

	// 文件名称
	FileName *string `json:"file_name,omitempty"`

	// 文件路径
	FilePath *string `json:"file_path,omitempty"`

	// 文件大小
	Size *string `json:"size,omitempty"`

	// 编码类型
	Encoding *string `json:"encoding,omitempty"`

	// 分支名称
	Ref *string `json:"ref,omitempty"`

	// 文件块id
	BlobId *string `json:"blob_id,omitempty"`

	// 文件类型
	FileType *string `json:"file_type,omitempty"`

	// 文件内容
	Content *string `json:"content,omitempty"`
}

func (FilesResponseInfo) String

func (o FilesResponseInfo) String() string

type ForkProjectRepoRequest

type ForkProjectRepoRequest struct {

	// 是否导入项目成员,取值范围:0->不导入项目成员,1->导入项目成员
	ImportMembers *int32 `json:"import_members,omitempty"`

	// 项目名称,取值范围:可以输入英文大小写字母、数字、连字符、下划线,且必须以字母开头
	ProjectName string `json:"project_name"`

	// 仓库名称,取值范围:可以输入英文大小写字母、数字、连字符、下划线,且必须以字母开头
	RepoName string `json:"repo_name"`

	// 复制模板的ID
	TemplateId string `json:"template_id"`

	// 项目类型,scrum
	Type *string `json:"type,omitempty"`

	// 仓库可见性:  *私有仓库:仓库仅对仓库成员可见,仓库成员可读写和访问仓库,取值范围为0  *公开仓库:   1.项目内成员只读仓库:仓库对项目内成员公开只读,并项目内成员可在项目下和代码组下的仓库列表中查看和搜索,取值范围为10   2.租户内成员只读仓库:仓库对租户内成员公开只读,并租户内成员可在项目下和代码组下的仓库列表中查看和搜索,取值范围为10   3.所有访客只读仓库:仓库对所有访客公开只读,并所有访客可在项目下和代码组下的仓库列表中查看和搜索,取值范围为20
	VisibilityLevel *int32 `json:"visibility_level,omitempty"`

	ExternalProjectInfo *ExternalKeyMessage `json:"external_project_info,omitempty"`
}

func (ForkProjectRepoRequest) String

func (o ForkProjectRepoRequest) String() string

type GetAllRepositoryByProjectIdRequest

type GetAllRepositoryByProjectIdRequest struct {

	// 分页索引,从1开始计数
	PageIndex *int32 `json:"page_index,omitempty"`

	// 每页条目数
	PageSize *int32 `json:"page_size,omitempty"`

	// 项目ID,获取方式请参见[获取项目ID](codehub_api_0014.xml)。
	ProjectUuid string `json:"project_uuid"`

	// 搜索关键字
	Search *string `json:"search,omitempty"`
}

GetAllRepositoryByProjectIdRequest Request Object

func (GetAllRepositoryByProjectIdRequest) String

type GetAllRepositoryByProjectIdResponse

type GetAllRepositoryByProjectIdResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *RepoListInfo `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

GetAllRepositoryByProjectIdResponse Response Object

func (GetAllRepositoryByProjectIdResponse) String

type GetProductTemplatesRequest

type GetProductTemplatesRequest struct {

	// 项目ID,获取方式请参见[获取项目ID](codehub_api_0014.xml)。
	ProjectUuid string `json:"project_uuid"`

	// 分页页数
	PageNo *int32 `json:"page_no,omitempty"`

	// 每页数据数
	PageSize *int32 `json:"page_size,omitempty"`
}

GetProductTemplatesRequest Request Object

func (GetProductTemplatesRequest) String

type GetProductTemplatesResponse

type GetProductTemplatesResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *TemplateListInfo `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

GetProductTemplatesResponse Response Object

func (GetProductTemplatesResponse) String

type GetRepositoryByProjectIdRequest

type GetRepositoryByProjectIdRequest struct {

	// 仓库的uuid,用来指定需要查看的仓库
	RepositoryUuid string `json:"repository_uuid"`
}

GetRepositoryByProjectIdRequest Request Object

func (GetRepositoryByProjectIdRequest) String

type GetRepositoryByProjectIdResponse

type GetRepositoryByProjectIdResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *RepoInfo `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

GetRepositoryByProjectIdResponse Response Object

func (GetRepositoryByProjectIdResponse) String

type GetTemplatesRequest

type GetTemplatesRequest struct {

	// 模板平台类型
	Platform *string `json:"platform,omitempty"`

	// 语言类型
	Language *string `json:"language,omitempty"`

	// 是否支持流水线
	Pipeline *string `json:"pipeline,omitempty"`

	// 模板分类
	Entertype *string `json:"entertype,omitempty"`

	// 模板名称
	Search *string `json:"search,omitempty"`

	// 模板日期排序
	Dateorder *string `json:"dateorder,omitempty"`

	// 模板引用次数排序
	Usedtimeorder *string `json:"usedtimeorder,omitempty"`

	// 模板公开类型
	Type *string `json:"type,omitempty"`

	// 大区名称
	Region *string `json:"region,omitempty"`

	// 分页页数
	PageNo int32 `json:"page_no"`

	// 每页数据数
	PageSize int32 `json:"page_size"`
}

GetTemplatesRequest Request Object

func (GetTemplatesRequest) String

func (o GetTemplatesRequest) String() string

type GetTemplatesResponse

type GetTemplatesResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *TemplateRepositoryList `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

GetTemplatesResponse Response Object

func (GetTemplatesResponse) String

func (o GetTemplatesResponse) String() string

type Key

type Key struct {

	// 是否允许推送
	CanPush *bool `json:"can_push,omitempty"`

	// 部署密钥新建时间
	CreatedAt *string `json:"created_at,omitempty"`

	// 部署密钥
	Key *string `json:"key,omitempty"`

	// 部署密钥id
	KeyId *string `json:"key_id,omitempty"`

	// 部署密钥名称
	KeyTitle *string `json:"key_title,omitempty"`
}

func (Key) String

func (o Key) String() string

type ListBranchesByRepositoryIdRequest added in v0.1.1

type ListBranchesByRepositoryIdRequest struct {

	// 仓库短id
	RepositoryId int32 `json:"repository_id"`

	// 分页页数
	Page *string `json:"page,omitempty"`

	// 每页数据数
	PerPage *string `json:"per_page,omitempty"`

	// 匹配条件
	Match *string `json:"match,omitempty"`
}

ListBranchesByRepositoryIdRequest Request Object

func (ListBranchesByRepositoryIdRequest) String added in v0.1.1

type ListBranchesByRepositoryIdResponse added in v0.1.1

type ListBranchesByRepositoryIdResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *BranchResponse `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListBranchesByRepositoryIdResponse Response Object

func (ListBranchesByRepositoryIdResponse) String added in v0.1.1

type ListCommitStatisticsRequest

type ListCommitStatisticsRequest struct {

	// 分支名
	BranchName string `json:"branch_name"`

	// 仓库的主键id
	RepositoryId string `json:"repository_id"`
}

ListCommitStatisticsRequest Request Object

func (ListCommitStatisticsRequest) String

type ListCommitStatisticsResponse

type ListCommitStatisticsResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *RepoCommitStatistics `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListCommitStatisticsResponse Response Object

func (ListCommitStatisticsResponse) String

type ListCommitsRequest

type ListCommitsRequest struct {

	// 仓库短id
	RepoId int32 `json:"repo_id"`

	// 仓库的branch名或tag名,如果为空则查询默认分支
	RefName *string `json:"ref_name,omitempty"`

	// 在此日期之后或当天提交,格式 YYYY-MM-DDTHH:MM:SSZ
	Since *string `json:"since,omitempty"`

	// 在此日期之前或当天提交,格式 YYYY-MM-DDTHH:MM:SSZ
	Until *string `json:"until,omitempty"`

	// 文件路径
	Path *string `json:"path,omitempty"`

	// 是否检索仓库中每个提交
	All *bool `json:"all,omitempty"`

	// 有关每个提交的统计信息是否添加到响应中
	WithStats *bool `json:"with_stats,omitempty"`

	// 页码
	Page *int32 `json:"page,omitempty"`

	// 每页条目数
	PerPage *int32 `json:"per_page,omitempty"`
}

ListCommitsRequest Request Object

func (ListCommitsRequest) String

func (o ListCommitsRequest) String() string

type ListCommitsResponse

type ListCommitsResponse struct {
	Error *Error `json:"error,omitempty"`

	// 提交列表
	Result *[]CommitInfo `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListCommitsResponse Response Object

func (ListCommitsResponse) String

func (o ListCommitsResponse) String() string

type ListFilesByQueryRequest added in v0.1.1

type ListFilesByQueryRequest struct {

	// 仓库短id
	RepoId int32 `json:"repo_id"`

	// 文件的完整路径。
	FilePath string `json:"file_path"`

	// commit id,仓库的branch名或tag名
	Ref string `json:"ref"`
}

ListFilesByQueryRequest Request Object

func (ListFilesByQueryRequest) String added in v0.1.1

func (o ListFilesByQueryRequest) String() string

type ListFilesByQueryResponse added in v0.1.1

type ListFilesByQueryResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *FileContentInfo `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListFilesByQueryResponse Response Object

func (ListFilesByQueryResponse) String added in v0.1.1

func (o ListFilesByQueryResponse) String() string

type ListFilesRequest

type ListFilesRequest struct {

	// 仓库id
	RepositoryUuid string `json:"repository_uuid"`

	// 分支名称
	BranchName string `json:"branch_name"`

	// 文件路径
	Path string `json:"path"`
}

ListFilesRequest Request Object

func (ListFilesRequest) String

func (o ListFilesRequest) String() string

type ListFilesResponse

type ListFilesResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *FilesResponseInfo `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListFilesResponse Response Object

func (ListFilesResponse) String

func (o ListFilesResponse) String() string

type ListHooksRequest

type ListHooksRequest struct {

	// 组名(克隆地址中域名后面仓库名前的一段 示例:git@repo.alpha.devcloud.inhuawei.com:Demo00228/testword.git  组名:Demo00228 )
	GroupName string `json:"group_name"`

	// hook id
	HookId *string `json:"hook_id,omitempty"`

	// 仓库名
	RepositoryName string `json:"repository_name"`
}

ListHooksRequest Request Object

func (ListHooksRequest) String

func (o ListHooksRequest) String() string

type ListHooksResponse

type ListHooksResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *RepoListHook `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListHooksResponse Response Object

func (ListHooksResponse) String

func (o ListHooksResponse) String() string

type ListMergeRequestRequest added in v0.1.1

type ListMergeRequestRequest struct {

	// 仓库短id
	RepositoryId int32 `json:"repository_id"`

	// 匹配条件
	State *string `json:"state,omitempty"`

	// 分页页数
	Page *string `json:"page,omitempty"`

	// 每页数据数
	PerPage *string `json:"per_page,omitempty"`

	// 匹配条件
	Search *string `json:"search,omitempty"`
}

ListMergeRequestRequest Request Object

func (ListMergeRequestRequest) String added in v0.1.1

func (o ListMergeRequestRequest) String() string

type ListMergeRequestResponse added in v0.1.1

type ListMergeRequestResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *MergeResult `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListMergeRequestResponse Response Object

func (ListMergeRequestResponse) String added in v0.1.1

func (o ListMergeRequestResponse) String() string

type ListProductTwoTemplatesRequest

type ListProductTwoTemplatesRequest struct {

	// 项目ID,获取方式请参见[获取项目ID](codehub_api_0014.xml)。
	ProjectUuid string `json:"project_uuid"`

	// 分页页数
	PageNo *int32 `json:"page_no,omitempty"`

	// 每页数据数
	PageSize *int32 `json:"page_size,omitempty"`
}

ListProductTwoTemplatesRequest Request Object

func (ListProductTwoTemplatesRequest) String

type ListProductTwoTemplatesResponse

type ListProductTwoTemplatesResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *TemplateListInfo `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListProductTwoTemplatesResponse Response Object

func (ListProductTwoTemplatesResponse) String

type ListRepoMembersRequest

type ListRepoMembersRequest struct {

	// 第几页
	PageIndex *int32 `json:"page_index,omitempty"`

	// 每页显示size
	PageSize *int32 `json:"page_size,omitempty"`

	// 仓库uuid(由CreateRepository接口返回)
	RepositoryUuid string `json:"repository_uuid"`

	// 搜索关键字
	Subject *string `json:"subject,omitempty"`
}

ListRepoMembersRequest Request Object

func (ListRepoMembersRequest) String

func (o ListRepoMembersRequest) String() string

type ListRepoMembersResponse

type ListRepoMembersResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *RepositoryMemberList `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListRepoMembersResponse Response Object

func (ListRepoMembersResponse) String

func (o ListRepoMembersResponse) String() string

type ListRepositoryStatusRequest

type ListRepositoryStatusRequest struct {

	// 仓库的uuid,用来指定需要查看的仓库
	RepositoryUuid string `json:"repository_uuid"`
}

ListRepositoryStatusRequest Request Object

func (ListRepositoryStatusRequest) String

type ListRepositoryStatusResponse

type ListRepositoryStatusResponse struct {
	Error *Error `json:"error,omitempty"`

	// 响应结果
	Result *int32 `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListRepositoryStatusResponse Response Object

func (ListRepositoryStatusResponse) String

type ListSshKeysRequest

type ListSshKeysRequest struct {
}

ListSshKeysRequest Request Object

func (ListSshKeysRequest) String

func (o ListSshKeysRequest) String() string

type ListSshKeysResponse

type ListSshKeysResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *PublicKeyList `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListSshKeysResponse Response Object

func (ListSshKeysResponse) String

func (o ListSshKeysResponse) String() string

type ListSubfilesRequest

type ListSubfilesRequest struct {

	// 仓库id
	RepositoryUuid string `json:"repository_uuid"`

	// 分支名称
	BranchName string `json:"branch_name"`

	// 文件路径
	Path *string `json:"path,omitempty"`

	// 偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 记录数量
	Limit *int32 `json:"limit,omitempty"`
}

ListSubfilesRequest Request Object

func (ListSubfilesRequest) String

func (o ListSubfilesRequest) String() string

type ListSubfilesResponse

type ListSubfilesResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *LogsTreeList `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListSubfilesResponse Response Object

func (ListSubfilesResponse) String

func (o ListSubfilesResponse) String() string

type ListTemplatesTwoRequest

type ListTemplatesTwoRequest struct {

	// 仓库id
	RepositoryUuid string `json:"repository_uuid"`

	Body *RepositoryTemplateVo2 `json:"body,omitempty"`
}

ListTemplatesTwoRequest Request Object

func (ListTemplatesTwoRequest) String

func (o ListTemplatesTwoRequest) String() string

type ListTemplatesTwoResponse

type ListTemplatesTwoResponse struct {
	Error *Error `json:"error,omitempty"`

	// 响应结果
	Result *string `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListTemplatesTwoResponse Response Object

func (ListTemplatesTwoResponse) String

func (o ListTemplatesTwoResponse) String() string

type ListTwoTemplatesRequest

type ListTwoTemplatesRequest struct {

	// 模板平台类型
	Platform *string `json:"platform,omitempty"`

	// 语言类型
	Language *string `json:"language,omitempty"`

	// 是否支持流水线
	Pipeline *string `json:"pipeline,omitempty"`

	// 模板分类
	EnterType *string `json:"enter_type,omitempty"`

	// 模板名称
	Search *string `json:"search,omitempty"`

	// 模板日期排序
	DateOrder *string `json:"date_order,omitempty"`

	// 模板引用次数排序
	UsedTimeOrder *string `json:"used_time_order,omitempty"`

	// 模板公开类型
	Type *string `json:"type,omitempty"`

	// 大区名称
	Region *string `json:"region,omitempty"`

	// 分页页数
	PageNo int32 `json:"page_no"`

	// 每页数据数
	PageSize int32 `json:"page_size"`
}

ListTwoTemplatesRequest Request Object

func (ListTwoTemplatesRequest) String

func (o ListTwoTemplatesRequest) String() string

type ListTwoTemplatesResponse

type ListTwoTemplatesResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *TemplateRepositoryList `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListTwoTemplatesResponse Response Object

func (ListTwoTemplatesResponse) String

func (o ListTwoTemplatesResponse) String() string

type ListUserAllRepositoriesRequest

type ListUserAllRepositoriesRequest struct {

	// 分页索引,从1开始计数
	PageIndex *int32 `json:"page_index,omitempty"`

	// 每页条目数
	PageSize *int32 `json:"page_size,omitempty"`

	// 搜索关键字
	Search *string `json:"search,omitempty"`
}

ListUserAllRepositoriesRequest Request Object

func (ListUserAllRepositoriesRequest) String

type ListUserAllRepositoriesResponse

type ListUserAllRepositoriesResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *RepoListInfoV2 `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListUserAllRepositoriesResponse Response Object

func (ListUserAllRepositoriesResponse) String

type LogsTree

type LogsTree struct {

	// 存储块id
	BlobId *string `json:"blob_id,omitempty"`

	Commit *Commit `json:"commit,omitempty"`

	// 文件名称
	FileName *string `json:"file_name,omitempty"`

	// 文件路径
	FilePath *string `json:"file_path,omitempty"`

	// MD5
	Md5 *string `json:"md5,omitempty"`

	// 存储类型
	Type *string `json:"type,omitempty"`
}

func (LogsTree) String

func (o LogsTree) String() string

type LogsTreeList added in v0.1.1

type LogsTreeList struct {

	// 文件日志树
	Trees *[]LogsTree `json:"trees,omitempty"`

	// 记录总数
	Total *int32 `json:"total,omitempty"`
}

func (LogsTreeList) String added in v0.1.1

func (o LogsTreeList) String() string

type MergeInfoResult added in v0.1.1

type MergeInfoResult struct {

	// 评审人
	ApprovalMergeRequestApprovers *[]ApprovalMergeRequestApproversItem `json:"approval_merge_request_approvers,omitempty"`

	Author *Author `json:"author,omitempty"`

	// 关闭时间
	ClosedAt *string `json:"closed_at,omitempty"`

	// 创建时间
	CreatedAt *string `json:"created_at,omitempty"`

	// 合并请求描述
	Description *string `json:"description,omitempty"`

	// 源分支
	DevcloudSourceBranch *string `json:"devcloud_source_branch,omitempty"`

	// 合并请求id
	Id *float64 `json:"id,omitempty"`

	// 当前仓库内合并请求序号
	Iid *float64 `json:"iid,omitempty"`

	// 源分支是否存在
	IsSourceBranchExist *bool `json:"is_source_branch_exist,omitempty"`

	// 检视人
	MergeRequestAssigneeList *[]MergeRequestAssigneeListItem `json:"merge_request_assignee_list,omitempty"`

	MergeRequestDiff *MergeRequestDiff `json:"merge_request_diff,omitempty"`

	// 是否可以被合并
	MergeStatus *string `json:"merge_status,omitempty"`

	// 源分支
	SourceBranch *string `json:"source_branch,omitempty"`

	// 合并请求状态
	State *string `json:"state,omitempty"`

	// 目标分支
	TargetBranch *string `json:"target_branch,omitempty"`

	// 标题
	Title *string `json:"title,omitempty"`

	// 更新时间
	UpdatedAt *string `json:"updated_at,omitempty"`
}

func (MergeInfoResult) String added in v0.1.1

func (o MergeInfoResult) String() string

type MergeRequestAssigneeListItem added in v0.1.1

type MergeRequestAssigneeListItem struct {

	// 用户id
	Id *float64 `json:"id,omitempty"`

	// 用户名
	Name *string `json:"name,omitempty"`

	// 用户状态
	State *string `json:"state,omitempty"`

	// 用户iamId
	Username *string `json:"username,omitempty"`
}

func (MergeRequestAssigneeListItem) String added in v0.1.1

type MergeRequestBasicDiscussionDto added in v0.1.50

type MergeRequestBasicDiscussionDto struct {

	// 评论id
	Id *string `json:"id,omitempty"`

	// individual_note
	IndividualNote *bool `json:"individual_note,omitempty"`

	// 主评和回复列表
	Notes *[]NoteDto `json:"notes,omitempty"`

	// 仓库id
	ProjectId *int32 `json:"project_id,omitempty"`

	// 目标类型
	NoteableType *string `json:"noteable_type,omitempty"`

	// 关联的提交id
	CommitId *string `json:"commit_id,omitempty"`

	// 仓库路径
	ProjectFullPath *string `json:"project_full_path,omitempty"`

	// 变更前文件模式
	AMode *string `json:"a_mode,omitempty"`

	// 变更后文件模式
	BMode *string `json:"b_mode,omitempty"`

	// 此次变更是否删除文件
	DeletedFile *bool `json:"deleted_file,omitempty"`

	// 此次变更是否新增文件
	NewFile *bool `json:"new_file,omitempty"`

	// 检视意见是否解决
	Resolved *bool `json:"resolved,omitempty"`

	// 检视意见是否存档
	Archived *bool `json:"archived,omitempty"`

	// 检视意见分类
	ReviewCategories *string `json:"review_categories,omitempty"`

	// 检视意见分类中文名
	ReviewCategoriesCn *string `json:"review_categories_cn,omitempty"`

	// 检视意见分类英文名
	ReviewCategoriesEn *string `json:"review_categories_en,omitempty"`

	// 检视意见模块
	ReviewModules *string `json:"review_modules,omitempty"`

	// 严重程度
	Severity *string `json:"severity,omitempty"`

	// 严重程度中文名
	SeverityCn *string `json:"severity_cn,omitempty"`

	// 严重程度英文名
	SeverityEn *string `json:"severity_en,omitempty"`

	Assignee *UserBasicDto `json:"assignee,omitempty"`

	Proposer *UserBasicDto `json:"proposer,omitempty"`

	MergeRequestVersionParams *MergeRequestVersionParamsDto `json:"merge_request_version_params,omitempty"`
}

func (MergeRequestBasicDiscussionDto) String added in v0.1.50

type MergeRequestDiff added in v0.1.1

type MergeRequestDiff struct {

	// base提交
	BaseCommitSha *string `json:"base_commit_sha,omitempty"`

	// 提交数
	CommitsCount *float64 `json:"commits_count,omitempty"`

	// 创建时间
	CreatedAt *string `json:"created_at,omitempty"`

	// head提交
	HeadCommitSha *string `json:"head_commit_sha,omitempty"`

	// 合并请求id
	MergeRequestId *float64 `json:"merge_request_id,omitempty"`

	// start提交
	StartCommitSha *string `json:"start_commit_sha,omitempty"`

	// 更新时间
	UpdatedAt *string `json:"updated_at,omitempty"`
}

func (MergeRequestDiff) String added in v0.1.1

func (o MergeRequestDiff) String() string

type MergeRequestDiscussionDto added in v0.1.50

type MergeRequestDiscussionDto struct {

	// 评论id
	Id *string `json:"id,omitempty"`

	// individual_note
	IndividualNote *bool `json:"individual_note,omitempty"`

	// 主评和回复列表
	Notes *[]NoteDto `json:"notes,omitempty"`

	// 仓库id
	ProjectId *int32 `json:"project_id,omitempty"`

	// 目标类型
	NoteableType *string `json:"noteable_type,omitempty"`

	// 关联的提交id
	CommitId *string `json:"commit_id,omitempty"`

	// 仓库路径
	ProjectFullPath *string `json:"project_full_path,omitempty"`

	// 变更前文件模式
	AMode *string `json:"a_mode,omitempty"`

	// 变更后文件模式
	BMode *string `json:"b_mode,omitempty"`

	// 此次变更是否删除文件
	DeletedFile *bool `json:"deleted_file,omitempty"`

	// 此次变更是否新增文件
	NewFile *bool `json:"new_file,omitempty"`

	// 检视意见是否解决
	Resolved *bool `json:"resolved,omitempty"`

	// 检视意见是否存档
	Archived *bool `json:"archived,omitempty"`

	// 检视意见分类
	ReviewCategories *string `json:"review_categories,omitempty"`

	// 检视意见分类中文名
	ReviewCategoriesCn *string `json:"review_categories_cn,omitempty"`

	// 检视意见分类英文名
	ReviewCategoriesEn *string `json:"review_categories_en,omitempty"`

	// 检视意见模块
	ReviewModules *string `json:"review_modules,omitempty"`

	// 严重程度
	Severity *string `json:"severity,omitempty"`

	// 严重程度中文名
	SeverityCn *string `json:"severity_cn,omitempty"`

	// 严重程度英文名
	SeverityEn *string `json:"severity_en,omitempty"`

	Assignee *UserBasicDto `json:"assignee,omitempty"`

	Proposer *UserBasicDto `json:"proposer,omitempty"`

	MergeRequestVersionParams *MergeRequestVersionParamsDto `json:"merge_request_version_params,omitempty"`

	// 变更文件
	DiffFile *string `json:"diff_file,omitempty"`

	// 新增行数
	AddedLines *int32 `json:"added_lines,omitempty"`

	// 删除行数
	RemovedLines *int32 `json:"removed_lines,omitempty"`
}

func (MergeRequestDiscussionDto) String added in v0.1.50

func (o MergeRequestDiscussionDto) String() string

type MergeRequestVersionParamsDto added in v0.1.50

type MergeRequestVersionParamsDto struct {

	// MR最新变更id
	DiffId *int32 `json:"diff_id,omitempty"`

	// 目标分支最新提交
	StartSha *string `json:"start_sha,omitempty"`

	// 源分支最新提交
	CommitId *string `json:"commit_id,omitempty"`
}

func (MergeRequestVersionParamsDto) String added in v0.1.50

type MergeRequestsItem added in v0.1.1

type MergeRequestsItem struct {
	Author *Author `json:"author,omitempty"`

	// 关闭时间
	ClosedAt *string `json:"closed_at,omitempty"`

	// 创建时间
	CreatedAt *string `json:"created_at,omitempty"`

	// 合并请求描述
	Description *string `json:"description,omitempty"`

	// 源分支
	DevcloudSourceBranch *string `json:"devcloud_source_branch,omitempty"`

	// 合并请求id
	Id *float64 `json:"id,omitempty"`

	// 当前仓库内合并请求序号
	Iid *float64 `json:"iid,omitempty"`

	// 检视人
	MergeRequestAssigneeList *[]Author `json:"merge_request_assignee_list,omitempty"`

	// 是否可以被合并
	MergeStatus *string `json:"merge_status,omitempty"`

	// 源分支
	SourceBranch *string `json:"source_branch,omitempty"`

	// 合并请求状态
	State *string `json:"state,omitempty"`

	// 目标分支
	TargetBranch *string `json:"target_branch,omitempty"`

	// 标题
	Title *string `json:"title,omitempty"`

	// 更新时间
	UpdatedAt *string `json:"updated_at,omitempty"`
}

func (MergeRequestsItem) String added in v0.1.1

func (o MergeRequestsItem) String() string

type MergeResult added in v0.1.1

type MergeResult struct {

	// 已关闭合并请求数
	Closed *float64 `json:"closed,omitempty"`

	// 合并请求详情
	MergeRequests *[]MergeRequestsItem `json:"merge_requests,omitempty"`

	// 已合并合并请求数数
	Merged *float64 `json:"merged,omitempty"`

	// 开启中合并请求数
	Opened *float64 `json:"opened,omitempty"`

	// 合并请求总数
	Total *float64 `json:"total,omitempty"`
}

func (MergeResult) String added in v0.1.1

func (o MergeResult) String() string

type NoteDto added in v0.1.50

type NoteDto struct {

	// note id
	Id *int32 `json:"id,omitempty"`

	// note类型
	Type *string `json:"type,omitempty"`

	// 检视意见内容
	Body *string `json:"body,omitempty"`

	// 附件
	Attachment *string `json:"attachment,omitempty"`

	Author *UserBasicDto `json:"author,omitempty"`

	// 创建时间
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 是否是系统生成的日志
	System *bool `json:"system,omitempty"`

	// 目标id
	NoteableId *int32 `json:"noteable_id,omitempty"`

	// 目标类型
	NoteableType *string `json:"noteable_type,omitempty"`

	// 关联的提交id
	CommitId *string `json:"commit_id,omitempty"`

	// 是否可解决
	Resolvable *bool `json:"resolvable,omitempty"`

	// 是否是回复
	IsReply *bool `json:"is_reply,omitempty"`

	ResolvedBy *UserBasicDto `json:"resolved_by,omitempty"`

	// 目标iid
	NoteableIid *int32 `json:"noteable_iid,omitempty"`

	// 讨论id
	DiscussionId *string `json:"discussion_id,omitempty"`

	// 所属项目
	Project *string `json:"project,omitempty"`

	// 变更文件
	DiffFile *string `json:"diff_file,omitempty"`

	// 变更内容
	Diff *string `json:"diff,omitempty"`

	// 是否存档
	Archived *bool `json:"archived,omitempty"`

	// 检视意见分类
	ReviewCategories *string `json:"review_categories,omitempty"`

	// 检视意见分类中文名
	ReviewCategoriesCn *string `json:"review_categories_cn,omitempty"`

	// 检视意见分类英文名
	ReviewCategoriesEn *string `json:"review_categories_en,omitempty"`

	// 检视意见模块
	ReviewModules *string `json:"review_modules,omitempty"`

	// 严重程度
	Severity *string `json:"severity,omitempty"`

	// 严重程度中文名
	SeverityCn *string `json:"severity_cn,omitempty"`

	// 严重程度英文名
	SeverityEn *string `json:"severity_en,omitempty"`

	// 文件路径
	FilePath *string `json:"file_path,omitempty"`

	// 行号
	Line *string `json:"line,omitempty"`

	Assignee *UserBasicDto `json:"assignee,omitempty"`

	Proposer *UserBasicDto `json:"proposer,omitempty"`

	Position *PositionDto `json:"position,omitempty"`

	// 是否解决
	Resolved *bool `json:"resolved,omitempty"`

	// 是否过时
	IsOutdated *bool `json:"is_outdated,omitempty"`
}

func (NoteDto) String added in v0.1.50

func (o NoteDto) String() string

type PasswordRequest

type PasswordRequest struct {

	// https密码
	Pwd string `json:"pwd"`
}

func (PasswordRequest) String

func (o PasswordRequest) String() string

type PositionDto added in v0.1.50

type PositionDto struct {

	// 源分支base提交节点
	BaseSha *string `json:"base_sha,omitempty"`

	// 目标分支最新提交节点
	StartSha *string `json:"start_sha,omitempty"`

	// 源分支最新提交节点
	HeadSha *string `json:"head_sha,omitempty"`

	// 修改前文件路径
	OldPath *string `json:"old_path,omitempty"`

	// 修改后文件路径
	NewPath *string `json:"new_path,omitempty"`

	// 变更类型
	PositionType *string `json:"position_type,omitempty"`

	// 修改前行号
	OldLine *int32 `json:"old_line,omitempty"`

	// 修改后行号
	NewLine *int32 `json:"new_line,omitempty"`
}

func (PositionDto) String added in v0.1.50

func (o PositionDto) String() string

type PrivateKeyVerify

type PrivateKeyVerify struct {

	// 仓库UUID(由CreateRepository接口返回)
	RepositoryUuid string `json:"repository_uuid"`

	// 私钥
	PrivateKey string `json:"private_key"`
}

func (PrivateKeyVerify) String

func (o PrivateKeyVerify) String() string

type ProjectRepository

type ProjectRepository struct {

	// 项目ID,获取方式请参见[获取项目ID](codehub_api_0014.xml)。
	ProjectUuid *string `json:"projectUuid,omitempty"`

	// 仓库UUID
	RepositoryUuid *string `json:"repositoryUuid,omitempty"`
}

func (ProjectRepository) String

func (o ProjectRepository) String() string

type PublicKey

type PublicKey struct {

	// 密钥id
	Id string `json:"id"`

	// 密钥
	Key string `json:"key"`

	// 密钥名称
	Title string `json:"title"`
}

func (PublicKey) String

func (o PublicKey) String() string

type PublicKeyList

type PublicKeyList struct {

	// 密钥列表
	Sshkey *[]PublicKey `json:"sshkey,omitempty"`

	// 密钥总数
	Total *int32 `json:"total,omitempty"`
}

func (PublicKeyList) String

func (o PublicKeyList) String() string

type RepoCommitStatistics

type RepoCommitStatistics struct {

	// 仓库总提交次数
	AllBranchCommitsCount *int32 `json:"all_branch_commits_count,omitempty"`

	// 近15日每日代码提交行数
	Codelines *[]RepoDailyCodeline `json:"codelines,omitempty"`

	// 对应分支仓库总提交次数
	Count *int32 `json:"count,omitempty"`

	Event *RepoStatisticsEvent `json:"event,omitempty"`

	// 仓库统计列表
	Statistics *[]RepoStatistics `json:"statistics,omitempty"`

	// 仓库统计次数
	Total *int32 `json:"total,omitempty"`
}

RepoCommitStatistics 仓库统计信息

func (RepoCommitStatistics) String

func (o RepoCommitStatistics) String() string

type RepoDailyCodeline

type RepoDailyCodeline struct {

	// 每日增加代码行
	Additions *int32 `json:"additions,omitempty"`

	// 日期
	Date *string `json:"date,omitempty"`

	// 每日删除代码行
	Deletions *int32 `json:"deletions,omitempty"`
}

func (RepoDailyCodeline) String

func (o RepoDailyCodeline) String() string

type RepoHook

type RepoHook struct {

	// 是否触发build_events事件
	BuildEvents *bool `json:"build_events,omitempty"`

	// 仓库统计创建的时间
	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	// 是否使用ssl验证
	EnableSslVerification *bool `json:"enable_ssl_verification,omitempty"`

	// hook id
	Id *int32 `json:"id,omitempty"`

	// 是否触发issues_events事件
	IssuesEvents *bool `json:"issues_events,omitempty"`

	// 是否触发merge_requests_events事件
	MergeRequestsEvents *bool `json:"merge_requests_events,omitempty"`

	// 是否触发note_events事件
	NoteEvents *bool `json:"note_events,omitempty"`

	// 是否触发pipeline_events事件
	PipelineEvents *bool `json:"pipeline_events,omitempty"`

	// 仓库id
	ProjectId *int32 `json:"project_id,omitempty"`

	// 是否触发push_events事件
	PushEvents *bool `json:"push_events,omitempty"`

	// 是否触发repository_update_events事件
	RepositoryUpdateEvents *bool `json:"repository_update_events,omitempty"`

	// 是否触发tag_push_events事件
	TagPushEvents *bool `json:"tag_push_events,omitempty"`

	// 是否触发wiki_page_events事件
	WikiPageEvents *bool `json:"wiki_page_events,omitempty"`
}

func (RepoHook) String

func (o RepoHook) String() string

type RepoInfo

type RepoInfo struct {

	// 创建时间
	CreateAt *string `json:"createAt,omitempty"`

	// 仓库组名(克隆地址中域名后面仓库名前的一段 示例:git@repo.alpha.devcloud.inhuawei.com:Demo00228/testword.git  组名:Demo00228)
	GroupName *string `json:"groupName,omitempty"`

	// https url
	HttpUrl *string `json:"httpUrl,omitempty"`

	// 仓库uuid(由CreateRepository接口返回)
	Id *string `json:"id,omitempty"`

	// 仓库名
	Name *string `json:"name,omitempty"`

	// 项目ID,获取方式请参见[获取项目ID](codehub_api_0014.xml)。
	ProjectId *string `json:"projectId,omitempty"`

	// 项目是否被删除
	ProjectIsDelete *string `json:"projectIsDelete,omitempty"`

	// 仓库主键id
	RepoId *string `json:"repoId,omitempty"`

	// ssh url
	SshUrl *string `json:"sshUrl,omitempty"`

	// 是否可见:0私有仓库,20公有仓库
	VisibilityLevel *int32 `json:"visibilityLevel,omitempty"`

	// web url 访问路径
	WebUrl *string `json:"webUrl,omitempty"`
}

func (RepoInfo) String

func (o RepoInfo) String() string

type RepoInfoV2

type RepoInfoV2 struct {

	// 创建时间
	CreatedAt *string `json:"created_at,omitempty"`

	// 创建者的用户名,在用户是租户的情况下,用户名和租户名相等
	CreatorName *string `json:"creator_name,omitempty"`

	// 创建者的租户名
	DomainName *string `json:"domain_name,omitempty"`

	// 仓库组名(克隆地址中域名后面仓库名前的一段 示例:git@repo.alpha.devcloud.inhuawei.com:Demo00228/testword.git  组名:Demo00228 )
	GroupName *string `json:"group_name,omitempty"`

	// 使用 https 克隆仓库时所使用的 url
	HttpsUrl *string `json:"https_url,omitempty"`

	// 用户的 iam user uuid
	IamUserUuid *string `json:"iam_user_uuid,omitempty"`

	// 当前用户是否是仓库的创建者,1:是,0:不是
	IsOwner *int32 `json:"is_owner,omitempty"`

	// 仓库 LFS 容量,单位为M,大于 1024M 则单位为 G
	LfsSize *string `json:"lfs_size,omitempty"`

	// 项目是否被删除
	ProjectIsDeleted *string `json:"project_is_deleted,omitempty"`

	// 项目ID,获取方式请参见[获取项目ID](codehub_api_0014.xml)。
	ProjectUuid *string `json:"project_uuid,omitempty"`

	// 仓库主键id
	RepositoryId *int32 `json:"repository_id,omitempty"`

	// 仓库名
	RepositoryName *string `json:"repository_name,omitempty"`

	// 仓库总容量 = 仓库 LFS 容量 + git 库容量,单位为M,大于 1024M 则单位为 G
	RepositorySize *string `json:"repository_size,omitempty"`

	// 仓库uuid(由CreateRepository接口返回)
	RepositoryUuid *string `json:"repository_uuid,omitempty"`

	// 使用 ssh 方式克隆仓库时所使用的 url
	SshUrl *string `json:"ssh_url,omitempty"`

	// 当前用户是否收藏该仓库
	Star *bool `json:"star,omitempty"`

	// 仓库状态, 0:仓库正常创建成功 1:仓库创建中 2:创建失败 3:仓库冻结 4:仓库已经关闭
	Status *int32 `json:"status,omitempty"`

	// 更新时间
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 用户在仓库中的权限:20:只读成员 30:普通成员 40:管理员
	UserRole *int32 `json:"userRole,omitempty"`

	// 是否可见:0私有仓库,20公有仓库
	VisibilityLevel *int32 `json:"visibility_level,omitempty"`

	// web url 路径,访问它将跳转至仓库详情页
	WebUrl *string `json:"web_url,omitempty"`
}

func (RepoInfoV2) String

func (o RepoInfoV2) String() string

type RepoListHook

type RepoListHook struct {

	// hook列表
	Hooks *[]RepoHook `json:"hooks,omitempty"`
}

func (RepoListHook) String

func (o RepoListHook) String() string

type RepoListInfo

type RepoListInfo struct {

	// 仓库列表
	Repositorys *[]RepoInfo `json:"repositorys,omitempty"`

	// 仓库总数
	Total *int32 `json:"total,omitempty"`
}

func (RepoListInfo) String

func (o RepoListInfo) String() string

type RepoListInfoV2

type RepoListInfoV2 struct {

	// 仓库列表
	Repositories *[]RepoInfoV2 `json:"repositories,omitempty"`

	// 仓库总数
	Total *int32 `json:"total,omitempty"`
}

func (RepoListInfoV2) String

func (o RepoListInfoV2) String() string

type RepoMemberInfo

type RepoMemberInfo struct {

	// 用户的租户ID
	DomainId *string `json:"domain_id,omitempty"`

	// 用户的租户名称
	DomainName *string `json:"domain_name,omitempty"`

	// 添加的用户ID
	Id string `json:"id"`

	// 添加的用户名
	Name string `json:"name"`

	// 添加的用户权限,取值范围:20->浏览者,30->普通成员,40->管理员
	Role int32 `json:"role"`
}

func (RepoMemberInfo) String

func (o RepoMemberInfo) String() string

type RepoStatistics

type RepoStatistics struct {

	// 添加代码行
	AddLines *int32 `json:"add_lines,omitempty"`

	// 分支名
	Branch *string `json:"branch,omitempty"`

	// 提交次数
	CommitCount *int32 `json:"commit_count,omitempty"`

	// 仓库统计创建的时间
	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	// 删除代码行
	DeleteLines *int32 `json:"delete_lines,omitempty"`

	// 仓库统计记录id
	Id *int32 `json:"id,omitempty"`

	// 仓库id
	ProjectId *int32 `json:"project_id,omitempty"`

	// 仓库统计更新的时间
	UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`

	// 用户名
	UserName *string `json:"user_name,omitempty"`
}

func (RepoStatistics) String

func (o RepoStatistics) String() string

type RepoStatisticsEvent

type RepoStatisticsEvent struct {

	// 分支名
	Branch *string `json:"branch,omitempty"`

	// 仓库统计创建的时间
	CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`

	// 仓库统计的日期
	Date *string `json:"date,omitempty"`

	// 仓库统计事件的id
	Id *int32 `json:"id,omitempty"`

	// 仓库id
	ProjectId *int32 `json:"project_id,omitempty"`

	// 仓库统计的状态: 等待统计waiting  正在统计active  完成统计finish
	Status *string `json:"status,omitempty"`

	// 仓库统计更新的时间
	UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`

	// 用户id
	UserId *int32 `json:"user_id,omitempty"`
}

func (RepoStatisticsEvent) String

func (o RepoStatisticsEvent) String() string

type RepoStatisticsLaunch

type RepoStatisticsLaunch struct {

	// 仓库是否可以统计
	CanStatistics *bool `json:"can_statistics,omitempty"`

	// sidekiq任务的 id
	JoinId *string `json:"join_id,omitempty"`

	// 启动仓库统计返回的信息
	Message *string `json:"message,omitempty"`
}

func (RepoStatisticsLaunch) String

func (o RepoStatisticsLaunch) String() string

type Repository

type Repository struct {

	// 创建仓库的UUID
	RepositoryUuid *string `json:"repository_uuid,omitempty"`
}

func (Repository) String

func (o Repository) String() string

type RepositoryHookRequest

type RepositoryHookRequest struct {

	// 触发url
	HookUrl string `json:"hook_url"`

	// 事件来源
	Service string `json:"service"`

	// 安全令牌
	Token *string `json:"token,omitempty"`

	// 触发事件
	HookEvents []string `json:"hook_events"`
}

func (RepositoryHookRequest) String

func (o RepositoryHookRequest) String() string

type RepositoryMember

type RepositoryMember struct {

	// 仓库成员描述
	Description *string `json:"description,omitempty"`

	// 租户id
	DomainId *string `json:"domain_id,omitempty"`

	// 租户名
	DomainName *string `json:"domain_name,omitempty"`

	// 邮箱地址
	Email *string `json:"email,omitempty"`

	// 成员是否可用
	Enabled *string `json:"enabled,omitempty"`

	// 用户名
	Name *string `json:"name,omitempty"`

	// 仓库用户权限,取值范围:30->普通成员,40->管理员
	Role *int32 `json:"role,omitempty"`

	// 用户id
	UserId *string `json:"user_id,omitempty"`
}

func (RepositoryMember) String

func (o RepositoryMember) String() string

type RepositoryMemberList

type RepositoryMemberList struct {

	// 仓库成员总数
	Total *int32 `json:"total,omitempty"`

	// 仓库成员列表
	Users *[]RepositoryMember `json:"users,omitempty"`
}

func (RepositoryMemberList) String

func (o RepositoryMemberList) String() string

type RepositoryStatisticsVo added in v0.1.1

type RepositoryStatisticsVo struct {

	// 仓库名称
	RepoName *string `json:"repoName,omitempty"`

	// 提交次数
	CommitCount *int32 `json:"commitCount,omitempty"`

	// 仓库容量
	RepoSize *string `json:"repoSize,omitempty"`

	// 最近一次提交时间
	LastCommitTime *string `json:"lastCommitTime,omitempty"`

	// 代码行数
	CodeLines *int32 `json:"codeLines,omitempty"`

	// 分支数量
	BranchCount *int32 `json:"branchCount,omitempty"`

	// 代码仓下载地址
	ArchiveUrl *string `json:"archiveUrl,omitempty"`
}

func (RepositoryStatisticsVo) String added in v0.1.1

func (o RepositoryStatisticsVo) String() string

type RepositoryTemplateVo

type RepositoryTemplateVo struct {

	// 模板类型
	TemplateType string `json:"templateType"`

	// 代码模板名称
	CodeTitle *string `json:"codeTitle,omitempty"`

	// 创建者名称
	CreatorName *string `json:"creatorName,omitempty"`

	// 代码模板描述
	CodeDescription *string `json:"codeDescription,omitempty"`

	// 模板语言
	Languages *[]string `json:"languages,omitempty"`

	// 模板平台
	Plateform *[]string `json:"plateform,omitempty"`

	// 模板类型
	Entertype *[]string `json:"entertype,omitempty"`
}

func (RepositoryTemplateVo) String

func (o RepositoryTemplateVo) String() string

type RepositoryTemplateVo2

type RepositoryTemplateVo2 struct {

	// 模板类型
	TemplateType string `json:"template_type"`

	// 代码模板名称
	CodeTitle *string `json:"code_title,omitempty"`

	// 创建者名称
	CreatorName *string `json:"creator_name,omitempty"`

	// 代码模板描述
	CodeDescription *string `json:"code_description,omitempty"`

	// 模板语言
	Languages *[]string `json:"languages,omitempty"`

	// 模板平台
	Plateform *[]string `json:"plateform,omitempty"`

	// 模板类型
	Entertype *[]string `json:"entertype,omitempty"`
}

func (RepositoryTemplateVo2) String

func (o RepositoryTemplateVo2) String() string

type ReviewSettingDto added in v0.1.50

type ReviewSettingDto struct {

	// 是否开启检视意见分类和模块
	CategoriesAndModulesEnabled *bool `json:"categories_and_modules_enabled,omitempty"`

	// 是否开启二级分类
	SecondaryCategoryEnabled *bool `json:"secondary_category_enabled,omitempty"`

	// 是否禁止关联issue
	ForbiddenAddToIssue *bool `json:"forbidden_add_to_issue,omitempty"`

	// 一级分类
	PrimaryCategories *[]CategoryDto `json:"primary_categories,omitempty"`

	// 默认分类
	ReviewDefaultCategories *[]string `json:"review_default_categories,omitempty"`

	// 自定义分类
	ReviewCustomizedCategories *[]string `json:"review_customized_categories,omitempty"`

	// 检视意见模块
	ReviewModules *[]string `json:"review_modules,omitempty"`

	// 目标id
	SourceId *int32 `json:"source_id,omitempty"`

	// 目标类型
	SourceType *string `json:"source_type,omitempty"`

	// 目标路径
	SourcePath *string `json:"source_path,omitempty"`

	// 二级分类类型
	SecondaryCategoryType *string `json:"secondary_category_type,omitempty"`

	// 二级分类
	SecondaryCategories *[]CategoryDto `json:"secondary_categories,omitempty"`
}

func (ReviewSettingDto) String added in v0.1.50

func (o ReviewSettingDto) String() string

type SetRepoRoleRequest

type SetRepoRoleRequest struct {

	// 用户id
	MemberId string `json:"member_id"`

	// 仓库uuid(由CreateRepository接口返回)
	RepositoryUuid string `json:"repository_uuid"`

	Body *SetRepoRoleRequestBody `json:"body,omitempty"`
}

SetRepoRoleRequest Request Object

func (SetRepoRoleRequest) String

func (o SetRepoRoleRequest) String() string

type SetRepoRoleRequestBody

type SetRepoRoleRequestBody struct {

	// 设置仓库的成员权限,取值范围:20 -> 只读成员 30->普通成员,40->管理员
	Role SetRepoRoleRequestBodyRole `json:"role"`
}

func (SetRepoRoleRequestBody) String

func (o SetRepoRoleRequestBody) String() string

type SetRepoRoleRequestBodyRole

type SetRepoRoleRequestBodyRole struct {
	// contains filtered or unexported fields
}

func (SetRepoRoleRequestBodyRole) MarshalJSON

func (c SetRepoRoleRequestBodyRole) MarshalJSON() ([]byte, error)

func (*SetRepoRoleRequestBodyRole) UnmarshalJSON

func (c *SetRepoRoleRequestBodyRole) UnmarshalJSON(b []byte) error

func (SetRepoRoleRequestBodyRole) Value added in v0.0.90

type SetRepoRoleRequestBodyRoleEnum

type SetRepoRoleRequestBodyRoleEnum struct {
	E_20 SetRepoRoleRequestBodyRole
	E_30 SetRepoRoleRequestBodyRole
	E_40 SetRepoRoleRequestBodyRole
}

func GetSetRepoRoleRequestBodyRoleEnum

func GetSetRepoRoleRequestBodyRoleEnum() SetRepoRoleRequestBodyRoleEnum

type SetRepoRoleResponse

type SetRepoRoleResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *Empty `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

SetRepoRoleResponse Response Object

func (SetRepoRoleResponse) String

func (o SetRepoRoleResponse) String() string

type ShareTemplatesRequest

type ShareTemplatesRequest struct {

	// 仓库id
	RepositoryUuid string `json:"repository_uuid"`

	Body *RepositoryTemplateVo `json:"body,omitempty"`
}

ShareTemplatesRequest Request Object

func (ShareTemplatesRequest) String

func (o ShareTemplatesRequest) String() string

type ShareTemplatesResponse

type ShareTemplatesResponse struct {
	Error *Error `json:"error,omitempty"`

	// 响应结果
	Result *string `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShareTemplatesResponse Response Object

func (ShareTemplatesResponse) String

func (o ShareTemplatesResponse) String() string

type ShowAllRepositoryByTwoProjectIdRequest

type ShowAllRepositoryByTwoProjectIdRequest struct {

	// 分页索引,从1开始计数
	PageIndex *int32 `json:"page_index,omitempty"`

	// 每页条目数
	PageSize *int32 `json:"page_size,omitempty"`

	// 项目ID,获取方式请参见[获取项目ID](codehub_api_0014.xml)。
	ProjectUuid string `json:"project_uuid"`

	// 搜索关键字
	Search *string `json:"search,omitempty"`
}

ShowAllRepositoryByTwoProjectIdRequest Request Object

func (ShowAllRepositoryByTwoProjectIdRequest) String

type ShowAllRepositoryByTwoProjectIdResponse

type ShowAllRepositoryByTwoProjectIdResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *RepoListInfoV2 `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowAllRepositoryByTwoProjectIdResponse Response Object

func (ShowAllRepositoryByTwoProjectIdResponse) String

type ShowBranchesByRepositoryIdRequest

type ShowBranchesByRepositoryIdRequest struct {

	// 仓库的主键id
	RepositoryId string `json:"repository_id"`
}

ShowBranchesByRepositoryIdRequest Request Object

func (ShowBranchesByRepositoryIdRequest) String

type ShowBranchesByRepositoryIdResponse

type ShowBranchesByRepositoryIdResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *BranchList `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowBranchesByRepositoryIdResponse Response Object

func (ShowBranchesByRepositoryIdResponse) String

type ShowBranchesByTwoRepositoryIdRequest

type ShowBranchesByTwoRepositoryIdRequest struct {

	// 仓库的主键id
	RepositoryId string `json:"repository_id"`
}

ShowBranchesByTwoRepositoryIdRequest Request Object

func (ShowBranchesByTwoRepositoryIdRequest) String

type ShowBranchesByTwoRepositoryIdResponse

type ShowBranchesByTwoRepositoryIdResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *TagList `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowBranchesByTwoRepositoryIdResponse Response Object

func (ShowBranchesByTwoRepositoryIdResponse) String

type ShowCommitsByBranchRequest

type ShowCommitsByBranchRequest struct {

	// 仓库组名(克隆地址中域名后面仓库名前的一段 示例:git@repo.alpha.devcloud.inhuawei.com:Demo00228/testword.git  组名:Demo00228 )
	GroupName string `json:"group_name"`

	// 分页索引
	PageIndex *int32 `json:"page_index,omitempty"`

	// 分页索引
	PageSize *int32 `json:"page_size,omitempty"`

	// 分支或标签名,支持SHA格式
	RefName string `json:"ref_name"`

	// 仓库名
	RepositoryName string `json:"repository_name"`
}

ShowCommitsByBranchRequest Request Object

func (ShowCommitsByBranchRequest) String

type ShowCommitsByBranchResponse

type ShowCommitsByBranchResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *CommitList `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowCommitsByBranchResponse Response Object

func (ShowCommitsByBranchResponse) String

type ShowCommitsByRepoIdRequest

type ShowCommitsByRepoIdRequest struct {

	// 提交作者
	Author *string `json:"author,omitempty"`

	// 起始提交日期,格式为yyyy-MM-dd
	BeginDate *string `json:"begin_date,omitempty"`

	// 终止提交日期,格式为yyyy-MM-dd
	EndDate *string `json:"end_date,omitempty"`

	// 提交信息
	Message *string `json:"message,omitempty"`

	// 分页索引
	PageIndex *int32 `json:"page_index,omitempty"`

	// 每页数据量
	PageSize *int32 `json:"page_size,omitempty"`

	// 文件路径
	Path *string `json:"path,omitempty"`

	// 分支或标签名,支持SHA格式
	RefName string `json:"ref_name"`

	// 仓库主键id
	RepositoryId int32 `json:"repository_id"`

	// 提交的文件变更详情信息(不包含diff)
	StatFormat *string `json:"stat_format,omitempty"`
}

ShowCommitsByRepoIdRequest Request Object

func (ShowCommitsByRepoIdRequest) String

type ShowCommitsByRepoIdResponse

type ShowCommitsByRepoIdResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *CommitList `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowCommitsByRepoIdResponse Response Object

func (ShowCommitsByRepoIdResponse) String

type ShowDiffCommitRequest

type ShowDiffCommitRequest struct {

	// 仓库短id
	RepoId int32 `json:"repo_id"`

	// commit id,仓库的branch名或tag名
	Sha string `json:"sha"`
}

ShowDiffCommitRequest Request Object

func (ShowDiffCommitRequest) String

func (o ShowDiffCommitRequest) String() string

type ShowDiffCommitResponse

type ShowDiffCommitResponse struct {
	Error *Error `json:"error,omitempty"`

	// 差异列表
	Result *[]DiffCommitInfo `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowDiffCommitResponse Response Object

func (ShowDiffCommitResponse) String

func (o ShowDiffCommitResponse) String() string

type ShowFileRequest

type ShowFileRequest struct {

	// 仓库短id
	RepoId int32 `json:"repo_id"`

	// Url编码的新文件的完整路径。
	FilePath string `json:"file_path"`

	// commit id,仓库的branch名或tag名
	Ref string `json:"ref"`
}

ShowFileRequest Request Object

func (ShowFileRequest) String

func (o ShowFileRequest) String() string

type ShowFileResponse

type ShowFileResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *FileContentInfo `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowFileResponse Response Object

func (ShowFileResponse) String

func (o ShowFileResponse) String() string

type ShowHasPipelineRequest

type ShowHasPipelineRequest struct {

	// 仓库id
	RepositoryUuid string `json:"repository_uuid"`
}

ShowHasPipelineRequest Request Object

func (ShowHasPipelineRequest) String

func (o ShowHasPipelineRequest) String() string

type ShowHasPipelineResponse

type ShowHasPipelineResponse struct {
	Error *Error `json:"error,omitempty"`

	// 响应结果
	Result *bool `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowHasPipelineResponse Response Object

func (ShowHasPipelineResponse) String

func (o ShowHasPipelineResponse) String() string

type ShowImageBlobRequest

type ShowImageBlobRequest struct {

	// 仓库id
	RepositoryUuid string `json:"repository_uuid"`

	// 分支名称
	BranchName string `json:"branch_name"`

	// 图片路径
	Path string `json:"path"`
}

ShowImageBlobRequest Request Object

func (ShowImageBlobRequest) String

func (o ShowImageBlobRequest) String() string

type ShowImageBlobResponse

type ShowImageBlobResponse struct {
	HttpStatusCode int `json:"-"`
}

ShowImageBlobResponse Response Object

func (ShowImageBlobResponse) String

func (o ShowImageBlobResponse) String() string

type ShowMasterRequest

type ShowMasterRequest struct {

	// 仓库id
	RepositoryUuid string `json:"repository_uuid"`
}

ShowMasterRequest Request Object

func (ShowMasterRequest) String

func (o ShowMasterRequest) String() string

type ShowMasterResponse

type ShowMasterResponse struct {
	Error *Error `json:"error,omitempty"`

	// 响应结果
	Result *bool `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowMasterResponse Response Object

func (ShowMasterResponse) String

func (o ShowMasterResponse) String() string

type ShowMergeRequestRequest added in v0.1.1

type ShowMergeRequestRequest struct {

	// 仓库短id
	RepositoryId int32 `json:"repository_id"`

	// 合并请求id
	MergeRequestId int32 `json:"merge_request_id"`
}

ShowMergeRequestRequest Request Object

func (ShowMergeRequestRequest) String added in v0.1.1

func (o ShowMergeRequestRequest) String() string

type ShowMergeRequestResponse added in v0.1.1

type ShowMergeRequestResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *MergeInfoResult `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowMergeRequestResponse Response Object

func (ShowMergeRequestResponse) String added in v0.1.1

func (o ShowMergeRequestResponse) String() string

type ShowPrivateKeyVerifyRequest

type ShowPrivateKeyVerifyRequest struct {
	Body *PrivateKeyVerify `json:"body,omitempty"`
}

ShowPrivateKeyVerifyRequest Request Object

func (ShowPrivateKeyVerifyRequest) String

type ShowPrivateKeyVerifyResponse

type ShowPrivateKeyVerifyResponse struct {
	Error *Error `json:"error,omitempty"`

	// 响应结果
	Result *string `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowPrivateKeyVerifyResponse Response Object

func (ShowPrivateKeyVerifyResponse) String

type ShowRepoIdRequest

type ShowRepoIdRequest struct {

	// 仓库组名(克隆地址中域名后面仓库名前的一段 示例:git@repo.alpha.devcloud.inhuawei.com:Demo00228/testword.git  组名:Demo00228 )
	GroupName string `json:"group_name"`

	// 仓库名
	RepositoryName string `json:"repository_name"`
}

ShowRepoIdRequest Request Object

func (ShowRepoIdRequest) String

func (o ShowRepoIdRequest) String() string

type ShowRepoIdResponse

type ShowRepoIdResponse struct {
	Error *Error `json:"error,omitempty"`

	// 响应结果
	Result *int32 `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowRepoIdResponse Response Object

func (ShowRepoIdResponse) String

func (o ShowRepoIdResponse) String() string

type ShowRepositoryArchiveRequest

type ShowRepositoryArchiveRequest struct {

	// 仓库的uuid
	RepositoryUuid string `json:"repository_uuid"`

	// 分支名称
	Sha string `json:"sha"`

	// 下载的压缩包格式
	Format string `json:"format"`
}

ShowRepositoryArchiveRequest Request Object

func (ShowRepositoryArchiveRequest) String

type ShowRepositoryArchiveResponse

type ShowRepositoryArchiveResponse struct {
	HttpStatusCode int `json:"-"`
}

ShowRepositoryArchiveResponse Response Object

func (ShowRepositoryArchiveResponse) String

type ShowRepositoryByUuidRequest

type ShowRepositoryByUuidRequest struct {

	// 仓库的uuid
	RepositoryUuid string `json:"repository_uuid"`
}

ShowRepositoryByUuidRequest Request Object

func (ShowRepositoryByUuidRequest) String

type ShowRepositoryByUuidResponse

type ShowRepositoryByUuidResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *RepoInfoV2 `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowRepositoryByUuidResponse Response Object

func (ShowRepositoryByUuidResponse) String

type ShowRepositoryNameExistRequest

type ShowRepositoryNameExistRequest struct {

	// 项目ID,获取方式请参见[获取项目ID](codehub_api_0014.xml)。
	ProjectUuid string `json:"project_uuid"`

	// 仓库名
	RepositoryName string `json:"repository_name"`
}

ShowRepositoryNameExistRequest Request Object

func (ShowRepositoryNameExistRequest) String

type ShowRepositoryNameExistResponse

type ShowRepositoryNameExistResponse struct {
	Error *Error `json:"error,omitempty"`

	// 响应结果
	Result *bool `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowRepositoryNameExistResponse Response Object

func (ShowRepositoryNameExistResponse) String

type ShowRepositoryStatisticsRequest

type ShowRepositoryStatisticsRequest struct {

	// 仓库的主键id
	RepositoryId int32 `json:"repository_id"`

	Body *ShowRepositoryStatisticsRequestBody `json:"body,omitempty"`
}

ShowRepositoryStatisticsRequest Request Object

func (ShowRepositoryStatisticsRequest) String

type ShowRepositoryStatisticsRequestBody

type ShowRepositoryStatisticsRequestBody struct {

	// 仓库分支名
	BranchName string `json:"branch_name"`
}

func (ShowRepositoryStatisticsRequestBody) String

type ShowRepositoryStatisticsResponse

type ShowRepositoryStatisticsResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *RepoStatisticsLaunch `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowRepositoryStatisticsResponse Response Object

func (ShowRepositoryStatisticsResponse) String

type ShowReviewSettingRequest added in v0.1.50

type ShowReviewSettingRequest struct {

	// 仓库短id
	RepositoryId int32 `json:"repository_id"`
}

ShowReviewSettingRequest Request Object

func (ShowReviewSettingRequest) String added in v0.1.50

func (o ShowReviewSettingRequest) String() string

type ShowReviewSettingResponse added in v0.1.50

type ShowReviewSettingResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *ReviewSettingDto `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowReviewSettingResponse Response Object

func (ShowReviewSettingResponse) String added in v0.1.50

func (o ShowReviewSettingResponse) String() string

type ShowSingleCommitRequest

type ShowSingleCommitRequest struct {

	// 仓库短id
	RepoId int32 `json:"repo_id"`

	// commit id,仓库的branch名或tag名
	Sha string `json:"sha"`

	// 包括提交统计信息。默认值为true
	Stats *bool `json:"stats,omitempty"`
}

ShowSingleCommitRequest Request Object

func (ShowSingleCommitRequest) String

func (o ShowSingleCommitRequest) String() string

type ShowSingleCommitResponse

type ShowSingleCommitResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *SpecificCommitInfo `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowSingleCommitResponse Response Object

func (ShowSingleCommitResponse) String

func (o ShowSingleCommitResponse) String() string

type ShowStatisticCommitRequest

type ShowStatisticCommitRequest struct {

	// 仓库短id
	RepositoryId int32 `json:"repository_id"`

	// 分支名称
	RefName string `json:"ref_name"`

	// 起始提交日期,格式为yyyy-MM-dd
	BeginDate string `json:"begin_date"`

	// 终止提交日期,格式为yyyy-MM-dd(begin_date和end_date时间间隔不超过60天)
	EndDate string `json:"end_date"`
}

ShowStatisticCommitRequest Request Object

func (ShowStatisticCommitRequest) String

type ShowStatisticCommitResponse

type ShowStatisticCommitResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *CommitStatistic `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowStatisticCommitResponse Response Object

func (ShowStatisticCommitResponse) String

type ShowStatisticCommitV3Request added in v0.0.78

type ShowStatisticCommitV3Request struct {

	// 仓库短id
	RepositoryId int32 `json:"repository_id"`

	// 分支名称
	RefName string `json:"ref_name"`

	// 起始提交日期,格式为yyyy-MM-dd
	BeginDate string `json:"begin_date"`

	// 终止提交日期,格式为yyyy-MM-dd(begin_date和end_date时间间隔不超过60天)
	EndDate string `json:"end_date"`
}

ShowStatisticCommitV3Request Request Object

func (ShowStatisticCommitV3Request) String added in v0.0.78

type ShowStatisticCommitV3Response added in v0.0.78

type ShowStatisticCommitV3Response struct {
	Error *Error `json:"error,omitempty"`

	Result *CommitStatistic `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowStatisticCommitV3Response Response Object

func (ShowStatisticCommitV3Response) String added in v0.0.78

type ShowStatisticalDataRequest

type ShowStatisticalDataRequest struct {

	// 仓库id
	RepositoryUuid string `json:"repository_uuid"`
}

ShowStatisticalDataRequest Request Object

func (ShowStatisticalDataRequest) String

type ShowStatisticalDataResponse

type ShowStatisticalDataResponse struct {
	Error *Error `json:"error,omitempty"`

	Result *RepositoryStatisticsVo `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowStatisticalDataResponse Response Object

func (ShowStatisticalDataResponse) String

type SpecificCommitInfo

type SpecificCommitInfo struct {

	// 提交对应的SHA id
	Id *string `json:"id,omitempty"`

	// 提交对应的短SHA id
	ShortId *string `json:"short_id,omitempty"`

	// 提交标题
	Title *string `json:"title,omitempty"`

	// 作者
	AuthorName *string `json:"author_name,omitempty"`

	// 作者邮箱
	AuthorEmail *string `json:"author_email,omitempty"`

	// 提交作者
	CommitterName *string `json:"committer_name,omitempty"`

	// 提交作者邮箱
	CommitterEmail *string `json:"committer_email,omitempty"`

	// 创建时间
	CreatedAt *string `json:"created_at,omitempty"`

	// 提交信息
	Message *string `json:"message,omitempty"`

	// 父提交id
	ParentIds *[]string `json:"parent_ids,omitempty"`

	// 提交时间
	CommittedDate *sdktime.SdkTime `json:"committed_date,omitempty"`

	// 作者提交时间
	AuthoredDate *sdktime.SdkTime `json:"authored_date,omitempty"`

	Stats *SpecificCommitInfoStats `json:"stats,omitempty"`

	LastPipeline *SpecificCommitInfoLastPipeline `json:"last_pipeline,omitempty"`
}

func (SpecificCommitInfo) String

func (o SpecificCommitInfo) String() string

type SpecificCommitInfoLastPipeline

type SpecificCommitInfoLastPipeline struct {

	// 流水线id
	Id *int32 `json:"id,omitempty"`

	// 提交对应的SHA id
	Sha *string `json:"sha,omitempty"`

	// 分支名
	Ref *string `json:"ref,omitempty"`

	// 流水线状态
	Status *string `json:"status,omitempty"`

	// 流水线url
	WebUrl *string `json:"web_url,omitempty"`
}

SpecificCommitInfoLastPipeline 流水线信息

func (SpecificCommitInfoLastPipeline) String

type SpecificCommitInfoStats

type SpecificCommitInfoStats struct {

	// 变更增加的行数
	Additions *int32 `json:"additions,omitempty"`

	// 变更删除的行数
	Deletions *int32 `json:"deletions,omitempty"`

	// 变更的总行数
	Total *int32 `json:"total,omitempty"`
}

SpecificCommitInfoStats 变更行数

func (SpecificCommitInfoStats) String

func (o SpecificCommitInfoStats) String() string

type Tag

type Tag struct {

	// 是否与分支重名
	IsDoubleName *bool `json:"is_double_name,omitempty"`

	// 标签名
	Name *string `json:"name,omitempty"`
}

func (Tag) String

func (o Tag) String() string

type TagList

type TagList struct {

	// 指定仓库的标签列表
	Tags *[]Tag `json:"tags,omitempty"`

	// 指定仓库的标签总数
	Total *int32 `json:"total,omitempty"`
}

func (TagList) String

func (o TagList) String() string

type TemplateListInfo

type TemplateListInfo struct {

	// 仓库列表
	Repos *[]DevstarRepoInfo `json:"repos,omitempty"`

	// 仓库总数
	TotalCount *int32 `json:"total_count,omitempty"`
}

func (TemplateListInfo) String

func (o TemplateListInfo) String() string

type TemplateRepository

type TemplateRepository struct {

	// 模板唯一标识
	Id *int32 `json:"id,omitempty"`

	// 模板名称
	Name *string `json:"name,omitempty"`

	// 模板关联仓库名称
	TemplateName *string `json:"template_name,omitempty"`

	// 模板标签
	Tags *[]string `json:"tags,omitempty"`

	// 模板描述
	Description *string `json:"description,omitempty"`

	// 模板简介
	BriefIntroduction *string `json:"brief_introduction,omitempty"`

	// 是否自动创建流水线
	AutoPendingPipelines *int32 `json:"auto_pending_pipelines,omitempty"`

	// 模板语言分类
	Language *string `json:"language,omitempty"`

	// 模板创建时间
	CreatedAt *string `json:"created_at,omitempty"`

	// 模板引用次数
	UsedTimes *int32 `json:"used_times,omitempty"`

	// 模板被点赞次数
	LikedTimes *int32 `json:"liked_times,omitempty"`

	// 模板创建人
	CreatorName *string `json:"creator_name,omitempty"`

	// 模板https链接
	HttpsUrl *string `json:"https_url,omitempty"`
}

func (TemplateRepository) String

func (o TemplateRepository) String() string

type TemplateRepositoryList

type TemplateRepositoryList struct {

	// 模板列表
	Projects *[]TemplateRepository `json:"projects,omitempty"`

	// 模板总数
	Total *int32 `json:"total,omitempty"`
}

func (TemplateRepositoryList) String

func (o TemplateRepositoryList) String() string

type UserBasicDto added in v0.1.50

type UserBasicDto struct {

	// 用户id
	Id *int32 `json:"id,omitempty"`

	// 姓名
	Name *string `json:"name,omitempty"`

	// 用户名
	Username *string `json:"username,omitempty"`

	// 状态
	State *string `json:"state,omitempty"`

	// 头像url
	AvatarUrl *string `json:"avatar_url,omitempty"`

	// 头像路径
	AvatarPath *string `json:"avatar_path,omitempty"`

	// 邮箱
	Email *string `json:"email,omitempty"`

	// 中文名
	NameCn *string `json:"name_cn,omitempty"`

	// 主页
	WebUrl *string `json:"web_url,omitempty"`

	// 昵称
	NickName *string `json:"nick_name,omitempty"`

	// 租户名称
	TenantName *string `json:"tenant_name,omitempty"`
}

func (UserBasicDto) String added in v0.1.50

func (o UserBasicDto) String() string

type UserSafeDto added in v0.1.50

type UserSafeDto struct {

	// 用户id
	Id *int32 `json:"id,omitempty"`

	// 姓名
	Name *string `json:"name,omitempty"`

	// 用户名
	Username *string `json:"username,omitempty"`
}

func (UserSafeDto) String added in v0.1.50

func (o UserSafeDto) String() string

type ValidateHttpsInfoRequest

type ValidateHttpsInfoRequest struct {

	// 用户iam_user_uuid
	IamUserUuid string `json:"iam_user_uuid"`

	Body *PasswordRequest `json:"body,omitempty"`
}

ValidateHttpsInfoRequest Request Object

func (ValidateHttpsInfoRequest) String

func (o ValidateHttpsInfoRequest) String() string

type ValidateHttpsInfoResponse

type ValidateHttpsInfoResponse struct {
	Error *Error `json:"error,omitempty"`

	// 响应结果
	Result *string `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ValidateHttpsInfoResponse Response Object

func (ValidateHttpsInfoResponse) String

func (o ValidateHttpsInfoResponse) String() string

type ValidateHttpsInfoV2Request

type ValidateHttpsInfoV2Request struct {

	// 用户iam_user_uuid
	IamUserUuid string `json:"iam_user_uuid"`

	Body *PasswordRequest `json:"body,omitempty"`
}

ValidateHttpsInfoV2Request Request Object

func (ValidateHttpsInfoV2Request) String

type ValidateHttpsInfoV2Response

type ValidateHttpsInfoV2Response struct {
	Error *Error `json:"error,omitempty"`

	// 响应结果
	Result *string `json:"result,omitempty"`

	// 响应状态
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ValidateHttpsInfoV2Response Response Object

func (ValidateHttpsInfoV2Response) String

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL