model

package
v0.0.20-beta Latest Latest
Warning

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

Go to latest
Published: Nov 2, 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 AccessPassword

type AccessPassword struct {
	// 授权名称。
	Name string `json:"name"`
	// 仓库用户名。
	User string `json:"user"`
	// 仓库密码。
	Password string `json:"password"`
}

func (AccessPassword) String

func (o AccessPassword) String() string

type AccessToken

type AccessToken struct {
	// 授权名称。
	Name string `json:"name"`
	// git仓库设置中创建的私有token。
	Token string `json:"token"`
	// git仓库的主机地址,如https://192.168.1.1:8080/gitlab,默认为官方主机。
	Host *string `json:"host,omitempty"`
}

func (AccessToken) String

func (o AccessToken) String() string

type ApplicationConfigModify

type ApplicationConfigModify struct {
	// 环境ID。
	EnvironmentId string                                `json:"environment_id"`
	Configuration *ApplicationConfigModifyConfiguration `json:"configuration"`
}

func (ApplicationConfigModify) String

func (o ApplicationConfigModify) String() string

type ApplicationConfigModifyConfiguration

type ApplicationConfigModifyConfiguration struct {
	// 应用环境变量。
	Env []ApplicationConfigModifyConfigurationEnv `json:"env"`
}

应用配置信息。

func (ApplicationConfigModifyConfiguration) String

type ApplicationConfigModifyConfigurationEnv

type ApplicationConfigModifyConfigurationEnv struct {
	// 环境变量名称。
	Name string `json:"name"`
	// 环境变量取值。
	Value string `json:"value"`
}

func (ApplicationConfigModifyConfigurationEnv) String

type ApplicationCreate

type ApplicationCreate struct {
	// 应用名称。
	Name string `json:"name"`
	// 应用描述。
	Description *string `json:"description,omitempty"`
	// 企业项目ID。默认值为0。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

func (ApplicationCreate) String

func (o ApplicationCreate) String() string

type ApplicationListConfigConfiguration

type ApplicationListConfigConfiguration struct {
	// 应用组件环境变量。
	Env *[]ApplicationListConfigConfigurationEnv `json:"env,omitempty"`
}

应用配置信息。

func (ApplicationListConfigConfiguration) String

type ApplicationListConfigConfiguration1

type ApplicationListConfigConfiguration1 struct {
	// 应用ID。
	ApplicationId *string `json:"application_id,omitempty"`
	// 环境ID。
	EnvironmentId *string                             `json:"environment_id,omitempty"`
	Configuration *ApplicationListConfigConfiguration `json:"configuration,omitempty"`
}

func (ApplicationListConfigConfiguration1) String

type ApplicationListConfigConfigurationEnv

type ApplicationListConfigConfigurationEnv struct {
	// 环境变量名称。
	Name *string `json:"name,omitempty"`
	// 环境变量取值。
	Value *string `json:"value,omitempty"`
}

func (ApplicationListConfigConfigurationEnv) String

type ApplicationModify

type ApplicationModify struct {
	// 应用名称。
	Name *string `json:"name,omitempty"`
	// 应用描述。
	Description *string `json:"description,omitempty"`
}

func (ApplicationModify) String

func (o ApplicationModify) String() string

type ApplicationView

type ApplicationView struct {
	// 组件个数。
	ComponentCount *int32 `json:"component_count,omitempty"`
	// 应用ID。
	Id *string `json:"id,omitempty"`
	// 应用名称。
	Name *string `json:"name,omitempty"`
	// 应用描述。
	Description *string `json:"description,omitempty"`
	// 创建人。
	Creator *string `json:"creator,omitempty"`
	// 项目ID。
	ProjectId *string `json:"project_id,omitempty"`
	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	// 创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`
	// 修改时间。
	UpdateTime *int64 `json:"update_time,omitempty"`
}

func (ApplicationView) String

func (o ApplicationView) String() string

type AuthorizationVo

type AuthorizationVo struct {
	// 授权名称。
	Name string `json:"name"`
	// 仓库类型。 取值范围:github、gitlab、gitee、bitbucket、devcloud。
	RepoType string `json:"repo_type"`
	// 仓库地址。
	RepoHost string `json:"repo_host"`
	// 仓库主页。
	RepoHome string `json:"repo_home"`
	// 仓库用户名。
	RepoUser string `json:"repo_user"`
	// 头像。
	Avartar string `json:"avartar"`
	// 授权方式。
	TokenType string `json:"token_type"`
	// 创建时间。
	CreateTime int64 `json:"create_time"`
	// 修改时间。
	UpdateTime int64 `json:"update_time"`
	// 状态。
	Status int32 `json:"status"`
}

授权结构体。

func (AuthorizationVo) String

func (o AuthorizationVo) String() string

type Build

type Build struct {
	Parameters *BuildInfoParameters `json:"parameters,omitempty"`
}

构建工程。

func (Build) String

func (o Build) String() string

type BuildInfo

type BuildInfo struct {
	// 构建ID,查看构建列表获取。
	Id         *string              `json:"id,omitempty"`
	Parameters *BuildInfoParameters `json:"parameters,omitempty"`
}

构建工程。

func (BuildInfo) String

func (o BuildInfo) String() string

type BuildInfoParameters

type BuildInfoParameters struct {
	// 编译命令。默认:  1、根目录存在build.sh:./build.sh  2、根据运行系统,示例如下:  Java和Tomcat:mvn clean package  Nodejs: npm build
	BuildCmd *string `json:"build_cmd,omitempty"`
	// dockerfile地址。默认是根目录./。
	DockerfilePath *string `json:"dockerfile_path,omitempty"`
	// 构建归档组织,默认cas_{project_id}。
	ArtifactNamespace *string `json:"artifact_namespace,omitempty"`
}

构建任务的环境变量。

func (BuildInfoParameters) String

func (o BuildInfoParameters) String() string

type ChangeApplicationConfigurationRequest

type ChangeApplicationConfigurationRequest struct {
	ApplicationId string                   `json:"application_id"`
	Body          *ApplicationConfigModify `json:"body,omitempty"`
}

Request Object

func (ChangeApplicationConfigurationRequest) String

type ChangeApplicationConfigurationResponse

type ChangeApplicationConfigurationResponse struct {
	// 应用ID。
	ApplicationId *string `json:"application_id,omitempty"`
	// 环境ID。
	EnvironmentId *string                             `json:"environment_id,omitempty"`
	Configuration *ApplicationListConfigConfiguration `json:"configuration,omitempty"`
}

Response Object

func (ChangeApplicationConfigurationResponse) String

type ChangeApplicationRequest

type ChangeApplicationRequest struct {
	ApplicationId string             `json:"application_id"`
	Body          *ApplicationModify `json:"body,omitempty"`
}

Request Object

func (ChangeApplicationRequest) String

func (o ChangeApplicationRequest) String() string

type ChangeApplicationResponse

type ChangeApplicationResponse struct {
	// 应用ID。
	Id *string `json:"id,omitempty"`
	// 应用名称。
	Name *string `json:"name,omitempty"`
	// 应用描述。
	Description *string `json:"description,omitempty"`
	// 创建人。
	Creator *string `json:"creator,omitempty"`
	// 项目ID。
	ProjectId *string `json:"project_id,omitempty"`
	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	// 创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`
	// 修改时间。
	UpdateTime *int64 `json:"update_time,omitempty"`
}

Response Object

func (ChangeApplicationResponse) String

func (o ChangeApplicationResponse) String() string

type ChangeComponentRequest

type ChangeComponentRequest struct {
	ApplicationId string           `json:"application_id"`
	ComponentId   string           `json:"component_id"`
	Body          *ComponentModify `json:"body,omitempty"`
}

Request Object

func (ChangeComponentRequest) String

func (o ChangeComponentRequest) String() string

type ChangeComponentResponse

type ChangeComponentResponse struct {
	// 应用组件ID。
	Id *string `json:"id,omitempty"`
	// 应用组件名称
	Name *string `json:"name,omitempty"`
	// 取值0或1。  0:表示正常状态。  1:表示正在删除。
	Status      *int32                `json:"status,omitempty"`
	Runtime     *RuntimeType          `json:"runtime,omitempty"`
	Category    *ComponentCategory    `json:"category,omitempty"`
	SubCategory *ComponentSubCategory `json:"sub_category,omitempty"`
	// 描述。
	Description *string `json:"description,omitempty"`
	// 项目ID。
	ProjectId *string `json:"project_id,omitempty"`
	// 应用ID。
	ApplicationId *string       `json:"application_id,omitempty"`
	Source        *SourceObject `json:"source,omitempty"`
	Build         *BuildInfo    `json:"build,omitempty"`
	// 流水线Id列表,最多10个。
	PipelineIds *[]string `json:"pipeline_ids,omitempty"`
	// 创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`
	// 修改时间。
	UpdateTime *int64 `json:"update_time,omitempty"`
}

Response Object

func (ChangeComponentResponse) String

func (o ChangeComponentResponse) String() string

type ChangeEnvironmentRequest

type ChangeEnvironmentRequest struct {
	EnvironmentId string             `json:"environment_id"`
	Body          *EnvironmentModify `json:"body,omitempty"`
}

Request Object

func (ChangeEnvironmentRequest) String

func (o ChangeEnvironmentRequest) String() string

type ChangeEnvironmentResponse

type ChangeEnvironmentResponse struct {
	// 环境ID。
	Id *string `json:"id,omitempty"`
	// 环境名称。
	Name *string `json:"name,omitempty"`
	// 环境别名。
	Alias *string `json:"alias,omitempty"`
	// 环境描述。
	Description *string `json:"description,omitempty"`
	// 项目ID。
	ProjectId *string `json:"project_id,omitempty"`
	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	// 收费模式。
	ChargeMode *string `json:"charge_mode,omitempty"`
	// 虚拟私有云ID。
	VpcId *string `json:"vpc_id,omitempty"`
	// 基础资源。
	BaseResources *[]Resource `json:"base_resources,omitempty"`
	// 可选资源。
	OptionalResources *[]Resource `json:"optional_resources,omitempty"`
	// 创建人。
	Creator *string `json:"creator,omitempty"`
	// 创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`
	// 修改时间。
	UpdateTime *int64 `json:"update_time,omitempty"`
}

Response Object

func (ChangeEnvironmentResponse) String

func (o ChangeEnvironmentResponse) String() string

type ChangeInstanceRequest

type ChangeInstanceRequest struct {
	ApplicationId string          `json:"application_id"`
	ComponentId   string          `json:"component_id"`
	InstanceId    string          `json:"instance_id"`
	Body          *InstanceModify `json:"body,omitempty"`
}

Request Object

func (ChangeInstanceRequest) String

func (o ChangeInstanceRequest) String() string

type ChangeInstanceResponse

type ChangeInstanceResponse struct {
	// Job ID。
	JobId *string `json:"job_id,omitempty"`
}

Response Object

func (ChangeInstanceResponse) String

func (o ChangeInstanceResponse) String() string

type ChangeResourceInEnvironmentRequest

type ChangeResourceInEnvironmentRequest struct {
	EnvironmentId string                     `json:"environment_id"`
	Body          *EnvironmentResourceModify `json:"body,omitempty"`
}

Request Object

func (ChangeResourceInEnvironmentRequest) String

type ChangeResourceInEnvironmentResponse

type ChangeResourceInEnvironmentResponse struct {
	// 环境ID。
	Id *string `json:"id,omitempty"`
	// 环境名称。
	Name *string `json:"name,omitempty"`
	// 环境别名。
	Alias *string `json:"alias,omitempty"`
	// 环境描述。
	Description *string `json:"description,omitempty"`
	// 项目ID。
	ProjectId *string `json:"project_id,omitempty"`
	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	// 收费模式。
	ChargeMode *string `json:"charge_mode,omitempty"`
	// 虚拟私有云ID。
	VpcId *string `json:"vpc_id,omitempty"`
	// 基础资源。
	BaseResources *[]Resource `json:"base_resources,omitempty"`
	// 可选资源。
	OptionalResources *[]Resource `json:"optional_resources,omitempty"`
	// 创建人。
	Creator *string `json:"creator,omitempty"`
	// 创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`
	// 修改时间。
	UpdateTime *int64 `json:"update_time,omitempty"`
}

Response Object

func (ChangeResourceInEnvironmentResponse) String

type ChargeMode

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

收费模式,支持provided、on_demanded、monthly三种模式。 默认provided,表示使用用户提供的已有资源,无需收费。

func (ChargeMode) MarshalJSON

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

func (*ChargeMode) UnmarshalJSON

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

type ChargeModeEnum

type ChargeModeEnum struct {
	PROVIDED    ChargeMode
	ON_DEMANDED ChargeMode
	MONTHLY     ChargeMode
}

func GetChargeModeEnum

func GetChargeModeEnum() ChargeModeEnum

type CommitsCommits

type CommitsCommits struct {
	// 提交记录sha值。
	Sha string `json:"sha"`
	// 提交记录描述。
	Message string `json:"message"`
	// 合入时间。
	AuthoredDate string `json:"authored_date"`
}

func (CommitsCommits) String

func (o CommitsCommits) String() string

type ComponentCategory

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

应用组件类型包括:Webapp、MicroService、Common。

func (ComponentCategory) MarshalJSON

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

func (*ComponentCategory) UnmarshalJSON

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

type ComponentCategoryEnum

type ComponentCategoryEnum struct {
	WEBAPP        ComponentCategory
	MICRO_SERVICE ComponentCategory
	COMMON        ComponentCategory
}

func GetComponentCategoryEnum

func GetComponentCategoryEnum() ComponentCategoryEnum

type ComponentCreate

type ComponentCreate struct {
	// 应用组件名称。
	Name        string                `json:"name"`
	Runtime     *RuntimeType          `json:"runtime"`
	Category    *ComponentCategory    `json:"category"`
	SubCategory *ComponentSubCategory `json:"sub_category,omitempty"`
	// 描述。
	Description *string       `json:"description,omitempty"`
	Source      *SourceObject `json:"source,omitempty"`
	Build       *Build        `json:"build,omitempty"`
}

func (ComponentCreate) String

func (o ComponentCreate) String() string

type ComponentModify

type ComponentModify struct {
	// 应用组件名称。
	Name *string `json:"name,omitempty"`
	// 描述。
	Description *string       `json:"description,omitempty"`
	Source      *SourceObject `json:"source,omitempty"`
	Build       *Build        `json:"build,omitempty"`
}

func (ComponentModify) String

func (o ComponentModify) String() string

type ComponentSubCategory

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

应用组件子类型。 Webapp的子类型有Web、Magento、Wordpress。 MicroService的子类型有Java Chassis、Go Chassis、Mesher、SpringCloud。 Common的子类型可以为空。

func (ComponentSubCategory) MarshalJSON

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

func (*ComponentSubCategory) UnmarshalJSON

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

type ComponentSubCategoryEnum

type ComponentSubCategoryEnum struct {
	WEB          ComponentSubCategory
	MAGENTO      ComponentSubCategory
	WORDPRESS    ComponentSubCategory
	SPRING_CLOUD ComponentSubCategory
	JAVA_CHASSIS ComponentSubCategory
	GO_CHASSIS   ComponentSubCategory
	MESHER       ComponentSubCategory
}

func GetComponentSubCategoryEnum

func GetComponentSubCategoryEnum() ComponentSubCategoryEnum

type ComponentView

type ComponentView struct {
	// 组件ID。
	Id *string `json:"id,omitempty"`
	// 应用ID。
	ApplicationId *string `json:"application_id,omitempty"`
	// 应用组件名称。
	Name        *string               `json:"name,omitempty"`
	Runtime     *RuntimeType          `json:"runtime,omitempty"`
	Category    *ComponentCategory    `json:"category,omitempty"`
	SubCategory *ComponentSubCategory `json:"sub_category,omitempty"`
	// 组件描述。
	Description *string `json:"description,omitempty"`
	// 取值0或1。  0:表示正常状态。  1:表示正在删除。
	Status *int32        `json:"status,omitempty"`
	Source *SourceObject `json:"source,omitempty"`
	// 创建人。
	Creator *string `json:"creator,omitempty"`
	// 创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`
	// 修改时间。
	UpdateTime *int64 `json:"update_time,omitempty"`
}

func (ComponentView) String

func (o ComponentView) String() string

type CreateApplicationRequest

type CreateApplicationRequest struct {
	Body *ApplicationCreate `json:"body,omitempty"`
}

Request Object

func (CreateApplicationRequest) String

func (o CreateApplicationRequest) String() string

type CreateApplicationResponse

type CreateApplicationResponse struct {
	// 应用ID。
	Id *string `json:"id,omitempty"`
	// 应用名称。
	Name *string `json:"name,omitempty"`
	// 应用描述。
	Description *string `json:"description,omitempty"`
	// 创建人。
	Creator *string `json:"creator,omitempty"`
	// 项目ID。
	ProjectId *string `json:"project_id,omitempty"`
	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	// 创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`
	// 修改时间。
	UpdateTime *int64 `json:"update_time,omitempty"`
}

Response Object

func (CreateApplicationResponse) String

func (o CreateApplicationResponse) String() string

type CreateComponentRequest

type CreateComponentRequest struct {
	ApplicationId string           `json:"application_id"`
	Body          *ComponentCreate `json:"body,omitempty"`
}

Request Object

func (CreateComponentRequest) String

func (o CreateComponentRequest) String() string

type CreateComponentResponse

type CreateComponentResponse struct {
	// 应用组件ID。
	Id *string `json:"id,omitempty"`
	// 应用组件名称
	Name *string `json:"name,omitempty"`
	// 取值0或1。  0:表示正常状态。  1:表示正在删除。
	Status      *int32                `json:"status,omitempty"`
	Runtime     *RuntimeType          `json:"runtime,omitempty"`
	Category    *ComponentCategory    `json:"category,omitempty"`
	SubCategory *ComponentSubCategory `json:"sub_category,omitempty"`
	// 描述。
	Description *string `json:"description,omitempty"`
	// 项目ID。
	ProjectId *string `json:"project_id,omitempty"`
	// 应用ID。
	ApplicationId *string       `json:"application_id,omitempty"`
	Source        *SourceObject `json:"source,omitempty"`
	Build         *BuildInfo    `json:"build,omitempty"`
	// 流水线Id列表,最多10个。
	PipelineIds *[]string `json:"pipeline_ids,omitempty"`
	// 创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`
	// 修改时间。
	UpdateTime *int64 `json:"update_time,omitempty"`
}

Response Object

func (CreateComponentResponse) String

func (o CreateComponentResponse) String() string

type CreateEnvironmentRequest

type CreateEnvironmentRequest struct {
	Body *EnvironmentCreate `json:"body,omitempty"`
}

Request Object

func (CreateEnvironmentRequest) String

func (o CreateEnvironmentRequest) String() string

type CreateEnvironmentResponse

type CreateEnvironmentResponse struct {
	// 环境ID。
	Id *string `json:"id,omitempty"`
	// 环境名称。
	Name *string `json:"name,omitempty"`
	// 环境别名。
	Alias *string `json:"alias,omitempty"`
	// 环境描述。
	Description *string `json:"description,omitempty"`
	// 项目ID。
	ProjectId *string `json:"project_id,omitempty"`
	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	// 收费模式。
	ChargeMode *string `json:"charge_mode,omitempty"`
	// 虚拟私有云ID。
	VpcId *string `json:"vpc_id,omitempty"`
	// 基础资源。
	BaseResources *[]Resource `json:"base_resources,omitempty"`
	// 可选资源。
	OptionalResources *[]Resource `json:"optional_resources,omitempty"`
	// 创建人。
	Creator *string `json:"creator,omitempty"`
	// 创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`
	// 修改时间。
	UpdateTime *int64 `json:"update_time,omitempty"`
}

Response Object

func (CreateEnvironmentResponse) String

func (o CreateEnvironmentResponse) String() string

type CreateFileRequest

type CreateFileRequest struct {
	XRepoAuth string      `json:"X-Repo-Auth"`
	Namespace string      `json:"namespace"`
	Project   string      `json:"project"`
	Path      string      `json:"path"`
	Ref       string      `json:"ref"`
	Body      *FileCreate `json:"body,omitempty"`
}

Request Object

func (CreateFileRequest) String

func (o CreateFileRequest) String() string

type CreateFileResponse

type CreateFileResponse struct {
	// 文件路径。
	Path *string `json:"path,omitempty"`
}

Response Object

func (CreateFileResponse) String

func (o CreateFileResponse) String() string

type CreateHookRequest

type CreateHookRequest struct {
	XRepoAuth string      `json:"X-Repo-Auth"`
	Namespace string      `json:"namespace"`
	Project   string      `json:"project"`
	Body      *HookCreate `json:"body,omitempty"`
}

Request Object

func (CreateHookRequest) String

func (o CreateHookRequest) String() string

type CreateHookResponse

type CreateHookResponse struct {
	// hook ID。
	Id *string `json:"id,omitempty"`
	// hook类型。
	Type *string `json:"type,omitempty"`
	// 回滚URL。
	CallbackUrl *string `json:"callback_url,omitempty"`
}

Response Object

func (CreateHookResponse) String

func (o CreateHookResponse) String() string

type CreateInstanceRequest

type CreateInstanceRequest struct {
	ApplicationId string          `json:"application_id"`
	ComponentId   string          `json:"component_id"`
	Body          *InstanceCreate `json:"body,omitempty"`
}

Request Object

func (CreateInstanceRequest) String

func (o CreateInstanceRequest) String() string

type CreateInstanceResponse

type CreateInstanceResponse struct {
	// 应用组件实例ID。
	InstanceId *string `json:"instance_id,omitempty"`
	// Job ID,用于查询创建任务信息。
	JobId *string `json:"job_id,omitempty"`
}

Response Object

func (CreateInstanceResponse) String

func (o CreateInstanceResponse) String() string

type CreateOAuthRequest

type CreateOAuthRequest struct {
	RepoType CreateOAuthRequestRepoType `json:"repo_type"`
	Tag      *string                    `json:"tag,omitempty"`
	Body     *OAuth                     `json:"body,omitempty"`
}

Request Object

func (CreateOAuthRequest) String

func (o CreateOAuthRequest) String() string

type CreateOAuthRequestRepoType

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

func (CreateOAuthRequestRepoType) MarshalJSON

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

func (*CreateOAuthRequestRepoType) UnmarshalJSON

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

type CreateOAuthRequestRepoTypeEnum

type CreateOAuthRequestRepoTypeEnum struct {
	GITHUB    CreateOAuthRequestRepoType
	GITLAB    CreateOAuthRequestRepoType
	GITEE     CreateOAuthRequestRepoType
	BITBUCKET CreateOAuthRequestRepoType
}

func GetCreateOAuthRequestRepoTypeEnum

func GetCreateOAuthRequestRepoTypeEnum() CreateOAuthRequestRepoTypeEnum

type CreateOAuthResponse

type CreateOAuthResponse struct {
	Authorization *AuthorizationVo `json:"authorization,omitempty"`
}

Response Object

func (CreateOAuthResponse) String

func (o CreateOAuthResponse) String() string

type CreatePasswordAuthRequest

type CreatePasswordAuthRequest struct {
	RepoType CreatePasswordAuthRequestRepoType `json:"repo_type"`
	Body     *AccessPassword                   `json:"body,omitempty"`
}

Request Object

func (CreatePasswordAuthRequest) String

func (o CreatePasswordAuthRequest) String() string

type CreatePasswordAuthRequestRepoType

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

func (CreatePasswordAuthRequestRepoType) MarshalJSON

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

func (*CreatePasswordAuthRequestRepoType) UnmarshalJSON

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

type CreatePasswordAuthRequestRepoTypeEnum

type CreatePasswordAuthRequestRepoTypeEnum struct {
	GITHUB    CreatePasswordAuthRequestRepoType
	DEVCLOUD  CreatePasswordAuthRequestRepoType
	BITBUCKET CreatePasswordAuthRequestRepoType
}

func GetCreatePasswordAuthRequestRepoTypeEnum

func GetCreatePasswordAuthRequestRepoTypeEnum() CreatePasswordAuthRequestRepoTypeEnum

type CreatePasswordAuthResponse

type CreatePasswordAuthResponse struct {
	Authorization *AuthorizationVo `json:"authorization,omitempty"`
}

Response Object

func (CreatePasswordAuthResponse) String

type CreatePersonalAuthRequest

type CreatePersonalAuthRequest struct {
	RepoType CreatePersonalAuthRequestRepoType `json:"repo_type"`
	Body     *AccessToken                      `json:"body,omitempty"`
}

Request Object

func (CreatePersonalAuthRequest) String

func (o CreatePersonalAuthRequest) String() string

type CreatePersonalAuthRequestRepoType

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

func (CreatePersonalAuthRequestRepoType) MarshalJSON

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

func (*CreatePersonalAuthRequestRepoType) UnmarshalJSON

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

type CreatePersonalAuthResponse

type CreatePersonalAuthResponse struct {
	Authorization *AuthorizationVo `json:"authorization,omitempty"`
}

Response Object

func (CreatePersonalAuthResponse) String

type CreateProjectRequest

type CreateProjectRequest struct {
	XRepoAuth string         `json:"X-Repo-Auth"`
	Namespace string         `json:"namespace"`
	Body      *ProjectCreate `json:"body,omitempty"`
}

Request Object

func (CreateProjectRequest) String

func (o CreateProjectRequest) String() string

type CreateProjectResponse

type CreateProjectResponse struct {
	// 项目ID。
	Id *string `json:"id,omitempty"`
	// 项目名称。
	Name *string `json:"name,omitempty"`
	// 项目的clone url路径。
	CloneUrl *string `json:"clone_url,omitempty"`
}

Response Object

func (CreateProjectResponse) String

func (o CreateProjectResponse) String() string

type CreateTagRequest

type CreateTagRequest struct {
	XRepoAuth string     `json:"X-Repo-Auth"`
	Namespace string     `json:"namespace"`
	Project   string     `json:"project"`
	Ref       string     `json:"ref"`
	Body      *TagCreate `json:"body,omitempty"`
}

Request Object

func (CreateTagRequest) String

func (o CreateTagRequest) String() string

type CreateTagResponse

type CreateTagResponse struct {
	// tag标签名称。
	Name *string `json:"name,omitempty"`
}

Response Object

func (CreateTagResponse) String

func (o CreateTagResponse) String() string

type DeleteApplicationConfigurationRequest

type DeleteApplicationConfigurationRequest struct {
	ApplicationId string `json:"application_id"`
	EnvironmentId string `json:"environment_id"`
}

Request Object

func (DeleteApplicationConfigurationRequest) String

type DeleteApplicationConfigurationResponse

type DeleteApplicationConfigurationResponse struct {
}

Response Object

func (DeleteApplicationConfigurationResponse) String

type DeleteApplicationRequest

type DeleteApplicationRequest struct {
	ApplicationId string `json:"application_id"`
}

Request Object

func (DeleteApplicationRequest) String

func (o DeleteApplicationRequest) String() string

type DeleteApplicationResponse

type DeleteApplicationResponse struct {
}

Response Object

func (DeleteApplicationResponse) String

func (o DeleteApplicationResponse) String() string

type DeleteAuthorizeRequest

type DeleteAuthorizeRequest struct {
	Name string `json:"name"`
}

Request Object

func (DeleteAuthorizeRequest) String

func (o DeleteAuthorizeRequest) String() string

type DeleteAuthorizeResponse

type DeleteAuthorizeResponse struct {
}

Response Object

func (DeleteAuthorizeResponse) String

func (o DeleteAuthorizeResponse) String() string

type DeleteComponentRequest

type DeleteComponentRequest struct {
	ApplicationId string `json:"application_id"`
	ComponentId   string `json:"component_id"`
	Force         *bool  `json:"force,omitempty"`
}

Request Object

func (DeleteComponentRequest) String

func (o DeleteComponentRequest) String() string

type DeleteComponentResponse

type DeleteComponentResponse struct {
}

Response Object

func (DeleteComponentResponse) String

func (o DeleteComponentResponse) String() string

type DeleteEnvironmentRequest

type DeleteEnvironmentRequest struct {
	EnvironmentId string `json:"environment_id"`
}

Request Object

func (DeleteEnvironmentRequest) String

func (o DeleteEnvironmentRequest) String() string

type DeleteEnvironmentResponse

type DeleteEnvironmentResponse struct {
}

Response Object

func (DeleteEnvironmentResponse) String

func (o DeleteEnvironmentResponse) String() string

type DeleteFileRequest

type DeleteFileRequest struct {
	XRepoAuth string `json:"X-Repo-Auth"`
	Namespace string `json:"namespace"`
	Project   string `json:"project"`
	Path      string `json:"path"`
	Ref       string `json:"ref"`
	Message   string `json:"message"`
	Sha       string `json:"sha"`
}

Request Object

func (DeleteFileRequest) String

func (o DeleteFileRequest) String() string

type DeleteFileResponse

type DeleteFileResponse struct {
}

Response Object

func (DeleteFileResponse) String

func (o DeleteFileResponse) String() string

type DeleteHookRequest

type DeleteHookRequest struct {
	XRepoAuth string `json:"X-Repo-Auth"`
	Namespace string `json:"namespace"`
	Project   string `json:"project"`
	HookId    string `json:"hook_id"`
}

Request Object

func (DeleteHookRequest) String

func (o DeleteHookRequest) String() string

type DeleteHookResponse

type DeleteHookResponse struct {
}

Response Object

func (DeleteHookResponse) String

func (o DeleteHookResponse) String() string

type DeleteInstanceRequest

type DeleteInstanceRequest struct {
	ApplicationId string `json:"application_id"`
	ComponentId   string `json:"component_id"`
	InstanceId    string `json:"instance_id"`
	Force         *bool  `json:"force,omitempty"`
}

Request Object

func (DeleteInstanceRequest) String

func (o DeleteInstanceRequest) String() string

type DeleteInstanceResponse

type DeleteInstanceResponse struct {
	// Job ID。
	JobId *string `json:"job_id,omitempty"`
}

Response Object

func (DeleteInstanceResponse) String

func (o DeleteInstanceResponse) String() string

type DeleteTagRequest

type DeleteTagRequest struct {
	XRepoAuth string `json:"X-Repo-Auth"`
	Namespace string `json:"namespace"`
	Project   string `json:"project"`
	TagName   string `json:"tag_name"`
}

Request Object

func (DeleteTagRequest) String

func (o DeleteTagRequest) String() string

type DeleteTagResponse

type DeleteTagResponse struct {
}

Response Object

func (DeleteTagResponse) String

func (o DeleteTagResponse) String() string

type Environment

type Environment struct {
	// 环境ID。
	Id *string `json:"id,omitempty"`
	// 环境名称。
	Name *string `json:"name,omitempty"`
	// 环境别名。
	Alias *string `json:"alias,omitempty"`
	// 环境描述。
	Description *string `json:"description,omitempty"`
	// 项目ID。
	ProjectId *string `json:"project_id,omitempty"`
	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	// 收费模式。
	ChargeMode *string `json:"charge_mode,omitempty"`
	// 虚拟私有云ID。
	VpcId *string `json:"vpc_id,omitempty"`
	// 基础资源。
	BaseResources *[]Resource `json:"base_resources,omitempty"`
	// 可选资源。
	OptionalResources *[]Resource `json:"optional_resources,omitempty"`
	// 创建人。
	Creator *string `json:"creator,omitempty"`
	// 创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`
	// 修改时间。
	UpdateTime *int64 `json:"update_time,omitempty"`
}

func (Environment) String

func (o Environment) String() string

type EnvironmentCreate

type EnvironmentCreate struct {
	// 环境名称。
	Name string `json:"name"`
	// 环境别名。
	Alias *string `json:"alias,omitempty"`
	// 环境描述。
	Description *string `json:"description,omitempty"`
	// 企业项目ID。
	EnterpriseProjectId *string     `json:"enterprise_project_id,omitempty"`
	ChargeMode          *ChargeMode `json:"charge_mode,omitempty"`
	// 虚拟私有云ID。
	VpcId string `json:"vpc_id"`
	// 基础资源。
	BaseResources []Resource `json:"base_resources"`
	// 可选资源。
	OptionalResources *[]Resource `json:"optional_resources,omitempty"`
}

func (EnvironmentCreate) String

func (o EnvironmentCreate) String() string

type EnvironmentModify

type EnvironmentModify struct {
	// 环境名称。
	Name *string `json:"name,omitempty"`
	// 环境别名。
	Alias *string `json:"alias,omitempty"`
	// 环境描述。
	Description *string `json:"description,omitempty"`
}

func (EnvironmentModify) String

func (o EnvironmentModify) String() string

type EnvironmentResourceModify

type EnvironmentResourceModify struct {
	// 添加基础资源。
	AddBaseResources *[]Resource `json:"add_base_resources,omitempty"`
	// 添加其他资源。
	AddOptionalResources *[]Resource `json:"add_optional_resources,omitempty"`
	// 移除资源。
	RemoveResources *[]Resource `json:"remove_resources,omitempty"`
}

func (EnvironmentResourceModify) String

func (o EnvironmentResourceModify) String() string

type ExternalAccessProtocol

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

协议。

func (ExternalAccessProtocol) MarshalJSON

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

func (*ExternalAccessProtocol) UnmarshalJSON

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

type ExternalAccessProtocolEnum

type ExternalAccessProtocolEnum struct {
	HTTP  ExternalAccessProtocol
	HTTPS ExternalAccessProtocol
}

func GetExternalAccessProtocolEnum

func GetExternalAccessProtocolEnum() ExternalAccessProtocolEnum

type ExternalAccessStatus

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

状态。

func (ExternalAccessStatus) MarshalJSON

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

func (*ExternalAccessStatus) UnmarshalJSON

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

type ExternalAccessStatusEnum

type ExternalAccessStatusEnum struct {
	NORMAL  ExternalAccessStatus
	EXPIRED ExternalAccessStatus
}

func GetExternalAccessStatusEnum

func GetExternalAccessStatusEnum() ExternalAccessStatusEnum

type ExternalAccessType

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

类型。

func (ExternalAccessType) MarshalJSON

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

func (*ExternalAccessType) UnmarshalJSON

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

type ExternalAccessTypeEnum

type ExternalAccessTypeEnum struct {
	AUTO_GENERATED ExternalAccessType
	SPECIFIED      ExternalAccessType
	IP_ADDR        ExternalAccessType
}

func GetExternalAccessTypeEnum

func GetExternalAccessTypeEnum() ExternalAccessTypeEnum

type ExternalAccesses

type ExternalAccesses struct {
	// ID。
	Id       *string                 `json:"id,omitempty"`
	Protocol *ExternalAccessProtocol `json:"protocol"`
	// 访问地址。
	Address string `json:"address"`
	// 应用组件进程监听端口
	ForwardPort int32                 `json:"forward_port"`
	Type        *ExternalAccessType   `json:"type,omitempty"`
	Status      *ExternalAccessStatus `json:"status,omitempty"`
	// 创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`
	// 修改时间。
	UpdateTime *int64 `json:"update_time,omitempty"`
}

访问方式。

func (ExternalAccesses) String

func (o ExternalAccesses) String() string

type ExternalAccessesCreate

type ExternalAccessesCreate struct {
	// 协议,支持http、https。
	Protocol ExternalAccessesCreateProtocol `json:"protocol"`
	// 访问地址。
	Address string `json:"address"`
	// 端口号。
	ForwardPort int32 `json:"forward_port"`
}

外网访问。

func (ExternalAccessesCreate) String

func (o ExternalAccessesCreate) String() string

type ExternalAccessesCreateProtocol

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

func (ExternalAccessesCreateProtocol) MarshalJSON

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

func (*ExternalAccessesCreateProtocol) UnmarshalJSON

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

type ExternalAccessesCreateProtocolEnum

type ExternalAccessesCreateProtocolEnum struct {
	HTTP  ExternalAccessesCreateProtocol
	HTTPS ExternalAccessesCreateProtocol
}

func GetExternalAccessesCreateProtocolEnum

func GetExternalAccessesCreateProtocolEnum() ExternalAccessesCreateProtocolEnum

type FileCreate

type FileCreate struct {
	// 提交描述。
	Message string `json:"message"`
	// 经base64编码的文件内容。
	Content string `json:"content"`
}

func (FileCreate) String

func (o FileCreate) String() string

type FileUpdate

type FileUpdate struct {
	// 提交描述。
	Message string `json:"message"`
	// 经base64编码的文件内容。
	Content string `json:"content"`
	// 文件的sha值。
	Sha string `json:"sha"`
}

func (FileUpdate) String

func (o FileUpdate) String() string

type FlavorId

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

资源规格。

func (FlavorId) MarshalJSON

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

func (*FlavorId) UnmarshalJSON

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

type FlavorIdEnum

type FlavorIdEnum struct {
	MICRO_5_G0_5_C1_G     FlavorId
	SMALL_10_G1_0_C2_G    FlavorId
	STANDARD_30_G2_0_C4_G FlavorId
	LARGE_50_G4_0_C8_G    FlavorId
	XLARGE_100_G4_0_C16_G FlavorId
	CUSTOM_XGX_XX_X       FlavorId
}

func GetFlavorIdEnum

func GetFlavorIdEnum() FlavorIdEnum

type FlavorView

type FlavorView struct {
	FlavorId *FlavorId `json:"flavor_id,omitempty"`
	// 存储大小。
	StorageSize *string `json:"storage_size,omitempty"`
	// CPU限制。
	NumCpu *string `json:"num_cpu,omitempty"`
	// CPU初始。
	NumCpuInit *string `json:"num_cpu_init,omitempty"`
	// 内存限制。
	MemorySize *string `json:"memory_size,omitempty"`
	// 内存初始。
	MemorySizeInit *string `json:"memory_size_init,omitempty"`
	// 展示标签。
	Label *string `json:"label,omitempty"`
}

func (FlavorView) String

func (o FlavorView) String() string

type Hook

type Hook struct {
	// hook ID。
	Id string `json:"id"`
	// hook类型。
	Type string `json:"type"`
	// 回滚URL。
	CallbackUrl string `json:"callback_url"`
}

func (Hook) String

func (o Hook) String() string

type HookCreate

type HookCreate struct {
	// 无法猜测的随机字符串,用于验证接收到的payloads。
	Secret string `json:"secret"`
	// hook触发时的回调URL。
	Url string `json:"url"`
}

func (HookCreate) String

func (o HookCreate) String() string

type InstanceAction

type InstanceAction struct {
	Action     *InstanceActionType       `json:"action"`
	Parameters *InstanceActionParameters `json:"parameters,omitempty"`
}

func (InstanceAction) String

func (o InstanceAction) String() string

type InstanceActionParameters

type InstanceActionParameters struct {
	// 实例数,在scale操作时提供。
	Replica *int32 `json:"replica,omitempty"`
	// ECS ID列表,指定虚机扩容时部署的ECS主机。
	Hosts *[]string `json:"hosts,omitempty"`
	// 版本号,在rollback操作时提供,通过查询快照接口获取。
	Version *string `json:"version,omitempty"`
}

操作参数,scale和rollback时提供。

func (InstanceActionParameters) String

func (o InstanceActionParameters) String() string

type InstanceActionType

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

操作,支持start, stop, restart, scale, rollback。

func (InstanceActionType) MarshalJSON

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

func (*InstanceActionType) UnmarshalJSON

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

type InstanceActionTypeEnum

type InstanceActionTypeEnum struct {
	START    InstanceActionType
	STOP     InstanceActionType
	RESTART  InstanceActionType
	SCALE    InstanceActionType
	ROLLBACK InstanceActionType
}

func GetInstanceActionTypeEnum

func GetInstanceActionTypeEnum() InstanceActionTypeEnum

type InstanceCreate

type InstanceCreate struct {
	// 应用组件实例名称。
	Name string `json:"name"`
	// 环境ID。
	EnvironmentId string    `json:"environment_id"`
	FlavorId      *FlavorId `json:"flavor_id"`
	// 实例副本数。
	Replica int32 `json:"replica"`
	// 组件部署件。key为组件component_name,对于Docker多容器场景,key为容器名称。
	Artifacts map[string]interface{} `json:"artifacts"`
	// 应用组件版本号,满足版本语义,如1.0.0。。
	Version string `json:"version"`
	// 应用配置,环境变量等,如{“env”: [{“name”: “log-level”: “warn”}]}, 默认空。
	Configuration *interface{} `json:"configuration,omitempty"`
	// 描述。
	Description *string `json:"description,omitempty"`
	// 访问方式。
	ExternalAccesses *[]ExternalAccessesCreate `json:"external_accesses,omitempty"`
	// 部署资源。
	ReferResources []ReferResourceCreate `json:"refer_resources"`
}

func (InstanceCreate) String

func (o InstanceCreate) String() string

type InstanceFailDetail

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

失败描述。 cluster_deleted, // 集群被删除 cluster_unavailable, // 集群不可用 cluster_inaccessible, // 集群无法访问 namespace_deleted, // 命名空间被删除 namespace_unavailable, // 命名空间不可用 namespace_inaccessible, // 命名空间无法访问 resource_deleted, // 资源已删除

func (InstanceFailDetail) MarshalJSON

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

func (*InstanceFailDetail) UnmarshalJSON

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

type InstanceFailDetailEnum

type InstanceFailDetailEnum struct {
	CLUSTER_DELETED        InstanceFailDetail
	CLUSTER_UNAVAILABLE    InstanceFailDetail
	CLUSTER_INACCESSIBLE   InstanceFailDetail
	NAMESPACE_DELETED      InstanceFailDetail
	NAMESPACE_UNAVAILABLE  InstanceFailDetail
	NAMESPACE_INACCESSIBLE InstanceFailDetail
	RESOURCE_DELETED       InstanceFailDetail
}

func GetInstanceFailDetailEnum

func GetInstanceFailDetailEnum() InstanceFailDetailEnum

type InstanceListView

type InstanceListView struct {
	// 应用组件实例ID。
	Id *string `json:"id,omitempty"`
	// 应用ID。
	ApplicationId *string `json:"application_id,omitempty"`
	// 应用名称。
	ApplicationName *string `json:"application_name,omitempty"`
	// 组件ID。
	ComponentId *string `json:"component_id,omitempty"`
	// 组件名称。
	ComponentName *string `json:"component_name,omitempty"`
	// 应用组件实例名称。
	Name *string `json:"name,omitempty"`
	// 应用组件环境ID。
	EnvironmentId *string `json:"environment_id,omitempty"`
	// 环境名称。
	EnvironmentName *string `json:"environment_name,omitempty"`
	// 运行平台类型。 应用可以在不同的平台上运行,可选用的平台的类型有以下几种:cce、vmapp。
	PlatformType *string `json:"platform_type,omitempty"`
	// 应用组件版本号。
	Version *string `json:"version,omitempty"`
	// 访问方式。
	ExternalAccesses *[]ExternalAccesses `json:"external_accesses,omitempty"`
	// 组件部署件。key为组件component_name,对于Docker多容器场景,key为容器名称。
	Artifacts map[string]interface{} `json:"artifacts,omitempty"`
	// 创建人。
	Creator *string `json:"creator,omitempty"`
	// 创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`
	// 修改时间。
	UpdateTime   *int64              `json:"update_time,omitempty"`
	StatusDetail *InstanceStatusView `json:"status_detail,omitempty"`
}

实例参数。

func (InstanceListView) String

func (o InstanceListView) String() string

type InstanceModify

type InstanceModify struct {
	// 应用组件版本号,满足版本语义,如1.0.1。
	Version  string    `json:"version"`
	FlavorId *FlavorId `json:"flavor_id,omitempty"`
	// 组件部署件。key为组件component_name,对于Docker多容器场景,key为容器名称。
	Artifacts map[string]interface{} `json:"artifacts,omitempty"`
	// 应用配置,如环境变量。
	Configuration map[string]interface{} `json:"configuration,omitempty"`
	// 描述。
	Description *string `json:"description,omitempty"`
	// 访问方式列表。
	ExternalAccesses *[]ExternalAccesses `json:"external_accesses,omitempty"`
	// 部署资源列表。
	ReferResources *[]ReferResourceCreate `json:"refer_resources,omitempty"`
}

func (InstanceModify) String

func (o InstanceModify) String() string

type InstancePlatformType

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

运行平台类型。 应用可以在不同的平台上运行,可选用的平台的类型有以下几种:cce、vmapp。

func (InstancePlatformType) MarshalJSON

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

func (*InstancePlatformType) UnmarshalJSON

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

type InstancePlatformTypeEnum

type InstancePlatformTypeEnum struct {
	CCE   InstancePlatformType
	VMAPP InstancePlatformType
}

func GetInstancePlatformTypeEnum

func GetInstancePlatformTypeEnum() InstancePlatformTypeEnum

type InstanceSnapshotView

type InstanceSnapshotView struct {
	// 创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`
	// 描述。
	Description *string `json:"description,omitempty"`
	// 应用组件实例ID。
	InstanceId *string `json:"instance_id,omitempty"`
	// 版本号。
	Version *string `json:"version,omitempty"`
}

快照参数。

func (InstanceSnapshotView) String

func (o InstanceSnapshotView) String() string

type InstanceStatusType

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

实例状态。

func (InstanceStatusType) MarshalJSON

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

func (*InstanceStatusType) UnmarshalJSON

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

type InstanceStatusTypeEnum

type InstanceStatusTypeEnum struct {
	INITIALIZING     InstanceStatusType
	UPGRADING        InstanceStatusType
	FAILED           InstanceStatusType
	RUNNING          InstanceStatusType
	DOWN             InstanceStatusType
	DELETING         InstanceStatusType
	DELETED          InstanceStatusType
	RESERVED         InstanceStatusType
	STARTING         InstanceStatusType
	STOPPING         InstanceStatusType
	STOPPED          InstanceStatusType
	RESTARTING       InstanceStatusType
	PENDING          InstanceStatusType
	UNKNOWN          InstanceStatusType
	PARTIALLY_FAILED InstanceStatusType
}

func GetInstanceStatusTypeEnum

func GetInstanceStatusTypeEnum() InstanceStatusTypeEnum

type InstanceStatusView

type InstanceStatusView struct {
	Status *InstanceStatusType `json:"status,omitempty"`
	// 正常实例副本数。
	AvailableReplica *int32 `json:"available_replica,omitempty"`
	// 实例副本数。
	Replica    *int32              `json:"replica,omitempty"`
	FailDetail *InstanceFailDetail `json:"fail_detail,omitempty"`
	// 最近Job ID。
	LastJobId *string `json:"last_job_id,omitempty"`
	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

状态详情。

func (InstanceStatusView) String

func (o InstanceStatusView) String() string

type JobInfo

type JobInfo struct {
	// 创建者。
	CreatedBy *string `json:"CREATED_BY,omitempty"`
	// 执行状态。
	ExecutionStatus *JobInfoExecutionStatus `json:"EXECUTION_STATUS,omitempty"`
	// 工作描述。
	JobDesc *string `json:"JOB_DESC,omitempty"`
	// 工作ID。
	JobId *string `json:"JOB_ID,omitempty"`
	// 工作名称。
	JobName *string `json:"JOB_NAME,omitempty"`
	// 类别。
	JobType *string `json:"JOB_TYPE,omitempty"`
	// 排序ID。
	OrderId *string `json:"ORDER_ID,omitempty"`
	// 创建租户的项目ID。
	ProjectId *string `json:"PROJECT_ID,omitempty"`
	// 实例ID。
	ServiceInstanceId *string `json:"SERVICE_INSTANCE_ID,omitempty"`
}

构建工程参数。

func (JobInfo) String

func (o JobInfo) String() string

type JobInfoExecutionStatus

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

func (JobInfoExecutionStatus) MarshalJSON

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

func (*JobInfoExecutionStatus) UnmarshalJSON

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

type JobInfoExecutionStatusEnum

type JobInfoExecutionStatusEnum struct {
	RUNNING   JobInfoExecutionStatus
	FAILED    JobInfoExecutionStatus
	SUCCEEDED JobInfoExecutionStatus
}

func GetJobInfoExecutionStatusEnum

func GetJobInfoExecutionStatusEnum() JobInfoExecutionStatusEnum

type ListApplicationsRequest

type ListApplicationsRequest struct {
	Limit   *int32                        `json:"limit,omitempty"`
	Offset  *int32                        `json:"offset,omitempty"`
	OrderBy *string                       `json:"order_by,omitempty"`
	Order   *ListApplicationsRequestOrder `json:"order,omitempty"`
}

Request Object

func (ListApplicationsRequest) String

func (o ListApplicationsRequest) String() string

type ListApplicationsRequestOrder

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

func (ListApplicationsRequestOrder) MarshalJSON

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

func (*ListApplicationsRequestOrder) UnmarshalJSON

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

type ListApplicationsRequestOrderEnum

type ListApplicationsRequestOrderEnum struct {
	DESC ListApplicationsRequestOrder
	ASC  ListApplicationsRequestOrder
}

func GetListApplicationsRequestOrderEnum

func GetListApplicationsRequestOrderEnum() ListApplicationsRequestOrderEnum

type ListApplicationsResponse

type ListApplicationsResponse struct {
	// 应用总数。
	Count *int32 `json:"count,omitempty"`
	// 应用列表。
	Applications *[]ApplicationView `json:"applications,omitempty"`
}

Response Object

func (ListApplicationsResponse) String

func (o ListApplicationsResponse) String() string

type ListAuthorizationsRequest

type ListAuthorizationsRequest struct {
}

Request Object

func (ListAuthorizationsRequest) String

func (o ListAuthorizationsRequest) String() string

type ListAuthorizationsResponse

type ListAuthorizationsResponse struct {
	// 授权列表。
	Authorizations *[]AuthorizationVo `json:"authorizations,omitempty"`
}

Response Object

func (ListAuthorizationsResponse) String

type ListBranchesRequest

type ListBranchesRequest struct {
	XRepoAuth string `json:"X-Repo-Auth"`
	Namespace string `json:"namespace"`
	Project   string `json:"project"`
}

Request Object

func (ListBranchesRequest) String

func (o ListBranchesRequest) String() string

type ListBranchesResponse

type ListBranchesResponse struct {
	// 项目分支列表。
	Branches *[]string `json:"branches,omitempty"`
}

Response Object

func (ListBranchesResponse) String

func (o ListBranchesResponse) String() string

type ListCommitsRequest

type ListCommitsRequest struct {
	XRepoAuth string  `json:"X-Repo-Auth"`
	Namespace string  `json:"namespace"`
	Project   string  `json:"project"`
	Ref       *string `json:"ref,omitempty"`
}

Request Object

func (ListCommitsRequest) String

func (o ListCommitsRequest) String() string

type ListCommitsResponse

type ListCommitsResponse struct {
	// 提交记录列表。
	Commits *[]CommitsCommits `json:"commits,omitempty"`
}

Response Object

func (ListCommitsResponse) String

func (o ListCommitsResponse) String() string

type ListComponentsRequest

type ListComponentsRequest struct {
	ApplicationId string                      `json:"application_id"`
	Limit         *int32                      `json:"limit,omitempty"`
	Offset        *int32                      `json:"offset,omitempty"`
	OrderBy       *string                     `json:"order_by,omitempty"`
	Order         *ListComponentsRequestOrder `json:"order,omitempty"`
}

Request Object

func (ListComponentsRequest) String

func (o ListComponentsRequest) String() string

type ListComponentsRequestOrder

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

func (ListComponentsRequestOrder) MarshalJSON

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

func (*ListComponentsRequestOrder) UnmarshalJSON

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

type ListComponentsRequestOrderEnum

type ListComponentsRequestOrderEnum struct {
	DESC ListComponentsRequestOrder
	ASC  ListComponentsRequestOrder
}

func GetListComponentsRequestOrderEnum

func GetListComponentsRequestOrderEnum() ListComponentsRequestOrderEnum

type ListComponentsResponse

type ListComponentsResponse struct {
	// 组件个数。
	Count *int32 `json:"count,omitempty"`
	// 组件列表。
	Components *[]ComponentView `json:"components,omitempty"`
}

Response Object

func (ListComponentsResponse) String

func (o ListComponentsResponse) String() string

type ListEnvironmentsRequest

type ListEnvironmentsRequest struct {
	Limit   *int32                        `json:"limit,omitempty"`
	Offset  *int32                        `json:"offset,omitempty"`
	OrderBy *string                       `json:"order_by,omitempty"`
	Order   *ListEnvironmentsRequestOrder `json:"order,omitempty"`
}

Request Object

func (ListEnvironmentsRequest) String

func (o ListEnvironmentsRequest) String() string

type ListEnvironmentsRequestOrder

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

func (ListEnvironmentsRequestOrder) MarshalJSON

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

func (*ListEnvironmentsRequestOrder) UnmarshalJSON

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

type ListEnvironmentsRequestOrderEnum

type ListEnvironmentsRequestOrderEnum struct {
	DESC ListEnvironmentsRequestOrder
	ASC  ListEnvironmentsRequestOrder
}

func GetListEnvironmentsRequestOrderEnum

func GetListEnvironmentsRequestOrderEnum() ListEnvironmentsRequestOrderEnum

type ListEnvironmentsResponse

type ListEnvironmentsResponse struct {
	// 环境总数。
	Count *int32 `json:"count,omitempty"`
	// 环境列表。
	Environments *[]Environment `json:"environments,omitempty"`
}

Response Object

func (ListEnvironmentsResponse) String

func (o ListEnvironmentsResponse) String() string

type ListFlavorsRequest

type ListFlavorsRequest struct {
}

Request Object

func (ListFlavorsRequest) String

func (o ListFlavorsRequest) String() string

type ListFlavorsResponse

type ListFlavorsResponse struct {
	// 资源规格列表。
	Flavors *[]FlavorView `json:"flavors,omitempty"`
}

Response Object

func (ListFlavorsResponse) String

func (o ListFlavorsResponse) String() string

type ListHooksRequest

type ListHooksRequest struct {
	XRepoAuth string `json:"X-Repo-Auth"`
	Namespace string `json:"namespace"`
	Project   string `json:"project"`
}

Request Object

func (ListHooksRequest) String

func (o ListHooksRequest) String() string

type ListHooksResponse

type ListHooksResponse struct {
	// hook列表。
	Hooks *[]Hook `json:"hooks,omitempty"`
}

Response Object

func (ListHooksResponse) String

func (o ListHooksResponse) String() string

type ListInstanceSnapshotsRequest

type ListInstanceSnapshotsRequest struct {
	ApplicationId   string                             `json:"application_id"`
	ComponentId     string                             `json:"component_id"`
	InstanceId      string                             `json:"instance_id"`
	Limit           *int32                             `json:"limit,omitempty"`
	Offset          *int32                             `json:"offset,omitempty"`
	SnapshotOrderBy *string                            `json:"snapshot_order_by,omitempty"`
	Order           *ListInstanceSnapshotsRequestOrder `json:"order,omitempty"`
}

Request Object

func (ListInstanceSnapshotsRequest) String

type ListInstanceSnapshotsRequestOrder

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

func (ListInstanceSnapshotsRequestOrder) MarshalJSON

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

func (*ListInstanceSnapshotsRequestOrder) UnmarshalJSON

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

type ListInstanceSnapshotsRequestOrderEnum

type ListInstanceSnapshotsRequestOrderEnum struct {
	DESC ListInstanceSnapshotsRequestOrder
	ASC  ListInstanceSnapshotsRequestOrder
}

func GetListInstanceSnapshotsRequestOrderEnum

func GetListInstanceSnapshotsRequestOrderEnum() ListInstanceSnapshotsRequestOrderEnum

type ListInstanceSnapshotsResponse

type ListInstanceSnapshotsResponse struct {
	// 快照总数。
	Count *int32 `json:"count,omitempty"`
	// 快照列表。
	Snapshots *[]InstanceSnapshotView `json:"snapshots,omitempty"`
}

Response Object

func (ListInstanceSnapshotsResponse) String

type ListInstancesRequest

type ListInstancesRequest struct {
	ApplicationId string                     `json:"application_id"`
	ComponentId   string                     `json:"component_id"`
	Limit         *int32                     `json:"limit,omitempty"`
	Offset        *int32                     `json:"offset,omitempty"`
	OrderBy       *string                    `json:"order_by,omitempty"`
	Order         *ListInstancesRequestOrder `json:"order,omitempty"`
}

Request Object

func (ListInstancesRequest) String

func (o ListInstancesRequest) String() string

type ListInstancesRequestOrder

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

func (ListInstancesRequestOrder) MarshalJSON

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

func (*ListInstancesRequestOrder) UnmarshalJSON

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

type ListInstancesRequestOrderEnum

type ListInstancesRequestOrderEnum struct {
	DESC ListInstancesRequestOrder
	ASC  ListInstancesRequestOrder
}

func GetListInstancesRequestOrderEnum

func GetListInstancesRequestOrderEnum() ListInstancesRequestOrderEnum

type ListInstancesResponse

type ListInstancesResponse struct {
	// 实例总数。
	Count *int32 `json:"count,omitempty"`
	// 实例列表。
	Instances *[]InstanceListView `json:"instances,omitempty"`
}

Response Object

func (ListInstancesResponse) String

func (o ListInstancesResponse) String() string

type ListNamespacesRequest

type ListNamespacesRequest struct {
	XRepoAuth string `json:"X-Repo-Auth"`
}

Request Object

func (ListNamespacesRequest) String

func (o ListNamespacesRequest) String() string

type ListNamespacesResponse

type ListNamespacesResponse struct {
	// 命名空间列表。
	Namespaces *[]NamespacesNamespaces `json:"namespaces,omitempty"`
}

Response Object

func (ListNamespacesResponse) String

func (o ListNamespacesResponse) String() string

type ListProjectsRequest

type ListProjectsRequest struct {
	XRepoAuth string `json:"X-Repo-Auth"`
	Namespace string `json:"namespace"`
}

Request Object

func (ListProjectsRequest) String

func (o ListProjectsRequest) String() string

type ListProjectsResponse

type ListProjectsResponse struct {
	// 项目列表。
	Projects *[]Project `json:"projects,omitempty"`
}

Response Object

func (ListProjectsResponse) String

func (o ListProjectsResponse) String() string

type ListRuntimesRequest

type ListRuntimesRequest struct {
}

Request Object

func (ListRuntimesRequest) String

func (o ListRuntimesRequest) String() string

type ListRuntimesResponse

type ListRuntimesResponse struct {
	// 运行时列表。
	Runtimes *[]RuntimeTypeView `json:"runtimes,omitempty"`
}

Response Object

func (ListRuntimesResponse) String

func (o ListRuntimesResponse) String() string

type ListTagsRequest

type ListTagsRequest struct {
	XRepoAuth string `json:"X-Repo-Auth"`
	Namespace string `json:"namespace"`
	Project   string `json:"project"`
}

Request Object

func (ListTagsRequest) String

func (o ListTagsRequest) String() string

type ListTagsResponse

type ListTagsResponse struct {
	// 项目tag标签列表。
	Tags *[]string `json:"tags,omitempty"`
}

Response Object

func (ListTagsResponse) String

func (o ListTagsResponse) String() string

type ListTemplatesRequest

type ListTemplatesRequest struct {
}

Request Object

func (ListTemplatesRequest) String

func (o ListTemplatesRequest) String() string

type ListTemplatesResponse

type ListTemplatesResponse struct {
	// 模板列表。
	Templates *[]TemplateView `json:"templates,omitempty"`
}

Response Object

func (ListTemplatesResponse) String

func (o ListTemplatesResponse) String() string

type ListTreesRequest

type ListTreesRequest struct {
	XRepoAuth string `json:"X-Repo-Auth"`
	Namespace string `json:"namespace"`
	Project   string `json:"project"`
	Ref       string `json:"ref"`
}

Request Object

func (ListTreesRequest) String

func (o ListTreesRequest) String() string

type ListTreesResponse

type ListTreesResponse struct {
	// 仓库文件列表。
	Paths *[]string `json:"paths,omitempty"`
}

Response Object

func (ListTreesResponse) String

func (o ListTreesResponse) String() string

type NamespacesNamespaces

type NamespacesNamespaces struct {
	// 命名空间ID。
	Id string `json:"id"`
	// 命名空间名称。
	Name string `json:"name"`
}

func (NamespacesNamespaces) String

func (o NamespacesNamespaces) String() string

type OAuth

type OAuth struct {
	// 授权名称。
	Name string `json:"name"`
	// git仓库授权后,重定向回来的url里面的query参数。
	Code string `json:"code"`
	// git仓库授权后,一次性的认证编码和随机串。
	State string `json:"state"`
}

func (OAuth) String

func (o OAuth) String() string

type Project

type Project struct {
	// 项目ID。
	Id string `json:"id"`
	// 项目名称。
	Name string `json:"name"`
	// 项目的clone url路径。
	CloneUrl string `json:"clone_url"`
}

func (Project) String

func (o Project) String() string

type ProjectCreate

type ProjectCreate struct {
	// 项目名称。
	Name string `json:"name"`
}

func (ProjectCreate) String

func (o ProjectCreate) String() string

type ReferResourceCreate

type ReferResourceCreate struct {
	// 资源ID。
	Id   string        `json:"id"`
	Type *ResourceType `json:"type"`
	// 应用别名,dcs时才提供,支持“distributed_session”、“distributed_cache”、“distributed_session, distributed_cache”,  默认值是“distributed_session, distributed_cache”。
	ReferAlias *string `json:"refer_alias,omitempty"`
	// 引用资源参数。
	Parameters *interface{} `json:"parameters,omitempty"`
}

部署资源。

func (ReferResourceCreate) String

func (o ReferResourceCreate) String() string

type ReferResources

type ReferResources struct {
	// 资源ID。
	Id   *string       `json:"id,omitempty"`
	Type *ResourceType `json:"type,omitempty"`
	// 应用别名,dcs时才提供,支持“distributed_session”、“distributed_cache”、“distributed_session, distributed_cache”,  默认值是“distributed_session, distributed_cache”。
	ReferAlias *string `json:"refer_alias,omitempty"`
	// 引用资源参数。
	Parameters *interface{} `json:"parameters,omitempty"`
}

部署资源。

func (ReferResources) String

func (o ReferResources) String() string

type Resource

type Resource struct {
	// 资源ID
	Id   string        `json:"id"`
	Type *ResourceType `json:"type"`
}

func (Resource) String

func (o Resource) String() string

type ResourceReferAlias

type ResourceReferAlias struct {
}

应用别名,dcs时才提供,支持“distributed_session”、“distributed_cache”、“distributed_session, distributed_cache”, 默认值是“distributed_session, distributed_cache”。

func (ResourceReferAlias) String

func (o ResourceReferAlias) String() string

type ResourceType

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

资源类型。 基础资源:cce、cci、ecs、as。 可选资源:rds、dcs、elb等其他类型。

func (ResourceType) MarshalJSON

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

func (*ResourceType) UnmarshalJSON

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

type ResourceTypeEnum

type ResourceTypeEnum struct {
	SECURITY_GROUP ResourceType
	EIP            ResourceType
	ELB            ResourceType
	CCE            ResourceType
	CCI            ResourceType
	ECS            ResourceType
	AS             ResourceType
	CSE            ResourceType
	DCS            ResourceType
	RDS            ResourceType
	PVC            ResourceType
	APM            ResourceType
}

func GetResourceTypeEnum

func GetResourceTypeEnum() ResourceTypeEnum

type RuntimeType

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

运行时类型。

func (RuntimeType) MarshalJSON

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

func (*RuntimeType) UnmarshalJSON

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

type RuntimeTypeEnum

type RuntimeTypeEnum struct {
	TOMCAT8 RuntimeType
	JAVA8   RuntimeType
	PHP7    RuntimeType
	NODEJS8 RuntimeType
	DOCKER  RuntimeType
	PYTHON3 RuntimeType
	CUSTOM  RuntimeType
}

func GetRuntimeTypeEnum

func GetRuntimeTypeEnum() RuntimeTypeEnum

type RuntimeTypeView

type RuntimeTypeView struct {
	// 类型名称。
	TypeName *string `json:"type_name,omitempty"`
	// 显示名称。
	DisplayName *string `json:"display_name,omitempty"`
	// 容器默认端口。
	ContainerDefaultPort *int32 `json:"container_default_port,omitempty"`
	// 类型描述。
	TypeDesc *string `json:"type_desc,omitempty"`
}

运行时参数。

func (RuntimeTypeView) String

func (o RuntimeTypeView) String() string

type ShowApplicationConfigurationRequest

type ShowApplicationConfigurationRequest struct {
	ApplicationId string  `json:"application_id"`
	EnvironmentId *string `json:"environment_id,omitempty"`
}

Request Object

func (ShowApplicationConfigurationRequest) String

type ShowApplicationConfigurationResponse

type ShowApplicationConfigurationResponse struct {
	// 应用配置列表。
	Configuration *[]ApplicationListConfigConfiguration1 `json:"configuration,omitempty"`
}

Response Object

func (ShowApplicationConfigurationResponse) String

type ShowApplicationDetailRequest

type ShowApplicationDetailRequest struct {
	ApplicationId string `json:"application_id"`
}

Request Object

func (ShowApplicationDetailRequest) String

type ShowApplicationDetailResponse

type ShowApplicationDetailResponse struct {
	// 组件个数。
	ComponentCount *int32 `json:"component_count,omitempty"`
	// 应用ID。
	Id *string `json:"id,omitempty"`
	// 应用名称。
	Name *string `json:"name,omitempty"`
	// 应用描述。
	Description *string `json:"description,omitempty"`
	// 创建人。
	Creator *string `json:"creator,omitempty"`
	// 项目ID。
	ProjectId *string `json:"project_id,omitempty"`
	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	// 创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`
	// 修改时间。
	UpdateTime *int64 `json:"update_time,omitempty"`
}

Response Object

func (ShowApplicationDetailResponse) String

type ShowComponentDetailRequest

type ShowComponentDetailRequest struct {
	ApplicationId string `json:"application_id"`
	ComponentId   string `json:"component_id"`
}

Request Object

func (ShowComponentDetailRequest) String

type ShowComponentDetailResponse

type ShowComponentDetailResponse struct {
	// 应用组件ID。
	Id *string `json:"id,omitempty"`
	// 应用组件名称
	Name *string `json:"name,omitempty"`
	// 取值0或1。  0:表示正常状态。  1:表示正在删除。
	Status      *int32                `json:"status,omitempty"`
	Runtime     *RuntimeType          `json:"runtime,omitempty"`
	Category    *ComponentCategory    `json:"category,omitempty"`
	SubCategory *ComponentSubCategory `json:"sub_category,omitempty"`
	// 描述。
	Description *string `json:"description,omitempty"`
	// 项目ID。
	ProjectId *string `json:"project_id,omitempty"`
	// 应用ID。
	ApplicationId *string       `json:"application_id,omitempty"`
	Source        *SourceObject `json:"source,omitempty"`
	Build         *BuildInfo    `json:"build,omitempty"`
	// 流水线Id列表,最多10个。
	PipelineIds *[]string `json:"pipeline_ids,omitempty"`
	// 创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`
	// 修改时间。
	UpdateTime *int64 `json:"update_time,omitempty"`
}

Response Object

func (ShowComponentDetailResponse) String

type ShowContentRequest

type ShowContentRequest struct {
	XRepoAuth string `json:"X-Repo-Auth"`
	Namespace string `json:"namespace"`
	Project   string `json:"project"`
	Path      string `json:"path"`
	Ref       string `json:"ref"`
}

Request Object

func (ShowContentRequest) String

func (o ShowContentRequest) String() string

type ShowContentResponse

type ShowContentResponse struct {
	// 文件路径。
	Path *string `json:"path,omitempty"`
	// commit 哈希。
	Sha *string `json:"sha,omitempty"`
	// 编码方式:base64或者text/plain。
	Encoding *ShowContentResponseEncoding `json:"encoding,omitempty"`
	// 文件内容。
	Content *string `json:"content,omitempty"`
}

Response Object

func (ShowContentResponse) String

func (o ShowContentResponse) String() string

type ShowContentResponseEncoding

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

func (ShowContentResponseEncoding) MarshalJSON

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

func (*ShowContentResponseEncoding) UnmarshalJSON

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

type ShowContentResponseEncodingEnum

type ShowContentResponseEncodingEnum struct {
	BASE64     ShowContentResponseEncoding
	TEXT_PLAIN ShowContentResponseEncoding
}

func GetShowContentResponseEncodingEnum

func GetShowContentResponseEncodingEnum() ShowContentResponseEncodingEnum

type ShowEnvironmentDetailRequest

type ShowEnvironmentDetailRequest struct {
	EnvironmentId string `json:"environment_id"`
}

Request Object

func (ShowEnvironmentDetailRequest) String

type ShowEnvironmentDetailResponse

type ShowEnvironmentDetailResponse struct {
	// 环境ID。
	Id *string `json:"id,omitempty"`
	// 环境名称。
	Name *string `json:"name,omitempty"`
	// 环境别名。
	Alias *string `json:"alias,omitempty"`
	// 环境描述。
	Description *string `json:"description,omitempty"`
	// 项目ID。
	ProjectId *string `json:"project_id,omitempty"`
	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	// 收费模式。
	ChargeMode *string `json:"charge_mode,omitempty"`
	// 虚拟私有云ID。
	VpcId *string `json:"vpc_id,omitempty"`
	// 基础资源。
	BaseResources *[]Resource `json:"base_resources,omitempty"`
	// 可选资源。
	OptionalResources *[]Resource `json:"optional_resources,omitempty"`
	// 创建人。
	Creator *string `json:"creator,omitempty"`
	// 创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`
	// 修改时间。
	UpdateTime *int64 `json:"update_time,omitempty"`
}

Response Object

func (ShowEnvironmentDetailResponse) String

type ShowInstanceDetailRequest

type ShowInstanceDetailRequest struct {
	ApplicationId string `json:"application_id"`
	ComponentId   string `json:"component_id"`
	InstanceId    string `json:"instance_id"`
}

Request Object

func (ShowInstanceDetailRequest) String

func (o ShowInstanceDetailRequest) String() string

type ShowInstanceDetailResponse

type ShowInstanceDetailResponse struct {
	// 应用组件实例ID。
	Id *string `json:"id,omitempty"`
	// 应用组件实例名称。
	Name *string `json:"name,omitempty"`
	// 实例描述。
	Description *string `json:"description,omitempty"`
	// 应用组件环境ID。
	EnvironmentId *string               `json:"environment_id,omitempty"`
	PlatformType  *InstancePlatformType `json:"platform_type,omitempty"`
	FlavorId      *FlavorId             `json:"flavor_id,omitempty"`
	// 组件部署件。key为组件component_name,对于Docker多容器场景,key为容器名称。
	Artifacts map[string]interface{} `json:"artifacts,omitempty"`
	// 应用组件版本号。
	Version *string `json:"version,omitempty"`
	// 应用组件配置,如环境变量。
	Configuration *interface{} `json:"configuration,omitempty"`
	// 创建人。
	Creator *string `json:"creator,omitempty"`
	// 创建时间。
	CreateTime *int64 `json:"create_time,omitempty"`
	// 修改时间。
	UpdateTime *int64 `json:"update_time,omitempty"`
	// 访问方式列表。
	ExternalAccesses *[]ExternalAccesses `json:"external_accesses,omitempty"`
	// 部署资源列表。
	ReferResources *[]ReferResources   `json:"refer_resources,omitempty"`
	StatusDetail   *InstanceStatusView `json:"status_detail,omitempty"`
}

Response Object

func (ShowInstanceDetailResponse) String

type ShowJobDetailRequest

type ShowJobDetailRequest struct {
	JobId      string  `json:"job_id"`
	InstanceId *string `json:"instance_id,omitempty"`
	Limit      *int32  `json:"limit,omitempty"`
	Offset     *int32  `json:"offset,omitempty"`
	Desc       *string `json:"desc,omitempty"`
}

Request Object

func (ShowJobDetailRequest) String

func (o ShowJobDetailRequest) String() string

type ShowJobDetailResponse

type ShowJobDetailResponse struct {
	// 部署任务数量。
	TaskCount *int32   `json:"task_count,omitempty"`
	Job       *JobInfo `json:"job,omitempty"`
	// 部署任务列表。
	Tasks *[]TaskInfo `json:"tasks,omitempty"`
}

Response Object

func (ShowJobDetailResponse) String

func (o ShowJobDetailResponse) String() string

type ShowProjectDetailRequest

type ShowProjectDetailRequest struct {
	XRepoAuth string `json:"X-Repo-Auth"`
	CloneUrl  string `json:"clone_url"`
}

Request Object

func (ShowProjectDetailRequest) String

func (o ShowProjectDetailRequest) String() string

type ShowProjectDetailResponse

type ShowProjectDetailResponse struct {
	// 命名空间ID。
	NamespaceId *string `json:"namespace_id,omitempty"`
	// 命名空间。
	Namespace *string `json:"namespace,omitempty"`
	// 仓库项目ID。
	ProjectId *string `json:"project_id,omitempty"`
	// 仓库项目。
	Project *string `json:"project,omitempty"`
}

Response Object

func (ShowProjectDetailResponse) String

func (o ShowProjectDetailResponse) String() string

type ShowRedirectUrlRequest

type ShowRedirectUrlRequest struct {
	RepoType ShowRedirectUrlRequestRepoType `json:"repo_type"`
	Tag      *string                        `json:"tag,omitempty"`
}

Request Object

func (ShowRedirectUrlRequest) String

func (o ShowRedirectUrlRequest) String() string

type ShowRedirectUrlRequestRepoType

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

func (ShowRedirectUrlRequestRepoType) MarshalJSON

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

func (*ShowRedirectUrlRequestRepoType) UnmarshalJSON

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

type ShowRedirectUrlResponse

type ShowRedirectUrlResponse struct {
	// 授权重定向URL。
	Url *string `json:"url,omitempty"`
}

Response Object

func (ShowRedirectUrlResponse) String

func (o ShowRedirectUrlResponse) String() string

type SourceKind

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

来源类型。支持源码code和artifact软件包。

func (SourceKind) MarshalJSON

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

func (*SourceKind) UnmarshalJSON

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

type SourceKindEnum

type SourceKindEnum struct {
	CODE     SourceKind
	ARTIFACT SourceKind
}

func GetSourceKindEnum

func GetSourceKindEnum() SourceKindEnum

type SourceObject

type SourceObject struct {
	Kind *SourceKind       `json:"kind,omitempty"`
	Spec *SourceOrArtifact `json:"spec,omitempty"`
}

组件来源。

func (SourceObject) String

func (o SourceObject) String() string

type SourceOrArtifact

type SourceOrArtifact struct {
	// 存储方式,支持软件仓库swr和对象存储obs。
	Storage *SourceOrArtifactStorage `json:"storage,omitempty"`
	// 类别,支持package。
	Type *SourceOrArtifactType `json:"type,omitempty"`
	// 软件包源码地址,如https://{IP}:20202/xxx/xxx.jar。
	Url *string `json:"url,omitempty"`
	// 认证方式,支持iam,none,默认是iam。
	Auth     *string         `json:"auth,omitempty"`
	RepoType *SourceRepoType `json:"repo_type,omitempty"`
	// 代码仓url,如:https://github.com/example/demo.git
	RepoUrl *string `json:"repo_url,omitempty"`
	// 代码分支或者Tag,默认是master。
	RepoRef *string `json:"repo_ref,omitempty"`
	// 授权名称,在授权列表获取。
	RepoAuth *string `json:"repo_auth,omitempty"`
}

当组件来源的kind是artifact时spec的内容结构。

func (SourceOrArtifact) String

func (o SourceOrArtifact) String() string

type SourceOrArtifactStorage

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

func (SourceOrArtifactStorage) MarshalJSON

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

func (*SourceOrArtifactStorage) UnmarshalJSON

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

type SourceOrArtifactStorageEnum

type SourceOrArtifactStorageEnum struct {
	SWR SourceOrArtifactStorage
	OBS SourceOrArtifactStorage
}

func GetSourceOrArtifactStorageEnum

func GetSourceOrArtifactStorageEnum() SourceOrArtifactStorageEnum

type SourceOrArtifactType

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

func (SourceOrArtifactType) MarshalJSON

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

func (*SourceOrArtifactType) UnmarshalJSON

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

type SourceOrArtifactTypeEnum

type SourceOrArtifactTypeEnum struct {
	PACKAGE SourceOrArtifactType
}

func GetSourceOrArtifactTypeEnum

func GetSourceOrArtifactTypeEnum() SourceOrArtifactTypeEnum

type SourceRepoType

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

代码仓类型,支持GitHub、GitLab、Gitee、Bitbucket。

func (SourceRepoType) MarshalJSON

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

func (*SourceRepoType) UnmarshalJSON

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

type SourceRepoTypeEnum

type SourceRepoTypeEnum struct {
	GIT_HUB   SourceRepoType
	GIT_LAB   SourceRepoType
	GITEE     SourceRepoType
	BITBUCKET SourceRepoType
}

func GetSourceRepoTypeEnum

func GetSourceRepoTypeEnum() SourceRepoTypeEnum

type TagCreate

type TagCreate struct {
	// tag标签名称。
	Name string `json:"name"`
	// tag标签描述信息。
	Description string `json:"description"`
}

func (TagCreate) String

func (o TagCreate) String() string

type TaskInfo

type TaskInfo struct {
	// 创建时间。
	CreatedAt *string `json:"CREATED_AT,omitempty"`
	// 健康检查时间。
	LastHealthCheck *string `json:"LAST_HEALTH_CHECK,omitempty"`
	// 消息。
	Messages *string `json:"MESSAGES,omitempty"`
	// 创建用户ID。
	OwnerId *string `json:"OWNER_ID,omitempty"`
	// 任务ID。
	TaskId *string `json:"TASK_ID,omitempty"`
	// 任务序号。
	TaskIndex *int32 `json:"TASK_INDEX,omitempty"`
	// 任务名称。
	TaskName *string `json:"TASK_NAME,omitempty"`
	// 任务状态。
	TaskStatus *TaskInfoTaskStatus `json:"TASK_STATUS,omitempty"`
	// 任务类型。
	TaskType *string `json:"TASK_TYPE,omitempty"`
}

func (TaskInfo) String

func (o TaskInfo) String() string

type TaskInfoTaskStatus

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

func (TaskInfoTaskStatus) MarshalJSON

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

func (*TaskInfoTaskStatus) UnmarshalJSON

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

type TaskInfoTaskStatusEnum

type TaskInfoTaskStatusEnum struct {
	RUNNING   TaskInfoTaskStatus
	SKIPPED   TaskInfoTaskStatus
	FAILED    TaskInfoTaskStatus
	SUCCEEDED TaskInfoTaskStatus
}

func GetTaskInfoTaskStatusEnum

func GetTaskInfoTaskStatusEnum() TaskInfoTaskStatusEnum

type Template

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

模板名称。

func (Template) MarshalJSON

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

func (*Template) UnmarshalJSON

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

type TemplateEnum

type TemplateEnum struct {
	MAGENTO   Template
	MBAAS     Template
	WORDPRESS Template
}

func GetTemplateEnum

func GetTemplateEnum() TemplateEnum

type TemplateView

type TemplateView struct {
	TemplateName *Template `json:"template_name,omitempty"`
	// 模板描述。
	TemplateDesc *string `json:"template_desc,omitempty"`
	// 模板类别。
	SourceType *string `json:"source_type,omitempty"`
	// 源码仓库URL
	SourceRepoUrl *string      `json:"source_repo_url,omitempty"`
	Runtime       *RuntimeType `json:"runtime,omitempty"`
}

模板参数。

func (TemplateView) String

func (o TemplateView) String() string

type UpdateFileRequest

type UpdateFileRequest struct {
	XRepoAuth string      `json:"X-Repo-Auth"`
	Namespace string      `json:"namespace"`
	Project   string      `json:"project"`
	Path      string      `json:"path"`
	Ref       string      `json:"ref"`
	Body      *FileUpdate `json:"body,omitempty"`
}

Request Object

func (UpdateFileRequest) String

func (o UpdateFileRequest) String() string

type UpdateFileResponse

type UpdateFileResponse struct {
	// 文件路径。
	Path *string `json:"path,omitempty"`
}

Response Object

func (UpdateFileResponse) String

func (o UpdateFileResponse) String() string

type UpdateInstanceActionRequest

type UpdateInstanceActionRequest struct {
	ApplicationId string          `json:"application_id"`
	ComponentId   string          `json:"component_id"`
	InstanceId    string          `json:"instance_id"`
	Body          *InstanceAction `json:"body,omitempty"`
}

Request Object

func (UpdateInstanceActionRequest) String

type UpdateInstanceActionResponse

type UpdateInstanceActionResponse struct {
	// Job ID。
	JobId *string `json:"job_id,omitempty"`
}

Response Object

func (UpdateInstanceActionResponse) String

Source Files

Jump to

Keyboard shortcuts

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