model

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckConfigInfo

type CheckConfigInfo struct {

	// 检查参数名称
	Name *string `json:"name,omitempty"`

	// 检查参数对应的key值
	CfgKey *string `json:"cfg_key,omitempty"`

	// 检查参数默认值
	DefaultValue *string `json:"default_value,omitempty"`

	// 检查参数可选项
	OptionValue *string `json:"option_value,omitempty"`

	// 0:非必填,1:必填
	IsRequired *int32 `json:"is_required,omitempty"`

	// 检查参数说明
	Description *string `json:"description,omitempty"`

	// 参数类型,0:文本,2:有可选项
	Type *int32 `json:"type,omitempty"`

	// 参数状态,on:启用,off:未启用
	Status *string `json:"status,omitempty"`

	// 检查参数值
	Value *string `json:"value,omitempty"`
}

func (CheckConfigInfo) String

func (o CheckConfigInfo) String() string

type CheckParametersRequest

type CheckParametersRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 任务ID
	TaskId string `json:"task_id"`

	// 规则集ID
	RulesetId string `json:"ruleset_id"`

	// 规则集语言
	Language string `json:"language"`
}

CheckParametersRequest Request Object

func (CheckParametersRequest) String

func (o CheckParametersRequest) String() string

type CheckParametersResponse

type CheckParametersResponse struct {
	Body           *[]TaskCheckParamters `json:"body,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

CheckParametersResponse Response Object

func (CheckParametersResponse) String

func (o CheckParametersResponse) String() string

type CheckRecordDataInfo

type CheckRecordDataInfo struct {

	// 检查任务执行开始时间
	CheckTime *string `json:"check_time,omitempty"`

	// 检查任务执行结束时间
	CheckEndTime *string `json:"check_end_time,omitempty"`

	IssueCounts *CheckRecordIssueCountsInfo `json:"issue_counts,omitempty"`
}

func (CheckRecordDataInfo) String

func (o CheckRecordDataInfo) String() string

type CheckRecordIssueCountsInfo

type CheckRecordIssueCountsInfo struct {

	// 致命问题
	Critical *int32 `json:"critical,omitempty"`

	// 严重问题
	Serious *int32 `json:"serious,omitempty"`

	// 常规问题
	Normal *int32 `json:"normal,omitempty"`

	// 提示问题
	Prompt *int32 `json:"prompt,omitempty"`
}

func (CheckRecordIssueCountsInfo) String

type CheckRecordRequest

type CheckRecordRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 任务ID
	TaskId string `json:"task_id"`

	// 分页索引,偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的数量,每页最多显示1000条
	Limit *int32 `json:"limit,omitempty"`

	// 过滤开始时间,根据任务检查开始时间过滤
	StartTime *string `json:"start_time,omitempty"`

	// 过滤结束时间,根据任务检查开始时间过滤
	EndTime *string `json:"end_time,omitempty"`
}

CheckRecordRequest Request Object

func (CheckRecordRequest) String

func (o CheckRecordRequest) String() string

type CheckRecordResponse

type CheckRecordResponse struct {

	// 历史记录数据
	Data *[]CheckRecordDataInfo `json:"data,omitempty"`

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

CheckRecordResponse Response Object

func (CheckRecordResponse) String

func (o CheckRecordResponse) String() string

type CheckRulesetParametersRequest

type CheckRulesetParametersRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 任务ID
	TaskId string `json:"task_id"`

	// 规则集ID
	RulesetId string `json:"ruleset_id"`

	// 规则集语言
	Language string `json:"language"`

	// 分页索引,偏移量,非必填
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的数量,非必填
	Limit *int32 `json:"limit,omitempty"`
}

CheckRulesetParametersRequest Request Object

func (CheckRulesetParametersRequest) String

type CheckRulesetParametersResponse

type CheckRulesetParametersResponse struct {

	// 历史记录数据
	Data *[]TaskCheckParamters `json:"data,omitempty"`

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

CheckRulesetParametersResponse Response Object

func (CheckRulesetParametersResponse) String

type ConfigTaskParameterBody

type ConfigTaskParameterBody struct {

	// 检查工具ID
	CheckId int32 `json:"check_id"`

	// 规则集ID
	RulesetId string `json:"ruleset_id"`

	// 规则集语言
	Language string `json:"language"`

	// off:关闭,on:开启
	Status string `json:"status"`

	// 检查参数信息
	TaskCheckSettings []TaskCheckSettingsItem `json:"task_check_settings"`
}

ConfigTaskParameterBody 任务配置检查参数请求信息

func (ConfigTaskParameterBody) String

func (o ConfigTaskParameterBody) String() string

type CreateRulesetRequest

type CreateRulesetRequest struct {
	Body *Ruleset `json:"body,omitempty"`
}

CreateRulesetRequest Request Object

func (CreateRulesetRequest) String

func (o CreateRulesetRequest) String() string

type CreateRulesetResponse

type CreateRulesetResponse struct {

	// 规则集ID
	TemplateId     *string `json:"template_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateRulesetResponse Response Object

func (CreateRulesetResponse) String

func (o CreateRulesetResponse) String() string

type CreateTaskRequest

type CreateTaskRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

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

CreateTaskRequest Request Object

func (CreateTaskRequest) String

func (o CreateTaskRequest) String() string

type CreateTaskRequestV2

type CreateTaskRequestV2 struct {

	// 检查类型,数组格式,默认为source
	CheckType *[]string `json:"check_type,omitempty"`

	// 仓库地址
	GitUrl string `json:"git_url"`

	// 仓库分支
	GitBranch string `json:"git_branch"`

	// 检查语言,数组格式,支持cpp,java,js,python,php,css,html,go,typescript,csharp
	Language []string `json:"language"`

	// 指定规则集
	RuleSets *[]RuleSetV2 `json:"rule_sets,omitempty"`

	// 检查类型,支持full/inc两种类型,full表示全量检查,inc表示mr检查
	TaskType *string `json:"task_type,omitempty"`

	// 仓库有权限的用户名
	Username *string `json:"username,omitempty"`

	// 仓库有权限的用户token
	AccessToken *string `json:"access_token,omitempty"`

	// 仓库有权限的用户endpointId
	EndpointId *string `json:"endpoint_id,omitempty"`

	IncConfig *IncConfigV2 `json:"inc_config,omitempty"`

	// 是否打开fossbot检查,默认不开
	EnableFossbot *bool `json:"enable_fossbot,omitempty"`

	// 资源池id,可以从资源池管理页面获取
	ResourcePoolId *string `json:"resource_pool_id,omitempty"`
}

func (CreateTaskRequestV2) String

func (o CreateTaskRequestV2) String() string

type CreateTaskResponse

type CreateTaskResponse struct {

	// 检查任务id
	TaskId         *string `json:"task_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateTaskResponse Response Object

func (CreateTaskResponse) String

func (o CreateTaskResponse) String() string

type CustomAttributes

type CustomAttributes struct {

	// 配置项属性,severity:为问题级别
	Attribute *string `json:"attribute,omitempty"`

	// 规则详细
	Rules *[]CustomAttributesRule `json:"rules,omitempty"`
}

func (CustomAttributes) String

func (o CustomAttributes) String() string

type CustomAttributesRule

type CustomAttributesRule struct {

	// 规则ID
	RuleId *string `json:"rule_id,omitempty"`

	// attribute的问题级别,0致命,1严重,2一般,3提示
	Value *string `json:"value,omitempty"`

	// 规则阈值详细
	RuleConfigList *[]RuleConfig `json:"rule_config_list,omitempty"`
}

func (CustomAttributesRule) String

func (o CustomAttributesRule) String() string

type DefectEvents

type DefectEvents struct {

	// 调用链信息
	Events *[]DefectEvents `json:"events,omitempty"`

	// 描述
	Description *string `json:"description,omitempty"`

	// fix suggestions
	FixSuggestions *[]string `json:"fix_suggestions,omitempty"`

	// 缺陷所在行
	Line *int32 `json:"line,omitempty"`

	// 缺陷结束行
	EndLine *int32 `json:"end_line,omitempty"`

	// 缺陷开始行
	CodeContextStartLine *int32 `json:"code_context_start_line,omitempty"`

	// 代码片段
	Main *bool `json:"main,omitempty"`

	// file path
	Path *string `json:"path,omitempty"`

	// 标签
	Tag *string `json:"tag,omitempty"`

	// main buggy code
	MainBuggyCode *string `json:"main_buggy_code,omitempty"`

	// code context
	CodeContext *string `json:"code_context,omitempty"`
}

func (DefectEvents) String

func (o DefectEvents) String() string

type DefectFragmentV2

type DefectFragmentV2 struct {

	// 行号
	LineNum *string `json:"line_num,omitempty"`

	// 该行代码内容
	LineContent *string `json:"line_content,omitempty"`

	// 缺陷开始列号
	StartOffset *int32 `json:"start_offset,omitempty"`

	// 缺陷结束列号
	EndOffset *int32 `json:"end_offset,omitempty"`
}

DefectFragmentV2 start_offset和end_offset均为-1,表示该行不是缺陷片段或者整行都是,需要结合DefectInfoV2中的line_number属性一起判断哪一行是具体的缺陷片段。

func (DefectFragmentV2) String

func (o DefectFragmentV2) String() string

type DefectInfoV2

type DefectInfoV2 struct {

	// 缺陷的id
	DefectId *string `json:"defect_id,omitempty"`

	// 缺陷对应检查项的名称
	DefectCheckerName *string `json:"defect_checker_name,omitempty"`

	// 缺陷的状态0为解决 1已解决 2已忽略
	DefectStatus *string `json:"defect_status,omitempty"`

	// 规则标签,多个标签用逗号隔开
	RuleSystemTags *string `json:"rule_system_tags,omitempty"`

	// 规则名
	RuleName *string `json:"rule_name,omitempty"`

	// 缺陷所在文件行号
	LineNumber *string `json:"line_number,omitempty"`

	// 缺陷描述
	DefectContent *string `json:"defect_content,omitempty"`

	// 缺陷等级,0致命,1严重,2一般,3提示
	DefectLevel *string `json:"defect_level,omitempty"`

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

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

	// 问题唯一标识
	IssueKey *string `json:"issue_key,omitempty"`

	// 缺陷代码片段详情
	Fragment *[]DefectFragmentV2 `json:"fragment,omitempty"`

	// 调用链信息
	Events *[]DefectEvents `json:"events,omitempty"`
}

DefectInfoV2 缺陷信息

func (DefectInfoV2) String

func (o DefectInfoV2) String() string

type DeleteRulesetRequest

type DeleteRulesetRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 规则集ID
	RulesetId string `json:"ruleset_id"`
}

DeleteRulesetRequest Request Object

func (DeleteRulesetRequest) String

func (o DeleteRulesetRequest) String() string

type DeleteRulesetResponse

type DeleteRulesetResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteRulesetResponse Response Object

func (DeleteRulesetResponse) String

func (o DeleteRulesetResponse) String() string

type DeleteTaskRequest

type DeleteTaskRequest struct {

	// 检查任务ID
	TaskId string `json:"task_id"`
}

DeleteTaskRequest Request Object

func (DeleteTaskRequest) String

func (o DeleteTaskRequest) String() string

type DeleteTaskResponse

type DeleteTaskResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteTaskResponse Response Object

func (DeleteTaskResponse) String

func (o DeleteTaskResponse) String() string

type IgnorePathSettingItem

type IgnorePathSettingItem struct {

	// 目录或文件路径
	FilePath string `json:"file_path"`

	// 屏蔽状态,包括unchecked(不屏蔽)、all(全屏蔽)、half(半屏蔽)
	CheckboxStatus string `json:"checkbox_status"`
}

func (IgnorePathSettingItem) String

func (o IgnorePathSettingItem) String() string

type IncConfigV2

type IncConfigV2 struct {

	// 需要关联的父任务ID,流水线创建或MR创建任务需要该参数
	ParentTaskId *string `json:"parent_task_id,omitempty"`

	// 增量检查代码源分支
	GitSourceBranch *string `json:"git_source_branch,omitempty"`

	// 增量检查代码目标分支
	GitTargetBranch *string `json:"git_target_branch,omitempty"`

	// MR唯一标示ID
	MergeId *string `json:"merge_id,omitempty"`

	// webhook触发事件类型,merge_request/push_request
	EventType *string `json:"event_type,omitempty"`

	// webhook事件状态,open/close/update
	Action *string `json:"action,omitempty"`

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

IncConfigV2 增量检查相关的参数

func (IncConfigV2) String

func (o IncConfigV2) String() string

type ListRulesRequest

type ListRulesRequest struct {

	// 规则对应的语言
	RuleLanguages *string `json:"rule_languages,omitempty"`

	// 缺陷等级,0致命,1严重,2一般,3提示
	RuleSeverity *string `json:"rule_severity,omitempty"`

	// 分页索引,偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的数量
	Limit *int32 `json:"limit,omitempty"`
}

ListRulesRequest Request Object

func (ListRulesRequest) String

func (o ListRulesRequest) String() string

type ListRulesResponse

type ListRulesResponse struct {

	// 规则信息
	Info *[]RuleListItem `json:"info,omitempty"`

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

ListRulesResponse Response Object

func (ListRulesResponse) String

func (o ListRulesResponse) String() string

type ListRulesetsRequest

type ListRulesetsRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 规则集类别  '0只查询系统规则集,1只查询当前用户自定义规则集,2只查询其他用户自定义规则集,'0,1,2'或”查所有'
	Category *string `json:"category,omitempty"`

	// 分页索引,偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的数量
	Limit *int32 `json:"limit,omitempty"`
}

ListRulesetsRequest Request Object

func (ListRulesetsRequest) String

func (o ListRulesetsRequest) String() string

type ListRulesetsResponse

type ListRulesetsResponse struct {

	// 规则集列表信息
	Info *[]RulesetItem `json:"info,omitempty"`

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

ListRulesetsResponse Response Object

func (ListRulesetsResponse) String

func (o ListRulesetsResponse) String() string

type ListTaskParameterRequest

type ListTaskParameterRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 任务ID
	TaskId string `json:"task_id"`

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

ListTaskParameterRequest Request Object

func (ListTaskParameterRequest) String

func (o ListTaskParameterRequest) String() string

type ListTaskParameterResponse

type ListTaskParameterResponse struct {
	HttpStatusCode int `json:"-"`
}

ListTaskParameterResponse Response Object

func (ListTaskParameterResponse) String

func (o ListTaskParameterResponse) String() string

type ListTaskRulesetRequest

type ListTaskRulesetRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 任务ID
	TaskId string `json:"task_id"`
}

ListTaskRulesetRequest Request Object

func (ListTaskRulesetRequest) String

func (o ListTaskRulesetRequest) String() string

type ListTaskRulesetResponse

type ListTaskRulesetResponse struct {
	Body           *[]TaskRulesetInfo `json:"body,omitempty"`
	HttpStatusCode int                `json:"-"`
}

ListTaskRulesetResponse Response Object

func (ListTaskRulesetResponse) String

func (o ListTaskRulesetResponse) String() string

type ListTemplateRulesRequest

type ListTemplateRulesRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 规则集ID
	RulesetId string `json:"ruleset_id"`

	// 规则状态  '1查询全部,2已启动,3未启用'
	Types string `json:"types"`

	// 规则语言
	Languages *string `json:"languages,omitempty"`

	// 规则所属标签
	Tags *string `json:"tags,omitempty"`

	// 分页索引,偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的数量
	Limit *int32 `json:"limit,omitempty"`
}

ListTemplateRulesRequest Request Object

func (ListTemplateRulesRequest) String

func (o ListTemplateRulesRequest) String() string

type ListTemplateRulesResponse

type ListTemplateRulesResponse struct {

	// 规则集的规则列表信息
	Info *[]RuleItem `json:"info,omitempty"`

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

ListTemplateRulesResponse Response Object

func (ListTemplateRulesResponse) String

func (o ListTemplateRulesResponse) String() string

type LogInfo

type LogInfo struct {

	// 日志标题
	DisplayName *string `json:"display_name,omitempty"`

	// 日志内容
	Log *string `json:"log,omitempty"`

	// 日志级别
	Level *string `json:"level,omitempty"`

	// 日志分析
	Analysis *string `json:"analysis,omitempty"`

	// 常见问题解答
	Faq *string `json:"faq,omitempty"`
}

func (LogInfo) String

func (o LogInfo) String() string

type MetricInfo

type MetricInfo struct {

	// 代码规模
	CodeSize *string `json:"code_size,omitempty"`

	// 原始代码行数
	RawLines *string `json:"raw_lines,omitempty"`

	// 函数总数
	MethodsTotal *string `json:"methods_total,omitempty"`

	// 圈复杂度总数
	CyclomaticComplexityTotal *string `json:"cyclomatic_complexity_total,omitempty"`

	// 平均圈复杂度
	CyclomaticComplexityPerMethod *string `json:"cyclomatic_complexity_per_method,omitempty"`

	// 最大圈复杂度
	MaximumCyclomaticComplexity *string `json:"maximum_cyclomatic_complexity,omitempty"`

	// 超大圈复杂度数
	HugeCyclomaticComplexityTotal *string `json:"huge_cyclomatic_complexity_total,omitempty"`

	// 超大圈复杂度比例
	HugeCyclomaticComplexityRatio *string `json:"huge_cyclomatic_complexity_ratio,omitempty"`

	// cca圈复杂度总数
	CcaCyclomaticComplexityTotal *string `json:"cca_cyclomatic_complexity_total,omitempty"`

	// cca平均圈复杂度
	CcaCyclomaticComplexityPerMethod *string `json:"cca_cyclomatic_complexity_per_method,omitempty"`

	// cca最大圈复杂度
	MaximumCcaCyclomaticComplexity *string `json:"maximum_cca_cyclomatic_complexity,omitempty"`

	// 超大圈复杂度函数总数
	HugeCcaCyclomaticComplexityTotal *string `json:"huge_cca_cyclomatic_complexity_total,omitempty"`

	// 圈复杂度满足度
	CyclomaticComplexityAdequacy *string `json:"cyclomatic_complexity_adequacy,omitempty"`

	// 最大深度
	MaximumDepth *string `json:"maximum_depth,omitempty"`

	// 超大深度数
	HugeDepthTotal *string `json:"huge_depth_total,omitempty"`

	// 超大深度占比
	HugeDepthRatio *string `json:"huge_depth_ratio,omitempty"`

	// 函数总行数
	MethodLines *string `json:"method_lines,omitempty"`

	// 函数平均代码行
	LinesPerMethod *string `json:"lines_per_method,omitempty"`

	// 超大函数数
	HugeMethodTotal *string `json:"huge_method_total,omitempty"`

	// 超大函数占比
	HugeMethodRatio *string `json:"huge_method_ratio,omitempty"`

	// 文件总数
	FilesTotal *string `json:"files_total,omitempty"`

	// 目录总数
	FoldersTotal *string `json:"folders_total,omitempty"`

	// 文件平均代码行
	LinesPerFile *string `json:"lines_per_file,omitempty"`

	// 超大头文件数
	HugeHeaderfileTotal *string `json:"huge_headerfile_total,omitempty"`

	// 超大头文件占比
	HugeHeaderfileRatio *string `json:"huge_headerfile_ratio,omitempty"`

	// 超大源文件数
	HugeNonHeaderfileTotal *string `json:"huge_non_headerfile_total,omitempty"`

	// 超大源文件占比
	HugeNonHeaderfileRatio *string `json:"huge_non_headerfile_ratio,omitempty"`

	// 超大目录数
	HugeFolderTotal *string `json:"huge_folder_total,omitempty"`

	// 超大目录占比
	HugeFolderRatio *string `json:"huge_folder_ratio,omitempty"`

	// 重复文件数
	FileDuplicationTotal *string `json:"file_duplication_total,omitempty"`

	// 文件重复率
	FileDuplicationRatio *string `json:"file_duplication_ratio,omitempty"`

	// 重复源文件数
	NonHfileDuplicationTotal *string `json:"non_hfile_duplication_total,omitempty"`

	// 源文件重复率
	NonHfileDuplicationRatio *string `json:"non_hfile_duplication_ratio,omitempty"`

	// 代码重复数
	CodeDuplicationTotal *string `json:"code_duplication_total,omitempty"`

	// 代码重复率
	CodeDuplicationRatio *string `json:"code_duplication_ratio,omitempty"`

	// 源文件代码重复数
	NonHfileCodeDuplicationTotal *string `json:"non_hfile_code_duplication_total,omitempty"`

	// 源文件代码重复率
	NonHfileCodeDuplicationRatio *string `json:"non_hfile_code_duplication_ratio,omitempty"`

	// 危险函数总数
	UnsafeFunctionsTotal *string `json:"unsafe_functions_total,omitempty"`

	// 危险函数密度
	UnsafeFunctionsKloc *string `json:"unsafe_functions_kloc,omitempty"`

	// 冗余代码数
	RedundantCodeTotal *string `json:"redundant_code_total,omitempty"`

	// 冗余代码块密度
	RedundantCodeKloc *string `json:"redundant_code_kloc,omitempty"`

	// 抑制告警数
	WarningSuppressionTotal *string `json:"warning_suppression_total,omitempty"`

	// 抑制告警密度
	WarningSuppressionKloc *string `json:"warning_suppression_kloc,omitempty"`
}

MetricInfo 度量项

func (MetricInfo) String

func (o MetricInfo) String() string

type ParamInfo

type ParamInfo struct {

	// 仓库地址
	Url *string `json:"url,omitempty"`

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

	// 仓库语言
	Language *string `json:"language,omitempty"`

	// 排除的目录
	ExcludeDir *string `json:"exclude_dir,omitempty"`

	// 编码格式
	Encode *string `json:"encode,omitempty"`

	// 编译配置信息
	CompileConfig *string `json:"compile_config,omitempty"`

	// g规则集名称
	RuleTemplate *string `json:"rule_template,omitempty"`
}

ParamInfo 任务详情

func (ParamInfo) String

func (o ParamInfo) String() string

type ProgressDetailV2

type ProgressDetailV2 struct {

	// 进度百分比
	Ratio *string `json:"ratio,omitempty"`

	// 中文信息
	Info *string `json:"info,omitempty"`
}

func (ProgressDetailV2) String

func (o ProgressDetailV2) String() string

type RuleConfig

type RuleConfig struct {

	// 规则配置ID
	Id *int32 `json:"id,omitempty"`

	// 规则ID
	RuleId *int32 `json:"rule_id,omitempty"`

	// 默认值
	DefaultValue *string `json:"default_value,omitempty"`

	// 当前
	OptionValue *string `json:"option_value,omitempty"`

	// 当前规则配置项key
	OptionKey *string `json:"option_key,omitempty"`

	// 当前规则配置项名称
	OptionName *string `json:"option_name,omitempty"`

	// 规则集id
	TemplateId *string `json:"template_id,omitempty"`

	// 描述
	Description *string `json:"description,omitempty"`
}

func (RuleConfig) String

func (o RuleConfig) String() string

type RuleItem

type RuleItem struct {

	// 规则id
	RuleId *string `json:"rule_id,omitempty"`

	// 规则所属语言
	RuleLanguage *string `json:"rule_language,omitempty"`

	// 规则名称
	RuleName *string `json:"rule_name,omitempty"`

	// 规则问题级别
	RuleSeverity *string `json:"rule_severity,omitempty"`

	// 规则标签
	RuleTages *string `json:"rule_tages,omitempty"`

	// 规则状态0:未启用,1:已启用
	Checked *string `json:"checked,omitempty"`

	// 规则配置参数阈值相关信息
	RuleConfigList *[]RuleConfig `json:"rule_config_list,omitempty"`
}

func (RuleItem) String

func (o RuleItem) String() string

type RuleListItem

type RuleListItem struct {

	// 规则集规范分类
	RuleSet *string `json:"rule_set,omitempty"`

	// 规则id
	RuleId *string `json:"rule_id,omitempty"`

	// 规则所属语言
	RuleLanguage *string `json:"rule_language,omitempty"`

	// 规则名称
	RuleName *string `json:"rule_name,omitempty"`

	// 规则问题级别
	RuleSeverity *string `json:"rule_severity,omitempty"`

	// 规则标签
	RuleTages *string `json:"rule_tages,omitempty"`

	// 正确示例
	RightExample *string `json:"right_example,omitempty"`

	// 错误示例
	ErrorExample *string `json:"error_example,omitempty"`

	// 修改建议
	ReviseOpinion *string `json:"revise_opinion,omitempty"`

	// 规则描述
	RuleDesc *string `json:"rule_desc,omitempty"`
}

func (RuleListItem) String

func (o RuleListItem) String() string

type RuleSetV2

type RuleSetV2 struct {

	// 规则集id,需要从web界面获取
	RulesetId *string `json:"ruleset_id,omitempty"`

	// 检查语言,支持cpp,java,js,python,php,css,html,go,typescript
	Language string `json:"language"`
}

func (RuleSetV2) String

func (o RuleSetV2) String() string

type Ruleset

type Ruleset struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 新规则集名称
	TemplateName string `json:"template_name"`

	// 规则集语言
	Language string `json:"language"`

	// 如果有基于的规则集则是1,没有基于的规则集则是0
	IsDefault string `json:"is_default"`

	// 新启用规则ids
	RuleIds string `json:"rule_ids"`

	// 新关闭规则id
	UncheckIds *string `json:"uncheck_ids,omitempty"`

	// 规则集ID
	TemplateId *string `json:"template_id,omitempty"`

	// 自定义规则参数项,支持修改规则阈值
	CustomAttributes *[]CustomAttributes `json:"custom_attributes,omitempty"`
}

Ruleset 创建规则集信息

func (Ruleset) String

func (o Ruleset) String() string

type RulesetItem

type RulesetItem struct {

	// 规则集id
	TemplateId *string `json:"template_id,omitempty"`

	// 规则集语言
	Language *string `json:"language,omitempty"`

	// 规则集名称
	TemplateName *string `json:"template_name,omitempty"`

	// 创建人ID
	CreatorId *string `json:"creator_id,omitempty"`

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

	// 创建人时间
	TemplateCreateTime *string `json:"template_create_time,omitempty"`

	// 使用状态1使用中,0空闲中
	IsUsed *string `json:"is_used,omitempty"`

	// 规则集包含的规则id
	RuleIds *string `json:"rule_ids,omitempty"`

	// 是否该语言默认规则集,0不是,1是
	IsDefault *string `json:"is_default,omitempty"`

	// 是否是项目下语言默认规则集,0不是,1是
	IsDevcloudProjectDefault *string `json:"is_devcloud_project_default,omitempty"`

	// 是否是系统规则集,0不是,1是
	IsDefaultTemplate *string `json:"is_default_template,omitempty"`
}

func (RulesetItem) String

func (o RulesetItem) String() string

type RunRequestV2

type RunRequestV2 struct {

	// 该任务对应临时仓库有权限的用户名
	Username *string `json:"username,omitempty"`

	// 该任务对应临时仓库有权限的用户token
	AccessToken *string `json:"access_token,omitempty"`

	// 该任务对应的临时仓库地址
	GitUrl *string `json:"git_url,omitempty"`

	// 该任务对应的临时仓库分支
	GitBranch *string `json:"git_branch,omitempty"`
}

RunRequestV2 代码仓相关的信息非必填,主要是用于CodeFever临时仓库使用,不填时直接使用创建任务时已经提供的信息

func (RunRequestV2) String

func (o RunRequestV2) String() string

type RunTaskRequest

type RunTaskRequest struct {

	// 任务ID
	TaskId string `json:"task_id"`

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

RunTaskRequest Request Object

func (RunTaskRequest) String

func (o RunTaskRequest) String() string

type RunTaskResponse

type RunTaskResponse struct {

	// 执行id
	ExecId         *string `json:"exec_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

RunTaskResponse Response Object

func (RunTaskResponse) String

func (o RunTaskResponse) String() string

type SetDefaulTemplateRequest

type SetDefaulTemplateRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 规则集ID
	RulesetId string `json:"ruleset_id"`

	// 规则集语言
	Language string `json:"language"`
}

SetDefaulTemplateRequest Request Object

func (SetDefaulTemplateRequest) String

func (o SetDefaulTemplateRequest) String() string

type SetDefaulTemplateResponse

type SetDefaulTemplateResponse struct {
	HttpStatusCode int `json:"-"`
}

SetDefaulTemplateResponse Response Object

func (SetDefaulTemplateResponse) String

func (o SetDefaulTemplateResponse) String() string

type ShowProgressDetailRequest

type ShowProgressDetailRequest struct {

	// 任务ID
	TaskId string `json:"task_id"`
}

ShowProgressDetailRequest Request Object

func (ShowProgressDetailRequest) String

func (o ShowProgressDetailRequest) String() string

type ShowProgressDetailResponse

type ShowProgressDetailResponse struct {

	// 任务状态,0表示检查中,1表示检查失败,2表示检查成功,3表示任务中止
	TaskStatus *int32 `json:"task_status,omitempty"`

	Progress       *ProgressDetailV2 `json:"progress,omitempty"`
	HttpStatusCode int               `json:"-"`
}

ShowProgressDetailResponse Response Object

func (ShowProgressDetailResponse) String

type ShowTaskCmetricsRequest

type ShowTaskCmetricsRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 任务ID
	TaskId string `json:"task_id"`
}

ShowTaskCmetricsRequest Request Object

func (ShowTaskCmetricsRequest) String

func (o ShowTaskCmetricsRequest) String() string

type ShowTaskCmetricsResponse

type ShowTaskCmetricsResponse struct {

	// 任务id
	TaskId *string `json:"task_id,omitempty"`

	// 任务名字
	TaskName *string `json:"task_name,omitempty"`

	// 创建者id
	CreatorId *string `json:"creator_id,omitempty"`

	// 代码仓地址
	GitUrl *string `json:"git_url,omitempty"`

	// 代码仓分支
	GitBranch *string `json:"git_branch,omitempty"`

	// 上一次检查时间
	LastCheckTime *string `json:"last_check_time,omitempty"`

	// 上次执行时间
	LastExecTime *string `json:"last_exec_time,omitempty"`

	// 检查类型
	CheckType *string `json:"check_type,omitempty"`

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

	MetricInfo     *MetricInfo `json:"metric_info,omitempty"`
	HttpStatusCode int         `json:"-"`
}

ShowTaskCmetricsResponse Response Object

func (ShowTaskCmetricsResponse) String

func (o ShowTaskCmetricsResponse) String() string

type ShowTaskDefectsRequest

type ShowTaskDefectsRequest struct {

	// 任务ID
	TaskId string `json:"task_id"`

	// 分页索引,偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的数量,每页最多显示100条
	Limit *int32 `json:"limit,omitempty"`

	// 问题状态筛选
	StatusIds *string `json:"status_ids,omitempty"`

	// 严重级别,0致命,1严重,2一般,3提示
	Severity *string `json:"severity,omitempty"`
}

ShowTaskDefectsRequest Request Object

func (ShowTaskDefectsRequest) String

func (o ShowTaskDefectsRequest) String() string

type ShowTaskDefectsResponse

type ShowTaskDefectsResponse struct {

	// 缺陷详情信息
	Defects *[]DefectInfoV2 `json:"defects,omitempty"`

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

ShowTaskDefectsResponse Response Object

func (ShowTaskDefectsResponse) String

func (o ShowTaskDefectsResponse) String() string

type ShowTaskDefectsStatisticRequest

type ShowTaskDefectsStatisticRequest struct {

	// 任务ID
	TaskId string `json:"task_id"`
}

ShowTaskDefectsStatisticRequest Request Object

func (ShowTaskDefectsStatisticRequest) String

type ShowTaskDefectsStatisticResponse

type ShowTaskDefectsStatisticResponse struct {
	Severity *StatisticSeverityV2 `json:"severity,omitempty"`

	Status         *StatisticStatusV2 `json:"status,omitempty"`
	HttpStatusCode int                `json:"-"`
}

ShowTaskDefectsStatisticResponse Response Object

func (ShowTaskDefectsStatisticResponse) String

type ShowTaskDetailRequest

type ShowTaskDetailRequest struct {

	// 任务ID
	TaskId string `json:"task_id"`
}

ShowTaskDetailRequest Request Object

func (ShowTaskDetailRequest) String

func (o ShowTaskDetailRequest) String() string

type ShowTaskDetailResponse

type ShowTaskDetailResponse struct {

	// 任务id
	TaskId *string `json:"task_id,omitempty"`

	// 任务名字
	TaskName *string `json:"task_name,omitempty"`

	// 创建者id
	CreatorId *string `json:"creator_id,omitempty"`

	// 代码仓地址
	GitUrl *string `json:"git_url,omitempty"`

	// 代码仓分支,如果是MR模式,为源分支
	GitBranch *string `json:"git_branch,omitempty"`

	// 上一次检查时间
	LastCheckTime *string `json:"last_check_time,omitempty"`

	// 代码总行数
	CodeLineTotal *int32 `json:"code_line_total,omitempty"`

	// 代码有效行数
	CodeLine *int32 `json:"code_line,omitempty"`

	// 代码质量
	CodeQuality float32 `json:"code_quality,omitempty"`

	// 问题数
	IssueCount *int32 `json:"issue_count,omitempty"`

	// 危险系数
	RiskCoefficient float32 `json:"risk_coefficient,omitempty"`

	// 重复比例
	DuplicationRatio *string `json:"duplication_ratio,omitempty"`

	// 复杂度
	ComplexityCount *int32 `json:"complexity_count,omitempty"`

	// 重复行数
	DuplicatedLines *int32 `json:"duplicated_lines,omitempty"`

	// 注释行数
	CommentLines *int32 `json:"comment_lines,omitempty"`

	// 注释比例
	CommentRatio *string `json:"comment_ratio,omitempty"`

	// 重复块
	DuplicatedBlocks *int32 `json:"duplicated_blocks,omitempty"`

	// 上次执行时间
	LastExecTime *string `json:"last_exec_time,omitempty"`

	// 检查类型
	CheckType *string `json:"check_type,omitempty"`

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

	// 代码平均复杂度
	CyclomaticComplexityPerMethod *string `json:"cyclomatic_complexity_per_method,omitempty"`

	// 代码平均复杂度(文件)
	CyclomaticComplexityPerFile *string `json:"cyclomatic_complexity_per_file,omitempty"`

	// 致命问题数
	CriticalCount *string `json:"critical_count,omitempty"`

	// 严重问题数
	MajorCount *string `json:"major_count,omitempty"`

	// 一般问题数
	MinorCount *string `json:"minor_count,omitempty"`

	// 提示问题数
	SuggestionCount *string `json:"suggestion_count,omitempty"`

	// 门禁质量是否通过
	IsAccess *string `json:"is_access,omitempty"`

	// 任务触发方式
	TriggerType *string `json:"trigger_type,omitempty"`

	// 文件重复率
	FileDuplicationRatio *string `json:"file_duplication_ratio,omitempty"`
	HttpStatusCode       int     `json:"-"`
}

ShowTaskDetailResponse Response Object

func (ShowTaskDetailResponse) String

func (o ShowTaskDetailResponse) String() string

type ShowTaskListByProjectIdRequest

type ShowTaskListByProjectIdRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 分页索引,偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的数量,每页最多显示100条
	Limit *int32 `json:"limit,omitempty"`
}

ShowTaskListByProjectIdRequest Request Object

func (ShowTaskListByProjectIdRequest) String

type ShowTaskListByProjectIdResponse

type ShowTaskListByProjectIdResponse struct {

	// 任务信息
	Tasks *[]SimpleTaskInfoV2 `json:"tasks,omitempty"`

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

ShowTaskListByProjectIdResponse Response Object

func (ShowTaskListByProjectIdResponse) String

type ShowTaskPathTreeRequest

type ShowTaskPathTreeRequest struct {

	// 项目id
	ProjectId string `json:"project_id"`

	// 任务id
	TaskId string `json:"task_id"`

	// 目录或文件的路径
	CurrentPath *string `json:"current_path,omitempty"`

	// 分页索引,偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的数量,每页最多显示1000条
	Limit *int32 `json:"limit,omitempty"`
}

ShowTaskPathTreeRequest Request Object

func (ShowTaskPathTreeRequest) String

func (o ShowTaskPathTreeRequest) String() string

type ShowTaskPathTreeResponse

type ShowTaskPathTreeResponse struct {

	// 任务的目录树信息
	Info *[]TreeNode `json:"info,omitempty"`

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

ShowTaskPathTreeResponse Response Object

func (ShowTaskPathTreeResponse) String

func (o ShowTaskPathTreeResponse) String() string

type ShowTaskSettingsRequest

type ShowTaskSettingsRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 任务ID
	TaskId string `json:"task_id"`

	// 分页索引,偏移量,非必填
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的数量,非必填
	Limit *int32 `json:"limit,omitempty"`
}

ShowTaskSettingsRequest Request Object

func (ShowTaskSettingsRequest) String

func (o ShowTaskSettingsRequest) String() string

type ShowTaskSettingsResponse

type ShowTaskSettingsResponse struct {

	// 高级选项的相关信息
	Info *[]TaskAdvancedSettings `json:"info,omitempty"`

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

ShowTaskSettingsResponse Response Object

func (ShowTaskSettingsResponse) String

func (o ShowTaskSettingsResponse) String() string

type ShowTasklogRequest

type ShowTasklogRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 任务ID
	TaskId string `json:"task_id"`

	// 任务单次的执行ID
	ExecuteId *string `json:"execute_id,omitempty"`
}

ShowTasklogRequest Request Object

func (ShowTasklogRequest) String

func (o ShowTasklogRequest) String() string

type ShowTasklogResponse

type ShowTasklogResponse struct {
	ParamInfo *ParamInfo `json:"param_info,omitempty"`

	// 日志信息
	LogInfo        *[]LogInfo `json:"log_info,omitempty"`
	HttpStatusCode int        `json:"-"`
}

ShowTasklogResponse Response Object

func (ShowTasklogResponse) String

func (o ShowTasklogResponse) String() string

type ShowTasksRulesetsRequest

type ShowTasksRulesetsRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 任务ID
	TaskId string `json:"task_id"`

	// 分页索引,偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的数量,每页最多显示1000条
	Limit *int32 `json:"limit,omitempty"`
}

ShowTasksRulesetsRequest Request Object

func (ShowTasksRulesetsRequest) String

func (o ShowTasksRulesetsRequest) String() string

type ShowTasksRulesetsResponse

type ShowTasksRulesetsResponse struct {

	// 规则集信息
	Info *[]TaskRulesetInfo `json:"info,omitempty"`

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

ShowTasksRulesetsResponse Response Object

func (ShowTasksRulesetsResponse) String

func (o ShowTasksRulesetsResponse) String() string

type SimpleTaskInfoV2

type SimpleTaskInfoV2 struct {

	// 任务id
	TaskId *string `json:"task_id,omitempty"`

	// 任务名字
	TaskName *string `json:"task_name,omitempty"`

	// 创建者id
	CreatorId *string `json:"creator_id,omitempty"`

	// 代码仓地址
	GitUrl *string `json:"git_url,omitempty"`

	// 代码仓分支,如果是MR模式,为源分支
	GitBranch *string `json:"git_branch,omitempty"`

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

	// 上一次检查时间
	LastCheckTime *string `json:"last_check_time,omitempty"`
}

func (SimpleTaskInfoV2) String

func (o SimpleTaskInfoV2) String() string

type StatisticSeverityV2

type StatisticSeverityV2 struct {

	// 致命问题数
	Critical *int32 `json:"critical,omitempty"`

	// 严重问题数
	Major *int32 `json:"major,omitempty"`

	// 一般问题数
	Minor *int32 `json:"minor,omitempty"`

	// 提示问题数
	Suggestion *int32 `json:"suggestion,omitempty"`
}

func (StatisticSeverityV2) String

func (o StatisticSeverityV2) String() string

type StatisticStatusV2

type StatisticStatusV2 struct {

	// 未解决
	Unresolved *int32 `json:"unresolved,omitempty"`

	// 已解决
	Resolved *int32 `json:"resolved,omitempty"`

	// 已忽略
	Dismissed *int32 `json:"dismissed,omitempty"`
}

func (StatisticStatusV2) String

func (o StatisticStatusV2) String() string

type StopTaskByIdRequest

type StopTaskByIdRequest struct {

	// 任务ID
	TaskId string `json:"task_id"`
}

StopTaskByIdRequest Request Object

func (StopTaskByIdRequest) String

func (o StopTaskByIdRequest) String() string

type StopTaskByIdResponse

type StopTaskByIdResponse struct {
	HttpStatusCode int `json:"-"`
}

StopTaskByIdResponse Response Object

func (StopTaskByIdResponse) String

func (o StopTaskByIdResponse) String() string

type TaskAdvancedSettings

type TaskAdvancedSettings struct {

	// 高级选项对应的名称
	Key *string `json:"key,omitempty"`

	// 高级选项对应的取值
	Value *string `json:"value,omitempty"`

	// 高级选项对应的可选项
	OptionValue *string `json:"option_value,omitempty"`

	// 高级选项对应的中文描述
	Description *string `json:"description,omitempty"`
}

func (TaskAdvancedSettings) String

func (o TaskAdvancedSettings) String() string

type TaskAdvancedSettingsItem

type TaskAdvancedSettingsItem struct {

	// 高级选项对应的名称
	Key string `json:"key"`

	// 高级选项对应的取值
	Value string `json:"value"`
}

func (TaskAdvancedSettingsItem) String

func (o TaskAdvancedSettingsItem) String() string

type TaskCheckParamters

type TaskCheckParamters struct {

	// 检查工具ID
	CheckId *int32 `json:"check_id,omitempty"`

	// 编译参数名称
	Name *string `json:"name,omitempty"`

	// 检查参数配置信息
	CheckerConfigs *[]CheckConfigInfo `json:"checker_configs,omitempty"`
}

func (TaskCheckParamters) String

func (o TaskCheckParamters) String() string

type TaskCheckSettingsItem

type TaskCheckSettingsItem struct {

	// 检查参数对应的key值
	CfgKey string `json:"cfg_key"`

	// 参数状态
	Status string `json:"status"`

	// 检查参数值
	CfgValue *string `json:"cfg_value,omitempty"`
}

func (TaskCheckSettingsItem) String

func (o TaskCheckSettingsItem) String() string

type TaskRulesetInfo

type TaskRulesetInfo struct {

	// 规则集id
	TemplateId *string `json:"template_id,omitempty"`

	// 规则集语言
	Language *string `json:"language,omitempty"`

	// 规则集名称
	TemplateName *string `json:"template_name,omitempty"`

	// 规则集状态optional:可选,selected:已选
	Type *string `json:"type,omitempty"`

	// 规则集属性0 是默认用户规则集,1 是系统默认规则集
	Status *string `json:"status,omitempty"`
}

func (TaskRulesetInfo) String

func (o TaskRulesetInfo) String() string

type TreeNode

type TreeNode struct {

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

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

	// 是否为叶子节点,true是,false不是
	IsLeaf *bool `json:"is_leaf,omitempty"`

	// 屏蔽状态,包括unchecked(不屏蔽)、all(全屏蔽)、half(半屏蔽)
	CheckboxStatus *string `json:"checkbox_status,omitempty"`
}

TreeNode 节点信息

func (TreeNode) String

func (o TreeNode) String() string

type UpdateDefectRequestBody

type UpdateDefectRequestBody struct {

	// 问题id,多个时英文逗号分隔
	DefectId *string `json:"defect_id,omitempty"`

	// 状态2:已忽略 1:已解决 0:未解决
	DefectStatus *string `json:"defect_status,omitempty"`
}

func (UpdateDefectRequestBody) String

func (o UpdateDefectRequestBody) String() string

type UpdateDefectStatusRequest

type UpdateDefectStatusRequest struct {

	// 任务id
	TaskId string `json:"task_id"`

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

UpdateDefectStatusRequest Request Object

func (UpdateDefectStatusRequest) String

func (o UpdateDefectStatusRequest) String() string

type UpdateDefectStatusResponse

type UpdateDefectStatusResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateDefectStatusResponse Response Object

func (UpdateDefectStatusResponse) String

type UpdateIgnorePathRequest

type UpdateIgnorePathRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 任务ID
	TaskId string `json:"task_id"`

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

UpdateIgnorePathRequest Request Object

func (UpdateIgnorePathRequest) String

func (o UpdateIgnorePathRequest) String() string

type UpdateIgnorePathRequestBody

type UpdateIgnorePathRequestBody struct {

	// 屏蔽目录的节点信息列表
	IgnorePathSettings []IgnorePathSettingItem `json:"ignore_path_settings"`
}

func (UpdateIgnorePathRequestBody) String

type UpdateIgnorePathResponse

type UpdateIgnorePathResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateIgnorePathResponse Response Object

func (UpdateIgnorePathResponse) String

func (o UpdateIgnorePathResponse) String() string

type UpdateTaskRulesetItem

type UpdateTaskRulesetItem struct {

	// 规则集语言
	Language string `json:"language"`

	// 规则集ID,通过调用ListTaskRuleset接口,根据响应参数中的template_id获得
	RuleSetId string `json:"rule_set_id"`

	// 任务语言和规则集的关系是否启用,1是启用,0是未启用
	IfUse string `json:"if_use"`

	// 新/老数据表示,默认1
	Status string `json:"status"`
}

func (UpdateTaskRulesetItem) String

func (o UpdateTaskRulesetItem) String() string

type UpdateTaskRulesetRequest

type UpdateTaskRulesetRequest struct {

	// 任务ID
	TaskId string `json:"task_id"`

	// 修改任务规则集
	Body *[]UpdateTaskRulesetItem `json:"body,omitempty"`
}

UpdateTaskRulesetRequest Request Object

func (UpdateTaskRulesetRequest) String

func (o UpdateTaskRulesetRequest) String() string

type UpdateTaskRulesetResponse

type UpdateTaskRulesetResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateTaskRulesetResponse Response Object

func (UpdateTaskRulesetResponse) String

func (o UpdateTaskRulesetResponse) String() string

type UpdateTaskSettingsRequest

type UpdateTaskSettingsRequest struct {

	// 项目ID
	ProjectId string `json:"project_id"`

	// 任务ID
	TaskId string `json:"task_id"`

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

UpdateTaskSettingsRequest Request Object

func (UpdateTaskSettingsRequest) String

func (o UpdateTaskSettingsRequest) String() string

type UpdateTaskSettingsRequestBody

type UpdateTaskSettingsRequestBody struct {

	// 高级选项参数的相关信息
	TaskAdvancedSettings []TaskAdvancedSettingsItem `json:"task_advanced_settings"`
}

UpdateTaskSettingsRequestBody 任务配置高级选项的请求信息

func (UpdateTaskSettingsRequestBody) String

type UpdateTaskSettingsResponse

type UpdateTaskSettingsResponse struct {
	HttpStatusCode int `json:"-"`
}

UpdateTaskSettingsResponse Response Object

func (UpdateTaskSettingsResponse) String

Source Files

Jump to

Keyboard shortcuts

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