model

package
v0.0.2-beta Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListPublishedTemplatesRequest

type ListPublishedTemplatesRequest struct {
	XLanguage string `json:"X-Language,omitempty"`
	Keyword   string `json:"keyword,omitempty"`
	Offset    int32  `json:"offset,omitempty"`
	Limit     int32  `json:"limit,omitempty"`
}

Request Object

type ListPublishedTemplatesResponse

type ListPublishedTemplatesResponse struct {
	// 返回模板的数量
	Count int32 `json:"count,omitempty"`
	// 返回模板的列表
	Templates []TemplateSimpleInfo `json:"templates,omitempty"`
}

Response Object

type PropertiesInfo

type PropertiesInfo struct {
	// key
	Key string `json:"key,omitempty"`
	// 默认值
	DefaultValue string `json:"defaultValue,omitempty"`
	// 模板的描述信息
	Label string `json:"label,omitempty"`
	// 类型 txet 或 select
	Type string `json:"type,omitempty"`
	// 提示信息
	HelpText string `json:"helpText,omitempty"`
	// 是否只读
	ReadOnly bool `json:"readOnly,omitempty"`
	// 是否必填
	Required bool `json:"required,omitempty"`
	// 正则校验类型
	RegType string `json:"regType,omitempty"`
	// 正则表达式
	RegPattern string `json:"regPattern,omitempty"`
	// 正则提示信息
	RegTip string `json:"regTip,omitempty"`
	// 是否显示
	IsShow bool `json:"isShow,omitempty"`
}

type RepositoryInfo

type RepositoryInfo struct {
	// 代码仓的名称
	Name string `json:"name,omitempty"`
	// 项目id
	ProjectId string `json:"project_id,omitempty"`
	// 区域id
	RegionId string `json:"region_id,omitempty"`
}

type RunTemplateJobV2Request

type RunTemplateJobV2Request struct {
	XLanguage string           `json:"X-Language,omitempty"`
	Body      *TemplateJobInfo `json:"body,omitempty"`
}

Request Object

type RunTemplateJobV2Response

type RunTemplateJobV2Response struct {
	// 任务id
	JobId string `json:"job_id,omitempty"`
}

Response Object

type ShowJobDetailRequest

type ShowJobDetailRequest struct {
	XLanguage string `json:"X-Language,omitempty"`
	JobId     string `json:"job_id"`
}

Request Object

type ShowJobDetailResponse

type ShowJobDetailResponse struct {
	// 任务的id
	Id string `json:"id,omitempty"`
	// 任务的名称
	Name string `json:"name,omitempty"`
	// 任务的状态
	JobStatus map[string]interface{} `json:"job_status,omitempty"`
	// 任务结果信息
	JobResult string `json:"job_result,omitempty"`
}

Response Object

type ShowTemplateDetailRequest

type ShowTemplateDetailRequest struct {
	XLanguage  string `json:"X-Language,omitempty"`
	TemplateId string `json:"template_id"`
}

Request Object

type ShowTemplateDetailResponse

type ShowTemplateDetailResponse struct {
	// 模板的id
	Id string `json:"id,omitempty"`
	// 模板的名称
	Title string `json:"title,omitempty"`
	// 模板的描述信息
	Description string `json:"description,omitempty"`
	// 模板关联的region host id
	RegionId string `json:"region_id,omitempty"`
	// 模板关联的repo id
	RepostoryId string `json:"repostory_id,omitempty"`
	// 模板https下载路径
	CodeUrl string `json:"code_url,omitempty"`
	// 模板ssh下载路径
	SshUrl string `json:"ssh_url,omitempty"`
	// 项目id
	ProjectUuid string `json:"project_uuid,omitempty"`
	// 模板状态
	Status     int32            `json:"status,omitempty"`
	Properties []PropertiesInfo `json:"properties,omitempty"`
}

Response Object

type TemplateJobInfo

type TemplateJobInfo struct {
	// 应用名称
	ApplicationName string `json:"application_name,omitempty"`
	// 任务依赖的模板id
	TemplateId string `json:"template_id"`
	// 应用代码生成后的地址类型,目前支持0:codehub地址
	RepoType int32 `json:"repo_type"`
	// 应用的动态参数json
	Properties map[string]interface{} `json:"properties,omitempty"`
	RepoInfo   *RepositoryInfo        `json:"repo_info,omitempty"`
}

type TemplateSimpleInfo

type TemplateSimpleInfo struct {
	// 模板id
	Id string `json:"id,omitempty"`
	// 模板名
	Title string `json:"title,omitempty"`
	// 模板描述
	Description string `json:"description,omitempty"`
}

Jump to

Keyboard shortcuts

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