model

package
v0.0.8-beta Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attributes

type Attributes struct {
	// cpu限制
	CpuLimit *string `json:"cpu_limit,omitempty"`
	// 内存限制
	MemoryLimitBytes *string `json:"memory_limit_bytes,omitempty"`
	// pvc规格
	PvcQuantity *string `json:"pvc_quantity,omitempty"`
}

func (Attributes) String

func (o Attributes) String() string

type CheckNameRequest

type CheckNameRequest struct {
	DisplayName string `json:"display_name"`
}

Request Object

func (CheckNameRequest) String

func (o CheckNameRequest) String() string

type CheckNameResponse

type CheckNameResponse struct {
	// 返回值
	Result *bool `json:"result,omitempty"`
	// 状态
	Status *string `json:"status,omitempty"`
}

Response Object

func (CheckNameResponse) String

func (o CheckNameResponse) String() string

type CreateInstanceBy3rdRequest

type CreateInstanceBy3rdRequest struct {
	InstanceLabel *string            `json:"instance_label,omitempty"`
	Body          *InstanceEdgeParam `json:"body,omitempty"`
}

Request Object

func (CreateInstanceBy3rdRequest) String

type CreateInstanceBy3rdResponse

type CreateInstanceBy3rdResponse struct {
	Result *InstancesVo `json:"result,omitempty"`
	// 状态
	Status *string `json:"status,omitempty"`
}

Response Object

func (CreateInstanceBy3rdResponse) String

type CreateInstanceRequest

type CreateInstanceRequest struct {
	OrgId string         `json:"org_id"`
	Body  *InstanceParam `json:"body,omitempty"`
}

Request Object

func (CreateInstanceRequest) String

func (o CreateInstanceRequest) String() string

type CreateInstanceResponse

type CreateInstanceResponse struct {
	Result *InstancesVo `json:"result,omitempty"`
	// 状态
	Status *string `json:"status,omitempty"`
}

Response Object

func (CreateInstanceResponse) String

func (o CreateInstanceResponse) String() string

type DeleteInstanceRequest

type DeleteInstanceRequest struct {
	InstanceId string `json:"instance_id"`
}

Request Object

func (DeleteInstanceRequest) String

func (o DeleteInstanceRequest) String() string

type DeleteInstanceResponse

type DeleteInstanceResponse struct {
	// 返回值
	Result *bool `json:"result,omitempty"`
	// 状态
	Status *string `json:"status,omitempty"`
}

Response Object

func (DeleteInstanceResponse) String

func (o DeleteInstanceResponse) String() string

type InstanceEdgeParam

type InstanceEdgeParam struct {
	// cpu架构 x86|arm
	Arch *InstanceEdgeParamArch `json:"arch,omitempty"`
	// cpu规格.arm架构支持4U8G,x86架构支持1U1G,2U4G,2U8G 与技术栈配置的规格对应,可通过技术栈管理ListStacksByTag接口获取。如果标签不为空,以标签配置的技术栈规格为准。 quantum技术栈,x86架构cpu规格为2U8G;其他技术栈,x86架构cpu规格为1U1G,2U4G
	CpuMemory InstanceEdgeParamCpuMemory `json:"cpu_memory"`
	// 描述。长度不操过100个字符
	Description *string `json:"description,omitempty"`
	// 实例名。 可以输入中文、数字、字母、下划线、点、破折号。长度介于3-100之间
	InstanceName string `json:"instance_name"`
	// 组织id(对应华为云账号的domainId)
	InstanceUserDomainId *string `json:"instance_user_domain_id,omitempty"`
	// 用户组织名
	InstanceUserDomainName string `json:"instance_user_domain_name"`
	// 用户id
	InstanceUserId *string `json:"instance_user_id,omitempty"`
	// 用户名
	InstanceUserName string `json:"instance_user_name"`
	// 是否临时实例。false页面会显示
	IsTemporary *bool `json:"is_temporary,omitempty"`
	// 插件列表
	Plugins []Plugin `json:"plugins,omitempty"`
	// PVC规格 5GB|10GB|20GB
	PvcQuantity InstanceEdgeParamPvcQuantity `json:"pvc_quantity"`
	// 实例的生命周期 arm架构,生命周期只能设置成30,60。x86架构可取值为30,60,240,1440和-1。除-1外,其它值的单位为“分钟”。实例在到达生命周期后,将会被暂停(已保存的数据不会被删除)。-1表示实例不会自动停止。
	RefreshTime *string `json:"refresh_time,omitempty"`
	// 技术栈ID 目前可取值all,java,go,python,cpp,nodejs,quantum,blockchain,dcn,vue,ruby。
	StackId string `json:"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

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

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

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,标签为tutorial时使用
	AgentId *string `json:"agent_id,omitempty"`
	// cpu架构 x86|arm
	Arch *InstanceParamArch `json:"arch,omitempty"`
	// cpu规格.arm架构支持4U8G,x86架构支持1U1G,2U4G,2U8G 与技术栈配置的规格对应,可通过技术栈管理ListStacksByTag接口获取。如果标签不为空,以标签配置的技术栈规格为准。 quantum技术栈,x86架构cpu规格为2U8G;其他技术栈,x86架构cpu规格为1U1G,2U4G
	CpuMemory InstanceParamCpuMemory `json:"cpu_memory"`
	// 描述
	Description *string `json:"description,omitempty"`
	// 实例名。 可以输入中文、数字、字母、下划线、点、破折号。长度介于3-100之间
	DisplayName string `json:"display_name"`
	// 是否临时实例。 false页面会显示
	IsTemporary *bool `json:"is_temporary,omitempty"`
	// 场景标签
	LabelTag *string `json:"label_tag,omitempty"`
	// 场景插件列表
	PluginEnableList []string `json:"plugin_enable_list,omitempty"`
	// 场景插件参数
	PluginVars map[string]string `json:"plugin_vars,omitempty"`
	// PVC规格 5GB|10GB|20GB
	PvcQuantity InstanceParamPvcQuantity `json:"pvc_quantity"`
	// 实例的生命周期 arm架构,生命周期只能设置成30,60。x86架构可取值为30,60,240,1440和-1。除-1外,其它值的单位为“分钟”。实例在到达生命周期后,将会被暂停(已保存的数据不会被删除)。-1表示实例不会自动停止。
	RefreshInterval string `json:"refresh_interval"`
	// 解放号的仓库id,标签为jfh时使用
	RepositoryId *int64 `json:"repository_id,omitempty"`
	// 技术栈ID 目前可取值all,java,go,python,cpp,nodejs,quantum,blockchain,dcn,vue,ruby。
	StackId string `json:"stack_id"`
	// 任务类型,标签为tutorial时使用
	TaskType *string `json:"task_type,omitempty"`
	// 解放号的token,标签为jfh时使用
	Token *string `json:"token,omitempty"`
}

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

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

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

type InstanceParamPvcQuantityEnum

type InstanceParamPvcQuantityEnum struct {
	E_5_GB  InstanceParamPvcQuantity
	E_10_GB InstanceParamPvcQuantity
	E_20_GB InstanceParamPvcQuantity
}

func GetInstanceParamPvcQuantityEnum

func GetInstanceParamPvcQuantityEnum() InstanceParamPvcQuantityEnum

type InstanceUpdateParam

type InstanceUpdateParam struct {
	// 描述
	Description *string `json:"description,omitempty"`
	// 实例名。 可以输入中文、数字、字母、下划线、点、破折号。长度介于3-100之间
	DisplayName string `json:"display_name"`
	// 实例的生命周期 arm架构,生命周期只能设置成30,60。x86架构可取值为30,60,240,1440和-1。除-1外,其它值的单位为“分钟”。实例在到达生命周期后,将会被暂停(已保存的数据不会被删除)。-1表示实例不会自动停止。
	RefreshInterval string `json:"refresh_interval"`
}

func (InstanceUpdateParam) String

func (o InstanceUpdateParam) String() string

type InstancesVo

type InstancesVo struct {
	// 角色权限列表
	ActionList []RoleAction `json:"action_list,omitempty"`
	// cpu架构 x86|arm
	Arch       *InstancesVoArch `json:"arch,omitempty"`
	Attributes *Attributes      `json:"attributes,omitempty"`
	// cpu规格.arm架构支持4U8G,x86架构支持1U1G,2U4G,2U8G 与技术栈配置的规格对应,可通过技术栈管理ListStacksByTag接口获取。如果标签不为空,以标签配置的技术栈规格为准。 quantum技术栈,x86架构cpu规格为2U8G;其他技术栈,x86架构cpu规格为1U1G,2U4G
	CpuMemory *InstancesVoCpuMemory `json:"cpu_memory,omitempty"`
	// 创建时间
	CreatedTime *string `json:"created_time,omitempty"`
	// 描述
	Description *string `json:"description,omitempty"`
	// 实例名。 可以输入中文、数字、字母、下划线、点、破折号。长度介于3-100之间
	DisplayName *string `json:"display_name,omitempty"`
	// 组织名
	DomainName *string `json:"domain_name,omitempty"`
	// id
	Id *string `json:"id,omitempty"`
	// 是否临时实例。 false页面会显示
	IsTemporary *bool `json:"is_temporary,omitempty"`
	// 标签
	Label *string `json:"label,omitempty"`
	// 链接
	Link *string `json:"link,omitempty"`
	// 名称
	Name *string `json:"name,omitempty"`
	// 组织id(对应华为云账号的domainId)
	OrganizationId *string `json:"organization_id,omitempty"`
	// 用户id
	OwnerId *string `json:"owner_id,omitempty"`
	// 用户名
	OwnerName *string `json:"owner_name,omitempty"`
	// 平台ID
	PlatformId *int64 `json:"platform_id,omitempty"`
	// 是否私有平台
	Private *bool `json:"private,omitempty"`
	// PVC规格 5GB|10GB|20GB
	PvcQuantity *InstancesVoPvcQuantity `json:"pvc_quantity,omitempty"`
	// 实例的生命周期 arm架构,生命周期只能设置成30,60。x86架构可取值为30,60,240,1440和-1。除-1外,其它值的单位为“分钟”。实例在到达生命周期后,将会被暂停(已保存的数据不会被删除)。-1表示实例不会自动停止。
	RefreshInterval *int64 `json:"refresh_interval,omitempty"`
	// 区域
	Region *string `json:"region,omitempty"`
	Role   *Role   `json:"role,omitempty"`
	// 角色id
	RoleId *string `json:"role_id,omitempty"`
	// server
	ServerMap map[string]string `json:"server_map,omitempty"`
	// 服务链接
	ServerUrl *string `json:"server_url,omitempty"`
	// 技术栈ID 目前可取值all,java,go,python,cpp,nodejs,quantum,blockchain,dcn,vue,ruby。
	StackId *string `json:"stack_id,omitempty"`
	// 实例状态
	Status *InstancesVoStatus `json:"status,omitempty"`
	// 子组织
	SubOrg *string `json:"sub_org,omitempty"`
	// 更新时间
	UpdatedTime *string `json:"updated_time,omitempty"`
}

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

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

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

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

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 {
	Limit   *int64  `json:"limit,omitempty"`
	Offset  *int64  `json:"offset,omitempty"`
	Search  *string `json:"search,omitempty"`
	SortDir *string `json:"sort_dir,omitempty"`
	SortKey *string `json:"sort_key,omitempty"`
}

Request Object

func (ListInstancesRequest) String

func (o ListInstancesRequest) String() string

type ListInstancesResponse

type ListInstancesResponse struct {
	Instances *PageInstancesVo `json:"instances,omitempty"`
	// 状态
	Status *string `json:"status,omitempty"`
}

Response Object

func (ListInstancesResponse) String

func (o ListInstancesResponse) String() string

type ListOrgInstancesRequest

type ListOrgInstancesRequest struct {
	IsTemporary *bool   `json:"is_temporary,omitempty"`
	Limit       *int64  `json:"limit,omitempty"`
	Offset      *int64  `json:"offset,omitempty"`
	OrgId       string  `json:"org_id"`
	Search      *string `json:"search,omitempty"`
}

Request Object

func (ListOrgInstancesRequest) String

func (o ListOrgInstancesRequest) String() string

type ListOrgInstancesResponse

type ListOrgInstancesResponse struct {
	Instances *PageInstancesVo `json:"instances,omitempty"`
	// 状态
	Status *string `json:"status,omitempty"`
}

Response Object

func (ListOrgInstancesResponse) String

func (o ListOrgInstancesResponse) String() string

type ListProjectTemplatesRequest

type ListProjectTemplatesRequest struct {
	Arch    *string `json:"arch,omitempty"`
	StackId string  `json:"stack_id"`
}

Request Object

func (ListProjectTemplatesRequest) String

type ListProjectTemplatesResponse

type ListProjectTemplatesResponse struct {
	// 模板列表
	Templates []ProjectTemplates `json:"templates,omitempty"`
	// 状态
	Status *string `json:"status,omitempty"`
}

Response Object

func (ListProjectTemplatesResponse) String

type ListStacksByTagRequest

type ListStacksByTagRequest struct {
	Tags []string `json:"tags,omitempty"`
}

Request Object

func (ListStacksByTagRequest) String

func (o ListStacksByTagRequest) String() string

type ListStacksByTagResponse

type ListStacksByTagResponse struct {
	Stack *StacksTag `json:"stack,omitempty"`
	// 状态
	Status *string `json:"status,omitempty"`
}

Response Object

func (ListStacksByTagResponse) String

func (o ListStacksByTagResponse) String() string

type PageInstancesVo

type PageInstancesVo struct {
	// 是否为空
	Empty *bool `json:"empty,omitempty"`
	// 列表详情
	Items []InstancesVo `json:"items,omitempty"`
	// 偏移量,表示从此偏移量开始查询
	ItemsBefore *int64 `json:"items_before,omitempty"`
	// 每页显示的条目数量
	Size *int64 `json:"size,omitempty"`
	// 总数
	TotalItemsCount *int64 `json:"total_items_count,omitempty"`
}

func (PageInstancesVo) String

func (o PageInstancesVo) String() string

type Plugin

type Plugin struct {
	// 插件属性
	Attribute *string `json:"attribute,omitempty"`
	// 插件名
	Name *string `json:"name,omitempty"`
}

func (Plugin) String

func (o Plugin) String() string

type ProjectTemplates

type ProjectTemplates struct {
	// 描述
	Description *string `json:"description,omitempty"`
	// 显示名
	DisplayName *string `json:"display_name,omitempty"`
	Logo *string `json:"logo,omitempty"`
	// 模板名
	Name *string `json:"name,omitempty"`
	// 路径
	Path *string `json:"path,omitempty"`
	// 项目类型
	ProjectType *string `json:"project_type,omitempty"`
	// 区域
	Region *string        `json:"region,omitempty"`
	Source *SourceStorage `json:"source,omitempty"`
	// tags
	Tags []string `json:"tags,omitempty"`
	// 模板id
	TemplateId *int64 `json:"template_id,omitempty"`
}

func (ProjectTemplates) String

func (o ProjectTemplates) String() string

type Recipe

type Recipe struct {
	// 镜像内容
	Content *string `json:"content,omitempty"`
	// 镜像类型
	Type *string `json:"type,omitempty"`
}

func (Recipe) String

func (o Recipe) String() string

type ResourcePrice

type ResourcePrice struct {
	// cpu架构 x86|arm
	Arch *ResourcePriceArch `json:"arch,omitempty"`
	// 价格
	Price *float32 `json:"price,omitempty"`
	// 规格。 类型为'storage'时,size值可以为5GB,10GB,20GB。 类型为'cpuMemory'时,arch为'x86',size值可以为1U1G,2U4G;arch为'arm',size值可以为4U8G。
	Size *string `json:"size,omitempty"`
	// 类型。目前可以取值storage,cpuMemory
	Type *string `json:"type,omitempty"`
}

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

type ResourcePriceArchEnum

type ResourcePriceArchEnum struct {
	X86 ResourcePriceArch
	ARM ResourcePriceArch
}

func GetResourcePriceArchEnum

func GetResourcePriceArchEnum() ResourcePriceArchEnum

type Role

type Role struct {
	// 子角色
	CRole *string `json:"c_role,omitempty"`
	// id
	Id *string `json:"id,omitempty"`
	// 角色
	Role *string `json:"role,omitempty"`
	// 角色执行操作列表
	RoleActionses []RoleAction `json:"role_actionses,omitempty"`
}

func (Role) String

func (o Role) String() string

type RoleAction

type RoleAction struct {
	// 动作名
	ActionCname *string `json:"action_cname,omitempty"`
	// 执行动作
	Actions *RoleActionActions `json:"actions,omitempty"`
	// id
	Id *string `json:"id,omitempty"`
	// 角色id
	RoleId *string `json:"role_id,omitempty"`
}

func (RoleAction) String

func (o RoleAction) String() string

type RoleActionActions

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

func (RoleActionActions) MarshalJSON

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

func (*RoleActionActions) UnmarshalJSON

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

type RoleActionActionsEnum

type RoleActionActionsEnum struct {
	CREATE_INSTANCE    RoleActionActions
	DELETE_INSTANCE    RoleActionActions
	UPDATE_INSTANCE    RoleActionActions
	QUERY_INSTANCE     RoleActionActions
	RUN_INSTANCE       RoleActionActions
	CREATE_SUB_ORG     RoleActionActions
	UPDATE_SUB_ORG     RoleActionActions
	DELETE_SUB_ORG     RoleActionActions
	QUERY_SUB_ORG      RoleActionActions
	ADD_USER_TO_ORG    RoleActionActions
	SET_USER_ROLES     RoleActionActions
	DELETE_USER_IN_ORG RoleActionActions
	QUERY_USER_IN_ORG  RoleActionActions
}

func GetRoleActionActionsEnum

func GetRoleActionActionsEnum() RoleActionActionsEnum

type ShowInstanceRequest

type ShowInstanceRequest struct {
	InstanceId string `json:"instance_id"`
}

Request Object

func (ShowInstanceRequest) String

func (o ShowInstanceRequest) String() string

type ShowInstanceResponse

type ShowInstanceResponse struct {
	Instance *InstancesVo `json:"instance,omitempty"`
	// 状态
	Status *string `json:"status,omitempty"`
}

Response Object

func (ShowInstanceResponse) String

func (o ShowInstanceResponse) String() string

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"`
	// 状态
	Status *string `json:"status,omitempty"`
}

Response Object

func (ShowPriceResponse) String

func (o ShowPriceResponse) String() string

type SourceStorage

type SourceStorage struct {
	// 位置
	Location *string `json:"location,omitempty"`
	// 参数值
	Parameters map[string]string `json:"parameters,omitempty"`
	// 类型
	Type *string `json:"type,omitempty"`
}

func (SourceStorage) String

func (o SourceStorage) String() string

type Stacks

type Stacks struct {
	ArmConfig *StacksConfig `json:"arm_config,omitempty"`
	Config    *StacksConfig `json:"config,omitempty"`
	// 创建人
	Creator *string `json:"creator,omitempty"`
	// 描述
	Description *string `json:"description,omitempty"`
	// 是否可用
	Disable *bool `json:"disable,omitempty"`
	// id
	Id *int64 `json:"id,omitempty"`
	// 标签
	Label *string `json:"label,omitempty"`
	Logo *string `json:"logo,omitempty"`
	// 技术栈名称
	Name *string `json:"name,omitempty"`
	// 范围
	Scope *string `json:"scope,omitempty"`
	// 技术栈ID 目前可取值all,java,go,python,cpp,nodejs,quantum,blockchain,dcn,vue,ruby。
	StackId *string `json:"stack_id,omitempty"`
	// tags
	Tags []string `json:"tags,omitempty"`
}

func (Stacks) String

func (o Stacks) String() string

type StacksAttribute

type StacksAttribute struct {
	// 规格列表
	Specs []string `json:"specs,omitempty"`
	// 提示id
	Suggest *string `json:"suggest,omitempty"`
	// 提示信息
	SuggestTitle *string `json:"suggest_title,omitempty"`
	// 卷容量列表
	Volumes []string `json:"volumes,omitempty"`
}

func (StacksAttribute) String

func (o StacksAttribute) String() string

type StacksConfig

type StacksConfig struct {
	Attributes *StacksAttribute `json:"attributes,omitempty"`
	Recipe     *Recipe          `json:"recipe,omitempty"`
}

func (StacksConfig) String

func (o StacksConfig) String() string

type StacksTag

type StacksTag struct {
	// 技术栈列表
	StackList []Stacks `json:"stack_list,omitempty"`
	// 技术栈tag集合
	Tags []string `json:"tags,omitempty"`
}

func (StacksTag) String

func (o StacksTag) String() string

type StartInstanceRequest

type StartInstanceRequest struct {
	InstanceId string `json:"instance_id"`
}

Request Object

func (StartInstanceRequest) String

func (o StartInstanceRequest) String() string

type StartInstanceResponse

type StartInstanceResponse struct {
	// 返回值
	Result *string `json:"result,omitempty"`
	// 状态
	Status *string `json:"status,omitempty"`
}

Response Object

func (StartInstanceResponse) String

func (o StartInstanceResponse) String() string

type StopInstanceRequest

type StopInstanceRequest struct {
	InstanceId string `json:"instance_id"`
}

Request Object

func (StopInstanceRequest) String

func (o StopInstanceRequest) String() string

type StopInstanceResponse

type StopInstanceResponse struct {
	// 返回值
	Result *bool `json:"result,omitempty"`
	// 状态
	Status *string `json:"status,omitempty"`
}

Response Object

func (StopInstanceResponse) String

func (o StopInstanceResponse) String() string

type UpdateInstanceRequest

type UpdateInstanceRequest struct {
	InstanceId string               `json:"instance_id"`
	Body       *InstanceUpdateParam `json:"body,omitempty"`
}

Request Object

func (UpdateInstanceRequest) String

func (o UpdateInstanceRequest) String() string

type UpdateInstanceResponse

type UpdateInstanceResponse struct {
	// 返回值
	Result *bool `json:"result,omitempty"`
	// 状态
	Status *string `json:"status,omitempty"`
}

Response Object

func (UpdateInstanceResponse) String

func (o UpdateInstanceResponse) String() string

Jump to

Keyboard shortcuts

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