model

package
v0.0.108 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountStatus

type AccountStatus struct {

	// 是否有创建实例权限
	CurOrgCreateRole *bool `json:"cur_org_create_role,omitempty" xml:"cur_org_create_role"`

	// 帐号所属租户是否开通服务
	CurOrgOpen *bool `json:"cur_org_open,omitempty" xml:"cur_org_open"`

	// 免费试用
	HasFreeTrial *bool `json:"has_free_trial,omitempty" xml:"has_free_trial"`

	// 是否有管理入口的权限
	ShowManage *bool `json:"show_manage,omitempty" xml:"show_manage"`
}

func (AccountStatus) String

func (o AccountStatus) String() string

type Attributes

type Attributes struct {

	// cpu限制
	CpuLimit *string `json:"cpu_limit,omitempty" xml:"cpu_limit"`

	// 内存限制
	MemoryLimitBytes *string `json:"memory_limit_bytes,omitempty" xml:"memory_limit_bytes"`

	// pvc规格
	PvcQuantity *string `json:"pvc_quantity,omitempty" xml:"pvc_quantity"`
}

func (Attributes) String

func (o Attributes) String() string

type CheckInstanceAccessRequest added in v0.0.71

type CheckInstanceAccessRequest struct {

	// CloudIDE实例id
	InstanceId string `json:"instance_id" xml:"instance_id"`
}

Request Object

func (CheckInstanceAccessRequest) String added in v0.0.71

type CheckInstanceAccessResponse added in v0.0.71

type CheckInstanceAccessResponse struct {

	// 返回值
	Result *bool `json:"result,omitempty" xml:"result"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CheckInstanceAccessResponse) String added in v0.0.71

type CheckNameRequest

type CheckNameRequest struct {

	// 实例名。 可以输入中文、数字、字母、下划线、点、破折号。长度介于3-100之间
	DisplayName string `json:"display_name" xml:"display_name"`
}

Request Object

func (CheckNameRequest) String

func (o CheckNameRequest) String() string

type CheckNameResponse

type CheckNameResponse struct {

	// 返回值
	Result *bool `json:"result,omitempty" xml:"result"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CheckNameResponse) String

func (o CheckNameResponse) String() string

type CreateExtensionAuthorizationRequest added in v0.0.71

type CreateExtensionAuthorizationRequest struct {

	// CloudIDE实例ID
	InstanceId string `json:"instance_id" xml:"instance_id"`

	Body *ExtensionAuthorization `json:"body,omitempty" xml:"body"`
}

Request Object

func (CreateExtensionAuthorizationRequest) String added in v0.0.71

type CreateExtensionAuthorizationResponse added in v0.0.71

type CreateExtensionAuthorizationResponse struct {

	// 返回值
	Result *bool `json:"result,omitempty" xml:"result"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateExtensionAuthorizationResponse) String added in v0.0.71

type CreateInstanceBy3rdRequest

type CreateInstanceBy3rdRequest struct {

	// 实例标签(不同的第三方需要和CloudIDE服务共同设定标签)。不传默认为classroom
	InstanceLabel *string `json:"instance_label,omitempty" xml:"instance_label"`

	Body *InstanceEdgeParam `json:"body,omitempty" xml:"body"`
}

Request Object

func (CreateInstanceBy3rdRequest) String

type CreateInstanceBy3rdResponse

type CreateInstanceBy3rdResponse struct {
	Result *InstancesResponseInstancesVoResult `json:"result,omitempty" xml:"result"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateInstanceBy3rdResponse) String

type CreateInstanceRequest

type CreateInstanceRequest struct {

	// 租户id(对应华为云帐号的domainId)
	OrgId string `json:"org_id" xml:"org_id"`

	Body *InstanceParam `json:"body,omitempty" xml:"body"`
}

Request Object

func (CreateInstanceRequest) String

func (o CreateInstanceRequest) String() string

type CreateInstanceResponse

type CreateInstanceResponse struct {
	Result *InstancesResponseInstancesVoResult `json:"result,omitempty" xml:"result"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateInstanceResponse) String

func (o CreateInstanceResponse) String() string

type DeleteInstanceRequest

type DeleteInstanceRequest struct {

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

Request Object

func (DeleteInstanceRequest) String

func (o DeleteInstanceRequest) String() string

type DeleteInstanceResponse

type DeleteInstanceResponse struct {

	// 返回值
	Result *bool `json:"result,omitempty" xml:"result"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteInstanceResponse) String

func (o DeleteInstanceResponse) String() string

type Error added in v0.0.96

type Error struct {

	// 错误码
	Code *string `json:"code,omitempty" xml:"code"`

	// 错误描述
	Reason *string `json:"reason,omitempty" xml:"reason"`
}

func (Error) String added in v0.0.96

func (o Error) String() string

type ExpireVo added in v0.0.71

type ExpireVo struct {

	// 过期时间。UNIX时间戳,单位毫秒。eg:1635905480465
	Expiration *int64 `json:"expiration,omitempty" xml:"expiration"`

	// CloudIDE实例id
	InstanceId *string `json:"instance_id,omitempty" xml:"instance_id"`

	// CloudIDE实例自动休眠时长,单位‘分钟’
	Interval *int64 `json:"interval,omitempty" xml:"interval"`
}

func (ExpireVo) String added in v0.0.71

func (o ExpireVo) String() string

type ExtensionAuthorization added in v0.0.71

type ExtensionAuthorization struct {

	// 插件版本
	ExtensionVersion string `json:"extension_version" xml:"extension_version"`

	// 插件标识(发布者.插件名)
	Identifier string `json:"identifier" xml:"identifier"`

	// CloudIDE实例ID
	InstanceId *string `json:"instance_id,omitempty" xml:"instance_id"`

	// 插件状态。 - AGREE 同意 - REJECT 不同意 - UNKNOWN 未知(下次重新询问)
	Status ExtensionAuthorizationStatus `json:"status" xml:"status"`
}

func (ExtensionAuthorization) String added in v0.0.71

func (o ExtensionAuthorization) String() string

type ExtensionAuthorizationStatus added in v0.0.71

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

func (ExtensionAuthorizationStatus) MarshalJSON added in v0.0.71

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

func (*ExtensionAuthorizationStatus) UnmarshalJSON added in v0.0.71

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

func (ExtensionAuthorizationStatus) Value added in v0.0.90

type ExtensionAuthorizationStatusEnum added in v0.0.71

type ExtensionAuthorizationStatusEnum struct {
	AGREE   ExtensionAuthorizationStatus
	REJECT  ExtensionAuthorizationStatus
	UNKNOWN ExtensionAuthorizationStatus
}

func GetExtensionAuthorizationStatusEnum added in v0.0.71

func GetExtensionAuthorizationStatusEnum() ExtensionAuthorizationStatusEnum

type InstanceEdgeParam

type InstanceEdgeParam struct {

	// cpu架构 x86|arm
	Arch *InstanceEdgeParamArch `json:"arch,omitempty" xml:"arch"`

	// cpu规格.arm架构支持4U8G,x86架构支持1U1G,2U4G,2U8G 与技术栈配置的规格对应,可通过技术栈管理ListStacks接口获取。如果标签不为空,以标签配置的技术栈规格为准。 quantum技术栈,x86架构cpu规格为2U8G;其他技术栈,x86架构cpu规格为1U1G,2U4G
	CpuMemory InstanceEdgeParamCpuMemory `json:"cpu_memory" xml:"cpu_memory"`

	// 描述。长度不操过100个字符
	Description *string `json:"description,omitempty" xml:"description"`

	// 实例名。 可以输入中文、数字、字母、下划线、点、破折号。长度介于3-100之间
	InstanceName string `json:"instance_name" xml:"instance_name"`

	// 租户id(对应华为云帐号的domainId)
	InstanceUserDomainId *string `json:"instance_user_domain_id,omitempty" xml:"instance_user_domain_id"`

	// 用户id
	InstanceUserId *string `json:"instance_user_id,omitempty" xml:"instance_user_id"`

	// 是否页面显示(以标签配置为准)
	IsTemporary *bool `json:"is_temporary,omitempty" xml:"is_temporary"`

	// 插件列表
	Plugins *[]Plugin `json:"plugins,omitempty" xml:"plugins"`

	// PVC规格 5GB|10GB|20GB
	PvcQuantity InstanceEdgeParamPvcQuantity `json:"pvc_quantity" xml:"pvc_quantity"`

	// 自动休眠时长。 arm架构,自动休眠时长只能设置成30,60。x86架构可取值为30,60,240,1440和-1。除-1外,其它值的单位为“分钟”。实例无操作超过自动休眠时长后,将会被暂停(已保存的数据不会被删除)。-1表示实例不会自动停止。
	RefreshTime *string `json:"refresh_time,omitempty" xml:"refresh_time"`

	// 技术栈ID,通过技术栈管理ListStacks接口获取。
	StackId string `json:"stack_id" xml:"stack_id"`
}

func (InstanceEdgeParam) String

func (o InstanceEdgeParam) String() string

type InstanceEdgeParamArch

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

func (InstanceEdgeParamArch) MarshalJSON

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

func (*InstanceEdgeParamArch) UnmarshalJSON

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

func (InstanceEdgeParamArch) Value added in v0.0.90

func (c InstanceEdgeParamArch) Value() string

type InstanceEdgeParamArchEnum

type InstanceEdgeParamArchEnum struct {
	X86 InstanceEdgeParamArch
	ARM InstanceEdgeParamArch
}

func GetInstanceEdgeParamArchEnum

func GetInstanceEdgeParamArchEnum() InstanceEdgeParamArchEnum

type InstanceEdgeParamCpuMemory

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

func (InstanceEdgeParamCpuMemory) MarshalJSON

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

func (*InstanceEdgeParamCpuMemory) UnmarshalJSON

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

func (InstanceEdgeParamCpuMemory) Value added in v0.0.90

type InstanceEdgeParamCpuMemoryEnum

type InstanceEdgeParamCpuMemoryEnum struct {
	E_1_U1_G InstanceEdgeParamCpuMemory
	E_2_U4_G InstanceEdgeParamCpuMemory
	E_2_U8_G InstanceEdgeParamCpuMemory
	E_4_U8_G InstanceEdgeParamCpuMemory
}

func GetInstanceEdgeParamCpuMemoryEnum

func GetInstanceEdgeParamCpuMemoryEnum() InstanceEdgeParamCpuMemoryEnum

type InstanceEdgeParamPvcQuantity

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

func (InstanceEdgeParamPvcQuantity) MarshalJSON

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

func (*InstanceEdgeParamPvcQuantity) UnmarshalJSON

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

func (InstanceEdgeParamPvcQuantity) Value added in v0.0.90

type InstanceEdgeParamPvcQuantityEnum

type InstanceEdgeParamPvcQuantityEnum struct {
	E_5_GB  InstanceEdgeParamPvcQuantity
	E_10_GB InstanceEdgeParamPvcQuantity
	E_20_GB InstanceEdgeParamPvcQuantity
}

func GetInstanceEdgeParamPvcQuantityEnum

func GetInstanceEdgeParamPvcQuantityEnum() InstanceEdgeParamPvcQuantityEnum

type InstanceParam

type InstanceParam struct {

	// 代理商id,教程活动场景下使用
	AgentId *string `json:"agent_id,omitempty" xml:"agent_id"`

	// cpu架构 x86|arm
	Arch *InstanceParamArch `json:"arch,omitempty" xml:"arch"`

	// cpu规格.arm架构支持4U8G,x86架构支持1U1G,2U4G,2U8G 与技术栈配置的规格对应,可通过技术栈管理ListStacks接口获取。如果标签不为空,以标签配置的技术栈规格为准。 quantum技术栈,x86架构cpu规格为2U8G;其他技术栈,x86架构cpu规格为1U1G,2U4G
	CpuMemory InstanceParamCpuMemory `json:"cpu_memory" xml:"cpu_memory"`

	// 描述
	Description *string `json:"description,omitempty" xml:"description"`

	// 实例名。 可以输入中文、数字、字母、下划线、点、破折号。长度介于3-100之间
	DisplayName string `json:"display_name" xml:"display_name"`

	// 是否页面显示(以标签配置为准)
	IsTemporary *bool `json:"is_temporary,omitempty" xml:"is_temporary"`

	// 实例标签(不同的第三方需要和CloudIDE服务共同设定标签),不传默认为default
	LabelTag *string `json:"label_tag,omitempty" xml:"label_tag"`

	// 预装插件列表
	PluginEnableList *[]string `json:"plugin_enable_list,omitempty" xml:"plugin_enable_list"`

	// 预装插件参数
	PluginVars map[string]string `json:"plugin_vars,omitempty" xml:"plugin_vars"`

	// 云服务器对应的portId,小网连接ecs的场景下使用
	PortId *string `json:"port_id,omitempty" xml:"port_id"`

	// 云服务器ip,小网连接ecs的场景下使用
	PrivateIp *string `json:"private_ip,omitempty" xml:"private_ip"`

	// PVC规格 5GB|10GB|20GB
	PvcQuantity InstanceParamPvcQuantity `json:"pvc_quantity" xml:"pvc_quantity"`

	// 自动休眠时长。 arm架构,自动休眠时长只能设置成30,60。x86架构可取值为30,60,240,1440和-1。除-1外,其它值的单位为“分钟”。实例无操作超过自动休眠时长后,将会被暂停(已保存的数据不会被删除)。-1表示实例不会自动停止
	RefreshInterval string `json:"refresh_interval" xml:"refresh_interval"`

	// 解放号的仓库id,解放号场景下使用
	RepositoryId *int64 `json:"repository_id,omitempty" xml:"repository_id"`

	// 技术栈ID,通过技术栈管理ListStacks接口获取。
	StackId string `json:"stack_id" xml:"stack_id"`

	// 任务类型,教程活动场景下使用
	TaskType *string `json:"task_type,omitempty" xml:"task_type"`

	// 解放号的token,解放号场景下使用
	Token *string `json:"token,omitempty" xml:"token"`

	// 云服务器对应的vpcId,小网连接ecs的场景下使用
	VpcId *string `json:"vpc_id,omitempty" xml:"vpc_id"`

	// 实例授权用户租户ID
	InstanceDomainId *string `json:"instance_domain_id,omitempty" xml:"instance_domain_id"`

	// 实例授权用户ID
	InstanceUserId *string `json:"instance_user_id,omitempty" xml:"instance_user_id"`
}

func (InstanceParam) String

func (o InstanceParam) String() string

type InstanceParamArch

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

func (InstanceParamArch) MarshalJSON

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

func (*InstanceParamArch) UnmarshalJSON

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

func (InstanceParamArch) Value added in v0.0.90

func (c InstanceParamArch) Value() string

type InstanceParamArchEnum

type InstanceParamArchEnum struct {
	X86 InstanceParamArch
	ARM InstanceParamArch
}

func GetInstanceParamArchEnum

func GetInstanceParamArchEnum() InstanceParamArchEnum

type InstanceParamCpuMemory

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

func (InstanceParamCpuMemory) MarshalJSON

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

func (*InstanceParamCpuMemory) UnmarshalJSON

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

func (InstanceParamCpuMemory) Value added in v0.0.90

func (c InstanceParamCpuMemory) Value() string

type InstanceParamCpuMemoryEnum

type InstanceParamCpuMemoryEnum struct {
	E_1_U1_G InstanceParamCpuMemory
	E_2_U4_G InstanceParamCpuMemory
	E_2_U8_G InstanceParamCpuMemory
	E_4_U8_G InstanceParamCpuMemory
}

func GetInstanceParamCpuMemoryEnum

func GetInstanceParamCpuMemoryEnum() InstanceParamCpuMemoryEnum

type InstanceParamPvcQuantity

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

func (InstanceParamPvcQuantity) MarshalJSON

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

func (*InstanceParamPvcQuantity) UnmarshalJSON

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

func (InstanceParamPvcQuantity) Value added in v0.0.90

func (c InstanceParamPvcQuantity) Value() string

type InstanceParamPvcQuantityEnum

type InstanceParamPvcQuantityEnum struct {
	E_5_GB  InstanceParamPvcQuantity
	E_10_GB InstanceParamPvcQuantity
	E_20_GB InstanceParamPvcQuantity
}

func GetInstanceParamPvcQuantityEnum

func GetInstanceParamPvcQuantityEnum() InstanceParamPvcQuantityEnum

type InstanceStatusResponse added in v0.0.99

type InstanceStatusResponse struct {

	// 服务链接
	ServerUrl *string `json:"server_url,omitempty" xml:"server_url"`

	// 实例状态。 - DELETED 已删除 - DELETE_FAILED 删除失败 - DELETING 删除中 - READY 热实例就绪状态 - RUNNING 正在运行 - STARTING 正在启动 - STOPPED 已停止 - STOPPING 停止中 - UPDATE 更新Schdule信息 - WAITING 热实例创建初始态
	Status *InstanceStatusResponseStatus `json:"status,omitempty" xml:"status"`
}

func (InstanceStatusResponse) String added in v0.0.99

func (o InstanceStatusResponse) String() string

type InstanceStatusResponseStatus added in v0.0.99

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

func (InstanceStatusResponseStatus) MarshalJSON added in v0.0.99

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

func (*InstanceStatusResponseStatus) UnmarshalJSON added in v0.0.99

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

func (InstanceStatusResponseStatus) Value added in v0.0.99

type InstanceUpdateParam

type InstanceUpdateParam struct {

	// 描述
	Description *string `json:"description,omitempty" xml:"description"`

	// 实例名。 可以输入中文、数字、字母、下划线、点、破折号。长度介于3-100之间
	DisplayName string `json:"display_name" xml:"display_name"`

	// 自动休眠时长。 arm架构,自动休眠时长只能设置成30,60。x86架构可取值为30,60,240,1440和-1。除-1外,其它值的单位为“分钟”。实例无操作超过自动休眠时长后,将会被暂停(已保存的数据不会被删除)。-1表示实例不会自动停止
	RefreshInterval string `json:"refresh_interval" xml:"refresh_interval"`
}

func (InstanceUpdateParam) String

func (o InstanceUpdateParam) String() string

type InstancesResponseInstancesVoResult

type InstancesResponseInstancesVoResult struct {

	// 链接
	Link *string `json:"link,omitempty" xml:"link"`

	// cpu架构 x86|arm
	Arch *InstancesResponseInstancesVoResultArch `json:"arch,omitempty" xml:"arch"`

	// 实例id
	Id *string `json:"id,omitempty" xml:"id"`

	// 是否私有平台
	Private *bool `json:"private,omitempty" xml:"private"`
}

返回值

func (InstancesResponseInstancesVoResult) String

type InstancesResponseInstancesVoResultArch

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

func (InstancesResponseInstancesVoResultArch) MarshalJSON

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

func (*InstancesResponseInstancesVoResultArch) UnmarshalJSON

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

func (InstancesResponseInstancesVoResultArch) Value added in v0.0.90

type InstancesVo

type InstancesVo struct {

	// cpu架构 x86|arm
	Arch *InstancesVoArch `json:"arch,omitempty" xml:"arch"`

	Attributes *Attributes `json:"attributes,omitempty" xml:"attributes"`

	// cpu规格.arm架构支持4U8G,x86架构支持1U1G,2U4G,2U8G 与技术栈配置的规格对应,可通过技术栈管理ListStacks接口获取。如果标签不为空,以标签配置的技术栈规格为准。 quantum技术栈,x86架构cpu规格为2U8G;其他技术栈,x86架构cpu规格为1U1G,2U4G
	CpuMemory *InstancesVoCpuMemory `json:"cpu_memory,omitempty" xml:"cpu_memory"`

	// 创建时间
	CreatedTime *string `json:"created_time,omitempty" xml:"created_time"`

	// 描述
	Description *string `json:"description,omitempty" xml:"description"`

	// 实例名。 可以输入中文、数字、字母、下划线、点、破折号。长度介于3-100之间
	DisplayName *string `json:"display_name,omitempty" xml:"display_name"`

	// 租户名
	DomainName *string `json:"domain_name,omitempty" xml:"domain_name"`

	// id
	Id *string `json:"id,omitempty" xml:"id"`

	// 是否页面显示(以标签配置为准)
	IsTemporary *bool `json:"is_temporary,omitempty" xml:"is_temporary"`

	// 标签
	Label *string `json:"label,omitempty" xml:"label"`

	// 链接
	Link *string `json:"link,omitempty" xml:"link"`

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

	// 租户id(对应华为云帐号的domainId)
	OrganizationId *string `json:"organization_id,omitempty" xml:"organization_id"`

	// 用户id
	OwnerId *string `json:"owner_id,omitempty" xml:"owner_id"`

	// 用户名
	OwnerName *string `json:"owner_name,omitempty" xml:"owner_name"`

	// 平台ID
	PlatformId *int64 `json:"platform_id,omitempty" xml:"platform_id"`

	// 是否私有平台
	Private *bool `json:"private,omitempty" xml:"private"`

	// PVC规格 5GB|10GB|20GB
	PvcQuantity *InstancesVoPvcQuantity `json:"pvc_quantity,omitempty" xml:"pvc_quantity"`

	// 自动休眠时长。 arm架构,自动休眠时长只能设置成30,60。x86架构可取值为30,60,240,1440和-1。除-1外,其它值的单位为“分钟”。实例无操作超过自动休眠时长后,将会被暂停(已保存的数据不会被删除)。-1表示实例不会自动停止
	RefreshInterval *int64 `json:"refresh_interval,omitempty" xml:"refresh_interval"`

	// 区域
	Region *string `json:"region,omitempty" xml:"region"`

	// server
	ServerMap map[string]string `json:"server_map,omitempty" xml:"server_map"`

	// 服务链接
	ServerUrl *string `json:"server_url,omitempty" xml:"server_url"`

	// 技术栈ID,通过技术栈管理ListStacks接口获取。
	StackId *string `json:"stack_id,omitempty" xml:"stack_id"`

	// 实例状态 。 - INIT 初始化 - STARTING 启动中 - RUNNING 运行中 - STOPPING 停止中 - STOPPED 已停止 - DELETING 删除中 - DELETED 已删除 - DELETE_FAILED 删除失败
	Status *InstancesVoStatus `json:"status,omitempty" xml:"status"`

	// 更新时间
	UpdatedTime *string `json:"updated_time,omitempty" xml:"updated_time"`

	// 访问者id
	VisitorId *string `json:"visitor_id,omitempty" xml:"visitor_id"`

	// 访问者名称
	VisitorName *string `json:"visitor_name,omitempty" xml:"visitor_name"`

	// 访问者租户名称
	VisitorDomainName *string `json:"visitor_domain_name,omitempty" xml:"visitor_domain_name"`
}

func (InstancesVo) String

func (o InstancesVo) String() string

type InstancesVoArch

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

func (InstancesVoArch) MarshalJSON

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

func (*InstancesVoArch) UnmarshalJSON

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

func (InstancesVoArch) Value added in v0.0.90

func (c InstancesVoArch) Value() string

type InstancesVoArchEnum

type InstancesVoArchEnum struct {
	X86 InstancesVoArch
	ARM InstancesVoArch
}

func GetInstancesVoArchEnum

func GetInstancesVoArchEnum() InstancesVoArchEnum

type InstancesVoCpuMemory

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

func (InstancesVoCpuMemory) MarshalJSON

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

func (*InstancesVoCpuMemory) UnmarshalJSON

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

func (InstancesVoCpuMemory) Value added in v0.0.90

func (c InstancesVoCpuMemory) Value() string

type InstancesVoCpuMemoryEnum

type InstancesVoCpuMemoryEnum struct {
	E_1_U1_G InstancesVoCpuMemory
	E_2_U4_G InstancesVoCpuMemory
	E_2_U8_G InstancesVoCpuMemory
	E_4_U8_G InstancesVoCpuMemory
}

func GetInstancesVoCpuMemoryEnum

func GetInstancesVoCpuMemoryEnum() InstancesVoCpuMemoryEnum

type InstancesVoPvcQuantity

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

func (InstancesVoPvcQuantity) MarshalJSON

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

func (*InstancesVoPvcQuantity) UnmarshalJSON

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

func (InstancesVoPvcQuantity) Value added in v0.0.90

func (c InstancesVoPvcQuantity) Value() string

type InstancesVoPvcQuantityEnum

type InstancesVoPvcQuantityEnum struct {
	E_5_GB  InstancesVoPvcQuantity
	E_10_GB InstancesVoPvcQuantity
	E_20_GB InstancesVoPvcQuantity
}

func GetInstancesVoPvcQuantityEnum

func GetInstancesVoPvcQuantityEnum() InstancesVoPvcQuantityEnum

type InstancesVoStatus

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

func (InstancesVoStatus) MarshalJSON

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

func (*InstancesVoStatus) UnmarshalJSON

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

func (InstancesVoStatus) Value added in v0.0.90

func (c InstancesVoStatus) Value() string

type InstancesVoStatusEnum

type InstancesVoStatusEnum struct {
	INIT          InstancesVoStatus
	STARTING      InstancesVoStatus
	RUNNING       InstancesVoStatus
	STOPPING      InstancesVoStatus
	STOPPED       InstancesVoStatus
	DELETING      InstancesVoStatus
	DELETED       InstancesVoStatus
	DELETE_FAILED InstancesVoStatus
}

func GetInstancesVoStatusEnum

func GetInstancesVoStatusEnum() InstancesVoStatusEnum

type ListInstancesRequest

type ListInstancesRequest struct {

	// 每页显示的条目数量 10/15/30
	Limit *int64 `json:"limit,omitempty" xml:"limit"`

	// 偏移量,表示从此偏移量开始查询
	Offset *int64 `json:"offset,omitempty" xml:"offset"`

	// 是否页面显示(以标签配置为准)
	IsTemporary *bool `json:"is_temporary,omitempty" xml:"is_temporary"`

	// 标签
	Label *string `json:"label,omitempty" xml:"label"`

	// 关键字查询(根据实例名,描述模糊查询)
	Search *string `json:"search,omitempty" xml:"search"`

	// 排序方式 asc/desc
	SortDir *string `json:"sort_dir,omitempty" xml:"sort_dir"`

	// 排序字段。 display_name 实例名、status状态、pvc_quantity 存储容量、created_time 创建时间、stack_id 技术栈
	SortKey *string `json:"sort_key,omitempty" xml:"sort_key"`
}

Request Object

func (ListInstancesRequest) String

func (o ListInstancesRequest) String() string

type ListInstancesResponse

type ListInstancesResponse struct {
	Instances *PageInstancesVo `json:"instances,omitempty" xml:"instances"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListInstancesResponse) String

func (o ListInstancesResponse) String() string

type ListOrgInstancesRequest

type ListOrgInstancesRequest struct {

	// 是否页面显示(以标签配置为准)
	IsTemporary *bool `json:"is_temporary,omitempty" xml:"is_temporary"`

	// 每页显示的条目数量 10/15/30
	Limit *int64 `json:"limit,omitempty" xml:"limit"`

	// 偏移量,表示从此偏移量开始查询
	Offset *int64 `json:"offset,omitempty" xml:"offset"`

	// 租户id(对应华为云帐号的domainId)
	OrgId string `json:"org_id" xml:"org_id"`

	// 关键字查询(根据实例名,描述模糊查询)
	Search *string `json:"search,omitempty" xml:"search"`
}

Request Object

func (ListOrgInstancesRequest) String

func (o ListOrgInstancesRequest) String() string

type ListOrgInstancesResponse

type ListOrgInstancesResponse struct {
	Instances *PageInstancesVo `json:"instances,omitempty" xml:"instances"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListOrgInstancesResponse) String

func (o ListOrgInstancesResponse) String() string

type ListProjectTemplatesRequest

type ListProjectTemplatesRequest struct {

	// cpu架构 x86|arm
	Arch *string `json:"arch,omitempty" xml:"arch"`

	// 技术栈ID,通过技术栈管理ListStacks接口获取。
	StackId string `json:"stack_id" xml:"stack_id"`
}

Request Object

func (ListProjectTemplatesRequest) String

type ListProjectTemplatesResponse

type ListProjectTemplatesResponse struct {

	// 模板列表
	Templates *[]ProjectTemplates `json:"templates,omitempty" xml:"templates"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListProjectTemplatesResponse) String

type ListStacksRequest added in v0.0.74

type ListStacksRequest struct {

	// 技术栈标签。默认为空值,查询全部。 例如:Java,CPP,GO,Python;可查询多个标签
	Tags *string `json:"tags,omitempty" xml:"tags"`
}

Request Object

func (ListStacksRequest) String added in v0.0.74

func (o ListStacksRequest) String() string

type ListStacksResponse added in v0.0.74

type ListStacksResponse struct {
	Stack *StacksTags `json:"stack,omitempty" xml:"stack"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListStacksResponse) String added in v0.0.74

func (o ListStacksResponse) String() string

type PageInstancesVo

type PageInstancesVo struct {

	// 是否为空
	Empty *bool `json:"empty,omitempty" xml:"empty"`

	// 列表详情
	Items *[]InstancesVo `json:"items,omitempty" xml:"items"`

	// 偏移量,表示从此偏移量开始查询
	ItemsBefore *int64 `json:"items_before,omitempty" xml:"items_before"`

	// 每页显示的条目数量
	Size *int64 `json:"size,omitempty" xml:"size"`

	// 总数
	TotalItemsCount *int64 `json:"total_items_count,omitempty" xml:"total_items_count"`
}

func (PageInstancesVo) String

func (o PageInstancesVo) String() string

type Plugin

type Plugin struct {

	// 插件属性
	Attribute *string `json:"attribute,omitempty" xml:"attribute"`

	// 插件名
	Name *string `json:"name,omitempty" xml:"name"`
}

func (Plugin) String

func (o Plugin) String() string

type ProjectTemplates

type ProjectTemplates struct {

	// 描述
	Description *string `json:"description,omitempty" xml:"description"`

	// 显示名
	DisplayName *string `json:"display_name,omitempty" xml:"display_name"`

	Logo *string `json:"logo,omitempty" xml:"logo"`

	// 模板名
	Name *string `json:"name,omitempty" xml:"name"`

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

	// 项目类型
	ProjectType *string `json:"project_type,omitempty" xml:"project_type"`

	// 区域
	Region *string `json:"region,omitempty" xml:"region"`

	Source *SourceStorage `json:"source,omitempty" xml:"source"`

	// tags
	Tags *[]string `json:"tags,omitempty" xml:"tags"`

	// 模板id
	TemplateId *int64 `json:"template_id,omitempty" xml:"template_id"`

	// cpu架构
	Arch *string `json:"arch,omitempty" xml:"arch"`
}

func (ProjectTemplates) String

func (o ProjectTemplates) String() string

type Recipe

type Recipe struct {

	// 镜像内容
	Content *string `json:"content,omitempty" xml:"content"`

	// 镜像类型
	Type *string `json:"type,omitempty" xml:"type"`
}

func (Recipe) String

func (o Recipe) String() string

type ResourcePrice

type ResourcePrice struct {

	// cpu架构 x86|arm
	Arch *ResourcePriceArch `json:"arch,omitempty" xml:"arch"`

	// 价格
	Price *float32 `json:"price,omitempty" xml:"price"`

	// 规格。 类型为'storage'时,size值可以为5GB,10GB,20GB。 类型为'cpuMemory'时,arch为'x86',size值可以为1U1G,2U4G,4U8G;arch为'arm',size值可以为4U8G。
	Size *string `json:"size,omitempty" xml:"size"`

	// 类型。目前可以取值storage,cpuMemory
	Type *string `json:"type,omitempty" xml:"type"`
}

func (ResourcePrice) String

func (o ResourcePrice) String() string

type ResourcePriceArch

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

func (ResourcePriceArch) MarshalJSON

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

func (*ResourcePriceArch) UnmarshalJSON

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

func (ResourcePriceArch) Value added in v0.0.90

func (c ResourcePriceArch) Value() string

type ResourcePriceArchEnum

type ResourcePriceArchEnum struct {
	X86 ResourcePriceArch
	ARM ResourcePriceArch
}

func GetResourcePriceArchEnum

func GetResourcePriceArchEnum() ResourcePriceArchEnum

type ShowAccountStatusRequest

type ShowAccountStatusRequest struct {
}

Request Object

func (ShowAccountStatusRequest) String

func (o ShowAccountStatusRequest) String() string

type ShowAccountStatusResponse

type ShowAccountStatusResponse struct {
	Result *AccountStatus `json:"result,omitempty" xml:"result"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowAccountStatusResponse) String

func (o ShowAccountStatusResponse) String() string

type ShowExtensionAuthorizationRequest added in v0.0.71

type ShowExtensionAuthorizationRequest struct {

	// 插件版本
	ExtensionVersion string `json:"extension_version" xml:"extension_version"`

	// 插件标识(发布者.插件名)
	Identifier string `json:"identifier" xml:"identifier"`

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

Request Object

func (ShowExtensionAuthorizationRequest) String added in v0.0.71

type ShowExtensionAuthorizationResponse added in v0.0.71

type ShowExtensionAuthorizationResponse struct {

	// 返回值
	Result *interface{} `json:"result,omitempty" xml:"result"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowExtensionAuthorizationResponse) String added in v0.0.71

type ShowInstanceRequest

type ShowInstanceRequest struct {

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

Request Object

func (ShowInstanceRequest) String

func (o ShowInstanceRequest) String() string

type ShowInstanceResponse

type ShowInstanceResponse struct {
	Instance *InstancesVo `json:"instance,omitempty" xml:"instance"`

	// 状态
	Status *string `json:"status,omitempty" xml:"status"`

	// 静态资源链接
	BundleUrl      *string `json:"bundle_url,omitempty" xml:"bundle_url"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowInstanceResponse) String

func (o ShowInstanceResponse) String() string

type ShowInstanceStatusInfoRequest added in v0.0.99

type ShowInstanceStatusInfoRequest struct {

	// CloudIDE实例id
	InstanceId string `json:"instance_id" xml:"instance_id"`
}

Request Object

func (ShowInstanceStatusInfoRequest) String added in v0.0.99

type ShowInstanceStatusInfoResponse added in v0.0.99

type ShowInstanceStatusInfoResponse struct {
	Result *InstanceStatusResponse `json:"result,omitempty" xml:"result"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowInstanceStatusInfoResponse) String added in v0.0.99

type ShowPriceRequest

type ShowPriceRequest struct {
}

Request Object

func (ShowPriceRequest) String

func (o ShowPriceRequest) String() string

type ShowPriceResponse

type ShowPriceResponse struct {

	// 技术栈价格列表
	Prices *[]ResourcePrice `json:"prices,omitempty" xml:"prices"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowPriceResponse) String

func (o ShowPriceResponse) String() string

type SourceStorage

type SourceStorage struct {

	// 位置
	Location *string `json:"location,omitempty" xml:"location"`

	// 参数值
	Parameters map[string]string `json:"parameters,omitempty" xml:"parameters"`

	// 类型
	Type *string `json:"type,omitempty" xml:"type"`
}

func (SourceStorage) String

func (o SourceStorage) String() string

type StackInfo added in v0.0.74

type StackInfo struct {
	ArmConfig *StacksConfig `json:"arm_config,omitempty" xml:"arm_config"`

	// bundleUrl
	BundleUrl *string `json:"bundle_url,omitempty" xml:"bundle_url"`

	Config *StacksConfig `json:"config,omitempty" xml:"config"`

	// 创建时间
	CreatedTime *sdktime.SdkTime `json:"created_time,omitempty" xml:"created_time"`

	// 是否删除
	Delete *bool `json:"delete,omitempty" xml:"delete"`

	// 描述
	Description *string `json:"description,omitempty" xml:"description"`

	// 是否可用
	Disable *bool `json:"disable,omitempty" xml:"disable"`

	// 显示名称
	DisplayName *string `json:"display_name,omitempty" xml:"display_name"`

	// id
	Id *int64 `json:"id,omitempty" xml:"id"`

	// 标签
	Label *string `json:"label,omitempty" xml:"label"`

	Logo *string `json:"logo,omitempty" xml:"logo"`

	// region
	Region *string `json:"region,omitempty" xml:"region"`

	// 是否显示
	Show *bool `json:"show,omitempty" xml:"show"`

	// 技术栈名称
	StackName *string `json:"stack_name,omitempty" xml:"stack_name"`

	// tags
	Tags *[]string `json:"tags,omitempty" xml:"tags"`

	// 修改时间
	UpdatedTime *sdktime.SdkTime `json:"updated_time,omitempty" xml:"updated_time"`

	// 使用者
	Users *[]string `json:"users,omitempty" xml:"users"`
}

func (StackInfo) String added in v0.0.74

func (o StackInfo) String() string

type StacksAttribute

type StacksAttribute struct {

	// 规格列表
	Specs *[]string `json:"specs,omitempty" xml:"specs"`

	// 提示id
	Suggest *string `json:"suggest,omitempty" xml:"suggest"`

	// 提示信息
	SuggestTitle *string `json:"suggest_title,omitempty" xml:"suggest_title"`

	// 卷容量列表
	Volumes *[]string `json:"volumes,omitempty" xml:"volumes"`
}

func (StacksAttribute) String

func (o StacksAttribute) String() string

type StacksConfig

type StacksConfig struct {
	Attributes *StacksAttribute `json:"attributes,omitempty" xml:"attributes"`

	Recipe *Recipe `json:"recipe,omitempty" xml:"recipe"`
}

func (StacksConfig) String

func (o StacksConfig) String() string

type StacksTags added in v0.0.74

type StacksTags struct {

	// 技术栈列表
	StackList *[]StackInfo `json:"stack_list,omitempty" xml:"stack_list"`

	// 技术栈tag集合
	Tags *[]string `json:"tags,omitempty" xml:"tags"`
}

func (StacksTags) String added in v0.0.74

func (o StacksTags) String() string

type StartInstanceParam

type StartInstanceParam struct {

	// 插件列表
	PluginEnableList *[]string `json:"plugin_enable_list,omitempty" xml:"plugin_enable_list"`

	// 插件参数
	PluginVars map[string]string `json:"plugin_vars,omitempty" xml:"plugin_vars"`
}

func (StartInstanceParam) String

func (o StartInstanceParam) String() string

type StartInstanceRequest

type StartInstanceRequest struct {

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

	Body *StartInstanceParam `json:"body,omitempty" xml:"body"`
}

Request Object

func (StartInstanceRequest) String

func (o StartInstanceRequest) String() string

type StartInstanceResponse

type StartInstanceResponse struct {

	// 返回值
	Result *string `json:"result,omitempty" xml:"result"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (StartInstanceResponse) String

func (o StartInstanceResponse) String() string

type StopInstanceRequest

type StopInstanceRequest struct {

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

Request Object

func (StopInstanceRequest) String

func (o StopInstanceRequest) String() string

type StopInstanceResponse

type StopInstanceResponse struct {

	// 返回值
	Result *bool `json:"result,omitempty" xml:"result"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (StopInstanceResponse) String

func (o StopInstanceResponse) String() string

type UpdateInstanceActivityRequest added in v0.0.71

type UpdateInstanceActivityRequest struct {

	// CloudIDE实例id
	InstanceId string `json:"instance_id" xml:"instance_id"`
}

Request Object

func (UpdateInstanceActivityRequest) String added in v0.0.71

type UpdateInstanceActivityResponse added in v0.0.71

type UpdateInstanceActivityResponse struct {
	Result *ExpireVo `json:"result,omitempty" xml:"result"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateInstanceActivityResponse) String added in v0.0.71

type UpdateInstanceRequest

type UpdateInstanceRequest struct {

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

	Body *InstanceUpdateParam `json:"body,omitempty" xml:"body"`
}

Request Object

func (UpdateInstanceRequest) String

func (o UpdateInstanceRequest) String() string

type UpdateInstanceResponse

type UpdateInstanceResponse struct {

	// 返回值
	Result *bool `json:"result,omitempty" xml:"result"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateInstanceResponse) String

func (o UpdateInstanceResponse) String() string

type UploadExtensionFileRequest added in v0.0.96

type UploadExtensionFileRequest struct {

	// 插件类型。目前只支持CloudIDE
	Official string `json:"official" xml:"official"`

	Body *UploadExtensionFileRequestBody `json:"body,omitempty" xml:"body" type:"multipart"`
}

Request Object

func (UploadExtensionFileRequest) String added in v0.0.96

type UploadExtensionFileRequestBody added in v0.0.96

type UploadExtensionFileRequestBody struct {

	// 文件
	File *def.FilePart `json:"file"`
}

func (UploadExtensionFileRequestBody) String added in v0.0.96

func (*UploadExtensionFileRequestBody) UnmarshalJSON added in v0.0.96

func (o *UploadExtensionFileRequestBody) UnmarshalJSON(b []byte) error

type UploadExtensionFileResponse added in v0.0.96

type UploadExtensionFileResponse struct {
	Error *Error `json:"error,omitempty" xml:"error"`

	// 结果
	Result *interface{} `json:"result,omitempty" xml:"result"`

	// 状态
	Status         *string `json:"status,omitempty" xml:"status"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UploadExtensionFileResponse) String added in v0.0.96

Source Files

Jump to

Keyboard shortcuts

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