Documentation ¶
Index ¶
- type AppInstanceConfig
- type BaseDemand
- type DeleteServiceInstanceRequest
- type DeleteServiceInstanceResponse
- type DeployServiceInstanceRequest
- type DeployServiceInstanceResponse
- type Description
- type EndpointId
- type ErrorCode
- type ErrorMsg
- type InstanceId
- type ListServicesInstancesRequest
- type ListServicesInstancesRequestOrderBy
- type ListServicesInstancesRequestOrderByEnum
- type ListServicesInstancesRequestSortBy
- type ListServicesInstancesRequestSortByEnum
- type ListServicesInstancesRequestType
- type ListServicesInstancesRequestTypeEnum
- type ListServicesInstancesResponse
- type ModelServiceInstanceConfig
- type PgsqlInstanceConfig
- type ResourceDemand
- type ResourceId
- type ServiceInstanceBriefInfo
- type ServiceInstanceConfig
- type ServiceInstanceId
- type ServiceInstanceInput
- type ServiceInstanceName
- type ServiceType
- type ServiceTypeEnum
- type ShowServiceInstanceDetailRequest
- type ShowServiceInstanceDetailResponse
- type SourceRef
- type SpecCode
- type StatusEnum
- type StatusEnumEnum
- type UpdateModelServiceInstanceConfig
- type UpdateServiceInstanceConfig
- type UpdateServiceInstanceInput
- type UpdateServiceInstanceRequest
- type UpdateServiceInstanceResponse
- type Url
- type UrlType
- type UrlTypeEnum
- type User
- type VisibilityBody
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 ¶
func (o DeleteServiceInstanceRequest) String() string
type DeleteServiceInstanceResponse ¶
type DeleteServiceInstanceResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteServiceInstanceResponse Response Object
func (DeleteServiceInstanceResponse) String ¶
func (o DeleteServiceInstanceResponse) String() string
type DeployServiceInstanceRequest ¶
type DeployServiceInstanceRequest struct { // Workspace的ID WorkspaceId string `json:"workspace_id"` Body *ServiceInstanceInput `json:"body,omitempty"` }
DeployServiceInstanceRequest Request Object
func (DeployServiceInstanceRequest) String ¶
func (o DeployServiceInstanceRequest) String() string
type DeployServiceInstanceResponse ¶
type DeployServiceInstanceResponse struct { // 实例Id Id *string `json:"id,omitempty"` HttpStatusCode int `json:"-"` }
DeployServiceInstanceResponse Response Object
func (DeployServiceInstanceResponse) String ¶
func (o DeployServiceInstanceResponse) String() 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 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 ¶
func (o ListServicesInstancesRequest) String() 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 ¶
func (c ListServicesInstancesRequestOrderBy) Value() string
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 ¶
func (c ListServicesInstancesRequestSortBy) Value() string
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 ¶
func (c ListServicesInstancesRequestType) Value() string
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 ¶
func (o ListServicesInstancesResponse) String() string
type ModelServiceInstanceConfig ¶
type ModelServiceInstanceConfig struct {
Resource *ResourceDemand `json:"resource"`
}
ModelServiceInstanceConfig 模型服务实例的配置,在DeployService中使用
func (ModelServiceInstanceConfig) String ¶
func (o ModelServiceInstanceConfig) String() 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 ¶
func (o ShowServiceInstanceDetailRequest) String() 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 ¶
func (o ShowServiceInstanceDetailResponse) String() string
type SourceRef ¶
type SourceRef struct { // 一种资源ID,32~36位的英文、数字、短横组合 Id string `json:"id"` // 一种资源ID,32~36位的英文、数字、短横组合 VersionId *string `json:"version_id,omitempty"` }
SourceRef 来源信息,Service信息或者模型信息
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 ¶
func (o UpdateModelServiceInstanceConfig) String() 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 ¶
func (o UpdateServiceInstanceConfig) String() 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 ¶
func (o UpdateServiceInstanceInput) String() 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 ¶
func (o UpdateServiceInstanceRequest) String() 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 ¶
func (o UpdateServiceInstanceResponse) String() 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信息
type UrlType ¶
type UrlType struct {
// contains filtered or unexported fields
}
func (UrlType) MarshalJSON ¶
func (*UrlType) UnmarshalJSON ¶
type UrlTypeEnum ¶
func GetUrlTypeEnum ¶
func GetUrlTypeEnum() UrlTypeEnum
type User ¶
type User struct { // 账户名称 DomainName *string `json:"domain_name,omitempty"` // 用户名称 UserName *string `json:"user_name,omitempty"` }
User 租户信息
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
Source Files ¶
- model_app_instance_config.go
- model_base_demand.go
- model_delete_service_instance_request.go
- model_delete_service_instance_response.go
- model_deploy_service_instance_request.go
- model_deploy_service_instance_response.go
- model_description.go
- model_endpoint_id.go
- model_error_code.go
- model_error_msg.go
- model_instance_id.go
- model_list_services_instances_request.go
- model_list_services_instances_response.go
- model_model_service_instance_config.go
- model_pgsql_instance_config.go
- model_resource_demand.go
- model_resource_id.go
- model_service_instance_brief_info.go
- model_service_instance_config.go
- model_service_instance_id.go
- model_service_instance_input.go
- model_service_instance_name.go
- model_service_type.go
- model_show_service_instance_detail_request.go
- model_show_service_instance_detail_response.go
- model_source_ref.go
- model_spec_code.go
- model_status_enum.go
- model_update_model_service_instance_config.go
- model_update_service_instance_config.go
- model_update_service_instance_input.go
- model_update_service_instance_request.go
- model_update_service_instance_response.go
- model_url.go
- model_user.go
- model_visibility_body.go