Documentation
¶
Index ¶
- type ListPublishedTemplatesRequest
- type ListPublishedTemplatesResponse
- type PropertiesInfo
- type RepositoryInfo
- type RunTemplateJobV2Request
- type RunTemplateJobV2Response
- type ShowJobDetailRequest
- type ShowJobDetailResponse
- type ShowTemplateDetailRequest
- type ShowTemplateDetailResponse
- type TemplateJobInfo
- type TemplateSimpleInfo
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 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 ¶
Source Files
¶
- model_list_published_templates_request.go
- model_list_published_templates_response.go
- model_properties_info.go
- model_repository_info.go
- model_run_template_job_v2_request.go
- model_run_template_job_v2_response.go
- model_show_job_detail_request.go
- model_show_job_detail_response.go
- model_show_template_detail_request.go
- model_show_template_detail_response.go
- model_template_job_info.go
- model_template_simple_info.go
Click to show internal directories.
Click to hide internal directories.