Documentation ¶
Index ¶
- type CodehubJobInfo
- type CodehubJobInfoRepoType
- type CodehubJobInfoRepoTypeEnum
- type CreateTemplateViewHistoriesRequest
- type CreateTemplateViewHistoriesRequestXLanguage
- type CreateTemplateViewHistoriesRequestXLanguageEnum
- type CreateTemplateViewHistoriesResponse
- type DownloadApplicationCodeRequest
- type DownloadApplicationCodeRequestXLanguage
- type DownloadApplicationCodeRequestXLanguageEnum
- type DownloadApplicationCodeResponse
- type ListPublishedTemplatesRequest
- type ListPublishedTemplatesRequestXLanguage
- type ListPublishedTemplatesRequestXLanguageEnum
- type ListPublishedTemplatesResponse
- type ListTemplateViewHistoriesRequest
- type ListTemplateViewHistoriesRequestPlatformSource
- type ListTemplateViewHistoriesRequestPlatformSourceEnum
- type ListTemplateViewHistoriesRequestXLanguage
- type ListTemplateViewHistoriesRequestXLanguageEnum
- type ListTemplateViewHistoriesResponse
- type ListTemplatesV2Request
- type ListTemplatesV2RequestXLanguage
- type ListTemplatesV2RequestXLanguageEnum
- type ListTemplatesV2Response
- type PipelineTemplateInfo
- type PropertiesInfo
- type Reference
- type RepositoryInfo
- type RunCodehubTemplateJobRequest
- type RunCodehubTemplateJobRequestXLanguage
- type RunCodehubTemplateJobRequestXLanguageEnum
- type RunCodehubTemplateJobResponse
- type RunDevstarTemplateJobRequest
- type RunDevstarTemplateJobRequestXLanguage
- type RunDevstarTemplateJobRequestXLanguageEnum
- type RunDevstarTemplateJobResponse
- type ShowJobDetailRequest
- type ShowJobDetailRequestXLanguage
- type ShowJobDetailRequestXLanguageEnum
- type ShowJobDetailResponse
- type ShowTemplateDetailRequest
- type ShowTemplateDetailRequestXLanguage
- type ShowTemplateDetailRequestXLanguageEnum
- type ShowTemplateDetailResponse
- type ShowTemplateFileRequest
- type ShowTemplateFileRequestType
- type ShowTemplateFileRequestTypeEnum
- type ShowTemplateFileRequestXLanguage
- type ShowTemplateFileRequestXLanguageEnum
- type ShowTemplateFileResponse
- type ShowTemplateV3Request
- type ShowTemplateV3RequestXLanguage
- type ShowTemplateV3RequestXLanguageEnum
- type ShowTemplateV3Response
- type TagInfo
- type TemplateInfo
- type TemplateJobInfo
- type TemplateJobInfoRepoType
- type TemplateJobInfoRepoTypeEnum
- type TemplateProductExt
- type TemplateQueryV2
- type TemplateSimpleInfo
- type TemplateViewHistory
- type TemplatesInfo
- type TopicCategory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodehubJobInfo ¶
type CodehubJobInfo struct { // 应用名称 ApplicationName string `json:"application_name"` // 代码存放的ssh地址 CodeUrl string `json:"code_url"` // CodeHub 仓库所在的 Region ID。华南-广州: cn-south-1, 华东-上海二:cn-east-2,华北-北京一: cn-north-1 ,华北-北京四:cn-north-4 RegionId string `json:"region_id"` // 0 - 将生成的应用代码存储于 repo_info 指定的 CodeHub 仓库中。1 - 将生成的应用代码存储到华为云,任务创建人可以通过 ExportApplicationCode 下载代码压缩包 RepoType CodehubJobInfoRepoType `json:"repo_type"` // 可以根据 template-metadata.json 获取动态参数 ID 以及规则 Properties map[string]string `json:"properties,omitempty"` RepoInfo *RepositoryInfo `json:"repo_info,omitempty"` }
func (CodehubJobInfo) String ¶
func (o CodehubJobInfo) String() string
type CodehubJobInfoRepoType ¶
type CodehubJobInfoRepoType struct {
// contains filtered or unexported fields
}
func (CodehubJobInfoRepoType) MarshalJSON ¶
func (c CodehubJobInfoRepoType) MarshalJSON() ([]byte, error)
func (*CodehubJobInfoRepoType) UnmarshalJSON ¶
func (c *CodehubJobInfoRepoType) UnmarshalJSON(b []byte) error
type CodehubJobInfoRepoTypeEnum ¶
type CodehubJobInfoRepoTypeEnum struct { E_0 CodehubJobInfoRepoType E_1 CodehubJobInfoRepoType }
func GetCodehubJobInfoRepoTypeEnum ¶
func GetCodehubJobInfoRepoTypeEnum() CodehubJobInfoRepoTypeEnum
type CreateTemplateViewHistoriesRequest ¶
type CreateTemplateViewHistoriesRequest struct { XLanguage *CreateTemplateViewHistoriesRequestXLanguage `json:"X-Language,omitempty"` Body *TemplatesInfo `json:"body,omitempty"` }
Request Object
func (CreateTemplateViewHistoriesRequest) String ¶
func (o CreateTemplateViewHistoriesRequest) String() string
type CreateTemplateViewHistoriesRequestXLanguage ¶
type CreateTemplateViewHistoriesRequestXLanguage struct {
// contains filtered or unexported fields
}
func (CreateTemplateViewHistoriesRequestXLanguage) MarshalJSON ¶
func (c CreateTemplateViewHistoriesRequestXLanguage) MarshalJSON() ([]byte, error)
func (*CreateTemplateViewHistoriesRequestXLanguage) UnmarshalJSON ¶
func (c *CreateTemplateViewHistoriesRequestXLanguage) UnmarshalJSON(b []byte) error
type CreateTemplateViewHistoriesRequestXLanguageEnum ¶
type CreateTemplateViewHistoriesRequestXLanguageEnum struct { ZH_CN CreateTemplateViewHistoriesRequestXLanguage EN_US CreateTemplateViewHistoriesRequestXLanguage }
func GetCreateTemplateViewHistoriesRequestXLanguageEnum ¶
func GetCreateTemplateViewHistoriesRequestXLanguageEnum() CreateTemplateViewHistoriesRequestXLanguageEnum
type CreateTemplateViewHistoriesResponse ¶
type CreateTemplateViewHistoriesResponse struct { // 我浏览的模板 Templates *[]TemplateViewHistory `json:"templates,omitempty"` // 我浏览的模板数量 Count *int32 `json:"count,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateTemplateViewHistoriesResponse) String ¶
func (o CreateTemplateViewHistoriesResponse) String() string
type DownloadApplicationCodeRequest ¶
type DownloadApplicationCodeRequest struct { XLanguage *DownloadApplicationCodeRequestXLanguage `json:"X-Language,omitempty"` JobId string `json:"job_id"` }
Request Object
func (DownloadApplicationCodeRequest) String ¶
func (o DownloadApplicationCodeRequest) String() string
type DownloadApplicationCodeRequestXLanguage ¶
type DownloadApplicationCodeRequestXLanguage struct {
// contains filtered or unexported fields
}
func (DownloadApplicationCodeRequestXLanguage) MarshalJSON ¶
func (c DownloadApplicationCodeRequestXLanguage) MarshalJSON() ([]byte, error)
func (*DownloadApplicationCodeRequestXLanguage) UnmarshalJSON ¶
func (c *DownloadApplicationCodeRequestXLanguage) UnmarshalJSON(b []byte) error
type DownloadApplicationCodeRequestXLanguageEnum ¶
type DownloadApplicationCodeRequestXLanguageEnum struct { ZH_CN DownloadApplicationCodeRequestXLanguage EN_US DownloadApplicationCodeRequestXLanguage }
func GetDownloadApplicationCodeRequestXLanguageEnum ¶
func GetDownloadApplicationCodeRequestXLanguageEnum() DownloadApplicationCodeRequestXLanguageEnum
type DownloadApplicationCodeResponse ¶
type DownloadApplicationCodeResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DownloadApplicationCodeResponse) String ¶
func (o DownloadApplicationCodeResponse) String() string
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 ¶
func (o ListPublishedTemplatesRequest) String() 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"` HttpStatusCode int `json:"-"` }
Response Object
func (ListPublishedTemplatesResponse) String ¶
func (o ListPublishedTemplatesResponse) String() string
type ListTemplateViewHistoriesRequest ¶
type ListTemplateViewHistoriesRequest struct { XLanguage *ListTemplateViewHistoriesRequestXLanguage `json:"X-Language,omitempty"` PlatformSource ListTemplateViewHistoriesRequestPlatformSource `json:"platform_source"` }
Request Object
func (ListTemplateViewHistoriesRequest) String ¶
func (o ListTemplateViewHistoriesRequest) String() string
type ListTemplateViewHistoriesRequestPlatformSource ¶
type ListTemplateViewHistoriesRequestPlatformSource struct {
// contains filtered or unexported fields
}
func (ListTemplateViewHistoriesRequestPlatformSource) MarshalJSON ¶
func (c ListTemplateViewHistoriesRequestPlatformSource) MarshalJSON() ([]byte, error)
func (*ListTemplateViewHistoriesRequestPlatformSource) UnmarshalJSON ¶
func (c *ListTemplateViewHistoriesRequestPlatformSource) UnmarshalJSON(b []byte) error
type ListTemplateViewHistoriesRequestPlatformSourceEnum ¶
type ListTemplateViewHistoriesRequestPlatformSourceEnum struct { E_0 ListTemplateViewHistoriesRequestPlatformSource E_1 ListTemplateViewHistoriesRequestPlatformSource }
func GetListTemplateViewHistoriesRequestPlatformSourceEnum ¶
func GetListTemplateViewHistoriesRequestPlatformSourceEnum() ListTemplateViewHistoriesRequestPlatformSourceEnum
type ListTemplateViewHistoriesRequestXLanguage ¶
type ListTemplateViewHistoriesRequestXLanguage struct {
// contains filtered or unexported fields
}
func (ListTemplateViewHistoriesRequestXLanguage) MarshalJSON ¶
func (c ListTemplateViewHistoriesRequestXLanguage) MarshalJSON() ([]byte, error)
func (*ListTemplateViewHistoriesRequestXLanguage) UnmarshalJSON ¶
func (c *ListTemplateViewHistoriesRequestXLanguage) UnmarshalJSON(b []byte) error
type ListTemplateViewHistoriesRequestXLanguageEnum ¶
type ListTemplateViewHistoriesRequestXLanguageEnum struct { ZH_CN ListTemplateViewHistoriesRequestXLanguage EN_US ListTemplateViewHistoriesRequestXLanguage }
func GetListTemplateViewHistoriesRequestXLanguageEnum ¶
func GetListTemplateViewHistoriesRequestXLanguageEnum() ListTemplateViewHistoriesRequestXLanguageEnum
type ListTemplateViewHistoriesResponse ¶
type ListTemplateViewHistoriesResponse struct { // 我浏览的模板 Templates *[]TemplateViewHistory `json:"templates,omitempty"` // 我浏览的模板数量 Count *int32 `json:"count,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListTemplateViewHistoriesResponse) String ¶
func (o ListTemplateViewHistoriesResponse) String() string
type ListTemplatesV2Request ¶
type ListTemplatesV2Request struct { XLanguage *ListTemplatesV2RequestXLanguage `json:"X-Language,omitempty"` ActionId string `json:"action_id"` Body *TemplateQueryV2 `json:"body,omitempty"` }
Request Object
func (ListTemplatesV2Request) String ¶
func (o ListTemplatesV2Request) String() string
type ListTemplatesV2RequestXLanguage ¶
type ListTemplatesV2RequestXLanguage struct {
// contains filtered or unexported fields
}
func (ListTemplatesV2RequestXLanguage) MarshalJSON ¶
func (c ListTemplatesV2RequestXLanguage) MarshalJSON() ([]byte, error)
func (*ListTemplatesV2RequestXLanguage) UnmarshalJSON ¶
func (c *ListTemplatesV2RequestXLanguage) UnmarshalJSON(b []byte) error
type ListTemplatesV2RequestXLanguageEnum ¶
type ListTemplatesV2RequestXLanguageEnum struct { ZH_CN ListTemplatesV2RequestXLanguage EN_US ListTemplatesV2RequestXLanguage }
func GetListTemplatesV2RequestXLanguageEnum ¶
func GetListTemplatesV2RequestXLanguageEnum() ListTemplatesV2RequestXLanguageEnum
type ListTemplatesV2Response ¶
type ListTemplatesV2Response struct { // 返回模板的数量 Count *int32 `json:"count,omitempty"` // 返回模板的列表 Templates *[]TemplateInfo `json:"templates,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListTemplatesV2Response) String ¶
func (o ListTemplatesV2Response) String() string
type PipelineTemplateInfo ¶
type PipelineTemplateInfo struct { // 流水线模板的id Id *string `json:"id,omitempty"` // 流水线模板的名称 Name *string `json:"name,omitempty"` // 流水线模板的详细信息 Detail *string `json:"detail,omitempty"` }
func (PipelineTemplateInfo) String ¶
func (o PipelineTemplateInfo) String() 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 Reference ¶
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 RunCodehubTemplateJobRequest ¶
type RunCodehubTemplateJobRequest struct { XLanguage *RunCodehubTemplateJobRequestXLanguage `json:"X-Language,omitempty"` Body *CodehubJobInfo `json:"body,omitempty"` }
Request Object
func (RunCodehubTemplateJobRequest) String ¶
func (o RunCodehubTemplateJobRequest) String() string
type RunCodehubTemplateJobRequestXLanguage ¶
type RunCodehubTemplateJobRequestXLanguage struct {
// contains filtered or unexported fields
}
func (RunCodehubTemplateJobRequestXLanguage) MarshalJSON ¶
func (c RunCodehubTemplateJobRequestXLanguage) MarshalJSON() ([]byte, error)
func (*RunCodehubTemplateJobRequestXLanguage) UnmarshalJSON ¶
func (c *RunCodehubTemplateJobRequestXLanguage) UnmarshalJSON(b []byte) error
type RunCodehubTemplateJobRequestXLanguageEnum ¶
type RunCodehubTemplateJobRequestXLanguageEnum struct { ZH_CN RunCodehubTemplateJobRequestXLanguage EN_US RunCodehubTemplateJobRequestXLanguage }
func GetRunCodehubTemplateJobRequestXLanguageEnum ¶
func GetRunCodehubTemplateJobRequestXLanguageEnum() RunCodehubTemplateJobRequestXLanguageEnum
type RunCodehubTemplateJobResponse ¶
type RunCodehubTemplateJobResponse struct { // 任务id JobId *string `json:"job_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunCodehubTemplateJobResponse) String ¶
func (o RunCodehubTemplateJobResponse) String() string
type RunDevstarTemplateJobRequest ¶
type RunDevstarTemplateJobRequest struct { XLanguage *RunDevstarTemplateJobRequestXLanguage `json:"X-Language,omitempty"` Body *TemplateJobInfo `json:"body,omitempty"` }
Request Object
func (RunDevstarTemplateJobRequest) String ¶
func (o RunDevstarTemplateJobRequest) String() string
type RunDevstarTemplateJobRequestXLanguage ¶
type RunDevstarTemplateJobRequestXLanguage struct {
// contains filtered or unexported fields
}
func (RunDevstarTemplateJobRequestXLanguage) MarshalJSON ¶
func (c RunDevstarTemplateJobRequestXLanguage) MarshalJSON() ([]byte, error)
func (*RunDevstarTemplateJobRequestXLanguage) UnmarshalJSON ¶
func (c *RunDevstarTemplateJobRequestXLanguage) UnmarshalJSON(b []byte) error
type RunDevstarTemplateJobRequestXLanguageEnum ¶
type RunDevstarTemplateJobRequestXLanguageEnum struct { ZH_CN RunDevstarTemplateJobRequestXLanguage EN_US RunDevstarTemplateJobRequestXLanguage }
func GetRunDevstarTemplateJobRequestXLanguageEnum ¶
func GetRunDevstarTemplateJobRequestXLanguageEnum() RunDevstarTemplateJobRequestXLanguageEnum
type RunDevstarTemplateJobResponse ¶
type RunDevstarTemplateJobResponse struct { // 任务id JobId *string `json:"job_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (RunDevstarTemplateJobResponse) String ¶
func (o RunDevstarTemplateJobResponse) String() string
type ShowJobDetailRequest ¶
type ShowJobDetailRequest struct { XLanguage *ShowJobDetailRequestXLanguage `json:"X-Language,omitempty"` JobId string `json:"job_id"` }
Request Object
func (ShowJobDetailRequest) String ¶
func (o ShowJobDetailRequest) String() string
type ShowJobDetailRequestXLanguage ¶
type ShowJobDetailRequestXLanguage struct {
// contains filtered or unexported fields
}
func (ShowJobDetailRequestXLanguage) MarshalJSON ¶
func (c ShowJobDetailRequestXLanguage) MarshalJSON() ([]byte, error)
func (*ShowJobDetailRequestXLanguage) UnmarshalJSON ¶
func (c *ShowJobDetailRequestXLanguage) UnmarshalJSON(b []byte) error
type ShowJobDetailRequestXLanguageEnum ¶
type ShowJobDetailRequestXLanguageEnum struct { ZH_CN ShowJobDetailRequestXLanguage EN_US ShowJobDetailRequestXLanguage }
func GetShowJobDetailRequestXLanguageEnum ¶
func GetShowJobDetailRequestXLanguageEnum() ShowJobDetailRequestXLanguageEnum
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"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowJobDetailResponse) String ¶
func (o ShowJobDetailResponse) String() string
type ShowTemplateDetailRequest ¶
type ShowTemplateDetailRequest struct { XLanguage *ShowTemplateDetailRequestXLanguage `json:"X-Language,omitempty"` TemplateId string `json:"template_id"` }
Request Object
func (ShowTemplateDetailRequest) String ¶
func (o ShowTemplateDetailRequest) String() string
type ShowTemplateDetailRequestXLanguage ¶
type ShowTemplateDetailRequestXLanguage struct {
// contains filtered or unexported fields
}
func (ShowTemplateDetailRequestXLanguage) MarshalJSON ¶
func (c ShowTemplateDetailRequestXLanguage) MarshalJSON() ([]byte, error)
func (*ShowTemplateDetailRequestXLanguage) UnmarshalJSON ¶
func (c *ShowTemplateDetailRequestXLanguage) UnmarshalJSON(b []byte) error
type ShowTemplateDetailRequestXLanguageEnum ¶
type ShowTemplateDetailRequestXLanguageEnum struct { ZH_CN ShowTemplateDetailRequestXLanguage EN_US ShowTemplateDetailRequestXLanguage }
func GetShowTemplateDetailRequestXLanguageEnum ¶
func GetShowTemplateDetailRequestXLanguageEnum() ShowTemplateDetailRequestXLanguageEnum
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"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowTemplateDetailResponse) String ¶
func (o ShowTemplateDetailResponse) String() string
type ShowTemplateFileRequest ¶
type ShowTemplateFileRequest struct { XLanguage *ShowTemplateFileRequestXLanguage `json:"X-Language,omitempty"` TemplateId string `json:"template_id"` FilePath string `json:"file_path"` Type *ShowTemplateFileRequestType `json:"type,omitempty"` }
Request Object
func (ShowTemplateFileRequest) String ¶
func (o ShowTemplateFileRequest) String() string
type ShowTemplateFileRequestType ¶
type ShowTemplateFileRequestType struct {
// contains filtered or unexported fields
}
func (ShowTemplateFileRequestType) MarshalJSON ¶
func (c ShowTemplateFileRequestType) MarshalJSON() ([]byte, error)
func (*ShowTemplateFileRequestType) UnmarshalJSON ¶
func (c *ShowTemplateFileRequestType) UnmarshalJSON(b []byte) error
type ShowTemplateFileRequestTypeEnum ¶
type ShowTemplateFileRequestTypeEnum struct { SOURCE_PACKAGE ShowTemplateFileRequestType INTRODUCTION ShowTemplateFileRequestType }
func GetShowTemplateFileRequestTypeEnum ¶
func GetShowTemplateFileRequestTypeEnum() ShowTemplateFileRequestTypeEnum
type ShowTemplateFileRequestXLanguage ¶
type ShowTemplateFileRequestXLanguage struct {
// contains filtered or unexported fields
}
func (ShowTemplateFileRequestXLanguage) MarshalJSON ¶
func (c ShowTemplateFileRequestXLanguage) MarshalJSON() ([]byte, error)
func (*ShowTemplateFileRequestXLanguage) UnmarshalJSON ¶
func (c *ShowTemplateFileRequestXLanguage) UnmarshalJSON(b []byte) error
type ShowTemplateFileRequestXLanguageEnum ¶
type ShowTemplateFileRequestXLanguageEnum struct { ZH_CN ShowTemplateFileRequestXLanguage EN_US ShowTemplateFileRequestXLanguage }
func GetShowTemplateFileRequestXLanguageEnum ¶
func GetShowTemplateFileRequestXLanguageEnum() ShowTemplateFileRequestXLanguageEnum
type ShowTemplateFileResponse ¶
type ShowTemplateFileResponse struct { // 文件内容 Content *string `json:"content,omitempty"` // 内容编码格式(固定base64) Encoding *string `json:"encoding,omitempty"` // 文件名 FileName *string `json:"file_name,omitempty"` // 文件相对路径 FilePath *string `json:"file_path,omitempty"` // 文件类型 FileType *string `json:"file_type,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowTemplateFileResponse) String ¶
func (o ShowTemplateFileResponse) String() string
type ShowTemplateV3Request ¶
type ShowTemplateV3Request struct { XLanguage *ShowTemplateV3RequestXLanguage `json:"X-Language,omitempty"` TemplateId string `json:"template_id"` }
Request Object
func (ShowTemplateV3Request) String ¶
func (o ShowTemplateV3Request) String() string
type ShowTemplateV3RequestXLanguage ¶
type ShowTemplateV3RequestXLanguage struct {
// contains filtered or unexported fields
}
func (ShowTemplateV3RequestXLanguage) MarshalJSON ¶
func (c ShowTemplateV3RequestXLanguage) MarshalJSON() ([]byte, error)
func (*ShowTemplateV3RequestXLanguage) UnmarshalJSON ¶
func (c *ShowTemplateV3RequestXLanguage) UnmarshalJSON(b []byte) error
type ShowTemplateV3RequestXLanguageEnum ¶
type ShowTemplateV3RequestXLanguageEnum struct { ZH_CN ShowTemplateV3RequestXLanguage EN_US ShowTemplateV3RequestXLanguage }
func GetShowTemplateV3RequestXLanguageEnum ¶
func GetShowTemplateV3RequestXLanguageEnum() ShowTemplateV3RequestXLanguageEnum
type ShowTemplateV3Response ¶
type ShowTemplateV3Response struct { // 模板id Id *string `json:"id,omitempty"` // 模板名称 Title *string `json:"title,omitempty"` // 模板描述 Description *string `json:"description,omitempty"` // 模板创建者id CreatorId *string `json:"creator_id,omitempty"` // 模板创建者,有别名返回别名 Creator *string `json:"creator,omitempty"` // 模板创建者,有别名返回别名 Nickname *string `json:"nickname,omitempty"` // 模板评分(点赞数) Score *int32 `json:"score,omitempty"` // 模板状态(0:审核中 1: 已上架 2: 未上架(已下架)3: 未上架(合规检查不通过)4:未上架(待上架)5:已删除) Status *int32 `json:"status,omitempty"` // 访问量 ViewCount *int32 `json:"view_count,omitempty"` // 引用量 UsageCount *int32 `json:"usage_count,omitempty"` // 创建时间 CreatedAt *string `json:"created_at,omitempty"` // 更新时间 UpdatedAt *string `json:"updated_at,omitempty"` // 上架时间 PublishedAt *string `json:"published_at,omitempty"` // 点赞状态(1:点赞,0:未点赞) FavoriteState *int32 `json:"favorite_state,omitempty"` // 模板相关联的所有维护人账号名称 Maintainers *[]string `json:"maintainers,omitempty"` // 平台来源(0:codelabs、1:devstar) PlatformSource *int32 `json:"platform_source,omitempty"` // 模板自定义参数列表 Properties *interface{} `json:"properties,omitempty"` // dependency信息 Dependencies *[]interface{} `json:"dependencies,omitempty"` // dependency类型('0':非分组的依赖类型,'1':分组依赖类型) DependencyType *string `json:"dependency_type,omitempty"` // 代码存储位置(0:codehub;1:Obs;2:efs;3:网络公开代码仓;) Store *int32 `json:"store,omitempty"` // 获取代码模版所需的信息 StoreInfo *string `json:"store_info,omitempty"` // 模板文件解压缩之后的大小(单位:KB) FileSize *int32 `json:"file_size,omitempty"` // 部署信息 Deployment *interface{} `json:"deployment,omitempty"` // 动、静态代码模板标识(0:动态模板codetemplate,1:静态模板codesample) IsStatic *int32 `json:"is_static,omitempty"` // 模板关联更新态Id UpdateId *string `json:"update_id,omitempty"` // 模板标签 Topic *[]TopicCategory `json:"topic,omitempty"` // 模板标签 Tags *[]TagInfo `json:"tags,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowTemplateV3Response) String ¶
func (o ShowTemplateV3Response) String() string
type TagInfo ¶
type TemplateInfo ¶
type TemplateInfo struct { // 模板id Id *string `json:"id,omitempty"` // 模板名 Title *string `json:"title,omitempty"` // 模板描述 Description *string `json:"description,omitempty"` // 模板关联的所有云服务(产品短名) Productshorts *[]string `json:"productshorts,omitempty"` // 模板关联的云产品 Products *[]TemplateProductExt `json:"products,omitempty"` // 模板标签 Topic *[]TopicCategory `json:"topic,omitempty"` // 模板创建者id CreatorId *string `json:"creator_id,omitempty"` // 模板创建者,有别名返回别名 Creator *string `json:"creator,omitempty"` // 模板创建者,有别名返回别名 Nickname *string `json:"nickname,omitempty"` // 模板评分(点赞数) Score *int32 `json:"score,omitempty"` // 模板标签(new、hot等) Label *string `json:"label,omitempty"` // 代码存储位置 Store *int32 `json:"store,omitempty"` // 获取代码模版所需的信息 StoreInfo *string `json:"store_info,omitempty"` // 模板状态(0:审核中 1: 已上架 2: 未上架(已下架)3: 未上架(合规检查不通过)4:未上架(待上架)5:已删除) Status *int32 `json:"status,omitempty"` // 访问量 ViewCount *int32 `json:"view_count,omitempty"` // 引用量 UsageCount *int32 `json:"usage_count,omitempty"` // 创建时间 CreatedAt *string `json:"created_at,omitempty"` // 更新时间 UpdatedAt *string `json:"updated_at,omitempty"` // 模板上架时间 PublishedAt *string `json:"published_at,omitempty"` // 点赞状态(1:点赞,0:未点赞) FavoriteState *int32 `json:"favorite_state,omitempty"` // 模板标签 Tags *[]TagInfo `json:"tags,omitempty"` // 模板类型(0:doc、1:code、2:pipeline、3:devops四种) Type *int32 `json:"type,omitempty"` // 动、静态代码模板标识(0:动态模板codetemplate,1:静态模板codesample) IsStatic *int32 `json:"is_static,omitempty"` // 模板相关联的所有维护人账号名称 Maintainers *[]string `json:"maintainers,omitempty"` PipelineTemplate *PipelineTemplateInfo `json:"pipeline_template,omitempty"` // 平台来源(0:codelabs、1:devstar) PlatformSource *int32 `json:"platform_source,omitempty"` // 相关文档,示例,帖子 References *[]Reference `json:"references,omitempty"` // 模板自定义参数列表 Properties *interface{} `json:"properties,omitempty"` // dependency信息 Dependencies *[]interface{} `json:"dependencies,omitempty"` // dependency类型 DependencyType *string `json:"dependency_type,omitempty"` // 关联论坛板块id ForumId *int32 `json:"forum_id,omitempty"` // 模板文件解压缩之后的大小(单位:KB) FileSize *int32 `json:"file_size,omitempty"` // 部署信息 Deployment *interface{} `json:"deployment,omitempty"` // 模板关联更新态Id UpdateId *string `json:"update_id,omitempty"` // 是否支持使用CloudIDE运行源码 IsSupportCloudide *bool `json:"is_support_cloudide,omitempty"` }
func (TemplateInfo) String ¶
func (o TemplateInfo) String() string
type TemplateJobInfo ¶
type TemplateJobInfo struct { // 应用名称 ApplicationName string `json:"application_name"` // 0 - 将生成的应用代码存储于 repo_info 指定的 CodeHub 仓库中。1 - 将生成的应用代码存储到华为云,任务创建人可以通过 ExportApplicationCode 下载代码压缩包 RepoType TemplateJobInfoRepoType `json:"repo_type"` // Devstar 模板 ID,通过 [模板列表查询接口](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=DevStar&api=ListPublishedTemplates) 获取相应模板 ID TemplateId string `json:"template_id"` // 模板的动态参数, 可以从 [模板详情查询接口](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=DevStar&api=ShowTemplateDetail) 获取 Properties map[string]string `json:"properties,omitempty"` RepoInfo *RepositoryInfo `json:"repo_info,omitempty"` }
func (TemplateJobInfo) String ¶
func (o TemplateJobInfo) String() string
type TemplateJobInfoRepoType ¶
type TemplateJobInfoRepoType struct {
// contains filtered or unexported fields
}
func (TemplateJobInfoRepoType) MarshalJSON ¶
func (c TemplateJobInfoRepoType) MarshalJSON() ([]byte, error)
func (*TemplateJobInfoRepoType) UnmarshalJSON ¶
func (c *TemplateJobInfoRepoType) UnmarshalJSON(b []byte) error
type TemplateJobInfoRepoTypeEnum ¶
type TemplateJobInfoRepoTypeEnum struct { E_0 TemplateJobInfoRepoType E_1 TemplateJobInfoRepoType }
func GetTemplateJobInfoRepoTypeEnum ¶
func GetTemplateJobInfoRepoTypeEnum() TemplateJobInfoRepoTypeEnum
type TemplateProductExt ¶
type TemplateProductExt struct { // 产品id Id *string `json:"id,omitempty"` // 产品短名 Productshort *string `json:"productshort,omitempty"` // 产品名 ProductName *string `json:"product_name,omitempty"` // 首页链接 HomeLink *string `json:"home_link,omitempty"` // api调试链接 ApiLink *string `json:"api_link,omitempty"` // sdk下载链接 SdkLink *string `json:"sdk_link,omitempty"` // 文档链接 DocLink *string `json:"doc_link,omitempty"` // logo链接 LogoLink *string `json:"logo_link,omitempty"` }
func (TemplateProductExt) String ¶
func (o TemplateProductExt) String() string
type TemplateQueryV2 ¶
type TemplateQueryV2 struct { // 模板分类数组 Category *[]string `json:"category,omitempty"` // 搜索关键字,支持按名称和描述搜索,默认null Keyword *string `json:"keyword,omitempty"` // 排序字段和排序顺序指定. 比如: desc(created_at),desc(usage_count) SortBy *string `json:"sort_by,omitempty"` // 标签(all,new,hot,推荐recommend) Label *string `json:"label,omitempty"` // 是否查询用户自己创建的模板,默认查所有模板 MyTemplates *bool `json:"my_templates,omitempty"` // 查所有模板时只处理上架的;查用户模板,需支持按状态查询,状态:0审核中,1上架,2下架,不传表示查所有的(默认) Status *int32 `json:"status,omitempty"` // 模板状态数组 StatusArray *[]int32 `json:"status_array,omitempty"` // 模板关联的云产品(产品短名)列表 Productshorts *[]string `json:"productshorts,omitempty"` // 偏移量, 表示从此偏移量开始查询, offset大于等于0 Offset *int32 `json:"offset,omitempty"` // 每页的模板条数 Limit *int32 `json:"limit,omitempty"` // 模板关联的自定义标签列表 TagIds *[]string `json:"tag_ids,omitempty"` // 模板类型(0:doc、1:code、2:pipeline、3:devops四种) Types *[]int32 `json:"types,omitempty"` // 动、静态代码模板标识(0:动态模板codetemplate,1:静态模板codesample) IsStatic *int32 `json:"is_static,omitempty"` // 平台来源(0:codelabs、1:devstar) PlatformSource *[]int32 `json:"platform_source,omitempty"` // 模板关联的标签名称列表 TagNames *[]string `json:"tag_names,omitempty"` }
func (TemplateQueryV2) String ¶
func (o TemplateQueryV2) 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
type TemplateViewHistory ¶
type TemplateViewHistory struct { // 模板的id TemplateId string `json:"template_id"` // 模板的名称 TemplateTitle string `json:"template_title"` }
func (TemplateViewHistory) String ¶
func (o TemplateViewHistory) String() string
type TemplatesInfo ¶
type TemplatesInfo struct { // 模板ID列表 TemplateIds []string `json:"template_ids"` // 平台来源(0:codelabs、1:devstar) PlatformSource int32 `json:"platform_source"` }
func (TemplatesInfo) String ¶
func (o TemplatesInfo) String() string
type TopicCategory ¶
type TopicCategory struct { // topic的id TopicId *string `json:"topic_id,omitempty"` // topic的名称 TopicName *string `json:"topic_name,omitempty"` // topic对应的类别的id CategoryId *string `json:"category_id,omitempty"` // topic对应的类别的名称 CategoryName *string `json:"category_name,omitempty"` }
func (TopicCategory) String ¶
func (o TopicCategory) String() string
Source Files ¶
- model_codehub_job_info.go
- model_create_template_view_histories_request.go
- model_create_template_view_histories_response.go
- model_download_application_code_request.go
- model_download_application_code_response.go
- model_list_published_templates_request.go
- model_list_published_templates_response.go
- model_list_template_view_histories_request.go
- model_list_template_view_histories_response.go
- model_list_templates_v2_request.go
- model_list_templates_v2_response.go
- model_pipeline_template_info.go
- model_properties_info.go
- model_reference.go
- model_repository_info.go
- model_run_codehub_template_job_request.go
- model_run_codehub_template_job_response.go
- model_run_devstar_template_job_request.go
- model_run_devstar_template_job_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_show_template_file_request.go
- model_show_template_file_response.go
- model_show_template_v3_request.go
- model_show_template_v3_response.go
- model_tag_info.go
- model_template_info.go
- model_template_job_info.go
- model_template_product_ext.go
- model_template_query_v2.go
- model_template_simple_info.go
- model_template_view_history.go
- model_templates_info.go
- model_topic_category.go
Click to show internal directories.
Click to hide internal directories.