Merge remote-tracking branch 'origin/pcm_modelarts_1.0' into pcm_modelarts_1.0

# Conflicts:
#	adaptor/AIComputing/AICore/api/AICore.api
#	adaptor/AIComputing/AICore/api/internal/handler/routes.go
#	adaptor/AIComputing/AICore/api/internal/types/types.go
#	adaptor/AIComputing/modelarts/rpc/modelarts/modelarts.pb.go
This commit is contained in:
qiwang 2023-03-06 17:45:14 +08:00
commit 77db824c91
16 changed files with 1410 additions and 153 deletions

View File

@ -80,6 +80,25 @@ type (
}
)
/******************ImportTask end*************************/
/******************ExportTask start*************************/
type (
CreateExportTaskReq {
ProjectId string `json:"project_id"`
DatasetId string `json:"dataset_id"`
ExportPath string `json:"export_path"`
// AnnotationFormat string `json:"annotation_format"`
// ExportFormat int64 `json:"export_format"`
// ExportParams ExportParams `json:"export_params"`
}
CreateExportTaskResp {
TaskId string `json:"task_id"`
}
)
/******************ExportTask end*************************/
/******************taskList start*************************/
type (
ListImportTasksReq {
@ -337,9 +356,24 @@ service AICore-api {
// CreateTrainingJob 创建训练作业
@handler CreateTrainingJobHandler
post /CreateTrainingJob (CreateTrainingJobReq) returns (CreateTrainingJobResp)
// creat task 创建导入任务
@handler CreateExportTaskHandler
post /CreateExportTask (CreateExportTaskReq) returns (CreateExportTaskResp)
@handler createServiceHandler
get /createService (CreateServiceReq) returns (CreateServiceResp)
@handler ListClustersHandler
get /ListClusters (ListClustersReq) returns (ListClustersResp)
/******************Notebook Method start*************************/
@handler listNotebookHandler
get /listNotebook (ListNotebookReq) returns (ListNotebookResp)
/******************Notebook Method end*************************/
@handler CreateDataSetHandler
post /createDataSet (CreateDataSetReq) returns (CreateDataSetResp)
@handler DeleteDataSetHandler
delete /deleteDataSet (DeleteDataSetReq) returns (DeleteDataSetResp)
}

View File

@ -0,0 +1,28 @@
package handler
import (
"net/http"
"PCM/adaptor/AIComputing/AICore/api/internal/logic"
"PCM/adaptor/AIComputing/AICore/api/internal/svc"
"PCM/adaptor/AIComputing/AICore/api/internal/types"
"github.com/zeromicro/go-zero/rest/httpx"
)
func listNotebookHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.ListNotebookReq
if err := httpx.Parse(r, &req); err != nil {
httpx.ErrorCtx(r.Context(), w, err)
return
}
l := logic.NewListNotebookLogic(r.Context(), svcCtx)
resp, err := l.ListNotebook(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}

View File

@ -21,6 +21,9 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Method: http.MethodPost,
Path: "/CreateTask",
Handler: CreateTaskHandler(serverCtx),
Method: http.MethodPost,
Path: "/CreateTask",
Handler: CreateTaskHandler(serverCtx),
},
{
Method: http.MethodGet,
@ -47,6 +50,26 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Path: "/deleteDataSet",
Handler: DeleteDataSetHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/ListImport",
Handler: ListImportHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/GetListTrainingJobs",
Handler: GetListTrainingJobsHandler(serverCtx),
},
{
Method: http.MethodPost,
Path: "/CreateTrainingJob",
Handler: CreateTrainingJobHandler(serverCtx),
},
{
Method: http.MethodGet,
Path: "/listNotebook",
Handler: listNotebookHandler(serverCtx),
},
},
)
}

View File

@ -0,0 +1,42 @@
package logic
import (
"PCM/adaptor/AIComputing/modelarts/rpc/modelarts"
"PCM/common/tool"
"PCM/common/xerr"
"context"
"github.com/jinzhu/copier"
"github.com/pkg/errors"
"PCM/adaptor/AIComputing/AICore/api/internal/svc"
"PCM/adaptor/AIComputing/AICore/api/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type CreateExportTaskLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
func NewCreateExportTaskLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateExportTaskLogic {
return &CreateExportTaskLogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *CreateExportTaskLogic) CreateExportTask(req *types.CreateExportTaskReq) (resp *types.CreateExportTaskResp, err error) {
modelartsReq := &modelarts.GetExportTasksOfDatasetReq{}
err = copier.CopyWithOption(modelartsReq, req, copier.Option{Converters: tool.Converters})
CreateExportTaskResp, err := l.svcCtx.ModelArtsRpc.GetExportTasksOfDataset(l.ctx, modelartsReq)
if err != nil {
return nil, errors.Wrapf(xerr.NewErrMsg("Failed to get db DataSet list"), "Failed to get db DataSet list err : %v ,req:%+v", err, req)
}
resp = &types.CreateExportTaskResp{}
err = copier.CopyWithOption(&resp, &CreateExportTaskResp, copier.Option{Converters: tool.Converters})
return resp, nil
}

View File

@ -0,0 +1,42 @@
package logic
import (
"PCM/adaptor/AIComputing/modelarts/rpc/modelarts"
"PCM/common/tool"
"PCM/common/xerr"
"context"
"github.com/jinzhu/copier"
"github.com/pkg/errors"
"PCM/adaptor/AIComputing/AICore/api/internal/svc"
"PCM/adaptor/AIComputing/AICore/api/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type CreateServiceLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
func NewCreateServiceLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateServiceLogic {
return &CreateServiceLogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *CreateServiceLogic) CreateService(req *types.CreateServiceReq) (resp *types.CreateServiceResp, err error) {
// todo: add your logic here and delete this line
modelartsReq := &modelarts.CreateServiceReq{}
err = copier.CopyWithOption(modelartsReq, req, copier.Option{Converters: tool.Converters})
CreateServiceResp, err := l.svcCtx.ModelArtsRpc.CreateService(l.ctx, modelartsReq)
if err != nil {
return nil, errors.Wrapf(xerr.NewErrMsg("Failed to get db DataSet list"), "Failed to get db DataSet list err : %v ,req:%+v", err, req)
}
resp = &types.CreateServiceResp{}
err = copier.CopyWithOption(&resp, &CreateServiceResp, copier.Option{Converters: tool.Converters})
return resp, nil
}

View File

@ -0,0 +1,42 @@
package logic
import (
"PCM/adaptor/AIComputing/modelarts/rpc/modelarts"
"PCM/common/tool"
"PCM/common/xerr"
"context"
"github.com/jinzhu/copier"
"github.com/pkg/errors"
"PCM/adaptor/AIComputing/AICore/api/internal/svc"
"PCM/adaptor/AIComputing/AICore/api/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type ListClustersLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
func NewListClustersLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListClustersLogic {
return &ListClustersLogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *ListClustersLogic) ListClusters(req *types.ListClustersReq) (resp *types.ListClustersResp, err error) {
// todo: add your logic here and delete this line
modelartsReq := &modelarts.ListClustersReq{}
err = copier.CopyWithOption(modelartsReq, req, copier.Option{Converters: tool.Converters})
ListClustersResp, err := l.svcCtx.ModelArtsRpc.ListClusters(l.ctx, modelartsReq)
if err != nil {
return nil, errors.Wrapf(xerr.NewErrMsg("Failed to get db DataSet list"), "Failed to get db DataSet list err : %v ,req:%+v", err, req)
}
resp = &types.ListClustersResp{}
err = copier.CopyWithOption(&resp, &ListClustersResp, copier.Option{Converters: tool.Converters})
return resp, nil
}

View File

@ -0,0 +1,30 @@
package logic
import (
"context"
"PCM/adaptor/AIComputing/AICore/api/internal/svc"
"PCM/adaptor/AIComputing/AICore/api/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type ListNotebookLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
func NewListNotebookLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListNotebookLogic {
return &ListNotebookLogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *ListNotebookLogic) ListNotebook(req *types.ListNotebookReq) (resp *types.ListNotebookResp, err error) {
// todo: add your logic here and delete this line
return
}

View File

@ -42,6 +42,381 @@ type CreateDataSetResp struct {
Dataset_id string `json:"datasetId"`
}
type ImportTaskDataReq struct {
ProjectId string `json:"projectId"`
DatasetId string `json:"datasetId"`
ImportPath string `json:"importPath"`
}
type ImportTaskDataResp struct {
TaskId string `json:"taskId"`
}
type ListImportTasksReq struct {
ProjectId string `json:"projectId"`
DatasetId string `json:"datasetId"`
Limit int32 `json:"limit,optional"`
Offset int32 `json:"offset,optional"`
}
type ListImportTasksResp struct {
TotalCount uint32 `json:"totalCount"`
ImportTasks []ImportTasks `json:"importTasks"`
}
type ImportTasks struct {
Status string `json:"status,omitempty"`
TaskId string `json:"task_id,omitempty"`
DatasetId string `json:"dataset_id,omitempty"`
ImportPath string `json:"import_path,omitempty"`
ImportType int32 `json:"import_type,omitempty"`
TotalSampleCount uint32 `json:"total_sample_count,omitempty"`
ImportedSampleCount uint32 `json:"imported_sample_count,omitempty"`
AnnotatedSampleCount uint32 `json:"annotated_sample_count,omitempty"`
TotalSubSampleCount uint32 `json:"total_sub_sample_count,omitempty"`
ImportedSubSampleCount uint32 `json:"imported_sub_sample_count,omitempty"`
TotalFileSize uint32 `json:"total_file_size,omitempty"`
FinishedFileCount uint32 `json:"finished_file_count,omitempty"`
FinishedFileSize uint32 `json:"finished_file_size,omitempty"`
TotalFileCount uint32 `json:"total_file_count,omitempty"`
CreateTime uint32 `json:"create_time,omitempty"`
ElapsedTime uint32 `json:"elapsed_time,omitempty"`
AnnotationFormatConfig []interface{} `json:"annotation_format_config"`
}
type Annotations struct {
JobTemplate string `json:"job_template"`
KeyTask string `json:"key_task"`
}
type TrainingExperimentReference struct {
}
type Metadata struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
CreateTime uint32 `json:"create_time"`
WorkspaceID string `json:"workspace_id"`
AiProject string `json:"ai_project"`
UserName string `json:"user_name"`
Annotations Annotations `json:"annotations"`
TrainingExperimentReference TrainingExperimentReference `json:"training_experiment_reference"`
Tags []interface{} `json:"tags"`
}
type CPUUsage struct {
Average int32 `json:"average"`
Max int32 `json:"max"`
Min int32 `json:"min"`
}
type MemUsage struct {
Average int32 `json:"average"`
Max int32 `json:"max"`
Min int32 `json:"min"`
}
type Util struct {
Average int32 `json:"average"`
Max int32 `json:"max"`
Min int32 `json:"min"`
}
type Gpu struct {
MemUsage MemUsage `json:"mem_usage"`
Util Util `json:"util"`
UnitNum int32 `json:"unit_num"`
ProductName string `json:"product_name"`
Memory string `json:"memory"`
}
type MetricsStatistics struct {
CPUUsage CPUUsage `json:"cpu_usage"`
Gpu Gpu `json:"gpu"`
MemUsage MemUsage `json:"mem_usage"`
}
type Status struct {
Phase string `json:"phase"`
SecondaryPhase string `json:"secondary_phase"`
Duration int32 `json:"duration"`
IsHanged bool `json:"is_hanged"`
RetryCount int32 `json:"retry_count"`
StartTime int32 `json:"start_time"`
Tasks []string `json:"tasks"`
MetricsStatistics MetricsStatistics `json:"metrics_statistics"`
}
type Constraint struct {
Type string `json:"type"`
Editable bool `json:"editable"`
Required bool `json:"required"`
Sensitive bool `json:"sensitive"`
ValidType string `json:"valid_type"`
ValidRange interface{} `json:"valid_range"`
}
type Parameters struct {
Name string `json:"name"`
Description string `json:"description"`
I18NDescription interface{} `json:"i18n_description"`
Value string `json:"value"`
Constraint Constraint `json:"constraint"`
}
type Obs struct {
ObsURL string `json:"obs_url"`
}
type Remote struct {
Obs Obs `json:"obs"`
}
type Attributes struct {
DataFormat []string `json:"data_format"`
DataSegmentation []string `json:"data_segmentation"`
DatasetType []string `json:"dataset_type"`
IsFree string `json:"is_free"`
MaxFreeJobCount string `json:"max_free_job_count"`
}
type RemoteConstraints struct {
DataType string `json:"data_type"`
Attributes Attributes `json:"attributes,omitempty"`
}
type Inputs struct {
Name string `json:"name"`
Description string `json:"description"`
LocalDir string `json:"local_dir"`
AccessMethod string `json:"access_method"`
Remote Remote `json:"remote"`
RemoteConstraints []RemoteConstraints `json:"remote_constraints"`
}
type Outputs struct {
Name string `json:"name"`
LocalDir string `json:"local_dir"`
AccessMethod string `json:"access_method"`
Remote Remote `json:"remote"`
Mode string `json:"mode"`
Period int32 `json:"period"`
PrefetchToLocal bool `json:"prefetch_to_local"`
}
type Engine struct {
EngineID string `json:"engine_id"`
EngineName string `json:"engine_name"`
EngineVersion string `json:"engine_version"`
V1Compatible bool `json:"v1_compatible"`
RunUser string `json:"run_user"`
ImageSource bool `json:"image_source"`
}
type Policies struct {
}
type Algorithm struct {
ID string `json:"id"`
Name string `json:"name"`
V1Algorithm bool `json:"v1_algorithm"`
SubscriptionID string `json:"subscription_id"`
ItemVersionID string `json:"item_version_id"`
ContentID string `json:"content_id"`
Parameters []Parameters `json:"parameters"`
ParametersCustomization bool `json:"parameters_customization"`
Inputs []Inputs `json:"inputs"`
Outputs []Outputs `json:"outputs"`
Engine Engine `json:"engine"`
Policies Policies `json:"policies"`
}
type Billing struct {
Code string `json:"code"`
UnitNum int32 `json:"unit_num"`
}
type CPU struct {
Arch string `json:"arch"`
CoreNum int32 `json:"core_num"`
}
type Memory struct {
Size int `json:"size"`
Unit string `json:"unit"`
}
type Disk struct {
Size int32 `json:"size"`
Unit string `json:"unit"`
}
type FlavorInfo struct {
CPU CPU `json:"cpu"`
Gpu Gpu `json:"gpu"`
Memory Memory `json:"memory"`
Disk Disk `json:"disk"`
}
type FlavorDetail struct {
FlavorType string `json:"flavor_type"`
Billing Billing `json:"billing"`
Attributes Attributes `json:"attributes"`
FlavorInfo FlavorInfo `json:"flavor_info"`
}
type Resource struct {
Policy string `json:"policy"`
FlavorID string `json:"flavor_id"`
FlavorName string `json:"flavor_name"`
NodeCount int32 `json:"node_count"`
FlavorDetail FlavorDetail `json:"flavor_detail"`
}
type LogExportPath struct {
}
type Spec struct {
Resource Resource `json:"resource"`
LogExportPath LogExportPath `json:"log_export_path"`
IsHostedLog bool `json:"is_hosted_log"`
}
type Items struct {
Kind string `json:"kind"`
Metadata Metadata `json:"metadata"`
Status Status `json:"status"`
Algorithm Algorithm `json:"algorithm,omitempty"`
Spec Spec `json:"spec"`
}
type ListTrainingJobsreq struct {
ProjectId string `json:"projectId"`
}
type ListTrainingJobsresp struct {
Total int32 `json:"total"`
Count int32 `json:"count"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
SortBy string `json:"sort_by"`
Order string `json:"order"`
GroupBy string `json:"group_by"`
WorkspaceID string `json:"workspace_id"`
AiProject string `json:"ai_project"`
Items []Items `json:"items"`
}
type CreateTrainingJobReq struct {
ProjectId string `json:"projectId"`
}
type CreateTrainingJobResp struct {
}
type ListNotebookReq struct {
Project_id string `json:"project_id"`
Param ListNotebookParam `json:"param"`
}
type ListNotebookResp struct {
Current int32 `json:"current"`
Data []NotebookResp `json:"data"`
Pages int32 `json:"pages"`
Size int32 `json:"size"`
Total int64 `json:"total"`
}
type ListNotebookParam struct {
Feature string `json:"feature"`
Limit int32 `json:"limit"`
Name string `json:"name"`
Pool_id string `json:"pool_id"`
Offset int32 `json:"offset"`
Owner string `json:"owner"`
Sort_dir string `json:"sort_dir"`
Sort_key string `json:"sort_key"`
Status string `json:"status"`
WorkspaceId string `json:"workspaceId"`
}
type NotebookResp struct {
Action_progress []JobProgress `json:"action_progress"`
Description string `json:"description"`
Endpoints []EndpointsRes `json:"endpoints"`
Fail_reason string `json:"fail_reason"`
Flavor string `json:"flavor"`
Id string `json:"id"`
Image Image `json:"image"`
Lease Lease `json:"lease"`
Name string `json:"name"`
Pool Pool `json:"pool"`
Status string `json:"status"`
Token string `json:"token"`
Url string `json:"url"`
Volume VolumeRes `json:"volume"`
Workspace_id string `json:"workspace_id"`
Feature string `json:"feature"`
}
type JobProgress struct {
Notebook_id string `json:"notebook_id"`
Status string `json:"status"`
Step int32 `json:"step"`
Step_description string `json:"step_description"`
}
type EndpointsRes struct {
Allowed_access_ips []string `json:"allowed_access_ips"`
Dev_service string `json:"dev_service"`
Ssh_keys []string `json:"ssh_keys"`
}
type Image struct {
Arch string `json:"arch"`
Create_at int64 `json:"create_at"`
Description string `json:"description"`
Dev_services []string `json:"dev_services"`
Id string `json:"id"`
Name string `json:"name"`
Namespace string `json:"namespace"`
Origin string `json:"origin"`
Resource_categories []string `json:"resource_categories"`
Service_type string `json:"service_type"`
Size int64 `json:"size"`
Status string `json:"status"`
Status_message string `json:"status_message"`
Support_res_categories []string `json:"support_res_categories"`
Swr_path string `json:"swr_path"`
Tag string `json:"tag"`
Type_image string `json:"type"`
Update_at int64 `json:"update_at"`
Visibility string `json:"visibility"`
Workspace_id string `json:"workspace_id"`
}
type Lease struct {
Create_at int64 `json:"create_at"`
Duration int64 `json:"duration"`
Enable bool `json:"enable"`
Type_lease string `json:"type"`
Update_at int64 `json:"update_at"`
}
type Pool struct {
Id string `json:"id"`
Name string `json:"name"`
}
type VolumeRes struct {
Capacity int64 `json:"capacity"`
Category string `json:"category"`
Mount_path string `json:"mount_path"`
Ownership string `json:"ownership"`
Status string `json:"status"`
}
type DeleteDataSetReq struct {
DatasetId string `json:"datasetId"`
ProjectId string `json:"projectId"`

View File

@ -0,0 +1,47 @@
package logic
import (
"PCM/adaptor/AIComputing/modelarts/rpc/internal/common"
"PCM/common/tool"
"context"
"encoding/json"
"strings"
"PCM/adaptor/AIComputing/modelarts/rpc/internal/svc"
"PCM/adaptor/AIComputing/modelarts/rpc/modelarts"
"github.com/zeromicro/go-zero/core/logx"
)
type CreateVisualizationJobLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewCreateVisualizationJobLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateVisualizationJobLogic {
return &CreateVisualizationJobLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
func (l *CreateVisualizationJobLogic) CreateVisualizationJob(in *modelarts.CreateVisualizationJobReq) (*modelarts.CreateVisualizationJobResp, error) {
var resp modelarts.CreateVisualizationJobResp
createVisualJobUrl := "https://modelarts.cn-east-3.myhuaweicloud.com/v1/{project_id}/visualization-jobs"
createVisualJobUrl = strings.Replace(createVisualJobUrl, "{project_id}", in.ProjectId, -1)
reqByte, err := json.Marshal(in.Param)
if err != nil {
panic(err.Error())
}
payload := strings.NewReader(string(reqByte))
token := common.GetToken()
body, err := tool.HttpClient(tool.POST, createVisualJobUrl, payload, token)
if err != nil {
return nil, err
}
json.Unmarshal(body, &resp)
return &resp, nil
}

View File

@ -0,0 +1,47 @@
package logic
import (
"PCM/adaptor/AIComputing/modelarts/rpc/internal/common"
"PCM/common/tool"
"context"
"encoding/json"
"strings"
"PCM/adaptor/AIComputing/modelarts/rpc/internal/svc"
"PCM/adaptor/AIComputing/modelarts/rpc/modelarts"
"github.com/zeromicro/go-zero/core/logx"
)
type GetNotebookStorageLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewGetNotebookStorageLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetNotebookStorageLogic {
return &GetNotebookStorageLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
func (l *GetNotebookStorageLogic) GetNotebookStorage(in *modelarts.GetNotebookStorageReq) (*modelarts.GetNotebookStorageResp, error) {
var resp modelarts.GetNotebookStorageResp
getObsUrl := "https://modelarts.cn-east-3.myhuaweicloud.com/v1/{project_id}/notebooks/{instance_id}/storage"
getObsUrl = strings.Replace(getObsUrl, "{project_id}", in.ProjectId, -1)
getObsUrl = strings.Replace(getObsUrl, "{instance_id}", in.InstanceId, -1)
token := common.GetToken()
//empty struct
var e struct{}
body, err := tool.HttpClientWithQueries(tool.GET, getObsUrl, nil, token, e)
if err != nil {
return nil, err
}
json.Unmarshal(body, &resp)
return &resp, nil
}

View File

@ -0,0 +1,44 @@
package logic
import (
"PCM/adaptor/AIComputing/modelarts/rpc/internal/common"
"PCM/common/tool"
"context"
"encoding/json"
"strings"
"PCM/adaptor/AIComputing/modelarts/rpc/internal/svc"
"PCM/adaptor/AIComputing/modelarts/rpc/modelarts"
"github.com/zeromicro/go-zero/core/logx"
)
type GetVisualizationJobLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewGetVisualizationJobLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetVisualizationJobLogic {
return &GetVisualizationJobLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
// visualization-jobs
func (l *GetVisualizationJobLogic) GetVisualizationJob(in *modelarts.GetVisualizationJobReq) (*modelarts.GetVisualizationJobResp, error) {
var resp modelarts.GetVisualizationJobResp
getVisualJobUrl := "https://modelarts.cn-east-3.myhuaweicloud.com/v1/{project_id}/visualization-jobs"
getVisualJobUrl = strings.Replace(getVisualJobUrl, "{project_id}", in.ProjectId, -1)
token := common.GetToken()
body, err := tool.HttpClientWithQueries(tool.GET, getVisualJobUrl, nil, token, in.Param)
if err != nil {
return nil, err
}
json.Unmarshal(body, &resp)
return &resp, nil
}

View File

@ -0,0 +1,48 @@
package logic
import (
"PCM/adaptor/AIComputing/modelarts/rpc/internal/common"
"PCM/common/tool"
"context"
"encoding/json"
"strings"
"PCM/adaptor/AIComputing/modelarts/rpc/internal/svc"
"PCM/adaptor/AIComputing/modelarts/rpc/modelarts"
"github.com/zeromicro/go-zero/core/logx"
)
type MountNotebookStorageLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewMountNotebookStorageLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MountNotebookStorageLogic {
return &MountNotebookStorageLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
func (l *MountNotebookStorageLogic) MountNotebookStorage(in *modelarts.MountNotebookStorageReq) (*modelarts.MountNotebookStorageResp, error) {
var resp modelarts.MountNotebookStorageResp
mountUrl := "https://modelarts.cn-east-3.myhuaweicloud.com/v1/{project_id}/notebooks/{instance_id}/storage"
mountUrl = strings.Replace(mountUrl, "{project_id}", in.ProjectId, -1)
mountUrl = strings.Replace(mountUrl, "{instance_id}", in.InstanceId, -1)
reqByte, err := json.Marshal(in.Param)
if err != nil {
panic(err.Error())
}
payload := strings.NewReader(string(reqByte))
token := common.GetToken()
body, err := tool.HttpClient(tool.POST, mountUrl, payload, token)
if err != nil {
return nil, err
}
json.Unmarshal(body, &resp)
return &resp, nil
}

View File

@ -35,9 +35,9 @@ func (l *StopNotebookLogic) StopNotebook(in *modelarts.StopNotebookReq) (*modela
token := common.GetToken()
//empty struct
var E struct{}
var e struct{}
body, err := tool.HttpClientWithQueries(tool.POST, stopUrl, nil, token, E)
body, err := tool.HttpClientWithQueries(tool.POST, stopUrl, nil, token, e)
if err != nil {
return nil, err
}

View File

@ -14714,8 +14714,8 @@ type ListNotebookReq struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
Param *ListNotebookParam `protobuf:"bytes,2,opt,name=param,proto3" json:"param,omitempty"`
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // @gotags: copier:"project_id"
Param *ListNotebookParam `protobuf:"bytes,2,opt,name=param,proto3" json:"param,omitempty"` // @gotags: copier:"param"
}
func (x *ListNotebookReq) Reset() {
@ -14769,11 +14769,11 @@ type ListNotebookResp struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Current int32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"`
Data []*NotebookResp `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
Pages int32 `protobuf:"varint,3,opt,name=pages,proto3" json:"pages,omitempty"`
Size int32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
Total int64 `protobuf:"varint,5,opt,name=total,proto3" json:"total,omitempty"`
Current int32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"` // @gotags: copier:"current"
Data []*NotebookResp `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` // @gotags: copier:"data"
Pages int32 `protobuf:"varint,3,opt,name=pages,proto3" json:"pages,omitempty"` // @gotags: copier:"pages"
Size int32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` // @gotags: copier:"size"
Total int64 `protobuf:"varint,5,opt,name=total,proto3" json:"total,omitempty"` // @gotags: copier:"total"
}
func (x *ListNotebookResp) Reset() {
@ -14848,16 +14848,16 @@ type ListNotebookParam struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Feature string `protobuf:"bytes,1,opt,name=feature,proto3" json:"feature,omitempty"`
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
PoolId string `protobuf:"bytes,4,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
Offset int32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"`
SortDir string `protobuf:"bytes,7,opt,name=sort_dir,json=sortDir,proto3" json:"sort_dir,omitempty"`
SortKey string `protobuf:"bytes,8,opt,name=sort_key,json=sortKey,proto3" json:"sort_key,omitempty"`
Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"`
WorkspaceId string `protobuf:"bytes,10,opt,name=workspaceId,proto3" json:"workspaceId,omitempty"`
Feature string `protobuf:"bytes,1,opt,name=feature,proto3" json:"feature,omitempty"` // @gotags: copier:"feature"
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // @gotags: copier:"limit"
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // @gotags: copier:"name"
PoolId string `protobuf:"bytes,4,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` // @gotags: copier:"pool_id"
Offset int32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` // @gotags: copier:"offset"
Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"` // @gotags: copier:"owner"
SortDir string `protobuf:"bytes,7,opt,name=sort_dir,json=sortDir,proto3" json:"sort_dir,omitempty"` // @gotags: copier:"sort_dir"
SortKey string `protobuf:"bytes,8,opt,name=sort_key,json=sortKey,proto3" json:"sort_key,omitempty"` // @gotags: copier:"sort_key"
Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"` // @gotags: copier:"status"
WorkspaceId string `protobuf:"bytes,10,opt,name=workspaceId,proto3" json:"workspaceId,omitempty"` // @gotags: copier:"workspaceId"
}
func (x *ListNotebookParam) Reset() {
@ -15889,22 +15889,22 @@ type NotebookResp struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ActionProgress []*JobProgress `protobuf:"bytes,1,rep,name=action_progress,json=actionProgress,proto3" json:"action_progress,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
Endpoints []*EndpointsRes `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
FailReason string `protobuf:"bytes,4,opt,name=fail_reason,json=failReason,proto3" json:"fail_reason,omitempty"`
Flavor string `protobuf:"bytes,5,opt,name=flavor,proto3" json:"flavor,omitempty"`
Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"`
Image *Image `protobuf:"bytes,7,opt,name=image,proto3" json:"image,omitempty"`
Lease *Lease `protobuf:"bytes,8,opt,name=lease,proto3" json:"lease,omitempty"`
Name string `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"`
Pool *Pool `protobuf:"bytes,10,opt,name=pool,proto3" json:"pool,omitempty"`
Status string `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"`
Token string `protobuf:"bytes,12,opt,name=token,proto3" json:"token,omitempty"`
Url string `protobuf:"bytes,13,opt,name=url,proto3" json:"url,omitempty"`
Volume *VolumeRes `protobuf:"bytes,14,opt,name=volume,proto3" json:"volume,omitempty"`
WorkspaceId string `protobuf:"bytes,15,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
Feature string `protobuf:"bytes,16,opt,name=feature,proto3" json:"feature,omitempty"`
ActionProgress []*JobProgress `protobuf:"bytes,1,rep,name=action_progress,json=actionProgress,proto3" json:"action_progress,omitempty"` // @gotags: copier:"action_progress"
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // @gotags: copier:"description"
Endpoints []*EndpointsRes `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"` // @gotags: copier:"endpoints"
FailReason string `protobuf:"bytes,4,opt,name=fail_reason,json=failReason,proto3" json:"fail_reason,omitempty"` // @gotags: copier:"fail_reason"
Flavor string `protobuf:"bytes,5,opt,name=flavor,proto3" json:"flavor,omitempty"` // @gotags: copier:"flavor"
Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"` // @gotags: copier:"id"
Image *Image `protobuf:"bytes,7,opt,name=image,proto3" json:"image,omitempty"` // @gotags: copier:"image"
Lease *Lease `protobuf:"bytes,8,opt,name=lease,proto3" json:"lease,omitempty"` // @gotags: copier:"lease"
Name string `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"` // @gotags: copier:"name"
Pool *Pool `protobuf:"bytes,10,opt,name=pool,proto3" json:"pool,omitempty"` // @gotags: copier:"pool"
Status string `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"` // @gotags: copier:"status"
Token string `protobuf:"bytes,12,opt,name=token,proto3" json:"token,omitempty"` // @gotags: copier:"token"
Url string `protobuf:"bytes,13,opt,name=url,proto3" json:"url,omitempty"` // @gotags: copier:"url"
Volume *VolumeRes `protobuf:"bytes,14,opt,name=volume,proto3" json:"volume,omitempty"` // @gotags: copier:"volume"
WorkspaceId string `protobuf:"bytes,15,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"` // @gotags: copier:"workspace_id"
Feature string `protobuf:"bytes,16,opt,name=feature,proto3" json:"feature,omitempty"` // @gotags: copier:"feature"
}
func (x *NotebookResp) Reset() {
@ -16056,10 +16056,10 @@ type JobProgress struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NotebookId string `protobuf:"bytes,1,opt,name=notebook_id,json=notebookId,proto3" json:"notebook_id,omitempty"`
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
Step int32 `protobuf:"varint,3,opt,name=step,proto3" json:"step,omitempty"`
StepDescription string `protobuf:"bytes,4,opt,name=step_description,json=stepDescription,proto3" json:"step_description,omitempty"`
NotebookId string `protobuf:"bytes,1,opt,name=notebook_id,json=notebookId,proto3" json:"notebook_id,omitempty"` // @gotags: copier:"notebook_id"
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // @gotags: copier:"status"
Step int32 `protobuf:"varint,3,opt,name=step,proto3" json:"step,omitempty"` // @gotags: copier:"step"
StepDescription string `protobuf:"bytes,4,opt,name=step_description,json=stepDescription,proto3" json:"step_description,omitempty"` // @gotags: copier:"step_description"
}
func (x *JobProgress) Reset() {
@ -16127,9 +16127,9 @@ type EndpointsRes struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AllowedAccessIps []string `protobuf:"bytes,1,rep,name=allowed_access_ips,json=allowedAccessIps,proto3" json:"allowed_access_ips,omitempty"`
DevService string `protobuf:"bytes,2,opt,name=dev_service,json=devService,proto3" json:"dev_service,omitempty"`
SshKeys []string `protobuf:"bytes,3,rep,name=ssh_keys,json=sshKeys,proto3" json:"ssh_keys,omitempty"`
AllowedAccessIps []string `protobuf:"bytes,1,rep,name=allowed_access_ips,json=allowedAccessIps,proto3" json:"allowed_access_ips,omitempty"` // @gotags: copier:"allowed_access_ips"
DevService string `protobuf:"bytes,2,opt,name=dev_service,json=devService,proto3" json:"dev_service,omitempty"` // @gotags: copier:"dev_service"
SshKeys []string `protobuf:"bytes,3,rep,name=ssh_keys,json=sshKeys,proto3" json:"ssh_keys,omitempty"` // @gotags: copier:"ssh_keys"
}
func (x *EndpointsRes) Reset() {
@ -16190,26 +16190,26 @@ type Image struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Arch string `protobuf:"bytes,1,opt,name=arch,proto3" json:"arch,omitempty"`
CreateAt int64 `protobuf:"varint,2,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"`
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
DevServices []string `protobuf:"bytes,4,rep,name=dev_services,json=devServices,proto3" json:"dev_services,omitempty"`
Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
Namespace string `protobuf:"bytes,7,opt,name=namespace,proto3" json:"namespace,omitempty"`
Origin string `protobuf:"bytes,8,opt,name=origin,proto3" json:"origin,omitempty"`
ResourceCategories []string `protobuf:"bytes,9,rep,name=resource_categories,json=resourceCategories,proto3" json:"resource_categories,omitempty"`
ServiceType string `protobuf:"bytes,10,opt,name=service_type,json=serviceType,proto3" json:"service_type,omitempty"`
Size int64 `protobuf:"varint,11,opt,name=size,proto3" json:"size,omitempty"`
Status string `protobuf:"bytes,12,opt,name=status,proto3" json:"status,omitempty"`
StatusMessage string `protobuf:"bytes,13,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
SupportResCategories []string `protobuf:"bytes,14,rep,name=support_res_categories,json=supportResCategories,proto3" json:"support_res_categories,omitempty"`
SwrPath string `protobuf:"bytes,15,opt,name=swr_path,json=swrPath,proto3" json:"swr_path,omitempty"`
Tag string `protobuf:"bytes,16,opt,name=tag,proto3" json:"tag,omitempty"`
Type string `protobuf:"bytes,17,opt,name=type,proto3" json:"type,omitempty"`
UpdateAt int64 `protobuf:"varint,18,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty"`
Visibility string `protobuf:"bytes,19,opt,name=visibility,proto3" json:"visibility,omitempty"`
WorkspaceId string `protobuf:"bytes,20,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
Arch string `protobuf:"bytes,1,opt,name=arch,proto3" json:"arch,omitempty"` // @gotags: copier:"arch"
CreateAt int64 `protobuf:"varint,2,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"` // @gotags: copier:"create_at"
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // @gotags: copier:"description"
DevServices []string `protobuf:"bytes,4,rep,name=dev_services,json=devServices,proto3" json:"dev_services,omitempty"` // @gotags: copier:"dev_services"
Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` // @gotags: copier:"id"
Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` // @gotags: copier:"name"
Namespace string `protobuf:"bytes,7,opt,name=namespace,proto3" json:"namespace,omitempty"` // @gotags: copier:"namespace"
Origin string `protobuf:"bytes,8,opt,name=origin,proto3" json:"origin,omitempty"` // @gotags: copier:"origin"
ResourceCategories []string `protobuf:"bytes,9,rep,name=resource_categories,json=resourceCategories,proto3" json:"resource_categories,omitempty"` // @gotags: copier:"resource_categories"
ServiceType string `protobuf:"bytes,10,opt,name=service_type,json=serviceType,proto3" json:"service_type,omitempty"` // @gotags: copier:"service_type"
Size int64 `protobuf:"varint,11,opt,name=size,proto3" json:"size,omitempty"` // @gotags: copier:"size"
Status string `protobuf:"bytes,12,opt,name=status,proto3" json:"status,omitempty"` // @gotags: copier:"status"
StatusMessage string `protobuf:"bytes,13,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"` // @gotags: copier:"status_message"
SupportResCategories []string `protobuf:"bytes,14,rep,name=support_res_categories,json=supportResCategories,proto3" json:"support_res_categories,omitempty"` // @gotags: copier:"support_res_categories"
SwrPath string `protobuf:"bytes,15,opt,name=swr_path,json=swrPath,proto3" json:"swr_path,omitempty"` // @gotags: copier:"swr_path"
Tag string `protobuf:"bytes,16,opt,name=tag,proto3" json:"tag,omitempty"` // @gotags: copier:"tag"
Type string `protobuf:"bytes,17,opt,name=type,proto3" json:"type,omitempty"` // @gotags: copier:"type_image"
UpdateAt int64 `protobuf:"varint,18,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty"` // @gotags: copier:"update_at"
Visibility string `protobuf:"bytes,19,opt,name=visibility,proto3" json:"visibility,omitempty"` // @gotags: copier:"visibility"
WorkspaceId string `protobuf:"bytes,20,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"` // @gotags: copier:"workspace_id"
}
func (x *Image) Reset() {
@ -16389,11 +16389,11 @@ type Lease struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
CreateAt int64 `protobuf:"varint,1,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"`
Duration int64 `protobuf:"varint,2,opt,name=duration,proto3" json:"duration,omitempty"`
Enable bool `protobuf:"varint,3,opt,name=enable,proto3" json:"enable,omitempty"`
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
UpdateAt int64 `protobuf:"varint,5,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty"`
CreateAt int64 `protobuf:"varint,1,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"` // @gotags: copier:"create_at"
Duration int64 `protobuf:"varint,2,opt,name=duration,proto3" json:"duration,omitempty"` // @gotags: copier:"duration"
Enable bool `protobuf:"varint,3,opt,name=enable,proto3" json:"enable,omitempty"` // @gotags: copier:"enable"
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // @gotags: copier:"type_lease"
UpdateAt int64 `protobuf:"varint,5,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty"` // @gotags: copier:"update_at"
}
func (x *Lease) Reset() {
@ -16468,8 +16468,8 @@ type Pool struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // @gotags: copier:"id"
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // @gotags: copier:"name"
}
func (x *Pool) Reset() {
@ -16523,11 +16523,11 @@ type VolumeRes struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Capacity int64 `protobuf:"varint,1,opt,name=capacity,proto3" json:"capacity,omitempty"`
Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"`
MountPath string `protobuf:"bytes,3,opt,name=mount_path,json=mountPath,proto3" json:"mount_path,omitempty"`
Ownership string `protobuf:"bytes,4,opt,name=ownership,proto3" json:"ownership,omitempty"`
Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
Capacity int64 `protobuf:"varint,1,opt,name=capacity,proto3" json:"capacity,omitempty"` // @gotags: copier:"capacity"
Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"` // @gotags: copier:"category"
MountPath string `protobuf:"bytes,3,opt,name=mount_path,json=mountPath,proto3" json:"mount_path,omitempty"` // @gotags: copier:"mount_path"
Ownership string `protobuf:"bytes,4,opt,name=ownership,proto3" json:"ownership,omitempty"` // @gotags: copier:"ownership"
Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` // @gotags: copier:"status"
}
func (x *VolumeRes) Reset() {
@ -17455,10 +17455,12 @@ type CreateVisualizationJobParam struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"`
JobDesc string `protobuf:"bytes,2,opt,name=job_desc,json=jobDesc,proto3" json:"job_desc,omitempty"`
TrainUrl string `protobuf:"bytes,3,opt,name=train_url,json=trainUrl,proto3" json:"train_url,omitempty"`
JobType string `protobuf:"bytes,4,opt,name=job_type,json=jobType,proto3" json:"job_type,omitempty"`
JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"`
JobDesc string `protobuf:"bytes,2,opt,name=job_desc,json=jobDesc,proto3" json:"job_desc,omitempty"`
TrainUrl string `protobuf:"bytes,3,opt,name=train_url,json=trainUrl,proto3" json:"train_url,omitempty"`
JobType string `protobuf:"bytes,4,opt,name=job_type,json=jobType,proto3" json:"job_type,omitempty"`
Flavor *Flavor `protobuf:"bytes,5,opt,name=flavor,proto3" json:"flavor,omitempty"`
Schedule *Schedule `protobuf:"bytes,6,opt,name=schedule,proto3" json:"schedule,omitempty"`
}
func (x *CreateVisualizationJobParam) Reset() {
@ -17521,6 +17523,130 @@ func (x *CreateVisualizationJobParam) GetJobType() string {
return ""
}
func (x *CreateVisualizationJobParam) GetFlavor() *Flavor {
if x != nil {
return x.Flavor
}
return nil
}
func (x *CreateVisualizationJobParam) GetSchedule() *Schedule {
if x != nil {
return x.Schedule
}
return nil
}
type Flavor struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
}
func (x *Flavor) Reset() {
*x = Flavor{}
if protoimpl.UnsafeEnabled {
mi := &file_modelarts_proto_msgTypes[214]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Flavor) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Flavor) ProtoMessage() {}
func (x *Flavor) ProtoReflect() protoreflect.Message {
mi := &file_modelarts_proto_msgTypes[214]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Flavor.ProtoReflect.Descriptor instead.
func (*Flavor) Descriptor() ([]byte, []int) {
return file_modelarts_proto_rawDescGZIP(), []int{214}
}
func (x *Flavor) GetCode() string {
if x != nil {
return x.Code
}
return ""
}
type Schedule struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
TimeUnit string `protobuf:"bytes,2,opt,name=time_unit,json=timeUnit,proto3" json:"time_unit,omitempty"`
Duration int32 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"`
}
func (x *Schedule) Reset() {
*x = Schedule{}
if protoimpl.UnsafeEnabled {
mi := &file_modelarts_proto_msgTypes[215]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Schedule) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Schedule) ProtoMessage() {}
func (x *Schedule) ProtoReflect() protoreflect.Message {
mi := &file_modelarts_proto_msgTypes[215]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Schedule.ProtoReflect.Descriptor instead.
func (*Schedule) Descriptor() ([]byte, []int) {
return file_modelarts_proto_rawDescGZIP(), []int{215}
}
func (x *Schedule) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *Schedule) GetTimeUnit() string {
if x != nil {
return x.TimeUnit
}
return ""
}
func (x *Schedule) GetDuration() int32 {
if x != nil {
return x.Duration
}
return 0
}
var File_modelarts_proto protoreflect.FileDescriptor
var file_modelarts_proto_rawDesc = []byte{
@ -20226,6 +20352,146 @@ var file_modelarts_proto_rawDesc = []byte{
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f,
0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70,
0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x61,
0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61,
0x72, 0x74, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x52, 0x05, 0x70, 0x61,
0x72, 0x61, 0x6d, 0x22, 0x89, 0x02, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x56, 0x69, 0x73, 0x75, 0x61,
0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x12,
0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20,
0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x1d,
0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a,
0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6a, 0x6f, 0x62, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6a, 0x6f, 0x62,
0x54, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0f, 0x6a, 0x6f,
0x62, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20,
0x01, 0x28, 0x05, 0x52, 0x0d, 0x6a, 0x6f, 0x62, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x4c, 0x69, 0x6d,
0x69, 0x74, 0x12, 0x23, 0x0a, 0x04, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x0f, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x72, 0x74, 0x73, 0x2e, 0x6a, 0x6f, 0x62,
0x73, 0x52, 0x04, 0x6a, 0x6f, 0x62, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x71, 0x75, 0x6f, 0x74, 0x61,
0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x73, 0x22,
0x87, 0x02, 0x0a, 0x04, 0x6a, 0x6f, 0x62, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62, 0x4e,
0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20,
0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x63,
0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08,
0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08,
0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f,
0x64, 0x65, 0x73, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62, 0x44,
0x65, 0x73, 0x63, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x75,
0x72, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x55, 0x72, 0x6c, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x5f, 0x75, 0x72,
0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x55, 0x72,
0x6c, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28,
0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f,
0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72,
0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x22, 0xd9, 0x01, 0x0a, 0x18, 0x47, 0x65,
0x74, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x6f,
0x62, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x19,
0x0a, 0x08, 0x70, 0x65, 0x72, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
0x52, 0x07, 0x70, 0x65, 0x72, 0x50, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67,
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x16, 0x0a,
0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73,
0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x05,
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x73,
0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x65,
0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f,
0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70,
0x61, 0x63, 0x65, 0x49, 0x64, 0x22, 0x78, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56,
0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x52,
0x65, 0x71, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49,
0x64, 0x12, 0x3c, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x26, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x72, 0x74, 0x73, 0x2e, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x4a, 0x6f, 0x62, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x52, 0x05, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x22,
0xec, 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c,
0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23,
0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f,
0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
0x28, 0x03, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, 0x62,
0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62,
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05,
0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b,
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a,
0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x07, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x55, 0x72, 0x6c, 0x22, 0xe7,
0x01, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c, 0x69,
0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x19,
0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x07, 0x6a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, 0x62,
0x5f, 0x64, 0x65, 0x73, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62,
0x44, 0x65, 0x73, 0x63, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x5f, 0x75, 0x72,
0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x55, 0x72,
0x6c, 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20,
0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62, 0x54, 0x79, 0x70, 0x65, 0x12, 0x29, 0x0a, 0x06,
0x66, 0x6c, 0x61, 0x76, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d,
0x6f, 0x64, 0x65, 0x6c, 0x61, 0x72, 0x74, 0x73, 0x2e, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x72, 0x52,
0x06, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x72, 0x12, 0x2f, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64,
0x75, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x6f, 0x64, 0x65,
0x6c, 0x61, 0x72, 0x74, 0x73, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x08,
0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x22, 0x1c, 0x0a, 0x06, 0x66, 0x6c, 0x61, 0x76,
0x6f, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x57, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75,
0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x75,
0x6e, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x55,
0x6e, 0x69, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x32,
0xe3, 0x16, 0x0a, 0x09, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x74, 0x73, 0x12, 0x35, 0x0a,
0x08, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x13, 0x2e, 0x6d, 0x6f, 0x64, 0x65,
0x6c, 0x61, 0x72, 0x74, 0x73, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x14,
0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x72, 0x74, 0x73, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
0x52, 0x65, 0x73, 0x70, 0x12, 0x3f, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x73,
0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x72,
0x74, 0x73, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e,
0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x72, 0x74, 0x73, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65,
0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4a, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44,
0x61, 0x74, 0x61, 0x53, 0x65, 0x74, 0x12, 0x1b, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x72,
0x74, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x65, 0x74,
0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x72, 0x74, 0x73, 0x2e,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73,
0x71, 0x12, 0x49, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12,
0x1c, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x72, 0x74, 0x73, 0x2e, 0x49, 0x6d, 0x70, 0x6f,
0x72, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e,
0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x72, 0x74, 0x73, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74,
0x54, 0x61, 0x73, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x52, 0x0a, 0x11,
0x47, 0x65, 0x74, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73,
0x74, 0x12, 0x1d, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x72, 0x74, 0x73, 0x2e, 0x4c, 0x69,
0x73, 0x74, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x71,
0x1a, 0x1e, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x72, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73,
0x74, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70,
0x12, 0x56, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, 0x69, 0x6e,
0x69, 0x6e, 0x67, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x1e, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61,
0x72, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67,
0x4a, 0x6f, 0x62, 0x73, 0x72, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61,
0x72, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67,
0x4a, 0x6f, 0x62, 0x73, 0x72, 0x65, 0x73, 0x70, 0x12, 0x56, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61,
0x74, 0x65, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x4a, 0x6f, 0x62, 0x12, 0x1f, 0x2e,
0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x72, 0x74, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x1a, 0x20,
0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x72, 0x74, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
0x65, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70,
0x12, 0x56, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69,
0x6e, 0x67, 0x4a, 0x6f, 0x62, 0x12, 0x1f, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x72, 0x74,
0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67,
0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x1a, 0x20, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x72,
0x74, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e,
0x67, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x12, 0x68, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61,
0x74, 0x65, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x4a, 0x6f, 0x62, 0x43, 0x6f, 0x6e,
0x66, 0x69, 0x67, 0x12, 0x25, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61, 0x72, 0x74, 0x73, 0x2e,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x4a, 0x6f,
0x62, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x26, 0x2e, 0x6d, 0x6f, 0x64,
0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x61,
0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x61,
0x72, 0x74, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x69, 0x73, 0x75, 0x61, 0x6c,
@ -20687,6 +20953,57 @@ var file_modelarts_proto_goTypes = []interface{}{
nil, // 225: modelarts.QueryServiceConfig.EnvsEntry
nil, // 226: modelarts.QueryServiceConfig.AdditionalPropertiesEntry
nil, // 227: modelarts.ListServices.AdditionalPropertiesEntry
(*ListNotebookReq)(nil), // 177: modelarts.ListNotebookReq
(*ListNotebookResp)(nil), // 178: modelarts.ListNotebookResp
(*ListNotebookParam)(nil), // 179: modelarts.ListNotebookParam
(*CreateNotebookReq)(nil), // 180: modelarts.CreateNotebookReq
(*CreateNotebookResp)(nil), // 181: modelarts.CreateNotebookResp
(*CreateNotebookParam)(nil), // 182: modelarts.CreateNotebookParam
(*StartNotebookReq)(nil), // 183: modelarts.StartNotebookReq
(*StartNotebookResp)(nil), // 184: modelarts.StartNotebookResp
(*StartNotebookParam)(nil), // 185: modelarts.StartNotebookParam
(*StopNotebookReq)(nil), // 186: modelarts.StopNotebookReq
(*StopNotebookResp)(nil), // 187: modelarts.StopNotebookResp
(*GetNotebookStorageReq)(nil), // 188: modelarts.GetNotebookStorageReq
(*GetNotebookStorageResp)(nil), // 189: modelarts.GetNotebookStorageResp
(*MountNotebookStorageReq)(nil), // 190: modelarts.MountNotebookStorageReq
(*MountNotebookStorageResp)(nil), // 191: modelarts.MountNotebookStorageResp
(*MountNotebookStorageParam)(nil), // 192: modelarts.MountNotebookStorageParam
(*DataVolumesRes)(nil), // 193: modelarts.DataVolumesRes
(*NotebookResp)(nil), // 194: modelarts.NotebookResp
(*JobProgress)(nil), // 195: modelarts.JobProgress
(*EndpointsRes)(nil), // 196: modelarts.EndpointsRes
(*Image)(nil), // 197: modelarts.Image
(*Lease)(nil), // 198: modelarts.Lease
(*Pool)(nil), // 199: modelarts.Pool
(*VolumeRes)(nil), // 200: modelarts.VolumeRes
(*EndpointsReq)(nil), // 201: modelarts.EndpointsReq
(*VolumeReq)(nil), // 202: modelarts.VolumeReq
(*CustomHooks)(nil), // 203: modelarts.CustomHooks
(*ContainerHooks)(nil), // 204: modelarts.ContainerHooks
(*Config)(nil), // 205: modelarts.Config
(*LeaseReq)(nil), // 206: modelarts.LeaseReq
(*GetVisualizationJobReq)(nil), // 207: modelarts.GetVisualizationJobReq
(*GetVisualizationJobResp)(nil), // 208: modelarts.GetVisualizationJobResp
(*Jobs)(nil), // 209: modelarts.jobs
(*GetVisualizationJobParam)(nil), // 210: modelarts.GetVisualizationJobParam
(*CreateVisualizationJobReq)(nil), // 211: modelarts.CreateVisualizationJobReq
(*CreateVisualizationJobResp)(nil), // 212: modelarts.CreateVisualizationJobResp
(*CreateVisualizationJobParam)(nil), // 213: modelarts.CreateVisualizationJobParam
(*Flavor)(nil), // 214: modelarts.flavor
(*Schedule)(nil), // 215: modelarts.schedule
nil, // 216: modelarts.JobMetadata.AnnotationsEntry
nil, // 217: modelarts.FlavorResponse.AttributesEntry
nil, // 218: modelarts.attributesAlRq.AttributesEntry
nil, // 219: modelarts.TagsAlRp.TagsEntry
nil, // 220: modelarts.SearchLabel.PropertyEntry
nil, // 221: modelarts.SearchProp.PropsEntry
nil, // 222: modelarts.ShowModelResp.LabelsMapEntry
nil, // 223: modelarts.ServiceConfig.EnvsEntry
nil, // 224: modelarts.ShowServiceResp.AdditionalPropertiesEntry
nil, // 225: modelarts.QueryServiceConfig.EnvsEntry
nil, // 226: modelarts.QueryServiceConfig.AdditionalPropertiesEntry
nil, // 227: modelarts.ListServices.AdditionalPropertiesEntry
}
var file_modelarts_proto_depIdxs = []int32{
1, // 0: modelarts.auth.identity:type_name -> modelarts.identity
@ -20855,6 +21172,110 @@ var file_modelarts_proto_depIdxs = []int32{
173, // 163: modelarts.ListClustersResp.clusters:type_name -> modelarts.Cluster
174, // 164: modelarts.Cluster.nodes:type_name -> modelarts.ClusterNode
13, // 165: modelarts.CreateDataSetReq.data_sources:type_name -> modelarts.DataSources
179, // 166: modelarts.ListNotebookReq.param:type_name -> modelarts.ListNotebookParam
194, // 167: modelarts.ListNotebookResp.data:type_name -> modelarts.NotebookResp
182, // 168: modelarts.CreateNotebookReq.param:type_name -> modelarts.CreateNotebookParam
194, // 169: modelarts.CreateNotebookResp.notebookResp:type_name -> modelarts.NotebookResp
201, // 170: modelarts.CreateNotebookParam.endpoints:type_name -> modelarts.EndpointsReq
202, // 171: modelarts.CreateNotebookParam.volume:type_name -> modelarts.VolumeReq
203, // 172: modelarts.CreateNotebookParam.hooks:type_name -> modelarts.CustomHooks
206, // 173: modelarts.CreateNotebookParam.lease:type_name -> modelarts.LeaseReq
185, // 174: modelarts.StartNotebookReq.param:type_name -> modelarts.StartNotebookParam
194, // 175: modelarts.StartNotebookResp.notebookResp:type_name -> modelarts.NotebookResp
194, // 176: modelarts.StopNotebookResp.notebookResp:type_name -> modelarts.NotebookResp
193, // 177: modelarts.GetNotebookStorageResp.data:type_name -> modelarts.DataVolumesRes
192, // 178: modelarts.MountNotebookStorageReq.param:type_name -> modelarts.MountNotebookStorageParam
195, // 179: modelarts.NotebookResp.action_progress:type_name -> modelarts.JobProgress
196, // 180: modelarts.NotebookResp.endpoints:type_name -> modelarts.EndpointsRes
197, // 181: modelarts.NotebookResp.image:type_name -> modelarts.Image
198, // 182: modelarts.NotebookResp.lease:type_name -> modelarts.Lease
199, // 183: modelarts.NotebookResp.pool:type_name -> modelarts.Pool
200, // 184: modelarts.NotebookResp.volume:type_name -> modelarts.VolumeRes
204, // 185: modelarts.CustomHooks.container_hooks:type_name -> modelarts.ContainerHooks
205, // 186: modelarts.ContainerHooks.post_start:type_name -> modelarts.Config
205, // 187: modelarts.ContainerHooks.pre_start:type_name -> modelarts.Config
210, // 188: modelarts.GetVisualizationJobReq.param:type_name -> modelarts.GetVisualizationJobParam
209, // 189: modelarts.GetVisualizationJobResp.jobs:type_name -> modelarts.jobs
213, // 190: modelarts.CreateVisualizationJobReq.param:type_name -> modelarts.CreateVisualizationJobParam
214, // 191: modelarts.CreateVisualizationJobParam.flavor:type_name -> modelarts.flavor
215, // 192: modelarts.CreateVisualizationJobParam.schedule:type_name -> modelarts.schedule
121, // 193: modelarts.SearchLabel.PropertyEntry.value:type_name -> modelarts.weigou
121, // 194: modelarts.SearchProp.PropsEntry.value:type_name -> modelarts.weigou
8, // 195: modelarts.ModelArts.GetToken:input_type -> modelarts.TokenReq
10, // 196: modelarts.ModelArts.GetDatasetList:input_type -> modelarts.datasetReq
175, // 197: modelarts.ModelArts.CreateDataSet:input_type -> modelarts.CreateDataSetReq
14, // 198: modelarts.ModelArts.createTask:input_type -> modelarts.ImportTaskDataReq
16, // 199: modelarts.ModelArts.GetImportTaskList:input_type -> modelarts.ListImportTasksReq
24, // 200: modelarts.ModelArts.GetListTrainingJobs:input_type -> modelarts.ListTrainingJobsreq
67, // 201: modelarts.ModelArts.CreateTrainingJob:input_type -> modelarts.CreateTrainingJobReq
82, // 202: modelarts.ModelArts.DeleteTrainingJob:input_type -> modelarts.DeleteTrainingJobReq
79, // 203: modelarts.ModelArts.CreateTrainingJobConfig:input_type -> modelarts.CreateTrainingJobConfigReq
84, // 204: modelarts.ModelArts.DeleteTrainingJobConfig:input_type -> modelarts.DeleteTrainingJobConfigReq
86, // 205: modelarts.ModelArts.ListTrainingJobConfig:input_type -> modelarts.ListTrainingJobConfigReq
89, // 206: modelarts.ModelArts.CreateAlgorithm:input_type -> modelarts.CreateAlgorithmReq
113, // 207: modelarts.ModelArts.ListAlgorithms:input_type -> modelarts.ListAlgorithmsReq
116, // 208: modelarts.ModelArts.ExportTask:input_type -> modelarts.ExportTaskReq
124, // 209: modelarts.ModelArts.GetExportTasksOfDataset:input_type -> modelarts.GetExportTasksOfDatasetReq
127, // 210: modelarts.ModelArts.GetExportTaskStatusOfDataset:input_type -> modelarts.GetExportTaskStatusOfDatasetReq
129, // 211: modelarts.ModelArts.CreateProcessorTask:input_type -> modelarts.CreateProcessorTaskReq
135, // 212: modelarts.ModelArts.DescribeProcessorTask:input_type -> modelarts.DescribeProcessorTaskReq
137, // 213: modelarts.ModelArts.CreateModel:input_type -> modelarts.CreateModelReq
147, // 214: modelarts.ModelArts.DeleteModel:input_type -> modelarts.DeleteModelReq
150, // 215: modelarts.ModelArts.ListModels:input_type -> modelarts.ListModelReq
154, // 216: modelarts.ModelArts.ShowModels:input_type -> modelarts.ShowModelReq
158, // 217: modelarts.ModelArts.CreateService:input_type -> modelarts.CreateServiceReq
168, // 218: modelarts.ModelArts.ListServices:input_type -> modelarts.ListServicesReq
165, // 219: modelarts.ModelArts.ShowService:input_type -> modelarts.ShowServiceReq
163, // 220: modelarts.ModelArts.DeleteService:input_type -> modelarts.DeleteServiceReq
171, // 221: modelarts.ModelArts.ListClusters:input_type -> modelarts.ListClustersReq
177, // 222: modelarts.ModelArts.ListNotebook:input_type -> modelarts.ListNotebookReq
180, // 223: modelarts.ModelArts.CreateNotebook:input_type -> modelarts.CreateNotebookReq
183, // 224: modelarts.ModelArts.StartNotebook:input_type -> modelarts.StartNotebookReq
186, // 225: modelarts.ModelArts.StopNotebook:input_type -> modelarts.StopNotebookReq
188, // 226: modelarts.ModelArts.GetNotebookStorage:input_type -> modelarts.GetNotebookStorageReq
190, // 227: modelarts.ModelArts.MountNotebookStorage:input_type -> modelarts.MountNotebookStorageReq
207, // 228: modelarts.ModelArts.GetVisualizationJob:input_type -> modelarts.GetVisualizationJobReq
211, // 229: modelarts.ModelArts.CreateVisualizationJob:input_type -> modelarts.CreateVisualizationJobReq
9, // 230: modelarts.ModelArts.GetToken:output_type -> modelarts.TokenResp
11, // 231: modelarts.ModelArts.GetDatasetList:output_type -> modelarts.datasetResp
176, // 232: modelarts.ModelArts.CreateDataSet:output_type -> modelarts.CreateDataSetResq
15, // 233: modelarts.ModelArts.createTask:output_type -> modelarts.ImportTaskDataResp
17, // 234: modelarts.ModelArts.GetImportTaskList:output_type -> modelarts.ListImportTasksResp
25, // 235: modelarts.ModelArts.GetListTrainingJobs:output_type -> modelarts.ListTrainingJobsresp
68, // 236: modelarts.ModelArts.CreateTrainingJob:output_type -> modelarts.CreateTrainingJobResp
83, // 237: modelarts.ModelArts.DeleteTrainingJob:output_type -> modelarts.DeleteTrainingJobResp
81, // 238: modelarts.ModelArts.CreateTrainingJobConfig:output_type -> modelarts.CreateTrainingJobConfigResp
85, // 239: modelarts.ModelArts.DeleteTrainingJobConfig:output_type -> modelarts.DeleteTrainingJobConfigResp
87, // 240: modelarts.ModelArts.ListTrainingJobConfig:output_type -> modelarts.ListTrainingJobConfigResp
103, // 241: modelarts.ModelArts.CreateAlgorithm:output_type -> modelarts.CreateAlgorithmResp
114, // 242: modelarts.ModelArts.ListAlgorithms:output_type -> modelarts.ListAlgorithmsResp
117, // 243: modelarts.ModelArts.ExportTask:output_type -> modelarts.ExportTaskResp
125, // 244: modelarts.ModelArts.GetExportTasksOfDataset:output_type -> modelarts.GetExportTasksOfDatasetResp
128, // 245: modelarts.ModelArts.GetExportTaskStatusOfDataset:output_type -> modelarts.GetExportTaskStatusOfDatasetResp
130, // 246: modelarts.ModelArts.CreateProcessorTask:output_type -> modelarts.CreateProcessorTaskResp
136, // 247: modelarts.ModelArts.DescribeProcessorTask:output_type -> modelarts.DescribeProcessorTaskResp
138, // 248: modelarts.ModelArts.CreateModel:output_type -> modelarts.CreateModelResp
148, // 249: modelarts.ModelArts.DeleteModel:output_type -> modelarts.DeleteModelResp
151, // 250: modelarts.ModelArts.ListModels:output_type -> modelarts.ListModelResp
155, // 251: modelarts.ModelArts.ShowModels:output_type -> modelarts.ShowModelResp
159, // 252: modelarts.ModelArts.CreateService:output_type -> modelarts.CreateServiceResp
169, // 253: modelarts.ModelArts.ListServices:output_type -> modelarts.ListServicesResp
166, // 254: modelarts.ModelArts.ShowService:output_type -> modelarts.ShowServiceResp
164, // 255: modelarts.ModelArts.DeleteService:output_type -> modelarts.DeleteServiceResp
172, // 256: modelarts.ModelArts.ListClusters:output_type -> modelarts.ListClustersResp
178, // 257: modelarts.ModelArts.ListNotebook:output_type -> modelarts.ListNotebookResp
181, // 258: modelarts.ModelArts.CreateNotebook:output_type -> modelarts.CreateNotebookResp
184, // 259: modelarts.ModelArts.StartNotebook:output_type -> modelarts.StartNotebookResp
187, // 260: modelarts.ModelArts.StopNotebook:output_type -> modelarts.StopNotebookResp
189, // 261: modelarts.ModelArts.GetNotebookStorage:output_type -> modelarts.GetNotebookStorageResp
191, // 262: modelarts.ModelArts.MountNotebookStorage:output_type -> modelarts.MountNotebookStorageResp
208, // 263: modelarts.ModelArts.GetVisualizationJob:output_type -> modelarts.GetVisualizationJobResp
212, // 264: modelarts.ModelArts.CreateVisualizationJob:output_type -> modelarts.CreateVisualizationJobResp
230, // [230:265] is the sub-list for method output_type
195, // [195:230] is the sub-list for method input_type
195, // [195:195] is the sub-list for extension type_name
195, // [195:195] is the sub-list for extension extendee
0, // [0:195] is the sub-list for field type_name
181, // 166: modelarts.ListNotebookReq.param:type_name -> modelarts.ListNotebookParam
196, // 167: modelarts.ListNotebookResp.data:type_name -> modelarts.NotebookResp
184, // 168: modelarts.CreateNotebookReq.param:type_name -> modelarts.CreateNotebookParam
@ -23559,6 +23980,30 @@ func file_modelarts_proto_init() {
return nil
}
}
file_modelarts_proto_msgTypes[214].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Flavor); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_modelarts_proto_msgTypes[215].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Schedule); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{

View File

@ -95,6 +95,7 @@ type (
ExportTaskResp = modelarts.ExportTaskResp
ExportTaskStatus = modelarts.ExportTaskStatus
FileStatistics = modelarts.FileStatistics
Flavor = modelarts.Flavor
FlavorDetail = modelarts.FlavorDetail
FlavorInfo = modelarts.FlavorInfo
FlavorResponse = modelarts.FlavorResponse
@ -192,6 +193,7 @@ type (
ResourceRequirements = modelarts.ResourceRequirements
ResourceS = modelarts.ResourceS
RewardAttrs = modelarts.RewardAttrs
Schedule = modelarts.Schedule
Scheduler = modelarts.Scheduler
SchemaMaps = modelarts.SchemaMaps
Scope = modelarts.Scope

View File

@ -1554,27 +1554,27 @@ message DeleteDataSetResq{
/******************Notebook Start*************************/
message ListNotebookReq{
string project_id = 1;
ListNotebookParam param = 2;
string project_id = 1; // @gotags: copier:"project_id"
ListNotebookParam param = 2; // @gotags: copier:"param"
}
message ListNotebookResp{
int32 current = 1;
repeated NotebookResp data = 2;
int32 pages = 3;
int32 size = 4;
int64 total = 5;
int32 current = 1; // @gotags: copier:"current"
repeated NotebookResp data = 2; // @gotags: copier:"data"
int32 pages = 3; // @gotags: copier:"pages"
int32 size = 4; // @gotags: copier:"size"
int64 total = 5; // @gotags: copier:"total"
}
message ListNotebookParam{
string feature = 1;
int32 limit = 2;
string name = 3;
string pool_id = 4;
int32 offset = 5;
string owner = 6;
string sort_dir = 7;
string sort_key = 8;
string status = 9;
string workspaceId = 10;
string feature = 1; // @gotags: copier:"feature"
int32 limit = 2; // @gotags: copier:"limit"
string name = 3; // @gotags: copier:"name"
string pool_id = 4; // @gotags: copier:"pool_id"
int32 offset = 5; // @gotags: copier:"offset"
string owner = 6; // @gotags: copier:"owner"
string sort_dir = 7; // @gotags: copier:"sort_dir"
string sort_key = 8; // @gotags: copier:"sort_key"
string status = 9; // @gotags: copier:"status"
string workspaceId = 10; // @gotags: copier:"workspaceId"
}
message CreateNotebookReq{
@ -1660,73 +1660,73 @@ message DataVolumesRes{
}
message NotebookResp{
repeated JobProgress action_progress = 1;
string description = 2;
repeated EndpointsRes endpoints = 3;
string fail_reason = 4;
string flavor = 5;
string id = 6;
Image image = 7;
Lease lease = 8;
string name = 9;
Pool pool = 10;
string status = 11;
string token = 12;
string url = 13;
VolumeRes volume = 14;
string workspace_id = 15;
string feature = 16;
repeated JobProgress action_progress = 1; // @gotags: copier:"action_progress"
string description = 2; // @gotags: copier:"description"
repeated EndpointsRes endpoints = 3; // @gotags: copier:"endpoints"
string fail_reason = 4; // @gotags: copier:"fail_reason"
string flavor = 5; // @gotags: copier:"flavor"
string id = 6; // @gotags: copier:"id"
Image image = 7; // @gotags: copier:"image"
Lease lease = 8; // @gotags: copier:"lease"
string name = 9; // @gotags: copier:"name"
Pool pool = 10; // @gotags: copier:"pool"
string status = 11; // @gotags: copier:"status"
string token = 12; // @gotags: copier:"token"
string url = 13; // @gotags: copier:"url"
VolumeRes volume = 14; // @gotags: copier:"volume"
string workspace_id = 15; // @gotags: copier:"workspace_id"
string feature = 16; // @gotags: copier:"feature"
}
message JobProgress{
string notebook_id = 1;
string status = 2;
int32 step = 3;
string step_description = 4;
string notebook_id = 1; // @gotags: copier:"notebook_id"
string status = 2; // @gotags: copier:"status"
int32 step = 3; // @gotags: copier:"step"
string step_description = 4; // @gotags: copier:"step_description"
}
message EndpointsRes{
repeated string allowed_access_ips = 1;
string dev_service = 2;
repeated string ssh_keys = 3;
repeated string allowed_access_ips = 1; // @gotags: copier:"allowed_access_ips"
string dev_service = 2; // @gotags: copier:"dev_service"
repeated string ssh_keys = 3; // @gotags: copier:"ssh_keys"
}
message Image{
string arch = 1;
int64 create_at = 2;
string description = 3;
repeated string dev_services = 4;
string id = 5;
string name = 6;
string namespace = 7;
string origin = 8;
repeated string resource_categories = 9;
string service_type = 10;
int64 size = 11;
string status = 12;
string status_message = 13;
repeated string support_res_categories = 14;
string swr_path = 15;
string tag = 16;
string type = 17;
int64 update_at = 18;
string visibility = 19;
string workspace_id = 20;
string arch = 1; // @gotags: copier:"arch"
int64 create_at = 2; // @gotags: copier:"create_at"
string description = 3; // @gotags: copier:"description"
repeated string dev_services = 4; // @gotags: copier:"dev_services"
string id = 5; // @gotags: copier:"id"
string name = 6; // @gotags: copier:"name"
string namespace = 7; // @gotags: copier:"namespace"
string origin = 8; // @gotags: copier:"origin"
repeated string resource_categories = 9; // @gotags: copier:"resource_categories"
string service_type = 10; // @gotags: copier:"service_type"
int64 size = 11; // @gotags: copier:"size"
string status = 12; // @gotags: copier:"status"
string status_message = 13; // @gotags: copier:"status_message"
repeated string support_res_categories = 14; // @gotags: copier:"support_res_categories"
string swr_path = 15; // @gotags: copier:"swr_path"
string tag = 16; // @gotags: copier:"tag"
string type = 17; // @gotags: copier:"type_image"
int64 update_at = 18; // @gotags: copier:"update_at"
string visibility = 19; // @gotags: copier:"visibility"
string workspace_id = 20; // @gotags: copier:"workspace_id"
}
message Lease{
int64 create_at = 1;
int64 duration = 2;
bool enable = 3;
string type = 4;
int64 update_at = 5;
int64 create_at = 1; // @gotags: copier:"create_at"
int64 duration = 2; // @gotags: copier:"duration"
bool enable = 3; // @gotags: copier:"enable"
string type = 4; // @gotags: copier:"type_lease"
int64 update_at = 5; // @gotags: copier:"update_at"
}
message Pool{
string id = 1;
string name = 2;
string id = 1; // @gotags: copier:"id"
string name = 2; // @gotags: copier:"name"
}
message VolumeRes{
int64 capacity = 1;
string category = 2;
string mount_path = 3;
string ownership = 4;
string status = 5;
int64 capacity = 1; // @gotags: copier:"capacity"
string category = 2; // @gotags: copier:"category"
string mount_path = 3; // @gotags: copier:"mount_path"
string ownership = 4; // @gotags: copier:"ownership"
string status = 5; // @gotags: copier:"status"
}
message EndpointsReq{
repeated string allowed_access_ips = 1;
@ -1809,8 +1809,16 @@ message CreateVisualizationJobParam{
string job_desc = 2;
string train_url = 3;
string job_type = 4;
//flavor
//schedule
flavor flavor = 5;
schedule schedule = 6;
}
message flavor{
string code = 1;
}
message schedule{
string type = 1;
string time_unit = 2;
int32 duration = 3;
}
/******************Visualization Job End*************************/