model

package
v0.1.124 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInstanceConfig

type AppInstanceConfig struct {
	PgsqlInstanceConfig *PgsqlInstanceConfig `json:"pgsql_instance_config,omitempty"`

	ModelInstanceConfig *ModelServiceInstanceConfig `json:"model_instance_config,omitempty"`
}

AppInstanceConfig 启动App实例时输入的配置

func (AppInstanceConfig) String

func (o AppInstanceConfig) String() string

type BaseDemand

type BaseDemand struct {

	// 最小数
	Min int32 `json:"min"`

	// 最大数,最小值为1,最大值为1000。
	Max int32 `json:"max"`
}

BaseDemand 资源需求量配置

func (BaseDemand) String

func (o BaseDemand) String() string

type DeleteServiceInstanceRequest

type DeleteServiceInstanceRequest struct {

	// Workspace的ID
	WorkspaceId string `json:"workspace_id"`

	// 实例的Id
	InstanceId string `json:"instance_id"`
}

DeleteServiceInstanceRequest Request Object

func (DeleteServiceInstanceRequest) String

type DeleteServiceInstanceResponse

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

DeleteServiceInstanceResponse Response Object

func (DeleteServiceInstanceResponse) String

type DeployServiceInstanceRequest

type DeployServiceInstanceRequest struct {

	// Workspace的ID
	WorkspaceId string `json:"workspace_id"`

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

DeployServiceInstanceRequest Request Object

func (DeployServiceInstanceRequest) String

type DeployServiceInstanceResponse

type DeployServiceInstanceResponse struct {

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

DeployServiceInstanceResponse Response Object

func (DeployServiceInstanceResponse) String

type Description

type Description struct {
}

Description 描述信息

func (Description) String

func (o Description) String() string

type EndpointId

type EndpointId struct {
}

EndpointId endpoint空间id

func (EndpointId) String

func (o EndpointId) String() string

type ErrorCode

type ErrorCode struct {
}

ErrorCode 错误码

func (ErrorCode) String

func (o ErrorCode) String() string

type ErrorMsg

type ErrorMsg struct {
}

ErrorMsg 错误描述

func (ErrorMsg) String

func (o ErrorMsg) String() string

type InstanceId

type InstanceId struct {
}

InstanceId 实例Id

func (InstanceId) String

func (o InstanceId) String() string

type ListServicesInstancesRequest

type ListServicesInstancesRequest struct {

	// Workspace的ID
	WorkspaceId string `json:"workspace_id"`

	// 通过service Instance id检索,32~36位的英文、数字、短横组合
	Id *string `json:"id,omitempty"`

	// 通过名字搜索Service Instance,支持模糊查询
	Name *string `json:"name,omitempty"`

	// 指定每一页返回的最大条目数,取值范围[1,100],默认为10。
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量,表示从此偏移量开始查询, offset大于等于0,默认为0。
	Offset *int32 `json:"offset,omitempty"`

	// 通过id检索Endpoint的参数
	EndpointId *string `json:"endpoint_id,omitempty"`

	// Service ID或者Model ID
	SourceId *string `json:"source_id,omitempty"`

	// Service version ID或者Model version ID
	VersionId *string `json:"version_id,omitempty"`

	// Service的类型,可选值: - PGSQL_SERVICE:DWS Pay-By-Query - LLM_MODEL:大语言模型
	Type *ListServicesInstancesRequestType `json:"type,omitempty"`

	// 可见性检索的参数,可选值为: - PRIVATE: 私有,用户自己创建的; - PUBLIC:公共,查询所有公共的,包括其他用户创建的; - 默认为空,不填表示不限制,则查出当前用户下的,包括PRIVATE和PUBLIC,不包括其他用户创建的。
	Visibility *string `json:"visibility,omitempty"`

	// 根据字段排序,可选值: - CREATE_TIME:创建时间 - DURATION: 运行时间
	SortBy *ListServicesInstancesRequestSortBy `json:"sort_by,omitempty"`

	// 排序方式,可选值: - ASC:正序排序 - DESC: 倒序排序
	OrderBy *ListServicesInstancesRequestOrderBy `json:"order_by,omitempty"`
}

ListServicesInstancesRequest Request Object

func (ListServicesInstancesRequest) String

type ListServicesInstancesRequestOrderBy

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

func (ListServicesInstancesRequestOrderBy) MarshalJSON

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

func (*ListServicesInstancesRequestOrderBy) UnmarshalJSON

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

func (ListServicesInstancesRequestOrderBy) Value

type ListServicesInstancesRequestOrderByEnum

type ListServicesInstancesRequestOrderByEnum struct {
	ASC  ListServicesInstancesRequestOrderBy
	DESC ListServicesInstancesRequestOrderBy
}

func GetListServicesInstancesRequestOrderByEnum

func GetListServicesInstancesRequestOrderByEnum() ListServicesInstancesRequestOrderByEnum

type ListServicesInstancesRequestSortBy

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

func (ListServicesInstancesRequestSortBy) MarshalJSON

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

func (*ListServicesInstancesRequestSortBy) UnmarshalJSON

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

func (ListServicesInstancesRequestSortBy) Value

type ListServicesInstancesRequestSortByEnum

type ListServicesInstancesRequestSortByEnum struct {
	CREATE_TIME ListServicesInstancesRequestSortBy
	DURATION    ListServicesInstancesRequestSortBy
}

func GetListServicesInstancesRequestSortByEnum

func GetListServicesInstancesRequestSortByEnum() ListServicesInstancesRequestSortByEnum

type ListServicesInstancesRequestType

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

func (ListServicesInstancesRequestType) MarshalJSON

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

func (*ListServicesInstancesRequestType) UnmarshalJSON

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

func (ListServicesInstancesRequestType) Value

type ListServicesInstancesRequestTypeEnum

type ListServicesInstancesRequestTypeEnum struct {
	PGSQL_SERVICE ListServicesInstancesRequestType
	LLM_MODEL     ListServicesInstancesRequestType
}

func GetListServicesInstancesRequestTypeEnum

func GetListServicesInstancesRequestTypeEnum() ListServicesInstancesRequestTypeEnum

type ListServicesInstancesResponse

type ListServicesInstancesResponse struct {

	// 符合条件的service Istance总数
	Total *int32 `json:"total,omitempty"`

	// 符合条件的service Instance列表
	ServiceInstances *[]ServiceInstanceBriefInfo `json:"service_instances,omitempty"`
	HttpStatusCode   int                         `json:"-"`
}

ListServicesInstancesResponse Response Object

func (ListServicesInstancesResponse) String

type ModelServiceInstanceConfig

type ModelServiceInstanceConfig struct {
	Resource *ResourceDemand `json:"resource"`
}

ModelServiceInstanceConfig 模型服务实例的配置,在DeployService中使用

func (ModelServiceInstanceConfig) String

type PgsqlInstanceConfig

type PgsqlInstanceConfig struct {

	// 资源规格,从规格列表查询获取。
	CoordinatorResourceSpec string `json:"coordinator_resource_spec"`

	// Coordinator的POD标签
	CoordinatorPodLabel string `json:"coordinator_pod_label"`

	// 资源规格,从规格列表查询获取。
	WorkerResourceSpec string `json:"worker_resource_spec"`

	// Worker的POD标签
	WorkerPodLabel string `json:"worker_pod_label"`

	// Coordinator对外服务的端口
	CoordinatorPort int32 `json:"coordinator_port"`

	// json格式 元数据以及data位置信息
	RuntimeParam string `json:"runtime_param"`
}

PgsqlInstanceConfig PGSQL服务实例的配置,在DeployService中使用

func (PgsqlInstanceConfig) String

func (o PgsqlInstanceConfig) String() string

type ResourceDemand

type ResourceDemand struct {

	// 最小数
	Min int32 `json:"min"`

	// 最大数,最小值为1,最大值为1000。
	Max int32 `json:"max"`

	// 资源规格,从规格列表查询获取。
	SpecCode string `json:"spec_code"`
}

ResourceDemand 资源需求量配置

func (ResourceDemand) String

func (o ResourceDemand) String() string

type ResourceId

type ResourceId struct {
}

ResourceId 一种资源ID,32~36位的英文、数字、短横组合

func (ResourceId) String

func (o ResourceId) String() string

type ServiceInstanceBriefInfo

type ServiceInstanceBriefInfo struct {

	// 可见性:  - PRIVATE:私有  - PUBLIC:公共  默认为PRIVATE
	Visibility *string `json:"visibility,omitempty"`

	Source *SourceRef `json:"source,omitempty"`

	// Service Instance的ID
	Id *string `json:"id,omitempty"`

	// 一个Service Instance的名称,只能包含中文、字母、数字、下划线、中划线、点、空格
	Name *string `json:"name,omitempty"`

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

	// endpoint空间id
	EndpointId *string `json:"endpoint_id,omitempty"`

	Status *StatusEnum `json:"status,omitempty"`

	// 创建时间
	CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`

	// 更新时间
	UpdateTime *sdktime.SdkTime `json:"update_time,omitempty"`

	// 运行时长
	Duration *int64 `json:"duration,omitempty"`

	CreateUser *User `json:"create_user,omitempty"`

	Type *ServiceType `json:"type,omitempty"`
}

ServiceInstanceBriefInfo Service Instance简要信息

func (ServiceInstanceBriefInfo) String

func (o ServiceInstanceBriefInfo) String() string

type ServiceInstanceConfig

type ServiceInstanceConfig struct {
	PgsqlInstanceConfig *PgsqlInstanceConfig `json:"pgsql_instance_config,omitempty"`

	ModelInstanceConfig *ModelServiceInstanceConfig `json:"model_instance_config,omitempty"`
}

ServiceInstanceConfig 启动Service实例时输入的配置,在DeployService中使用

func (ServiceInstanceConfig) String

func (o ServiceInstanceConfig) String() string

type ServiceInstanceId

type ServiceInstanceId struct {
}

ServiceInstanceId Service Instance的ID

func (ServiceInstanceId) String

func (o ServiceInstanceId) String() string

type ServiceInstanceInput

type ServiceInstanceInput struct {
	Source *SourceRef `json:"source"`

	// 一个Service Instance的名称,只能包含中文、字母、数字、下划线、中划线、点、空格
	Name string `json:"name"`

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

	// endpoint空间id
	EndpointId string `json:"endpoint_id"`

	Config *ServiceInstanceConfig `json:"config,omitempty"`
}

ServiceInstanceInput 部署Service的请求体

func (ServiceInstanceInput) String

func (o ServiceInstanceInput) String() string

type ServiceInstanceName

type ServiceInstanceName struct {
}

ServiceInstanceName 一个Service Instance的名称,只能包含中文、字母、数字、下划线、中划线、点、空格

func (ServiceInstanceName) String

func (o ServiceInstanceName) String() string

type ServiceType

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

ServiceType Service的类型,可选值: - PGSQL_SERVICE:DWS Pay-By-Query - LLM_MODEL:大语言模型

func (ServiceType) MarshalJSON

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

func (*ServiceType) UnmarshalJSON

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

func (ServiceType) Value

func (c ServiceType) Value() string

type ServiceTypeEnum

type ServiceTypeEnum struct {
	PGSQL_SERVICE ServiceType
	LLM_MODEL     ServiceType
}

func GetServiceTypeEnum

func GetServiceTypeEnum() ServiceTypeEnum

type ShowServiceInstanceDetailRequest

type ShowServiceInstanceDetailRequest struct {

	// Workspace的ID
	WorkspaceId string `json:"workspace_id"`

	// 实例的Id
	InstanceId string `json:"instance_id"`
}

ShowServiceInstanceDetailRequest Request Object

func (ShowServiceInstanceDetailRequest) String

type ShowServiceInstanceDetailResponse

type ShowServiceInstanceDetailResponse struct {

	// 可见性:  - PRIVATE:私有  - PUBLIC:公共  默认为PRIVATE
	Visibility *string `json:"visibility,omitempty"`

	Source *SourceRef `json:"source,omitempty"`

	// Service Instance的ID
	Id *string `json:"id,omitempty"`

	// 一个Service Instance的名称,只能包含中文、字母、数字、下划线、中划线、点、空格
	Name *string `json:"name,omitempty"`

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

	// endpoint空间id
	EndpointId *string `json:"endpoint_id,omitempty"`

	Status *StatusEnum `json:"status,omitempty"`

	// 创建时间
	CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`

	// 更新时间
	UpdateTime *sdktime.SdkTime `json:"update_time,omitempty"`

	// 运行时长
	Duration *int64 `json:"duration,omitempty"`

	CreateUser *User `json:"create_user,omitempty"`

	Type *ServiceType `json:"type,omitempty"`

	UpdateUser *User `json:"update_user,omitempty"`

	Url *Url `json:"url,omitempty"`

	Config *AppInstanceConfig `json:"config,omitempty"`

	// 错误码
	ErrorCode *string `json:"error_code,omitempty"`

	// 错误描述
	ErrorMsg       *string `json:"error_msg,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowServiceInstanceDetailResponse Response Object

func (ShowServiceInstanceDetailResponse) String

type SourceRef

type SourceRef struct {

	// 一种资源ID,32~36位的英文、数字、短横组合
	Id string `json:"id"`

	// 一种资源ID,32~36位的英文、数字、短横组合
	VersionId *string `json:"version_id,omitempty"`
}

SourceRef 来源信息,Service信息或者模型信息

func (SourceRef) String

func (o SourceRef) String() string

type SpecCode

type SpecCode struct {
}

SpecCode 资源规格,从规格列表查询获取。

func (SpecCode) String

func (o SpecCode) String() string

type StatusEnum

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

StatusEnum 运行状态PENDING, CREATING, RUNNING, UPDATING, SUCCEEDED, FAILED, STOPPING, STOPPED, DELETING, DELETED

func (StatusEnum) MarshalJSON

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

func (*StatusEnum) UnmarshalJSON

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

func (StatusEnum) Value

func (c StatusEnum) Value() string

type StatusEnumEnum

type StatusEnumEnum struct {
	PENDING   StatusEnum
	CREATING  StatusEnum
	RUNNING   StatusEnum
	UPDATING  StatusEnum
	SUCCEEDED StatusEnum
	FAILED    StatusEnum
	STOPPING  StatusEnum
	STOPPED   StatusEnum
	DELETING  StatusEnum
	DELETED   StatusEnum
}

func GetStatusEnumEnum

func GetStatusEnumEnum() StatusEnumEnum

type UpdateModelServiceInstanceConfig

type UpdateModelServiceInstanceConfig struct {
	Resource *BaseDemand `json:"resource"`
}

UpdateModelServiceInstanceConfig 更新模型服务实例的配置

func (UpdateModelServiceInstanceConfig) String

type UpdateServiceInstanceConfig

type UpdateServiceInstanceConfig struct {
	PgsqlInstanceConfig *PgsqlInstanceConfig `json:"pgsql_instance_config,omitempty"`

	ModelInstanceConfig *UpdateModelServiceInstanceConfig `json:"model_instance_config,omitempty"`
}

UpdateServiceInstanceConfig 更新Service instance时输入的配置

func (UpdateServiceInstanceConfig) String

type UpdateServiceInstanceInput

type UpdateServiceInstanceInput struct {
	Source *SourceRef `json:"source,omitempty"`

	// 一个Service Instance的名称,只能包含中文、字母、数字、下划线、中划线、点、空格
	Name *string `json:"name,omitempty"`

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

	Config *UpdateServiceInstanceConfig `json:"config,omitempty"`
}

UpdateServiceInstanceInput 更新Service的请求体

func (UpdateServiceInstanceInput) String

type UpdateServiceInstanceRequest

type UpdateServiceInstanceRequest struct {

	// Workspace的ID
	WorkspaceId string `json:"workspace_id"`

	// 实例的Id
	InstanceId string `json:"instance_id"`

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

UpdateServiceInstanceRequest Request Object

func (UpdateServiceInstanceRequest) String

type UpdateServiceInstanceResponse

type UpdateServiceInstanceResponse struct {

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

	XRequestId     *string `json:"X-request-id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateServiceInstanceResponse Response Object

func (UpdateServiceInstanceResponse) String

type Url

type Url struct {

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

	// Url地址
	Address *string `json:"address,omitempty"`

	// 类型,PUBLIC为公网地址,PRIVATE为内网地址
	Type *UrlType `json:"type,omitempty"`
}

Url Url信息

func (Url) String

func (o Url) String() string

type UrlType

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

func (UrlType) MarshalJSON

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

func (*UrlType) UnmarshalJSON

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

func (UrlType) Value

func (c UrlType) Value() string

type UrlTypeEnum

type UrlTypeEnum struct {
	PRIVATE UrlType
	PUBLIC  UrlType
}

func GetUrlTypeEnum

func GetUrlTypeEnum() UrlTypeEnum

type User

type User struct {

	// 账户名称
	DomainName *string `json:"domain_name,omitempty"`

	// 用户名称
	UserName *string `json:"user_name,omitempty"`
}

User 租户信息

func (User) String

func (o User) String() string

type VisibilityBody

type VisibilityBody struct {

	// 可见性:  - PRIVATE:私有  - PUBLIC:公共  默认为PRIVATE
	Visibility *string `json:"visibility,omitempty"`
}

VisibilityBody 可见性: - PRIVATE:私有 - PUBLIC:公共 默认为PRIVATE

func (VisibilityBody) String

func (o VisibilityBody) String() string

Jump to

Keyboard shortcuts

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