model

package
v0.0.5-beta Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 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 ListPublishedTemplatesRequest

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

Request Object

func (ListPublishedTemplatesRequest) String

type ListPublishedTemplatesRequestXLanguage

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

func (ListPublishedTemplatesRequestXLanguage) MarshalJSON

func (c ListPublishedTemplatesRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ListPublishedTemplatesRequestXLanguage) UnmarshalJSON

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

type ListPublishedTemplatesRequestXLanguageEnum

type ListPublishedTemplatesRequestXLanguageEnum struct {
	ZH_CN ListPublishedTemplatesRequestXLanguage
	EN_US ListPublishedTemplatesRequestXLanguage
}

func GetListPublishedTemplatesRequestXLanguageEnum

func GetListPublishedTemplatesRequestXLanguageEnum() ListPublishedTemplatesRequestXLanguageEnum

type ListPublishedTemplatesResponse

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

Response Object

func (ListPublishedTemplatesResponse) String

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"`
}

func (PropertiesInfo) String

func (o PropertiesInfo) String() string

type RepositoryInfo

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

func (RepositoryInfo) String

func (o RepositoryInfo) String() string

type RunTemplateJobV2Request

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

Request Object

func (RunTemplateJobV2Request) String

func (o RunTemplateJobV2Request) String() string

type RunTemplateJobV2Response

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

Response Object

func (RunTemplateJobV2Response) String

func (o RunTemplateJobV2Response) String() string

type ShowJobDetailRequest

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

Request Object

func (ShowJobDetailRequest) String

func (o ShowJobDetailRequest) String() string

type ShowJobDetailResponse

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

Response Object

func (ShowJobDetailResponse) String

func (o ShowJobDetailResponse) String() string

type ShowTemplateDetailRequest

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

Request Object

func (ShowTemplateDetailRequest) String

func (o ShowTemplateDetailRequest) String() string

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

func (ShowTemplateDetailResponse) String

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 *interface{}    `json:"properties,omitempty"`
	RepoInfo   *RepositoryInfo `json:"repo_info,omitempty"`
}

func (TemplateJobInfo) String

func (o TemplateJobInfo) String() string

type TemplateSimpleInfo

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

func (TemplateSimpleInfo) String

func (o TemplateSimpleInfo) String() string

Jump to

Keyboard shortcuts

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