model

package
v0.1.93 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApproveInfo

type ApproveInfo struct {

	// 审批人主题选择。
	TopicSelected *string `json:"topic_selected,omitempty"`

	// 是否审核,默认是不审核,true,false。
	NeedApprove *bool `json:"need_approve,omitempty"`

	// 审批主题urn集合。
	SmnUrnList *string `json:"smn_urn_list,omitempty"`
}

ApproveInfo 审批信息

func (ApproveInfo) String

func (o ApproveInfo) String() string

type CreateFastExecuteScriptRequest

type CreateFastExecuteScriptRequest struct {
	Body *HisFastScript `json:"body,omitempty"`
}

CreateFastExecuteScriptRequest Request Object

func (CreateFastExecuteScriptRequest) String

type CreateFastExecuteScriptResponse

type CreateFastExecuteScriptResponse struct {

	// 工作流执行id。
	ExecutionId    *string `json:"execution_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateFastExecuteScriptResponse Response Object

func (CreateFastExecuteScriptResponse) String

type CreateWorkflowRequest

type CreateWorkflowRequest struct {
	Body *WorkflowRequestBody `json:"body,omitempty"`
}

CreateWorkflowRequest Request Object

func (CreateWorkflowRequest) String

func (o CreateWorkflowRequest) String() string

type CreateWorkflowResponse

type CreateWorkflowResponse struct {

	// 工作流id,唯一标识,根据project_id和workflow_name生成。
	Id *string `json:"id,omitempty"`

	// 工作流名称。
	Name *string `json:"name,omitempty"`

	// 工作流类型,可以为cron、manual
	Type *string `json:"type,omitempty"`

	// 工作流描述信息。
	Description *string `json:"description,omitempty"`

	// 标签键和值列表,标签键值对数量范围是0至20。
	Tags map[string]string `json:"tags,omitempty"`

	// 工作流创建时间,为utc时间毫秒数。
	CreateTime *int64 `json:"create_time,omitempty"`

	// 工作流创人,从接口调用传入的token中获取。
	CreateBy *string `json:"create_by,omitempty"`

	// 工作流更新时间,为utc时间毫秒数。
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 工作流更新人,从接口调用传入的token中获取。
	UpdateBy *string `json:"update_by,omitempty"`

	// 模板名称。
	TemplateName *string `json:"template_name,omitempty"`

	// 模板id
	TemplateId *string `json:"template_id,omitempty"`

	// 任务执行时需要的参数列表。
	Input map[string]interface{} `json:"input,omitempty"`

	// 最近一次执行id,也是工作流id
	LastExecutionId *string `json:"last_execution_id,omitempty"`

	// 任务状态,包含success,fail,executing
	Status *string `json:"status,omitempty"`

	// 工作流的引用。
	CitationUrns *[]string `json:"citation_urns,omitempty"`

	// 最近一次执行结束时间,为utc时间毫秒数
	LastExecutionEndTime *int64 `json:"last_execution_end_time,omitempty"`

	// 最近一次执行开始时间,为utc时间毫秒数
	LastExecutionStartTime *int64 `json:"last_execution_start_time,omitempty"`

	// 引用,参数引用
	Quote *[]string `json:"quote,omitempty"`

	// 作业名称
	JobName *string `json:"job_name,omitempty"`

	// 作业id
	JobId *string `json:"job_id,omitempty"`

	// 服务场景分类
	ServiceScenario *string `json:"service_scenario,omitempty"`

	// 服务名称
	ServiceName *string `json:"service_name,omitempty"`

	// 任务类型
	TaskType *string `json:"task_type,omitempty"`

	// functiongraph返回的PROJECT_ID
	ProjectId *string `json:"project_id,omitempty"`

	// functiongraph返回的WORKFLOW_ID
	WorkflowId *string `json:"workflow_id,omitempty"`

	// 任务状态
	TaskStatus *string `json:"task_status,omitempty"`

	// 任务节点
	Nodes *[]Node `json:"nodes,omitempty"`

	// 编辑时间
	EditTime *int64 `json:"edit_time,omitempty"`

	// 执行动作细粒度权限
	ExecutionActionRules *[]string `json:"execution_action_rules,omitempty"`

	// 云服务权限
	ExecutionPermission *[]string `json:"execution_permission,omitempty"`

	// 全局参数
	GlobalParameters *[]Parameter `json:"global_parameters,omitempty"`

	// 逻辑删除
	IsDelete *bool `json:"is_delete,omitempty"`

	// 任务步骤
	Steps *[]Step `json:"steps,omitempty"`

	// 任务输出
	Output *string `json:"output,omitempty"`

	// 触发器id
	TriggerId *string `json:"trigger_id,omitempty"`

	// 触发器状态
	TriggerStatus *string `json:"trigger_status,omitempty"`

	// 审批id
	ApproveId *string `json:"approve_id,omitempty"`

	TemplateI18n *WorkFlowModel `json:"template_i18n,omitempty"`

	// 任务所属的企业项目
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 任务最后一次执行人
	LastExecuteBy  *string `json:"last_execute_by,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateWorkflowResponse Response Object

func (CreateWorkflowResponse) String

func (o CreateWorkflowResponse) String() string

type ExecuteWorkflowRequest

type ExecuteWorkflowRequest struct {

	// 任务id,从工作流命令列表中获取的工作流id。
	WorkflowId string `json:"workflow_id"`
}

ExecuteWorkflowRequest Request Object

func (ExecuteWorkflowRequest) String

func (o ExecuteWorkflowRequest) String() string

type ExecuteWorkflowResponse

type ExecuteWorkflowResponse struct {

	// 执行ID
	ExecutionId    *string `json:"execution_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ExecuteWorkflowResponse Response Object

func (ExecuteWorkflowResponse) String

func (o ExecuteWorkflowResponse) String() string

type ExecutionResultList added in v0.1.19

type ExecutionResultList struct {

	// 流程节点ID。
	NodeId *string `json:"node_id,omitempty"`

	// 节点开始执行时间。
	BeginTime *int64 `json:"begin_time,omitempty"`

	// 节点执行结束时间。
	EndTime *int64 `json:"end_time,omitempty"`

	// FunctionGraph的执行id。
	FunctionExecutionId *string `json:"function_execution_id,omitempty"`

	// 节点输出。
	Output *interface{} `json:"output,omitempty"`

	// 节点状态。
	Status *string `json:"status,omitempty"`
}

ExecutionResultList 函数流节点执行详细信息

func (ExecutionResultList) String added in v0.1.19

func (o ExecutionResultList) String() string

type HisFastScript

type HisFastScript struct {

	// 脚本类型。SHELL BAT PYTHON POWER_SHELL
	ScriptType string `json:"script_type"`

	// 执行脚本的ECS机器用户。
	CmdUser string `json:"cmd_user"`

	// 脚本内容。
	ScriptContent string `json:"script_content"`

	// 执行的机器列表。
	EcsIdList string `json:"ecs_id_list"`

	// 任务名称。
	Name string `json:"name"`

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

	// 任务参数,多个参数以空格分隔。
	ScriptArgs *string `json:"script_args,omitempty"`
}

HisFastScript HIS 用户快速执行脚本实体类。

func (HisFastScript) String

func (o HisFastScript) String() string

type Job

type Job struct {

	// 作业id。
	Id *string `json:"id,omitempty"`

	// 作业名称。
	Name string `json:"name"`

	// 实体的创建时间戳。
	CreateTime *int64 `json:"create_time,omitempty"`

	// 创建人。
	CreateBy *string `json:"create_by,omitempty"`

	// 实体的最后更新时间戳。 注意:执行创建/修改/删除操作时,update_time将更新。
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 修改人。
	UpdateBy *string `json:"update_by,omitempty"`

	// 作业描述,最大长度为1000。
	Description *string `json:"description,omitempty"`

	// 企业项目id。
	EnterpriseProjectId string `json:"enterprise_project_id"`

	// 租户从IAM申请到的projectid,一般为32位字符串。
	ProjectId string `json:"project_id"`

	// 作业步骤。
	Steps []Step `json:"steps"`

	// 全局参数。
	Parameters []Parameter `json:"parameters"`

	RateControl *RateControl `json:"rate_control"`

	ApproveInfo *ApproveInfo `json:"approve_info"`

	// 是否为最新版本的作业
	IsLatestVersion *bool `json:"is_latest_version,omitempty"`

	// 版本号
	VersionNumber *int32 `json:"version_number,omitempty"`
}

Job 作业id

func (Job) String

func (o Job) String() string

type ListAllJobByNameRequest

type ListAllJobByNameRequest struct {
	Body *SearchJobsRequestBody `json:"body,omitempty"`
}

ListAllJobByNameRequest Request Object

func (ListAllJobByNameRequest) String

func (o ListAllJobByNameRequest) String() string

type ListAllJobByNameResponse

type ListAllJobByNameResponse struct {

	// 总数。
	TotalElements *int64 `json:"total_elements,omitempty"`

	// 查询作业信息集合。
	Elements       *[]Job `json:"elements,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListAllJobByNameResponse Response Object

func (ListAllJobByNameResponse) String

func (o ListAllJobByNameResponse) String() string

type ListAllScriptByNameRequest

type ListAllScriptByNameRequest struct {
	Body *SearchScriptsRequestBody `json:"body,omitempty"`
}

ListAllScriptByNameRequest Request Object

func (ListAllScriptByNameRequest) String

type ListAllScriptByNameResponse

type ListAllScriptByNameResponse struct {

	// 查询结果集合。
	Elements *[]Script `json:"elements,omitempty"`

	// 查询到的结果数量。
	TotalElements  *int32 `json:"total_elements,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListAllScriptByNameResponse Response Object

func (ListAllScriptByNameResponse) String

type ListAllVersionByVersionIdRequest

type ListAllVersionByVersionIdRequest struct {
	Body *SearchScriptsRequestBody `json:"body,omitempty"`
}

ListAllVersionByVersionIdRequest Request Object

func (ListAllVersionByVersionIdRequest) String

type ListAllVersionByVersionIdResponse

type ListAllVersionByVersionIdResponse struct {

	// 查询结果集合。
	Elements *[]ScriptVersion `json:"elements,omitempty"`

	// 查询到的结果数量。
	TotalElements  *int32 `json:"total_elements,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListAllVersionByVersionIdResponse Response Object

func (ListAllVersionByVersionIdResponse) String

type ListTemplateByJobIdRequest

type ListTemplateByJobIdRequest struct {

	// 作业id。
	JobId string `json:"job_id"`

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

ListTemplateByJobIdRequest Request Object

func (ListTemplateByJobIdRequest) String

type ListTemplateByJobIdRequestBody

type ListTemplateByJobIdRequestBody struct {

	// 方案名称
	Name *string `json:"name,omitempty"`

	// page_num为正整数
	PageNum *int32 `json:"page_num,omitempty"`

	// 每页显示的条数
	PageSize *int32 `json:"page_size,omitempty"`

	// 需要排序的字段(默认为更新时间),支持字段有name,create_time,update_time。
	OrderByColumn string `json:"order_by_column"`

	// 排序规则(默认降序) 传入升序或降序,升序:ASC,降序:DESC。
	SortOrder *string `json:"sort_order,omitempty"`
}

ListTemplateByJobIdRequestBody 根据作业id分页查询方案集合

func (ListTemplateByJobIdRequestBody) String

type ListTemplateByJobIdResponse

type ListTemplateByJobIdResponse struct {

	// 总数
	TotalElements *int64 `json:"total_elements,omitempty"`

	// 查询作业信息集合
	Elements       *[]Template `json:"elements,omitempty"`
	HttpStatusCode int         `json:"-"`
}

ListTemplateByJobIdResponse Response Object

func (ListTemplateByJobIdResponse) String

type ListWorkflowExecutionsRequest

type ListWorkflowExecutionsRequest struct {

	// 任务id,从工作流命令列表中获取的工作流id。
	WorkflowId string `json:"workflow_id"`

	// 所属的企业项目id。
	XEnterpriseProjectId *string `json:"x_enterprise_project_id,omitempty"`
}

ListWorkflowExecutionsRequest Request Object

func (ListWorkflowExecutionsRequest) String

type ListWorkflowExecutionsResponse

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

ListWorkflowExecutionsResponse Response Object

func (ListWorkflowExecutionsResponse) String

type ListWorkflowRequest

type ListWorkflowRequest struct {
	Body *WorkflowQueryParam `json:"body,omitempty"`
}

ListWorkflowRequest Request Object

func (ListWorkflowRequest) String

func (o ListWorkflowRequest) String() string

type ListWorkflowResponse

type ListWorkflowResponse struct {

	// 工作流详情集合。
	Elements *[]Workflow `json:"elements,omitempty"`

	// 总数
	TotalElements  *int64 `json:"total_elements,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListWorkflowResponse Response Object

func (ListWorkflowResponse) String

func (o ListWorkflowResponse) String() string

type Metadata

type Metadata struct {

	// 节点类型。
	Type *string `json:"type,omitempty"`

	// 配置信息。
	Configuration map[string]interface{} `json:"configuration,omitempty"`
}

Metadata 任务节点元数据。

func (Metadata) String

func (o Metadata) String() string

type Node

type Node struct {

	// 父亲节点的名称。
	ParentNode *string `json:"parent_node,omitempty"`

	// 节点类型。
	Category *string `json:"category,omitempty"`

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

	// 节点id
	Id *string `json:"id,omitempty"`

	// 是否忽略错误
	IgnoreError *bool `json:"ignore_error,omitempty"`

	Metadata *Metadata `json:"metadata,omitempty"`

	// 节点名称,比如是Node。
	Name *string `json:"name,omitempty"`

	// 任务名称,节点上任务的名称。
	TaskName *string `json:"task_name,omitempty"`
}

Node 任务节点定义。

func (Node) String

func (o Node) String() string

type Parameter

type Parameter struct {

	// 参数名称。
	ParamName string `json:"param_name"`

	// 参数类型。
	ParamType *string `json:"param_type,omitempty"`

	// 参数分组。
	ParamGroup *string `json:"param_group,omitempty"`

	// 参数初始值。
	DefaultValue *string `json:"default_value,omitempty"`

	// 参数id。
	Id *string `json:"id,omitempty"`

	// 是否加密。
	Encryption bool `json:"encryption"`

	// 参数提示。
	Hint *string `json:"hint,omitempty"`

	// 是否从参数库选择。
	QuoteParam bool `json:"quote_param"`

	// 是否为必填参数。
	Required bool `json:"required"`

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

Parameter 全局参数

func (Parameter) String

func (o Parameter) String() string

type RateControl

type RateControl struct {

	// 是否分批发布,默认值是false。
	HaveRateControl *bool `json:"have_rate_control,omitempty"`

	// 每批间隔。
	TimeDelay *int32 `json:"time_delay,omitempty"`

	// 每批支持的最大实例数。
	Max *int32 `json:"max,omitempty"`
}

func (RateControl) String

func (o RateControl) String() string

type ReferenceInfo added in v0.1.37

type ReferenceInfo struct {

	// 作业ID。
	JobId string `json:"job_id"`

	// 作业名称。
	JobName string `json:"job_name"`
}

ReferenceInfo 脚本版本或文件包版本引用的作业详情。

func (ReferenceInfo) String added in v0.1.37

func (o ReferenceInfo) String() string

type Script

type Script struct {
	ApproveInfo *ApproveInfo `json:"approve_info,omitempty"`

	// 创建人,比如为:张三
	CreateBy *string `json:"create_by,omitempty"`

	// 创建时间
	CreateTime *int64 `json:"create_time,omitempty"`

	// 脚本描述,脚本描述,对脚本进行描述,最大长度为1000
	Description *string `json:"description,omitempty"`

	// 企业项目id
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 脚本id,根据UUID.randomUUID生成。
	Id *string `json:"id,omitempty"`

	// 脚本名称,支持数字,下划线,大小写字母 ,中文
	Name string `json:"name"`

	// 脚本中是否有已上线的版本,true表示有已上线的版本,false表示没有已上线的版本
	OnlineExistStatus *bool `json:"online_exist_status,omitempty"`

	// 已上线版本id
	OnlineId *string `json:"online_id,omitempty"`

	// 租户从IAM申请到的projectid,一般为32位字符串
	ProjectId *string `json:"project_id,omitempty"`

	RateControl *RateControl `json:"rate_control,omitempty"`

	// 脚本语言,目前支持四种,分别是:SHELL BAT PYTHON POWER_SHELL
	ScriptLanguage string `json:"script_language"`

	// 修改人
	UpdateBy *string `json:"update_by,omitempty"`

	// 实体的最后更新时间戳。 注意:执行创建/修改/删除操作时,update_time将更新。
	UpdateTime *int64 `json:"update_time,omitempty"`
}

Script 脚本的基本信息。

func (Script) String

func (o Script) String() string

type ScriptVersion

type ScriptVersion struct {

	// 脚本内容,脚本内容不能为空
	Content string `json:"content"`

	// 创建人,比如为:张三
	CreateBy *string `json:"create_by,omitempty"`

	// 创建时间
	CreateTime *int64 `json:"create_time,omitempty"`

	// 企业项目id
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 脚本名称,支持数字,下划线,大小写字母 ,中文
	Name *string `json:"name,omitempty"`

	// 租户从IAM申请到的projectid,一般为32位字符串
	ProjectId *string `json:"project_id,omitempty"`

	// 脚本版本的引用次数,脚本版本被作业引用的次数。默认是0次,引用次数为非负整数,不能出现负数
	JobReferenceNumber *int32 `json:"job_reference_number,omitempty"`

	// 脚本id,根据UUID.randomUUID生成。
	ScriptId *string `json:"script_id,omitempty"`

	// 脚本语言,目前支持四种,分别是:SHELL BAT PYTHON POWER_SHELL
	ScriptLanguage *string `json:"script_language,omitempty"`

	// 状态说明  0代表 未上线,1代表已上线  2代表已下线   3代表已禁用
	StatusDesc *int32 `json:"status_desc,omitempty"`

	// 修改人
	UpdateBy *string `json:"update_by,omitempty"`

	// 实体的最后更新时间戳。 注意:执行创建/修改/删除操作时,update_time将更新。
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 版本id,根据UUID.randomUUID生成。
	VersionId *string `json:"version_id,omitempty"`

	// 脚本版本号,支持数字,下划线,大小写字母和小数点
	VersionNumber *string `json:"version_number,omitempty"`

	// 脚本引用的作业详情
	JobReferenceName *[]ReferenceInfo `json:"job_reference_name,omitempty"`
}

ScriptVersion 脚本版本的详细信息。

func (ScriptVersion) String

func (o ScriptVersion) String() string

type SearchJobsRequestBody

type SearchJobsRequestBody struct {

	// name为作业名称。
	Name *string `json:"name,omitempty"`

	// 当前页,查询的当前页,page_num为正整数,不能是0和负数,当输入参数为负数,0和大于1000,自动修正参数为1,默认值是1(用户不传,值是1)。
	PageNum *int32 `json:"page_num,omitempty"`

	// 每页显示的条数,每页查询的总条数,page_size为正整数,不能是0和负数,当输入参数为负数,0和大于101,自动修正参数为10,默认值是10(用户不传时,值是10)。
	PageSize *int32 `json:"page_size,omitempty"`

	// 需要排序的字段(默认为更新时间),支持字段有name,create_time,update_time。
	OrderByColumn string `json:"order_by_column"`

	// 排序规则(默认降序) 传入升序或降序,升序:ASC,降序:DESC。
	SortOrder string `json:"sort_order"`

	// 企业项目id
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

SearchJobsRequestBody 分页查询作业列表请求参数

func (SearchJobsRequestBody) String

func (o SearchJobsRequestBody) String() string

type SearchScriptsRequestBody

type SearchScriptsRequestBody struct {

	// 查询接收的参数,版本管理时,name为脚本名称(版本管理查询时name不能为空),脚本管理页面查询时,name为接收模糊查询的参数,name是null,表示查询所有默认脚本。
	Name *string `json:"name,omitempty"`

	// 查询规则,如果是类型为default,则为模糊查询和脚本管理主页展示,no_default为版本管理。
	IsDefault *string `json:"is_default,omitempty"`

	// 创建人,默认按照创建人搜索脚本。
	CreateBy *string `json:"create_by,omitempty"`

	// 版本管理时需要查询的脚本id。
	ScriptId string `json:"script_id"`

	// page_num为正整数。
	PageNum *int32 `json:"page_num,omitempty"`

	// 每页显示的条数,默认值是10。
	PageSize *int32 `json:"page_size,omitempty"`

	// 项目id。
	ProjectId *string `json:"project_id,omitempty"`

	// 需要排序的字段(默认为更新时间),支持字段有name,create_time和update_time。
	OrderByColumn string `json:"order_by_column"`

	// 排序规则(默认降序) 传入升序或降序,升序:ASC,降序:DESC。
	SortOrder string `json:"sort_order"`

	// 企业项目id,根据企业项目id搜索。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

func (SearchScriptsRequestBody) String

func (o SearchScriptsRequestBody) String() string

type SearchTemplateByIdRequest

type SearchTemplateByIdRequest struct {

	// 方案id。
	TemplateId string `json:"template_id"`

	// 模板共享类型,默认为private。可选public private
	ShareType string `json:"share_type"`
}

SearchTemplateByIdRequest Request Object

func (SearchTemplateByIdRequest) String

func (o SearchTemplateByIdRequest) String() string

type SearchTemplateByIdResponse

type SearchTemplateByIdResponse struct {
	ApproveInfo *ApproveInfo `json:"approve_info,omitempty"`

	// 模板创建人,从接口调用传入的token中获取。
	CreateBy *string `json:"create_by,omitempty"`

	// 模板创建时间,为utc时间毫秒数。
	CreateTime *int64 `json:"create_time,omitempty"`

	// 企业项目id
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 模板id,唯一标识,根据project_id和template_name生成。
	Id *string `json:"id,omitempty"`

	// 模板是否收藏,不允许更新模板时修改,更改收藏状态调用单独的更新模板收藏状态接口
	IsCollect *bool `json:"is_collect,omitempty"`

	// 是否发布成服务
	IsPublish *bool `json:"is_publish,omitempty"`

	// 作业id
	JobId *string `json:"job_id,omitempty"`

	// 作业版本
	JobVersion *int32 `json:"job_version,omitempty"`

	// 模板名称
	Name *string `json:"name,omitempty"`

	// 是否需要同步
	NeedSynchronize *bool `json:"need_synchronize,omitempty"`

	// 任务执行时需要的参数列表。
	Nodes *[]Node `json:"nodes,omitempty"`

	// 任务执行时需要的参数列表。
	Parameters *[]Parameter `json:"parameters,omitempty"`

	// 项目id
	ProjectId *string `json:"project_id,omitempty"`

	// 引用参数
	Quote *[]string `json:"quote,omitempty"`

	RateControl *RateControl `json:"rate_control,omitempty"`

	// 默认模板为public,自定义模板为private
	ShareType *string `json:"share_type,omitempty"`

	// 作业步骤
	Steps *[]Step `json:"steps,omitempty"`

	// 模板更新人,从接口调用传入的token中获取。
	UpdateBy *string `json:"update_by,omitempty"`

	// 模板更新时间,为utc时间毫秒数。
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 模板版本
	Version        *string `json:"version,omitempty"`
	HttpStatusCode int     `json:"-"`
}

SearchTemplateByIdResponse Response Object

func (SearchTemplateByIdResponse) String

type SearchWorkflowExecutionDetailRequest

type SearchWorkflowExecutionDetailRequest struct {

	// 工作流ID,唯一标识,根据project_id和workflow_name生成。
	WorkflowId string `json:"workflow_id"`

	// 工作流执行ID。
	ExecutionId string `json:"execution_id"`
}

SearchWorkflowExecutionDetailRequest Request Object

func (SearchWorkflowExecutionDetailRequest) String

type SearchWorkflowExecutionDetailResponse

type SearchWorkflowExecutionDetailResponse struct {

	// 流程定义ID。
	WorkflowId *string `json:"workflow_id,omitempty"`

	// 流程执行实例ID。
	ExecutionId *string `json:"execution_id,omitempty"`

	// 流程实例执行状态。
	Status *string `json:"status,omitempty"`

	// 流程实例创建时间,格式:UTC时间戳
	BeginTime *int64 `json:"begin_time,omitempty"`

	// 流程实例结束时间,格式:UTC时间戳
	EndTime *int64 `json:"end_time,omitempty"`

	// 流程实例上次更新时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间。
	LastUpdateTime *int64 `json:"last_update_time,omitempty"`

	// 节点执行信息。
	ExecutionResultList *[]ExecutionResultList `json:"execution_result_list,omitempty"`

	// 审批用户列表
	ApproveUserNameList *[]string `json:"approve_user_name_list,omitempty"`

	// 租户从IAM申请到的projectid,一般为32位字符串。
	ProjectId *string `json:"project_id,omitempty"`

	// 执行workflow的更新时间
	WorkflowEditTime *int64 `json:"workflow_edit_time,omitempty"`

	// 执行快照
	LastRecordIdWithSnapshot *string `json:"last_record_id_with_snapshot,omitempty"`
	HttpStatusCode           int     `json:"-"`
}

SearchWorkflowExecutionDetailResponse Response Object

func (SearchWorkflowExecutionDetailResponse) String

type StartPausingWorkflowExecutionsRequest

type StartPausingWorkflowExecutionsRequest struct {

	// 工作流ID,唯一标识,根据project_id和workflow_name生成。
	WorkflowId string `json:"workflow_id"`

	// 工作流执行ID。
	ExecutionId string `json:"execution_id"`

	// 对当前节点的操作:失败重试,失败跳过,暂停继续。 restart可重新执行失败的节点,skip可跳过失败的节点进入下个节点的执行,continue可通过暂停节点进入下一个节点。
	Action StartPausingWorkflowExecutionsRequestAction `json:"action"`

	// 当前节点的id。
	NodeId string `json:"node_id"`
}

StartPausingWorkflowExecutionsRequest Request Object

func (StartPausingWorkflowExecutionsRequest) String

type StartPausingWorkflowExecutionsRequestAction

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

func (StartPausingWorkflowExecutionsRequestAction) MarshalJSON

func (*StartPausingWorkflowExecutionsRequestAction) UnmarshalJSON

func (StartPausingWorkflowExecutionsRequestAction) Value

type StartPausingWorkflowExecutionsResponse

type StartPausingWorkflowExecutionsResponse struct {

	// 结果返回体
	Result         *interface{} `json:"result,omitempty"`
	HttpStatusCode int          `json:"-"`
}

StartPausingWorkflowExecutionsResponse Response Object

func (StartPausingWorkflowExecutionsResponse) String

type Step

type Step struct {

	// 步骤id。
	Id *string `json:"id,omitempty"`

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

	// 步骤类型。
	Type *string `json:"type,omitempty"`

	// 步骤参数。
	Input map[string]string `json:"input,omitempty"`

	// 是否自动忽略错误。
	IgnoreError bool `json:"ignore_error"`

	// 步骤说明。
	Description *string `json:"description,omitempty"`
}

Step 创建作业时的步骤参数

func (Step) String

func (o Step) String() string

type StopExecutionRequest

type StopExecutionRequest struct {

	// 任务id,从工作流命令列表中获取的工作流id。
	WorkflowId string `json:"workflow_id"`

	// 任务执行id。
	ExecutionId string `json:"execution_id"`
}

StopExecutionRequest Request Object

func (StopExecutionRequest) String

func (o StopExecutionRequest) String() string

type StopExecutionResponse

type StopExecutionResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

StopExecutionResponse Response Object

func (StopExecutionResponse) String

func (o StopExecutionResponse) String() string

type TaskParam

type TaskParam struct {

	// 参数名称。
	ParamName string `json:"param_name"`

	// 参数类型。
	ParamType *string `json:"param_type,omitempty"`

	// 参数分组。
	ParamGroup *string `json:"param_group,omitempty"`

	// 参数初始值。
	DefaultValue *string `json:"default_value,omitempty"`
}

TaskParam 任务参数对象。

func (TaskParam) String

func (o TaskParam) String() string

type Template

type Template struct {
	ApproveInfo *ApproveInfo `json:"approve_info,omitempty"`

	// 模板创建人,从接口调用传入的token中获取。
	CreateBy *string `json:"create_by,omitempty"`

	// 模板创建时间,为utc时间毫秒数。
	CreateTime *int64 `json:"create_time,omitempty"`

	// 企业项目id
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 模板id,唯一标识,根据project_id和template_name生成。
	Id *string `json:"id,omitempty"`

	// 模板是否收藏,不允许更新模板时修改,更改收藏状态调用单独的更新模板收藏状态接口
	IsCollect *bool `json:"is_collect,omitempty"`

	// 是否发布成服务
	IsPublish *bool `json:"is_publish,omitempty"`

	// 作业id
	JobId *string `json:"job_id,omitempty"`

	// 作业版本
	JobVersion *int32 `json:"job_version,omitempty"`

	// 模板名称
	Name *string `json:"name,omitempty"`

	// 是否需要同步
	NeedSynchronize *bool `json:"need_synchronize,omitempty"`

	// 任务执行时需要的参数列表。
	Nodes *[]Node `json:"nodes,omitempty"`

	// 任务执行时需要的参数列表。
	Parameters *[]Parameter `json:"parameters,omitempty"`

	// 项目id
	ProjectId *string `json:"project_id,omitempty"`

	// 引用参数
	Quote *[]string `json:"quote,omitempty"`

	RateControl *RateControl `json:"rate_control,omitempty"`

	// 默认模板为public,自定义模板为private
	ShareType *string `json:"share_type,omitempty"`

	// 作业步骤
	Steps *[]Step `json:"steps,omitempty"`

	// 模板更新人,从接口调用传入的token中获取。
	UpdateBy *string `json:"update_by,omitempty"`

	// 模板更新时间,为utc时间毫秒数。
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 模板版本
	Version *string `json:"version,omitempty"`
}

Template 变更服务模板模板元数据。

func (Template) String

func (o Template) String() string

type UpdateWorkflowTriggerStatusRequest

type UpdateWorkflowTriggerStatusRequest struct {

	// 任务id,待修改任务的id。
	WorkflowId string `json:"workflow_id"`

	// 启动或暂停任务的定时执行。enable为开启定时任务,disable为关闭定时任务
	Action UpdateWorkflowTriggerStatusRequestAction `json:"action"`
}

UpdateWorkflowTriggerStatusRequest Request Object

func (UpdateWorkflowTriggerStatusRequest) String

type UpdateWorkflowTriggerStatusRequestAction

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

func (UpdateWorkflowTriggerStatusRequestAction) MarshalJSON

func (*UpdateWorkflowTriggerStatusRequestAction) UnmarshalJSON

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

func (UpdateWorkflowTriggerStatusRequestAction) Value

type UpdateWorkflowTriggerStatusRequestActionEnum

type UpdateWorkflowTriggerStatusRequestActionEnum struct {
	ENABLE  UpdateWorkflowTriggerStatusRequestAction
	DISABLE UpdateWorkflowTriggerStatusRequestAction
}

func GetUpdateWorkflowTriggerStatusRequestActionEnum

func GetUpdateWorkflowTriggerStatusRequestActionEnum() UpdateWorkflowTriggerStatusRequestActionEnum

type UpdateWorkflowTriggerStatusResponse

type UpdateWorkflowTriggerStatusResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateWorkflowTriggerStatusResponse Response Object

func (UpdateWorkflowTriggerStatusResponse) String

type WorkFlowModel added in v0.1.28

type WorkFlowModel struct {

	// 英文描述
	EnUs map[string]string `json:"en-us,omitempty"`

	// 中文描述
	ZhCn map[string]string `json:"zh-cn,omitempty"`
}

func (WorkFlowModel) String added in v0.1.28

func (o WorkFlowModel) String() string

type Workflow

type Workflow struct {

	// 工作流id,唯一标识,根据project_id和workflow_name生成。
	Id *string `json:"id,omitempty"`

	// 工作流名称。
	Name string `json:"name"`

	// 工作流类型,可以为cron、manual
	Type *string `json:"type,omitempty"`

	// 工作流描述信息。
	Description *string `json:"description,omitempty"`

	// 标签键和值列表,标签键值对数量范围是0至20。
	Tags map[string]string `json:"tags,omitempty"`

	// 工作流创建时间,为utc时间毫秒数。
	CreateTime *int64 `json:"create_time,omitempty"`

	// 工作流创人,从接口调用传入的token中获取。
	CreateBy *string `json:"create_by,omitempty"`

	// 工作流更新时间,为utc时间毫秒数。
	UpdateTime *int64 `json:"update_time,omitempty"`

	// 工作流更新人,从接口调用传入的token中获取。
	UpdateBy *string `json:"update_by,omitempty"`

	// 模板名称。
	TemplateName *string `json:"template_name,omitempty"`

	// 模板id
	TemplateId *string `json:"template_id,omitempty"`

	// 任务执行时需要的参数列表。
	Input map[string]interface{} `json:"input,omitempty"`

	// 最近一次执行id,也是工作流id
	LastExecutionId *string `json:"last_execution_id,omitempty"`

	// 任务状态,包含success,fail,executing
	Status *string `json:"status,omitempty"`

	// 工作流的引用。
	CitationUrns *[]string `json:"citation_urns,omitempty"`

	// 最近一次执行结束时间,为utc时间毫秒数
	LastExecutionEndTime *int64 `json:"last_execution_end_time,omitempty"`

	// 最近一次执行开始时间,为utc时间毫秒数
	LastExecutionStartTime *int64 `json:"last_execution_start_time,omitempty"`

	// 引用,参数引用
	Quote *[]string `json:"quote,omitempty"`

	// 作业名称
	JobName *string `json:"job_name,omitempty"`

	// 作业id
	JobId *string `json:"job_id,omitempty"`

	// 服务场景分类
	ServiceScenario *string `json:"service_scenario,omitempty"`

	// 服务名称
	ServiceName *string `json:"service_name,omitempty"`

	// 任务类型
	TaskType *string `json:"task_type,omitempty"`

	// functiongraph返回的PROJECT_ID
	ProjectId *string `json:"project_id,omitempty"`

	// functiongraph返回的WORKFLOW_ID
	WorkflowId *string `json:"workflow_id,omitempty"`

	// 任务状态
	TaskStatus *string `json:"task_status,omitempty"`

	// 任务节点
	Nodes *[]Node `json:"nodes,omitempty"`

	// 编辑时间
	EditTime *int64 `json:"edit_time,omitempty"`

	// 执行动作细粒度权限
	ExecutionActionRules *[]string `json:"execution_action_rules,omitempty"`

	// 云服务权限
	ExecutionPermission *[]string `json:"execution_permission,omitempty"`

	// 全局参数
	GlobalParameters *[]Parameter `json:"global_parameters,omitempty"`

	// 逻辑删除
	IsDelete *bool `json:"is_delete,omitempty"`

	// 任务步骤
	Steps *[]Step `json:"steps,omitempty"`

	// 任务输出
	Output *string `json:"output,omitempty"`

	// 触发器id
	TriggerId *string `json:"trigger_id,omitempty"`

	// 触发器状态
	TriggerStatus *string `json:"trigger_status,omitempty"`

	// 审批id
	ApproveId *string `json:"approve_id,omitempty"`

	TemplateI18n *WorkFlowModel `json:"template_i18n,omitempty"`

	// 任务所属的企业项目
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 任务最后一次执行人
	LastExecuteBy *string `json:"last_execute_by,omitempty"`
}

Workflow 变更服务工作流工作流元数据。

func (Workflow) String

func (o Workflow) String() string

type WorkflowExecutionBrief

type WorkflowExecutionBrief struct {

	// 流程定义ID
	WorkflowId *string `json:"workflow_id,omitempty"`

	// 流程执行实例ID
	ExecutionId *string `json:"execution_id,omitempty"`

	// 流程实例执行状态
	Status *string `json:"status,omitempty"`

	// 流程实例创建时间,格式:UTC时间戳
	BeginTime *int64 `json:"begin_time,omitempty"`

	// 流程实例结束时间,格式:UTC时间戳
	EndTime *int64 `json:"end_time,omitempty"`

	// 流程实例上次更新时间,格式:UTC时间戳
	LastUpdateTime *int64 `json:"last_update_time,omitempty"`

	// 流程实例创建者
	CreatedBy *string `json:"created_by,omitempty"`

	// 审批人列表
	ApproveUserNameList *[]string `json:"approve_user_name_list,omitempty"`

	// 执行记录
	ExecutionResultList *[]ExecutionResultList `json:"execution_result_list,omitempty"`

	// 租户从IAM申请到的projectid,一般为32位字符串。
	ProjectId *string `json:"project_id,omitempty"`

	// 执行工作流的修改时间,格式:UTC时间戳
	WorkflowEditTime *int64 `json:"workflow_edit_time,omitempty"`

	// 执行快照
	LastRecordIdWithSnapshot *string `json:"last_record_id_with_snapshot,omitempty"`
}

WorkflowExecutionBrief 函数流执行概要信息

func (WorkflowExecutionBrief) String

func (o WorkflowExecutionBrief) String() string

type WorkflowQueryParam

type WorkflowQueryParam struct {

	// 搜索内容,可以针对工作流名称和描述内容进行搜索。
	Search *string `json:"search,omitempty"`

	// 工作流分类,可以取值[\"cron\",\"event\",\"manual\"]。
	Type *string `json:"type,omitempty"`

	// 工作流标签,最多支持10个。
	Tags map[string]string `json:"tags,omitempty"`

	// 查询当前的页数,默认值为0。
	Page *int32 `json:"page,omitempty"`

	// 查询当前页的大小,默认值为10。
	Size *int32 `json:"size,omitempty"`

	// 企业项目id。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 工作流创建人。
	CreateBy *string `json:"create_by,omitempty"`

	// 排序字段,取值[\"create_time\",\"last_execution_start_time\",\"update_time\"]。
	SortField string `json:"sort_field"`

	// 排序类型,取值[\"ASC\",\"DESC\"]。
	SortType string `json:"sort_type"`

	// 时间范围查询的开始时间。
	SearchTimeStart *int64 `json:"search_time_start,omitempty"`

	// 时间范围查询的结束时间。
	SearchTimeEnd *int64 `json:"search_time_end,omitempty"`

	// 任务的状态 [\"success\",\"fail\",\"executing\",\"cancel\",\"waitExecute\",\"waitApproval\",\"approvalFailed\",\"pausing\",\"canceling\"]
	Status *string `json:"status,omitempty"`
}

WorkflowQueryParam 查询工作流列表。

func (WorkflowQueryParam) String

func (o WorkflowQueryParam) String() string

type WorkflowRequestBody

type WorkflowRequestBody struct {

	// 工作流名称,需要满足中文、英文大小写、数字、中划线和下划线{1,64}。
	Name string `json:"name"`

	// 工作流类型,可以为cron、manual
	Type string `json:"type"`

	// 工作流描述信息。
	Description *string `json:"description,omitempty"`

	// 标签键和值列表,标签键值对数量范围是0至20。
	Tags *interface{} `json:"tags,omitempty"`

	// 模板名称,示例:CMS::ECS::BulkyRunScript  CMS::ECS::BulkyStartECSInstances CMS::ECS::BulkyCleanDisks
	TemplateName *string `json:"template_name,omitempty"`

	// 模板id。
	TemplateId string `json:"template_id"`

	// 任务执行时需要的参数列表。
	Input map[string]interface{} `json:"input"`

	// 引用,参数引用。
	Quote *[]string `json:"quote,omitempty"`

	// 作业名称。
	JobName *string `json:"job_name,omitempty"`

	// 作业id。
	JobId *string `json:"job_id,omitempty"`

	// 服务场景分类。
	ServiceScenario *string `json:"service_scenario,omitempty"`

	// 服务名称。
	ServiceName *string `json:"service_name,omitempty"`

	// 任务类型。package,script,job,cloud,standard,customize
	TaskType string `json:"task_type"`
}

WorkflowRequestBody 自动化运维工作流工作流元数据。

func (WorkflowRequestBody) String

func (o WorkflowRequestBody) String() string

Source Files

Jump to

Keyboard shortcuts

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