model

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildStep

type BuildStep struct {

	// 步骤名称
	Name *string `json:"name,omitempty"`

	// 步骤状态,可选值(running运行中,success成功,error失败,未运行为空字符串)
	Status *string `json:"status,omitempty"`

	// 步骤执行时长,单位ms
	BuildTime *int32 `json:"build_time,omitempty"`
}

func (BuildStep) String

func (o BuildStep) String() string

type DownloadKeystoreRequest

type DownloadKeystoreRequest struct {

	// 下载的文件名称
	FileName string `json:"file_name"`

	// 租户ID。32位数字、小写字母组合
	DomainId string `json:"domain_id"`
}

Request Object

func (DownloadKeystoreRequest) String

func (o DownloadKeystoreRequest) String() string

type DownloadKeystoreResponse

type DownloadKeystoreResponse struct {
	HttpStatusCode int           `json:"-"`
	Body           io.ReadCloser `json:"-" type:"stream"`
}

Response Object

func (DownloadKeystoreResponse) Consume

func (o DownloadKeystoreResponse) Consume(writer io.Writer) (int64, error)

func (DownloadKeystoreResponse) String

func (o DownloadKeystoreResponse) String() string

type HistoryRecord

type HistoryRecord struct {

	// 构建记录id--唯一key
	RecordId *string `json:"record_id,omitempty"`

	// 任务id
	JobId *string `json:"job_id,omitempty"`

	// 构建编号
	BuildNumber *int32 `json:"build_number,omitempty"`

	// 构建开始时间
	StartTime *string `json:"start_time,omitempty"`

	// 构建结束时间
	EndTime *string `json:"end_time,omitempty"`

	// 构建结果
	Result *string `json:"result,omitempty"`
}

func (HistoryRecord) String

func (o HistoryRecord) String() string

type HistoryRecord1

type HistoryRecord1 struct {

	// 构建记录id--唯一key
	RecordId *string `json:"record_id,omitempty"`

	// 任务id
	JobId *string `json:"job_id,omitempty"`

	// 构建编号
	BuildNumber *int32 `json:"build_number,omitempty"`

	// 构建开始时间
	StartTime *string `json:"start_time,omitempty"`

	// 构建结束时间
	EndTime *string `json:"end_time,omitempty"`

	// 构建结果
	Result *string `json:"result,omitempty"`

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

	// 代码提交的commit id
	CommitId *string `json:"commit_id,omitempty"`

	// 代码提交时用户输入的提交信息,只有使用codehub仓库时有值
	CommitMessage *string `json:"commit_message,omitempty"`

	// 执行构建任务的用户的用户名
	Executor *string `json:"executor,omitempty"`

	// 触发方式,可选值:手工触发,定时触发,代码更新触发,流水线触发
	TriggerType *string `json:"trigger_type,omitempty"`
}

func (HistoryRecord1) String

func (o HistoryRecord1) String() string

type Job

type Job struct {

	// 任务ID
	Id *string `json:"id,omitempty"`

	// 任务名称
	JobName *string `json:"job_name,omitempty"`

	// 任务创建者
	JobCreator *string `json:"job_creator,omitempty"`

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

	// 最新执行时间
	LastBuildTime float32 `json:"last_build_time,omitempty"`

	// 健康分值
	HealthScore *int32 `json:"health_score,omitempty"`

	// 代码来源
	SourceCode *string `json:"source_code,omitempty"`

	// 最新构建状态
	LastBuildStatus *string `json:"last_build_status,omitempty"`

	// 是否已结束
	IsFinished *bool `json:"is_finished,omitempty"`

	// 是否已禁用
	Disabled *bool `json:"disabled,omitempty"`

	// 是否已收藏
	Favorite *bool `json:"favorite,omitempty"`

	// 是否有修改任务权限
	IsModify *bool `json:"is_modify,omitempty"`

	// 是否有删除任务权限
	IsDelete *bool `json:"is_delete,omitempty"`

	// 是否有执行任务权限
	IsExecute *bool `json:"is_execute,omitempty"`

	// 是否有复制任务权限
	IsCopy *bool `json:"is_copy,omitempty"`

	// 是否有禁用任务权限
	IsForbidden *bool `json:"is_forbidden,omitempty"`

	// 是否有查看任务权限
	IsView *bool `json:"is_view,omitempty"`
}

func (Job) String

func (o Job) String() string

type ParameterItem

type ParameterItem struct {

	// 参数名称
	Name string `json:"name"`

	// 参数值
	Value string `json:"value"`
}

func (ParameterItem) String

func (o ParameterItem) String() string

type RunJobRequest

type RunJobRequest struct {
	Body *RunJobRequestBody `json:"body,omitempty"`
}

Request Object

func (RunJobRequest) String

func (o RunJobRequest) String() string

type RunJobRequestBody

type RunJobRequestBody struct {

	// 构建任务ID;编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串
	JobId string `json:"job_id"`

	// 自定义参数
	Parameter *[]ParameterItem `json:"parameter,omitempty"`

	Scm *Scm `json:"scm,omitempty"`
}

执行任务接口请求体

func (RunJobRequestBody) String

func (o RunJobRequestBody) String() string

type RunJobResponse

type RunJobResponse struct {

	// 临时任务名称
	OctopusJobName *string `json:"octopus_job_name,omitempty"`

	// 实际构建次数
	ActualBuildNumber *string `json:"actual_build_number,omitempty"`

	// 构建每日编号
	DailyBuildNumber *string `json:"daily_build_number,omitempty"`
	HttpStatusCode   int     `json:"-"`
}

Response Object

func (RunJobResponse) String

func (o RunJobResponse) String() string

type Scm

type Scm struct {

	// 代码Tag
	BuildTag *string `json:"build_tag,omitempty"`

	// 代码提交ID
	BuildCommitId *string `json:"build_commit_id,omitempty"`
}

代码信息

func (Scm) String

func (o Scm) String() string

type ShowHistoryDetailsRequest

type ShowHistoryDetailsRequest struct {

	// 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
	JobId string `json:"job_id"`

	// 构建任务的构建编号,从1开始,每次构建递增1
	BuildNumber int32 `json:"build_number"`
}

Request Object

func (ShowHistoryDetailsRequest) String

func (o ShowHistoryDetailsRequest) String() string

type ShowHistoryDetailsResponse

type ShowHistoryDetailsResponse struct {

	// 构建任务名称
	JobName *string `json:"job_name,omitempty"`

	// 构建编号
	BuildNumber *int32 `json:"build_number,omitempty"`

	// 构建任务所在项目的ID
	ProjectId *string `json:"project_id,omitempty"`

	// 构建任务所在项目的名称
	ProjectName *string `json:"project_name,omitempty"`

	// 本次构建的参数,Map类型,敏感参数值返回*号
	Parameters map[string]string `json:"parameters,omitempty"`

	// 本次任务的构建步骤详情,返回的步骤为页面可见步骤
	BuildSteps     *[]BuildStep `json:"build_steps,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ShowHistoryDetailsResponse) String

type ShowJobListByProjectIdRequest

type ShowJobListByProjectIdRequest struct {

	// CodeArts项目ID,32位数字、小写字母组合。[查询项目列表](https://support.huaweicloud.com/api-projectman/ListProjectsV4.html)
	ProjectId string `json:"project_id"`

	// 分页页码, 表示从此页开始查询, page_index大于等于0
	PageIndex int32 `json:"page_index"`

	// 每页显示的条目数量,page_size小于等于100
	PageSize int32 `json:"page_size"`
}

Request Object

func (ShowJobListByProjectIdRequest) String

type ShowJobListByProjectIdResponse

type ShowJobListByProjectIdResponse struct {

	// 任务列表
	Jobs *[]Job `json:"jobs,omitempty"`

	// 任务总数
	Total          *int32 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowJobListByProjectIdResponse) String

type ShowJobStatusRequest

type ShowJobStatusRequest struct {

	// 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
	JobId string `json:"job_id"`
}

Request Object

func (ShowJobStatusRequest) String

func (o ShowJobStatusRequest) String() string

type ShowJobStatusResponse

type ShowJobStatusResponse struct {

	// 任务运行结果
	Result         *bool `json:"result,omitempty"`
	HttpStatusCode int   `json:"-"`
}

Response Object

func (ShowJobStatusResponse) String

func (o ShowJobStatusResponse) String() string

type ShowJobSuccessRatioRequest

type ShowJobSuccessRatioRequest struct {

	// 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
	JobId string `json:"job_id"`

	// 区间开始时间,格式yyyy-MM-dd。
	StartTime string `json:"start_time"`

	// 区间结束时间,格式yyyy-MM-dd。
	EndTime string `json:"end_time"`
}

Request Object

func (ShowJobSuccessRatioRequest) String

type ShowJobSuccessRatioResponse

type ShowJobSuccessRatioResponse struct {

	// 任务成功构建次数
	SuccessCount *int32 `json:"success_count,omitempty"`

	// 任务构建总次数
	TotalCount *int32 `json:"total_count,omitempty"`

	// 任务成功率,精确到小数点后两位
	SuccessRatio   *float64 `json:"success_ratio,omitempty"`
	HttpStatusCode int      `json:"-"`
}

Response Object

func (ShowJobSuccessRatioResponse) String

type ShowLastHistoryRequest

type ShowLastHistoryRequest struct {

	// CodeArts项目ID,32位数字、小写字母组合。[查询项目列表](https://support.huaweicloud.com/api-projectman/ListProjectsV4.html)
	ProjectId string `json:"project_id"`

	// 代码仓库名,不支持中文
	RepositoryName string `json:"repository_name"`
}

Request Object

func (ShowLastHistoryRequest) String

func (o ShowLastHistoryRequest) String() string

type ShowLastHistoryResponse

type ShowLastHistoryResponse struct {

	// 构建记录id--唯一key
	RecordId *string `json:"record_id,omitempty"`

	// 构建任务ID
	JobId *string `json:"job_id,omitempty"`

	// 构建任务名称
	JobName *string `json:"job_name,omitempty"`

	// 构建编号
	BuildNumber *int32 `json:"build_number,omitempty"`

	// 构建开始时间
	StartTime *string `json:"start_time,omitempty"`

	// 构建结束时间
	EndTime *string `json:"end_time,omitempty"`

	// 构建执行结果
	Result *string `json:"result,omitempty"`

	// commitId
	CommitId       *string `json:"commit_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowLastHistoryResponse) String

func (o ShowLastHistoryResponse) String() string

type ShowListHistoryRequest

type ShowListHistoryRequest struct {

	// 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
	JobId string `json:"job_id"`

	// 分页页码, 表示从此页开始查询, offset大于等于0
	Offset int32 `json:"offset"`

	// 每页显示的条目数量,limit小于等于100
	Limit int32 `json:"limit"`

	// 距今天的时间区间(单位:天),interval小于等于30
	Interval int32 `json:"interval"`
}

Request Object

func (ShowListHistoryRequest) String

func (o ShowListHistoryRequest) String() string

type ShowListHistoryResponse

type ShowListHistoryResponse struct {

	// 构建历史列表
	HistoryRecords *[]HistoryRecord `json:"history_records,omitempty"`

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

Response Object

func (ShowListHistoryResponse) String

func (o ShowListHistoryResponse) String() string

type ShowListPeriodHistoryRequest

type ShowListPeriodHistoryRequest struct {

	// 构建的任务ID [获取项目下构建任务列表](https://support.huaweicloud.com/api-codeci/ShowJobListByProjectId.html); 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
	JobId string `json:"job_id"`

	// 分页页码, 表示从此页开始查询, offset大于等于0
	Offset int32 `json:"offset"`

	// 每页显示的条目数量,limit小于等于100
	Limit int32 `json:"limit"`

	// 区间开始时间,格式yyyy-MM-dd。 开始时间和结束时间间隔不能超过30天
	StartTime string `json:"start_time"`

	// 区间结束时间,格式yyyy-MM-dd。 开始时间和结束时间间隔不能超过30天
	EndTime string `json:"end_time"`
}

Request Object

func (ShowListPeriodHistoryRequest) String

type ShowListPeriodHistoryResponse

type ShowListPeriodHistoryResponse struct {

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

	// 构建历史列表
	HistoryRecords *[]HistoryRecord1 `json:"history_records,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (ShowListPeriodHistoryResponse) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL