model

package
v0.1.60 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 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"`
}

ApplicationConfigModifyConfiguration 应用配置信息。

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

ApplicationListConfigConfiguration 应用配置信息。

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

	// 是否开启统一模型
	UnifiedModel *string `json:"unified_model,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 AuthorizationVi added in v0.1.11

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

AuthorizationVi 授权结构体。

func (AuthorizationVi) String added in v0.1.11

func (o AuthorizationVi) 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"`

	// 授权局点的类型,默认为null。
	Tag string `json:"tag"`
}

AuthorizationVo 授权结构体。

func (AuthorizationVo) String

func (o AuthorizationVo) String() string

type Build

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

Build 构建工程。

func (Build) String

func (o Build) String() string

type BuildInfo

type BuildInfo struct {

	// 构建ID,查看构建列表获取。
	Id *string `json:"id,omitempty"`

	Parameters *BuildInfoParameters `json:"parameters,omitempty"`
}

BuildInfo 构建工程。

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

	// 指定构建集群的id。
	ClusterId *string `json:"cluster_id,omitempty"`

	// key是标签的键,value是标签的值。
	NodeLabelSelector *interface{} `json:"node_label_selector,omitempty"`
}

BuildInfoParameters 构建任务的环境变量。

func (BuildInfoParameters) String

func (o BuildInfoParameters) String() string

type BuildParameters added in v0.1.11

type BuildParameters 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"`

	// 指定构建集群的id。
	ClusterId *string `json:"cluster_id,omitempty"`

	// 指定构建集群的id。
	NodeLabelSelector *interface{} `json:"node_label_selector,omitempty"`
}

BuildParameters 构建任务的环境变量。

func (BuildParameters) String added in v0.1.11

func (o BuildParameters) String() string

type ChangeApplicationConfigurationRequest

type ChangeApplicationConfigurationRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`

	Body *ApplicationConfigModify `json:"body,omitempty"`
}

ChangeApplicationConfigurationRequest 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"`
	HttpStatusCode int                                 `json:"-"`
}

ChangeApplicationConfigurationResponse Response Object

func (ChangeApplicationConfigurationResponse) String

type ChangeApplicationRequest

type ChangeApplicationRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`

	Body *ApplicationModify `json:"body,omitempty"`
}

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

	// 是否统一模型
	UnifiedModel   *string `json:"unified_model,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ChangeApplicationResponse Response Object

func (ChangeApplicationResponse) String

func (o ChangeApplicationResponse) String() string

type ChangeComponentRequest

type ChangeComponentRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`

	// 组件ID。
	ComponentId string `json:"component_id"`

	Body *ComponentModify `json:"body,omitempty"`
}

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

	// 创建者
	Creator *string `json:"creator,omitempty"`

	// 修改时间。
	UpdateTime     *int64 `json:"update_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ChangeComponentResponse Response Object

func (ChangeComponentResponse) String

func (o ChangeComponentResponse) String() string

type ChangeEnvironmentRequest

type ChangeEnvironmentRequest struct {

	// 环境ID。
	EnvironmentId string `json:"environment_id"`

	Body *EnvironmentModify `json:"body,omitempty"`
}

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

	// 环境类型
	DeployMode *string `json:"deploy_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"`
	HttpStatusCode int    `json:"-"`
}

ChangeEnvironmentResponse Response Object

func (ChangeEnvironmentResponse) String

func (o ChangeEnvironmentResponse) String() string

type ChangeInstanceRequest

type ChangeInstanceRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`

	// 组件ID。
	ComponentId string `json:"component_id"`

	// 组件实例ID。
	InstanceId string `json:"instance_id"`

	Body *InstanceModify `json:"body,omitempty"`
}

ChangeInstanceRequest Request Object

func (ChangeInstanceRequest) String

func (o ChangeInstanceRequest) String() string

type ChangeInstanceResponse

type ChangeInstanceResponse struct {

	// Job ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ChangeInstanceResponse Response Object

func (ChangeInstanceResponse) String

func (o ChangeInstanceResponse) String() string

type ChangeResourceInEnvironmentRequest

type ChangeResourceInEnvironmentRequest struct {

	// 环境ID。
	EnvironmentId string `json:"environment_id"`

	Body *EnvironmentResourceModify `json:"body,omitempty"`
}

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

	// 环境类型
	DeployMode *string `json:"deploy_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"`
	HttpStatusCode int    `json:"-"`
}

ChangeResourceInEnvironmentResponse Response Object

func (ChangeResourceInEnvironmentResponse) String

type ChargeMode

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

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

func (ChargeMode) MarshalJSON

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

func (*ChargeMode) UnmarshalJSON

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

func (ChargeMode) Value added in v0.0.90

func (c ChargeMode) Value() string

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
}

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

func (ComponentCategory) MarshalJSON

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

func (*ComponentCategory) UnmarshalJSON

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

func (ComponentCategory) Value added in v0.0.90

func (c ComponentCategory) Value() string

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 ComponentMount added in v0.1.41

type ComponentMount struct {

	// 挂载路径
	Path *string `json:"path,omitempty"`

	// 挂载路径的子路径
	SubPath *string `json:"subPath,omitempty"`

	// 是否只读
	ReadOnly *bool `json:"readOnly,omitempty"`
}

func (ComponentMount) String added in v0.1.41

func (o ComponentMount) String() string

type ComponentProbe added in v0.1.41

type ComponentProbe struct {
	Type ComponentProbeType `json:"type"`

	// 表示启动后多久开始探测
	Delay *int32 `json:"delay,omitempty"`

	// 表示探测超时时间
	Timeout *int32 `json:"timeout,omitempty"`

	Parameters *ProbeParameter `json:"parameters"`
}

func (ComponentProbe) String added in v0.1.41

func (o ComponentProbe) String() string

type ComponentProbeType added in v0.1.41

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

func (ComponentProbeType) MarshalJSON added in v0.1.41

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

func (*ComponentProbeType) UnmarshalJSON added in v0.1.41

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

func (ComponentProbeType) Value added in v0.1.41

func (c ComponentProbeType) Value() string

type ComponentProbeTypeEnum added in v0.1.41

type ComponentProbeTypeEnum struct {
	HTTP    ComponentProbeType
	TCP     ComponentProbeType
	COMMAND ComponentProbeType
}

func GetComponentProbeTypeEnum added in v0.1.41

func GetComponentProbeTypeEnum() ComponentProbeTypeEnum

type ComponentStorage added in v0.1.41

type ComponentStorage struct {
	Type ComponentStorageType `json:"type"`

	Parameters *StorageParameter `json:"parameters"`

	Mounts []ComponentMount `json:"mounts"`
}

func (ComponentStorage) String added in v0.1.41

func (o ComponentStorage) String() string

type ComponentStorageType added in v0.1.41

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

func (ComponentStorageType) MarshalJSON added in v0.1.41

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

func (*ComponentStorageType) UnmarshalJSON added in v0.1.41

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

func (ComponentStorageType) Value added in v0.1.41

func (c ComponentStorageType) Value() string

type ComponentStorageTypeEnum added in v0.1.41

type ComponentStorageTypeEnum struct {
	HOST_PATH               ComponentStorageType
	EMPTY_DIR               ComponentStorageType
	CONFIG_MAP              ComponentStorageType
	SECRET                  ComponentStorageType
	PERSISTENT_VOLUME_CLAIM ComponentStorageType
}

func GetComponentStorageTypeEnum added in v0.1.41

func GetComponentStorageTypeEnum() ComponentStorageTypeEnum

type ComponentSubCategory

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

ComponentSubCategory 应用组件子类型。 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

func (ComponentSubCategory) Value added in v0.0.90

func (c ComponentSubCategory) Value() string

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

	// 项目ID。
	ProjectId *string `json:"project_id,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"`

	Build *BuildInfo `json:"build,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 ConfigurationEnvParam added in v0.1.41

type ConfigurationEnvParam struct {

	// 环境变量名称。
	Name string `json:"name"`

	// 环境变量取值。
	Value string `json:"value"`
}

func (ConfigurationEnvParam) String added in v0.1.41

func (o ConfigurationEnvParam) String() string

type ConfigurationLifecycle added in v0.1.41

type ConfigurationLifecycle struct {
	Entrypoint *LifecycleEntrypoint `json:"entrypoint,omitempty"`

	PostStart *LifecycleProcess `json:"post-start,omitempty"`

	PreStop *LifecycleProcess `json:"pre-stop,omitempty"`
}

ConfigurationLifecycle 生命周期

func (ConfigurationLifecycle) String added in v0.1.41

func (o ConfigurationLifecycle) String() string

type ConfigurationProbes added in v0.1.41

type ConfigurationProbes struct {
	LivenessProbe *ComponentProbe `json:"livenessProbe,omitempty"`

	ReadinessProbe *ComponentProbe `json:"readinessProbe,omitempty"`
}

func (ConfigurationProbes) String added in v0.1.41

func (o ConfigurationProbes) String() string

type ConfigurationScheduler added in v0.1.41

type ConfigurationScheduler struct {
	Affinity *SchedulerAffinity `json:"affinity,omitempty"`

	AntiAffinity *SchedulerAffinity `json:"anti-affinity,omitempty"`
}

ConfigurationScheduler 调度策略

func (ConfigurationScheduler) String added in v0.1.41

func (o ConfigurationScheduler) String() string

type ConfigurationStrategy added in v0.1.41

type ConfigurationStrategy struct {

	// 部署策略
	Upgrade *string `json:"upgrade,omitempty"`
}

ConfigurationStrategy 部署策略

func (ConfigurationStrategy) String added in v0.1.41

func (o ConfigurationStrategy) String() string

type CreateApplicationRequest

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

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

	// 是否统一模型
	UnifiedModel   *string `json:"unified_model,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateApplicationResponse Response Object

func (CreateApplicationResponse) String

func (o CreateApplicationResponse) String() string

type CreateCamInstanceRequest added in v0.1.42

type CreateCamInstanceRequest struct {
	Body *InstanceCreation `json:"body,omitempty"`
}

CreateCamInstanceRequest Request Object

func (CreateCamInstanceRequest) String added in v0.1.42

func (o CreateCamInstanceRequest) String() string

type CreateCamInstanceResponse added in v0.1.42

type CreateCamInstanceResponse struct {

	// 实例ID
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateCamInstanceResponse Response Object

func (CreateCamInstanceResponse) String added in v0.1.42

func (o CreateCamInstanceResponse) String() string

type CreateComponentRequest

type CreateComponentRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`

	Body *ComponentCreate `json:"body,omitempty"`
}

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

	// 创建者
	Creator *string `json:"creator,omitempty"`

	// 修改时间。
	UpdateTime     *int64 `json:"update_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

CreateComponentResponse Response Object

func (CreateComponentResponse) String

func (o CreateComponentResponse) String() string

type CreateEnvironmentRequest

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

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

	// 环境类型
	DeployMode *string `json:"deploy_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"`
	HttpStatusCode int    `json:"-"`
}

CreateEnvironmentResponse Response Object

func (CreateEnvironmentResponse) String

func (o CreateEnvironmentResponse) String() string

type CreateFileRequest

type CreateFileRequest struct {

	// 授权名称。
	XRepoAuth string `json:"X-Repo-Auth"`

	// 命名空间ID或者URL编码名称。
	Namespace string `json:"namespace"`

	// 仓库项目ID,如果含有“/”,需要将“/”替换为“:”。
	Project string `json:"project"`

	// 文件路径,需要将“/”替换为“:”。
	Path string `json:"path"`

	// 分支名称或者tag标签名称或者commit sha。
	Ref string `json:"ref"`

	Body *FileCreate `json:"body,omitempty"`
}

CreateFileRequest Request Object

func (CreateFileRequest) String

func (o CreateFileRequest) String() string

type CreateFileResponse

type CreateFileResponse struct {

	// 文件路径。
	Path           *string `json:"path,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateFileResponse Response Object

func (CreateFileResponse) String

func (o CreateFileResponse) String() string

type CreateHookRequest

type CreateHookRequest struct {

	// 授权名称。
	XRepoAuth string `json:"X-Repo-Auth"`

	// 命名空间ID或者URL编码名称。
	Namespace string `json:"namespace"`

	// 仓库项目ID,如果含有“/”,需要将“/”替换为“:”。
	Project string `json:"project"`

	Body *HookCreate `json:"body,omitempty"`
}

CreateHookRequest 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"`
	HttpStatusCode int     `json:"-"`
}

CreateHookResponse Response Object

func (CreateHookResponse) String

func (o CreateHookResponse) String() string

type CreateInstanceRequest

type CreateInstanceRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`

	// 组件ID。
	ComponentId string `json:"component_id"`

	Body *InstanceCreate `json:"body,omitempty"`
}

CreateInstanceRequest 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"`
	HttpStatusCode int     `json:"-"`
}

CreateInstanceResponse Response Object

func (CreateInstanceResponse) String

func (o CreateInstanceResponse) String() string

type CreateOAuthRequest

type CreateOAuthRequest struct {

	// 仓库类型。 支持OAuth授权的仓库类型有:github、gitlab、gitee、bitbucket。
	RepoType CreateOAuthRequestRepoType `json:"repo_type"`

	// 站点标签。 比如国际站的,?tag=intl。 默认为空。
	Tag *string `json:"tag,omitempty"`

	Body *OAuth `json:"body,omitempty"`
}

CreateOAuthRequest 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

func (CreateOAuthRequestRepoType) Value added in v0.0.90

type CreateOAuthRequestRepoTypeEnum

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

func GetCreateOAuthRequestRepoTypeEnum

func GetCreateOAuthRequestRepoTypeEnum() CreateOAuthRequestRepoTypeEnum

type CreateOAuthResponse

type CreateOAuthResponse struct {
	Authorization  *AuthorizationVi `json:"authorization,omitempty"`
	HttpStatusCode int              `json:"-"`
}

CreateOAuthResponse Response Object

func (CreateOAuthResponse) String

func (o CreateOAuthResponse) String() string

type CreatePasswordAuthRequest

type CreatePasswordAuthRequest struct {

	// 仓库类型。 支持口令授权的仓库类型有:github、devcloud、bitbucket。
	RepoType CreatePasswordAuthRequestRepoType `json:"repo_type"`

	Body *AccessPassword `json:"body,omitempty"`
}

CreatePasswordAuthRequest 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

func (CreatePasswordAuthRequestRepoType) Value added in v0.0.90

type CreatePasswordAuthRequestRepoTypeEnum

type CreatePasswordAuthRequestRepoTypeEnum struct {
	GITHUB    CreatePasswordAuthRequestRepoType
	DEVCLOUD  CreatePasswordAuthRequestRepoType
	BITBUCKET CreatePasswordAuthRequestRepoType
}

func GetCreatePasswordAuthRequestRepoTypeEnum

func GetCreatePasswordAuthRequestRepoTypeEnum() CreatePasswordAuthRequestRepoTypeEnum

type CreatePasswordAuthResponse

type CreatePasswordAuthResponse struct {
	Authorization  *AuthorizationVi `json:"authorization,omitempty"`
	HttpStatusCode int              `json:"-"`
}

CreatePasswordAuthResponse Response Object

func (CreatePasswordAuthResponse) String

type CreatePersonalAuthRequest

type CreatePersonalAuthRequest struct {

	// 仓库类型。 支持私人令牌授权的仓库类型有:github、gitlab、gitee。
	RepoType CreatePersonalAuthRequestRepoType `json:"repo_type"`

	Body *AccessToken `json:"body,omitempty"`
}

CreatePersonalAuthRequest 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

func (CreatePersonalAuthRequestRepoType) Value added in v0.0.90

type CreatePersonalAuthResponse

type CreatePersonalAuthResponse struct {
	Authorization  *AuthorizationVi `json:"authorization,omitempty"`
	HttpStatusCode int              `json:"-"`
}

CreatePersonalAuthResponse Response Object

func (CreatePersonalAuthResponse) String

type CreateProjectRequest

type CreateProjectRequest struct {

	// 授权名称。
	XRepoAuth string `json:"X-Repo-Auth"`

	// 命名空间ID或者URL编码名称。
	Namespace string `json:"namespace"`

	Body *ProjectCreate `json:"body,omitempty"`
}

CreateProjectRequest 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"`
	HttpStatusCode int     `json:"-"`
}

CreateProjectResponse Response Object

func (CreateProjectResponse) String

func (o CreateProjectResponse) String() string

type CreateTagRequest

type CreateTagRequest struct {

	// 授权名称。
	XRepoAuth string `json:"X-Repo-Auth"`

	// 命名空间ID或者URL编码名称。
	Namespace string `json:"namespace"`

	// 仓库项目ID,如果含有“/”,需要将“/”替换为“:”。
	Project string `json:"project"`

	// 分支名称或者tag标签名称或者commit sha。
	Ref string `json:"ref"`

	Body *TagCreate `json:"body,omitempty"`
}

CreateTagRequest Request Object

func (CreateTagRequest) String

func (o CreateTagRequest) String() string

type CreateTagResponse

type CreateTagResponse struct {

	// tag标签名称。
	Name           *string `json:"name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateTagResponse Response Object

func (CreateTagResponse) String

func (o CreateTagResponse) String() string

type CreateTemplate added in v0.1.42

type CreateTemplate struct {

	// 模板名称,必填
	Name string `json:"name"`

	// 应用是否托管到servicestage,1是托管,0是不托管,非必填
	IsServicestage *int32 `json:"is_servicestage,omitempty"`

	// 描述信息,非必填
	Desc *string `json:"desc,omitempty"`

	// 模板在桶中的url,必填
	ObsUrl string `json:"obs_url"`

	// 模板标签,非必填
	Tags *[]string `json:"tags,omitempty"`
}

CreateTemplate 创建模板请求体

func (CreateTemplate) String added in v0.1.42

func (o CreateTemplate) String() string

type CreateTemplateRequest added in v0.1.42

type CreateTemplateRequest struct {
	Body *CreateTemplate `json:"body,omitempty"`
}

CreateTemplateRequest Request Object

func (CreateTemplateRequest) String added in v0.1.42

func (o CreateTemplateRequest) String() string

type CreateTemplateResponse added in v0.1.42

type CreateTemplateResponse struct {

	// 模板ID
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateTemplateResponse Response Object

func (CreateTemplateResponse) String added in v0.1.42

func (o CreateTemplateResponse) String() string

type DeleteApplicationConfigurationRequest

type DeleteApplicationConfigurationRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`

	// 环境ID。
	EnvironmentId string `json:"environment_id"`
}

DeleteApplicationConfigurationRequest Request Object

func (DeleteApplicationConfigurationRequest) String

type DeleteApplicationConfigurationResponse

type DeleteApplicationConfigurationResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteApplicationConfigurationResponse Response Object

func (DeleteApplicationConfigurationResponse) String

type DeleteApplicationRequest

type DeleteApplicationRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`
}

DeleteApplicationRequest Request Object

func (DeleteApplicationRequest) String

func (o DeleteApplicationRequest) String() string

type DeleteApplicationResponse

type DeleteApplicationResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteApplicationResponse Response Object

func (DeleteApplicationResponse) String

func (o DeleteApplicationResponse) String() string

type DeleteAuthorizeRequest

type DeleteAuthorizeRequest struct {

	// 授权名称。
	Name string `json:"name"`
}

DeleteAuthorizeRequest Request Object

func (DeleteAuthorizeRequest) String

func (o DeleteAuthorizeRequest) String() string

type DeleteAuthorizeResponse

type DeleteAuthorizeResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteAuthorizeResponse Response Object

func (DeleteAuthorizeResponse) String

func (o DeleteAuthorizeResponse) String() string

type DeleteComponentRequest

type DeleteComponentRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`

	// 组件ID。
	ComponentId string `json:"component_id"`

	// 是否强制删除。
	Force *bool `json:"force,omitempty"`
}

DeleteComponentRequest Request Object

func (DeleteComponentRequest) String

func (o DeleteComponentRequest) String() string

type DeleteComponentResponse

type DeleteComponentResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteComponentResponse Response Object

func (DeleteComponentResponse) String

func (o DeleteComponentResponse) String() string

type DeleteEnvironmentRequest

type DeleteEnvironmentRequest struct {

	// 环境ID。
	EnvironmentId string `json:"environment_id"`
}

DeleteEnvironmentRequest Request Object

func (DeleteEnvironmentRequest) String

func (o DeleteEnvironmentRequest) String() string

type DeleteEnvironmentResponse

type DeleteEnvironmentResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteEnvironmentResponse Response Object

func (DeleteEnvironmentResponse) String

func (o DeleteEnvironmentResponse) String() string

type DeleteFileRequest

type DeleteFileRequest struct {

	// 授权名称。
	XRepoAuth string `json:"X-Repo-Auth"`

	// 命名空间ID或者URL编码名称。
	Namespace string `json:"namespace"`

	// 仓库项目ID,如果含有“/”,需要将“/”替换为“:”。
	Project string `json:"project"`

	// 文件路径,需要将“/”替换为“:”。
	Path string `json:"path"`

	// 分支名称或者tag标签名称或者commit sha。
	Ref string `json:"ref"`

	// 提交描述。
	Message string `json:"message"`

	// 最后一次提交的commit sha值。
	Sha string `json:"sha"`
}

DeleteFileRequest Request Object

func (DeleteFileRequest) String

func (o DeleteFileRequest) String() string

type DeleteFileResponse

type DeleteFileResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteFileResponse Response Object

func (DeleteFileResponse) String

func (o DeleteFileResponse) String() string

type DeleteHookRequest

type DeleteHookRequest struct {

	// 授权名称。
	XRepoAuth string `json:"X-Repo-Auth"`

	// 命名空间ID或者URL编码名称。
	Namespace string `json:"namespace"`

	// 仓库项目ID,如果含有“/”,需要将“/”替换为“:”。
	Project string `json:"project"`

	// hook ID。
	HookId string `json:"hook_id"`
}

DeleteHookRequest Request Object

func (DeleteHookRequest) String

func (o DeleteHookRequest) String() string

type DeleteHookResponse

type DeleteHookResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteHookResponse Response Object

func (DeleteHookResponse) String

func (o DeleteHookResponse) String() string

type DeleteInstanceByIdRequest added in v0.1.42

type DeleteInstanceByIdRequest struct {

	// 实例ID
	InstanceId string `json:"instance_id"`
}

DeleteInstanceByIdRequest Request Object

func (DeleteInstanceByIdRequest) String added in v0.1.42

func (o DeleteInstanceByIdRequest) String() string

type DeleteInstanceByIdResponse added in v0.1.42

type DeleteInstanceByIdResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteInstanceByIdResponse Response Object

func (DeleteInstanceByIdResponse) String added in v0.1.42

type DeleteInstanceRequest

type DeleteInstanceRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`

	// 组件ID。
	ComponentId string `json:"component_id"`

	// 组件实例ID。
	InstanceId string `json:"instance_id"`

	// 是否强制删除。
	Force *bool `json:"force,omitempty"`
}

DeleteInstanceRequest Request Object

func (DeleteInstanceRequest) String

func (o DeleteInstanceRequest) String() string

type DeleteInstanceResponse

type DeleteInstanceResponse struct {

	// Job ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeleteInstanceResponse Response Object

func (DeleteInstanceResponse) String

func (o DeleteInstanceResponse) String() string

type DeleteTagRequest

type DeleteTagRequest struct {

	// 授权名称。
	XRepoAuth string `json:"X-Repo-Auth"`

	// 命名空间ID或者URL编码名称。
	Namespace string `json:"namespace"`

	// 仓库项目ID,如果含有“/”,需要将“/”替换为“:”。
	Project string `json:"project"`

	// tag标签名称。
	TagName string `json:"tag_name"`
}

DeleteTagRequest Request Object

func (DeleteTagRequest) String

func (o DeleteTagRequest) String() string

type DeleteTagResponse

type DeleteTagResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteTagResponse Response Object

func (DeleteTagResponse) String

func (o DeleteTagResponse) String() string

type DeleteTemplateRequest added in v0.1.42

type DeleteTemplateRequest struct {

	// 模板ID
	TemplateId string `json:"template_id"`
}

DeleteTemplateRequest Request Object

func (DeleteTemplateRequest) String added in v0.1.42

func (o DeleteTemplateRequest) String() string

type DeleteTemplateResponse added in v0.1.42

type DeleteTemplateResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteTemplateResponse Response Object

func (DeleteTemplateResponse) String added in v0.1.42

func (o DeleteTemplateResponse) String() string

type DeployInstanceRequest added in v0.1.42

type DeployInstanceRequest struct {
	Body *InstanceDeployment `json:"body,omitempty"`
}

DeployInstanceRequest Request Object

func (DeployInstanceRequest) String added in v0.1.42

func (o DeployInstanceRequest) String() string

type DeployInstanceResponse added in v0.1.42

type DeployInstanceResponse struct {

	// 实例id
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

DeployInstanceResponse Response Object

func (DeployInstanceResponse) String added in v0.1.42

func (o DeployInstanceResponse) 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"`

	// 环境类型
	DeployMode *string `json:"deploy_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"`

	DeployMode string `json:"deploy_mode"`

	// 虚拟私有云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
}

ExternalAccessProtocol 协议。

func (ExternalAccessProtocol) MarshalJSON

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

func (*ExternalAccessProtocol) UnmarshalJSON

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

func (ExternalAccessProtocol) Value added in v0.0.90

func (c ExternalAccessProtocol) Value() string

type ExternalAccessProtocolEnum

type ExternalAccessProtocolEnum struct {
	HTTP  ExternalAccessProtocol
	HTTPS ExternalAccessProtocol
}

func GetExternalAccessProtocolEnum

func GetExternalAccessProtocolEnum() ExternalAccessProtocolEnum

type ExternalAccessStatus

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

ExternalAccessStatus 状态。

func (ExternalAccessStatus) MarshalJSON

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

func (*ExternalAccessStatus) UnmarshalJSON

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

func (ExternalAccessStatus) Value added in v0.0.90

func (c ExternalAccessStatus) Value() string

type ExternalAccessStatusEnum

type ExternalAccessStatusEnum struct {
	NORMAL  ExternalAccessStatus
	EXPIRED ExternalAccessStatus
}

func GetExternalAccessStatusEnum

func GetExternalAccessStatusEnum() ExternalAccessStatusEnum

type ExternalAccessType

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

ExternalAccessType 类型。

func (ExternalAccessType) MarshalJSON

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

func (*ExternalAccessType) UnmarshalJSON

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

func (ExternalAccessType) Value added in v0.0.90

func (c ExternalAccessType) Value() string

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

ExternalAccesses 访问方式。

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

ExternalAccessesCreate 外网访问。

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

func (ExternalAccessesCreateProtocol) Value added in v0.0.90

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
}

FlavorId 资源规格。

func (FlavorId) MarshalJSON

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

func (*FlavorId) UnmarshalJSON

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

func (FlavorId) Value added in v0.0.90

func (c FlavorId) Value() string

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

	// 是否是自定义资源规格。
	Custom *bool `json:"custom,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"`
}

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

func (InstanceActionParameters) String

func (o InstanceActionParameters) String() string

type InstanceActionType

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

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

func (InstanceActionType) MarshalJSON

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

func (*InstanceActionType) UnmarshalJSON

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

func (InstanceActionType) Value added in v0.0.90

func (c InstanceActionType) Value() string

type InstanceActionTypeEnum

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

func GetInstanceActionTypeEnum

func GetInstanceActionTypeEnum() InstanceActionTypeEnum

type InstanceConfiguration added in v0.1.41

type InstanceConfiguration struct {

	// 应用环境变量。
	Env *[]ConfigurationEnvParam `json:"env,omitempty"`

	Storage *[]ComponentStorage `json:"storage,omitempty"`

	Strategy *ConfigurationStrategy `json:"strategy,omitempty"`

	Lifecycle *ConfigurationLifecycle `json:"lifecycle,omitempty"`

	Scheduler *ConfigurationScheduler `json:"scheduler,omitempty"`

	Probes *ConfigurationProbes `json:"probes,omitempty"`
}

InstanceConfiguration 应用配置,环境变量等,如{“env”: [{“name”: “log-level”: “warn”}]}, 默认空。

func (InstanceConfiguration) String added in v0.1.41

func (o InstanceConfiguration) String() string

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

	Configuration *InstanceConfiguration `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 InstanceCreation added in v0.1.42

type InstanceCreation struct {

	// 实例名称,必填
	Name *string `json:"name,omitempty"`

	// 实例描述,非必填
	Desc *string `json:"desc,omitempty"`

	// 架构部署图,通过设计器创建时必填
	Diagram *string `json:"diagram,omitempty"`

	// 设计器架构图base64编码,通过设计器创建或更新实例时可选
	Image *string `json:"image,omitempty"`

	// 预置模板id,通过模板创建时必填
	TemplateId *string `json:"template_id,omitempty"`

	Variables *InstanceCreationVariables `json:"variables,omitempty"`

	// 实例id,更新时必填
	InstanceId *string `json:"instance_id,omitempty"`
}

InstanceCreation 创建实例请求体

func (InstanceCreation) String added in v0.1.42

func (o InstanceCreation) String() string

type InstanceCreationVariables added in v0.1.42

type InstanceCreationVariables struct {

	// 环境变量
	Environment *interface{} `json:"environment,omitempty"`

	// 组件变量
	Components *interface{} `json:"components,omitempty"`
}

InstanceCreationVariables 变量值,通过模板创建时必填

func (InstanceCreationVariables) String added in v0.1.42

func (o InstanceCreationVariables) String() string

type InstanceDeployment added in v0.1.42

type InstanceDeployment struct {

	// 实例id
	InstanceId string `json:"instance_id"`

	Variables *InstanceDeploymentVariables `json:"variables,omitempty"`
}

InstanceDeployment 部署实例请求体

func (InstanceDeployment) String added in v0.1.42

func (o InstanceDeployment) String() string

type InstanceDeploymentVariables added in v0.1.42

type InstanceDeploymentVariables struct {

	// 环境变量
	Environment *interface{} `json:"environment,omitempty"`

	// 组件变量
	Components *interface{} `json:"components,omitempty"`
}

InstanceDeploymentVariables 变量参数值,模板部署时模版参数信息

func (InstanceDeploymentVariables) String added in v0.1.42

type InstanceFailDetail

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

InstanceFailDetail 失败描述。 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

func (InstanceFailDetail) Value added in v0.0.90

func (c InstanceFailDetail) Value() string

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

InstanceListView 实例参数。

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
}

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

func (InstancePlatformType) MarshalJSON

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

func (*InstancePlatformType) UnmarshalJSON

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

func (InstancePlatformType) Value added in v0.0.90

func (c InstancePlatformType) Value() string

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

InstanceSnapshotView 快照参数。

func (InstanceSnapshotView) String

func (o InstanceSnapshotView) String() string

type InstanceStatusType

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

InstanceStatusType 实例状态。

func (InstanceStatusType) MarshalJSON

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

func (*InstanceStatusType) UnmarshalJSON

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

func (InstanceStatusType) Value added in v0.0.90

func (c InstanceStatusType) Value() string

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

	// 最近Job的状态
	LastJobStatus *string `json:"last_job_status,omitempty"`

	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

InstanceStatusView 状态详情。

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

JobInfo 构建工程参数。

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

func (JobInfoExecutionStatus) Value added in v0.0.90

func (c JobInfoExecutionStatus) Value() string

type JobInfoExecutionStatusEnum

type JobInfoExecutionStatusEnum struct {
	RUNNING   JobInfoExecutionStatus
	FAILED    JobInfoExecutionStatus
	SUCCEEDED JobInfoExecutionStatus
}

func GetJobInfoExecutionStatusEnum

func GetJobInfoExecutionStatusEnum() JobInfoExecutionStatusEnum

type LifecycleEntrypoint added in v0.1.41

type LifecycleEntrypoint struct {

	// 执行命令行
	Command *[]string `json:"command,omitempty"`

	// 运行参数
	Args *[]string `json:"args,omitempty"`
}

LifecycleEntrypoint 生命周期

func (LifecycleEntrypoint) String added in v0.1.41

func (o LifecycleEntrypoint) String() string

type LifecycleProcess added in v0.1.45

type LifecycleProcess struct {

	// 取值为command或者http。command为执行命令行,http为发送http请求。
	Type *string `json:"type,omitempty"`

	Parameters *LifecycleProcessParameter `json:"parameters,omitempty"`
}

func (LifecycleProcess) String added in v0.1.45

func (o LifecycleProcess) String() string

type LifecycleProcessParameter added in v0.1.45

type LifecycleProcessParameter struct {

	// 命令参数,适用于command类型
	Command *[]string `json:"command,omitempty"`

	// 默认为POD实例的IP地址。也可以自己指定。适用于http类型。
	Host *string `json:"host,omitempty"`

	// 端口号,适用于http类型。
	Port *int32 `json:"port,omitempty"`

	// 请求url,适用于http类型。
	Path *string `json:"path,omitempty"`
}

LifecycleProcessParameter 启动后处理或者停止前处理参数。

func (LifecycleProcessParameter) String added in v0.1.45

func (o LifecycleProcessParameter) String() string

type ListApplicationsRequest

type ListApplicationsRequest struct {

	// 指定个数,明确指定的时候用于分页,取值[0, 100]。不指定的时候表示不分页,最多查询1000条记录。
	Limit *int32 `json:"limit,omitempty"`

	// 指定查询偏移量,默认偏移量为0.
	Offset *int32 `json:"offset,omitempty"`

	// 排序字段,默认按创建时间排序。  排序字段支持枚举值:create_time、name、update_time。
	OrderBy *string `json:"order_by,omitempty"`

	// desc/asc,默认desc。
	Order *ListApplicationsRequestOrder `json:"order,omitempty"`
}

ListApplicationsRequest 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

func (ListApplicationsRequestOrder) Value added in v0.0.90

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"`
	HttpStatusCode int                `json:"-"`
}

ListApplicationsResponse Response Object

func (ListApplicationsResponse) String

func (o ListApplicationsResponse) String() string

type ListAuthorizationsRequest

type ListAuthorizationsRequest struct {
}

ListAuthorizationsRequest Request Object

func (ListAuthorizationsRequest) String

func (o ListAuthorizationsRequest) String() string

type ListAuthorizationsResponse

type ListAuthorizationsResponse struct {

	// 授权列表。
	Authorizations *[]AuthorizationVo `json:"authorizations,omitempty"`

	// 仓库授权数量。
	Count          *int32 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListAuthorizationsResponse Response Object

func (ListAuthorizationsResponse) String

type ListBranchesRequest

type ListBranchesRequest struct {

	// 授权名称。
	XRepoAuth string `json:"X-Repo-Auth"`

	// 命名空间ID或者URL编码名称。
	Namespace string `json:"namespace"`

	// 仓库项目ID,如果含有“/”,需要将“/”替换为“:”。
	Project string `json:"project"`
}

ListBranchesRequest Request Object

func (ListBranchesRequest) String

func (o ListBranchesRequest) String() string

type ListBranchesResponse

type ListBranchesResponse struct {

	// 项目分支列表。
	Branches       *[]string `json:"branches,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListBranchesResponse Response Object

func (ListBranchesResponse) String

func (o ListBranchesResponse) String() string

type ListCommitsRequest

type ListCommitsRequest struct {

	// 授权名称。
	XRepoAuth string `json:"X-Repo-Auth"`

	// 命名空间ID或者URL编码名称。
	Namespace string `json:"namespace"`

	// 仓库项目ID,如果含有“/”,需要将“/”替换为“:”。
	Project string `json:"project"`

	// 分支名称或者tag名称,如果没有提供,使用默认分支。
	Ref *string `json:"ref,omitempty"`
}

ListCommitsRequest Request Object

func (ListCommitsRequest) String

func (o ListCommitsRequest) String() string

type ListCommitsResponse

type ListCommitsResponse struct {

	// 提交记录列表。
	Commits        *[]CommitsCommits `json:"commits,omitempty"`
	HttpStatusCode int               `json:"-"`
}

ListCommitsResponse Response Object

func (ListCommitsResponse) String

func (o ListCommitsResponse) String() string

type ListComponentsRequest

type ListComponentsRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`

	// 指定个数,明确指定的时候用于分页,取值[0, 100]。不指定的时候表示不分页,最多查询1000条记录。
	Limit *int32 `json:"limit,omitempty"`

	// 指定查询偏移量,默认偏移量为0.
	Offset *int32 `json:"offset,omitempty"`

	// 排序字段,默认按创建时间排序。  排序字段支持枚举值:create_time、name、update_time。
	OrderBy *string `json:"order_by,omitempty"`

	// desc/asc,默认desc。
	Order *ListComponentsRequestOrder `json:"order,omitempty"`
}

ListComponentsRequest 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

func (ListComponentsRequestOrder) Value added in v0.0.90

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"`
	HttpStatusCode int              `json:"-"`
}

ListComponentsResponse Response Object

func (ListComponentsResponse) String

func (o ListComponentsResponse) String() string

type ListEnvironmentsRequest

type ListEnvironmentsRequest struct {

	// 指定个数,明确指定的时候用于分页,取值[0, 100]。不指定的时候表示不分页,最多查询1000条记录。
	Limit *int32 `json:"limit,omitempty"`

	// 指定查询偏移量,默认偏移量为0.
	Offset *int32 `json:"offset,omitempty"`

	// 排序字段,默认按创建时间排序。  排序字段支持枚举值:create_time、name、update_time。
	OrderBy *string `json:"order_by,omitempty"`

	// desc/asc,默认desc。
	Order *ListEnvironmentsRequestOrder `json:"order,omitempty"`
}

ListEnvironmentsRequest 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

func (ListEnvironmentsRequestOrder) Value added in v0.0.90

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"`
	HttpStatusCode int            `json:"-"`
}

ListEnvironmentsResponse Response Object

func (ListEnvironmentsResponse) String

func (o ListEnvironmentsResponse) String() string

type ListFlavorsRequest

type ListFlavorsRequest struct {
}

ListFlavorsRequest Request Object

func (ListFlavorsRequest) String

func (o ListFlavorsRequest) String() string

type ListFlavorsResponse

type ListFlavorsResponse struct {

	// 资源规格列表。
	Flavors        *[]FlavorView `json:"flavors,omitempty"`
	HttpStatusCode int           `json:"-"`
}

ListFlavorsResponse Response Object

func (ListFlavorsResponse) String

func (o ListFlavorsResponse) String() string

type ListHooksRequest

type ListHooksRequest struct {

	// 授权名称。
	XRepoAuth string `json:"X-Repo-Auth"`

	// 命名空间ID或者URL编码名称。
	Namespace string `json:"namespace"`

	// 仓库项目ID,如果含有“/”,需要将“/”替换为“:”。
	Project string `json:"project"`
}

ListHooksRequest Request Object

func (ListHooksRequest) String

func (o ListHooksRequest) String() string

type ListHooksResponse

type ListHooksResponse struct {

	// hook列表。
	Hooks          *[]Hook `json:"hooks,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ListHooksResponse Response Object

func (ListHooksResponse) String

func (o ListHooksResponse) String() string

type ListInstanceSnapshotsRequest

type ListInstanceSnapshotsRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`

	// 组件ID。
	ComponentId string `json:"component_id"`

	// 组件实例ID。
	InstanceId string `json:"instance_id"`

	// 指定个数,明确指定的时候用于分页,取值[0, 100]。不指定的时候表示不分页,最多查询1000条记录。
	Limit *int32 `json:"limit,omitempty"`

	// 指定查询偏移量,默认偏移量为0.
	Offset *int32 `json:"offset,omitempty"`

	// 排序字段,默认按创建时间排序。  排序字段支持枚举值:create_time、version。
	SnapshotOrderBy *string `json:"snapshot_order_by,omitempty"`

	// desc/asc,默认desc。
	Order *ListInstanceSnapshotsRequestOrder `json:"order,omitempty"`
}

ListInstanceSnapshotsRequest 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

func (ListInstanceSnapshotsRequestOrder) Value added in v0.0.90

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"`
	HttpStatusCode int                     `json:"-"`
}

ListInstanceSnapshotsResponse Response Object

func (ListInstanceSnapshotsResponse) String

type ListInstancesRequest

type ListInstancesRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`

	// 组件ID。
	ComponentId string `json:"component_id"`

	// 指定个数,明确指定的时候用于分页,取值[0, 100]。不指定的时候表示不分页,最多查询1000条记录。
	Limit *int32 `json:"limit,omitempty"`

	// 指定查询偏移量,默认偏移量为0.
	Offset *int32 `json:"offset,omitempty"`

	// 排序字段,默认按创建时间排序。  排序字段支持枚举值:create_time、name、update_time。
	OrderBy *string `json:"order_by,omitempty"`

	// desc/asc,默认desc。
	Order *ListInstancesRequestOrder `json:"order,omitempty"`
}

ListInstancesRequest 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

func (ListInstancesRequestOrder) Value added in v0.0.90

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"`
	HttpStatusCode int                 `json:"-"`
}

ListInstancesResponse Response Object

func (ListInstancesResponse) String

func (o ListInstancesResponse) String() string

type ListNamespacesRequest

type ListNamespacesRequest struct {

	// 授权名称。
	XRepoAuth string `json:"X-Repo-Auth"`
}

ListNamespacesRequest Request Object

func (ListNamespacesRequest) String

func (o ListNamespacesRequest) String() string

type ListNamespacesResponse

type ListNamespacesResponse struct {

	// 命名空间列表。
	Namespaces     *[]NamespacesNamespaces `json:"namespaces,omitempty"`
	HttpStatusCode int                     `json:"-"`
}

ListNamespacesResponse Response Object

func (ListNamespacesResponse) String

func (o ListNamespacesResponse) String() string

type ListProjectsRequest

type ListProjectsRequest struct {

	// 授权名称。
	XRepoAuth string `json:"X-Repo-Auth"`

	// 命名空间ID或者URL编码名称。
	Namespace string `json:"namespace"`
}

ListProjectsRequest Request Object

func (ListProjectsRequest) String

func (o ListProjectsRequest) String() string

type ListProjectsResponse

type ListProjectsResponse struct {

	// 项目列表。
	Projects       *[]Project `json:"projects,omitempty"`
	HttpStatusCode int        `json:"-"`
}

ListProjectsResponse Response Object

func (ListProjectsResponse) String

func (o ListProjectsResponse) String() string

type ListRuntimesRequest

type ListRuntimesRequest struct {
}

ListRuntimesRequest Request Object

func (ListRuntimesRequest) String

func (o ListRuntimesRequest) String() string

type ListRuntimesResponse

type ListRuntimesResponse struct {

	// 运行时列表。
	Runtimes       *[]RuntimeTypeView `json:"runtimes,omitempty"`
	HttpStatusCode int                `json:"-"`
}

ListRuntimesResponse Response Object

func (ListRuntimesResponse) String

func (o ListRuntimesResponse) String() string

type ListTagsRequest

type ListTagsRequest struct {

	// 授权名称。
	XRepoAuth string `json:"X-Repo-Auth"`

	// 命名空间ID或者URL编码名称。
	Namespace string `json:"namespace"`

	// 仓库项目ID,如果含有“/”,需要将“/”替换为“:”。
	Project string `json:"project"`
}

ListTagsRequest Request Object

func (ListTagsRequest) String

func (o ListTagsRequest) String() string

type ListTagsResponse

type ListTagsResponse struct {

	// 项目tag标签列表。
	Tags           *[]string `json:"tags,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListTagsResponse Response Object

func (ListTagsResponse) String

func (o ListTagsResponse) String() string

type ListTemplatesRequest

type ListTemplatesRequest struct {
}

ListTemplatesRequest Request Object

func (ListTemplatesRequest) String

func (o ListTemplatesRequest) String() string

type ListTemplatesResponse

type ListTemplatesResponse struct {

	// 模板列表。
	Templates      *[]TemplateView `json:"templates,omitempty"`
	HttpStatusCode int             `json:"-"`
}

ListTemplatesResponse Response Object

func (ListTemplatesResponse) String

func (o ListTemplatesResponse) String() string

type ListTreesRequest

type ListTreesRequest struct {

	// 授权名称。
	XRepoAuth string `json:"X-Repo-Auth"`

	// 命名空间ID或者URL编码名称。
	Namespace string `json:"namespace"`

	// 仓库项目ID,如果含有“/”,需要将“/”替换为“:”。
	Project string `json:"project"`

	// 分支名称或者tag标签名称或者commit sha。
	Ref string `json:"ref"`
}

ListTreesRequest Request Object

func (ListTreesRequest) String

func (o ListTreesRequest) String() string

type ListTreesResponse

type ListTreesResponse struct {

	// 仓库文件列表。
	Paths          *[]string `json:"paths,omitempty"`
	HttpStatusCode int       `json:"-"`
}

ListTreesResponse 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 ObsProperties added in v0.1.11

type ObsProperties struct {

	// obs的终端地址,比如:https://obs.region_name.external_domain_name.com
	Endpoint *string `json:"endpoint,omitempty"`

	// 软件包在obs的桶名。
	Bucket *string `json:"bucket,omitempty"`

	// obs桶中的对象,一般是软件包名,有文件夹的话要加上文件夹的路径。比如test.jar或者demo/test.jar。
	Key *string `json:"key,omitempty"`
}

ObsProperties 软件包的其他属性,只有在选择对象存储obs的时候才需要添加。

func (ObsProperties) String added in v0.1.11

func (o ObsProperties) String() string

type ProbeParameter added in v0.1.41

type ProbeParameter struct {

	// type为http类型时生效
	Scheme *ProbeParameterScheme `json:"scheme,omitempty"`

	// type为http类型时生效。默认为POD的IP, 可以指定自定义的IP
	Host *string `json:"host,omitempty"`

	// type为http和tcp类型时生效。
	Port *int32 `json:"port,omitempty"`

	// type为http类型时生效。请求路径。
	Path *string `json:"path,omitempty"`

	// type为command类型时生效。命令列表
	Command *[]string `json:"command,omitempty"`
}

func (ProbeParameter) String added in v0.1.41

func (o ProbeParameter) String() string

type ProbeParameterScheme added in v0.1.41

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

func (ProbeParameterScheme) MarshalJSON added in v0.1.41

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

func (*ProbeParameterScheme) UnmarshalJSON added in v0.1.41

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

func (ProbeParameterScheme) Value added in v0.1.41

func (c ProbeParameterScheme) Value() string

type ProbeParameterSchemeEnum added in v0.1.41

type ProbeParameterSchemeEnum struct {
	HTTP  ProbeParameterScheme
	HTTPS ProbeParameterScheme
}

func GetProbeParameterSchemeEnum added in v0.1.41

func GetProbeParameterSchemeEnum() ProbeParameterSchemeEnum

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

ReferResourceCreate 部署资源。

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

ReferResources 部署资源。

func (ReferResources) String

func (o ReferResources) String() string

type Resource

type Resource struct {

	// 资源ID
	Id string `json:"id"`

	// 资源名称
	Name *string `json:"name,omitempty"`

	Type *ResourceType `json:"type"`
}

func (Resource) String

func (o Resource) String() string

type ResourceReferAlias

type ResourceReferAlias struct {
}

ResourceReferAlias 应用别名,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
}

ResourceType 资源类型。 基础资源: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

func (ResourceType) Value added in v0.0.90

func (c ResourceType) Value() string

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
}

RuntimeType 运行时类型。

func (RuntimeType) MarshalJSON

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

func (*RuntimeType) UnmarshalJSON

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

func (RuntimeType) Value added in v0.0.90

func (c RuntimeType) Value() string

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

RuntimeTypeView 运行时参数。

func (RuntimeTypeView) String

func (o RuntimeTypeView) String() string

type SchedulerAffinity added in v0.1.41

type SchedulerAffinity struct {
	Az *[]string `json:"az,omitempty"`

	Node *[]string `json:"node,omitempty"`

	Application *[]string `json:"application,omitempty"`
}

func (SchedulerAffinity) String added in v0.1.41

func (o SchedulerAffinity) String() string

type ShowApplicationConfigurationRequest

type ShowApplicationConfigurationRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`

	// 环境ID,如果未提供,查询所有环境。
	EnvironmentId *string `json:"environment_id,omitempty"`
}

ShowApplicationConfigurationRequest Request Object

func (ShowApplicationConfigurationRequest) String

type ShowApplicationConfigurationResponse

type ShowApplicationConfigurationResponse struct {

	// 应用配置列表。
	Configuration  *[]ApplicationListConfigConfiguration1 `json:"configuration,omitempty"`
	HttpStatusCode int                                    `json:"-"`
}

ShowApplicationConfigurationResponse Response Object

func (ShowApplicationConfigurationResponse) String

type ShowApplicationDetailRequest

type ShowApplicationDetailRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`
}

ShowApplicationDetailRequest Request Object

func (ShowApplicationDetailRequest) String

type ShowApplicationDetailResponse

type ShowApplicationDetailResponse struct {

	// 组件个数。
	ComponentCount *int32 `json:"component_count,omitempty"`

	// 是否开启统一模型
	UnifiedModel *string `json:"unified_model,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"`
	HttpStatusCode int    `json:"-"`
}

ShowApplicationDetailResponse Response Object

func (ShowApplicationDetailResponse) String

type ShowComponentDetailRequest

type ShowComponentDetailRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`

	// 组件ID。
	ComponentId string `json:"component_id"`
}

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

	// 创建者
	Creator *string `json:"creator,omitempty"`

	// 修改时间。
	UpdateTime     *int64 `json:"update_time,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowComponentDetailResponse Response Object

func (ShowComponentDetailResponse) String

type ShowContentRequest

type ShowContentRequest struct {

	// 授权名称。
	XRepoAuth string `json:"X-Repo-Auth"`

	// 命名空间ID或者URL编码名称。
	Namespace string `json:"namespace"`

	// 仓库项目ID,如果含有“/”,需要将“/”替换为“:”。
	Project string `json:"project"`

	// 文件路径,需要将“/”替换为“:”。
	Path string `json:"path"`

	// 分支名称或者tag标签名称或者commit sha。
	Ref string `json:"ref"`
}

ShowContentRequest 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"`
	HttpStatusCode int     `json:"-"`
}

ShowContentResponse 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

func (ShowContentResponseEncoding) Value added in v0.0.90

type ShowContentResponseEncodingEnum

type ShowContentResponseEncodingEnum struct {
	BASE64     ShowContentResponseEncoding
	TEXT_PLAIN ShowContentResponseEncoding
}

func GetShowContentResponseEncodingEnum

func GetShowContentResponseEncodingEnum() ShowContentResponseEncodingEnum

type ShowEnvironmentDetailRequest

type ShowEnvironmentDetailRequest struct {

	// 环境ID。
	EnvironmentId string `json:"environment_id"`
}

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

	// 环境类型
	DeployMode *string `json:"deploy_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"`
	HttpStatusCode int    `json:"-"`
}

ShowEnvironmentDetailResponse Response Object

func (ShowEnvironmentDetailResponse) String

type ShowInstanceDetailRequest

type ShowInstanceDetailRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`

	// 组件ID。
	ComponentId string `json:"component_id"`

	// 组件实例ID。
	InstanceId string `json:"instance_id"`
}

ShowInstanceDetailRequest 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"`
	HttpStatusCode int                 `json:"-"`
}

ShowInstanceDetailResponse Response Object

func (ShowInstanceDetailResponse) String

type ShowJobDetailRequest

type ShowJobDetailRequest struct {

	// 部署任务ID。
	JobId string `json:"job_id"`

	// 应用组件实例ID。
	InstanceId *string `json:"instance_id,omitempty"`

	// 指定查询的个数,可用于分页查询。
	Limit *int32 `json:"limit,omitempty"`

	// 指定查询的偏移量,可用于分页查询。
	Offset *int32 `json:"offset,omitempty"`

	// 是否降序。true表示desc, false表示asc。
	Desc *string `json:"desc,omitempty"`
}

ShowJobDetailRequest 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"`
	HttpStatusCode int         `json:"-"`
}

ShowJobDetailResponse Response Object

func (ShowJobDetailResponse) String

func (o ShowJobDetailResponse) String() string

type ShowProjectDetailRequest

type ShowProjectDetailRequest struct {

	// 授权名称。
	XRepoAuth string `json:"X-Repo-Auth"`

	// 仓库克隆URL。
	CloneUrl string `json:"clone_url"`
}

ShowProjectDetailRequest 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"`
	HttpStatusCode int     `json:"-"`
}

ShowProjectDetailResponse Response Object

func (ShowProjectDetailResponse) String

func (o ShowProjectDetailResponse) String() string

type ShowRedirectUrlRequest

type ShowRedirectUrlRequest struct {

	// 仓库类型。 取值范围:github、gitlab、gitee、bitbucket。
	RepoType ShowRedirectUrlRequestRepoType `json:"repo_type"`

	// 站点标签。 比如国际站的,?tag=intl。 默认为空。
	Tag *string `json:"tag,omitempty"`
}

ShowRedirectUrlRequest 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

func (ShowRedirectUrlRequestRepoType) Value added in v0.0.90

type ShowRedirectUrlResponse

type ShowRedirectUrlResponse struct {

	// 授权重定向URL。
	Url            *string `json:"url,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowRedirectUrlResponse Response Object

func (ShowRedirectUrlResponse) String

func (o ShowRedirectUrlResponse) String() string

type SourceKind

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

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

func (SourceKind) MarshalJSON

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

func (*SourceKind) UnmarshalJSON

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

func (SourceKind) Value added in v0.0.90

func (c SourceKind) Value() string

type SourceKindEnum

type SourceKindEnum struct {
	CODE     SourceKind
	ARTIFACT SourceKind
}

func GetSourceKindEnum

func GetSourceKindEnum() SourceKindEnum

type SourceObject

type SourceObject struct {
	Kind *SourceKind `json:"kind"`

	Spec *SourceOrArtifact `json:"spec"`
}

SourceObject 组件来源。

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

	// 软件包/源码仓库地址
	WebUrl *string `json:"webUrl,omitempty"`

	// 认证方式,支持iam,none,默认是iam。
	Auth *string `json:"auth,omitempty"`

	Properties *ObsProperties `json:"properties,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"`
}

SourceOrArtifact 当组件来源的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

func (SourceOrArtifactStorage) Value added in v0.0.90

func (c SourceOrArtifactStorage) Value() string

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

func (SourceOrArtifactType) Value added in v0.0.90

func (c SourceOrArtifactType) Value() string

type SourceOrArtifactTypeEnum

type SourceOrArtifactTypeEnum struct {
	PACKAGE SourceOrArtifactType
}

func GetSourceOrArtifactTypeEnum

func GetSourceOrArtifactTypeEnum() SourceOrArtifactTypeEnum

type SourceRepoType

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

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

func (SourceRepoType) MarshalJSON

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

func (*SourceRepoType) UnmarshalJSON

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

func (SourceRepoType) Value added in v0.0.90

func (c SourceRepoType) Value() string

type SourceRepoTypeEnum

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

func GetSourceRepoTypeEnum

func GetSourceRepoTypeEnum() SourceRepoTypeEnum

type StorageParameter added in v0.1.45

type StorageParameter struct {

	// 主机路径, 适用于HostPath的存储类型
	Path *string `json:"path,omitempty"`

	// 配置项、密钥或者PVC的名字, 适用于ConfigMap、Secret和PersistentVolumeClaim的存储类型
	Name *string `json:"name,omitempty"`

	// 挂载的权限,十进制格式,如384
	DefaultMode *int32 `json:"defaultMode,omitempty"`

	// 适用于EmptyDir类型的存储。不传参数为默认的磁盘介质,传参为memory则开启内存存储。
	Medium *string `json:"medium,omitempty"`
}

func (StorageParameter) String added in v0.1.45

func (o StorageParameter) String() string

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

TaskInfo 。

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

func (TaskInfoTaskStatus) Value added in v0.0.90

func (c TaskInfoTaskStatus) Value() string

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
}

Template 模板名称。

func (Template) MarshalJSON

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

func (*Template) UnmarshalJSON

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

func (Template) Value added in v0.0.90

func (c Template) Value() string

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

TemplateView 模板参数。

func (TemplateView) String

func (o TemplateView) String() string

type UpdateFileRequest

type UpdateFileRequest struct {

	// 授权名称。
	XRepoAuth string `json:"X-Repo-Auth"`

	// 命名空间ID或者URL编码名称。
	Namespace string `json:"namespace"`

	// 仓库项目ID,如果含有“/”,需要将“/”替换为“:”。
	Project string `json:"project"`

	// 文件路径,需要将“/”替换为“:”。
	Path string `json:"path"`

	// 分支名称或者tag标签名称或者commit sha。
	Ref string `json:"ref"`

	Body *FileUpdate `json:"body,omitempty"`
}

UpdateFileRequest Request Object

func (UpdateFileRequest) String

func (o UpdateFileRequest) String() string

type UpdateFileResponse

type UpdateFileResponse struct {

	// 文件路径。
	Path           *string `json:"path,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateFileResponse Response Object

func (UpdateFileResponse) String

func (o UpdateFileResponse) String() string

type UpdateInstanceActionRequest

type UpdateInstanceActionRequest struct {

	// 应用ID。
	ApplicationId string `json:"application_id"`

	// 组件ID。
	ComponentId string `json:"component_id"`

	// 组件实例ID。
	InstanceId string `json:"instance_id"`

	Body *InstanceAction `json:"body,omitempty"`
}

UpdateInstanceActionRequest Request Object

func (UpdateInstanceActionRequest) String

type UpdateInstanceActionResponse

type UpdateInstanceActionResponse struct {

	// Job ID。
	JobId          *string `json:"job_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateInstanceActionResponse Response Object

func (UpdateInstanceActionResponse) String

type UpdateTemplateRequest added in v0.1.42

type UpdateTemplateRequest struct {

	// 模板ID
	TemplateId string `json:"template_id"`

	Body *UpdateTemplates `json:"body,omitempty"`
}

UpdateTemplateRequest Request Object

func (UpdateTemplateRequest) String added in v0.1.42

func (o UpdateTemplateRequest) String() string

type UpdateTemplateResponse added in v0.1.42

type UpdateTemplateResponse struct {

	// 模板ID
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateTemplateResponse Response Object

func (UpdateTemplateResponse) String added in v0.1.42

func (o UpdateTemplateResponse) String() string

type UpdateTemplates added in v0.1.42

type UpdateTemplates struct {

	// 模板名称,非必填
	Name *string `json:"name,omitempty"`

	// 模板描述,非必填
	Description *string `json:"description,omitempty"`

	// 模板标签,非必填
	Tags *[]string `json:"tags,omitempty"`

	// 模板状态,非必填
	Status *int32 `json:"status,omitempty"`

	// obs地址,必填
	ObsUrl *string `json:"obs_url,omitempty"`

	// 应用是否托管到servicestage,1是托管,0是不托管,非必填
	IsServicestage *int32 `json:"is_servicestage,omitempty"`
}

UpdateTemplates 更新模板请求

func (UpdateTemplates) String added in v0.1.42

func (o UpdateTemplates) String() string

Source Files

Jump to

Keyboard shortcuts

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