Documentation ¶
Index ¶
- func GenReqDefForCreateResDatasource() *def.HttpRequestDef
- func GenReqDefForCreateResIntelligentScene() *def.HttpRequestDef
- func GenReqDefForCreateResJob() *def.HttpRequestDef
- func GenReqDefForCreateResJobs() *def.HttpRequestDef
- func GenReqDefForCreateResOnlineInstance() *def.HttpRequestDef
- func GenReqDefForCreateResScene() *def.HttpRequestDef
- func GenReqDefForCreateResWorkspace() *def.HttpRequestDef
- func GenReqDefForDeleteResDatasource() *def.HttpRequestDef
- func GenReqDefForDeleteResJob() *def.HttpRequestDef
- func GenReqDefForDeleteResOnlineInstance() *def.HttpRequestDef
- func GenReqDefForDeleteResScene() *def.HttpRequestDef
- func GenReqDefForDeleteResWorkspace() *def.HttpRequestDef
- func GenReqDefForListResDatasources() *def.HttpRequestDef
- func GenReqDefForListResEnterprises() *def.HttpRequestDef
- func GenReqDefForListResOnlineServiceDetails() *def.HttpRequestDef
- func GenReqDefForListResResourceSpec() *def.HttpRequestDef
- func GenReqDefForListResScenes() *def.HttpRequestDef
- func GenReqDefForListResWorkspaces() *def.HttpRequestDef
- func GenReqDefForShowResDatasource() *def.HttpRequestDef
- func GenReqDefForShowResDatasourceWorkDetail() *def.HttpRequestDef
- func GenReqDefForShowResJob() *def.HttpRequestDef
- func GenReqDefForShowResRecallSet() *def.HttpRequestDef
- func GenReqDefForShowResScene() *def.HttpRequestDef
- func GenReqDefForShowResWrokspace() *def.HttpRequestDef
- func GenReqDefForStartResJob() *def.HttpRequestDef
- func GenReqDefForStartResSceneJobs() *def.HttpRequestDef
- func GenReqDefForUpdateResDatasource() *def.HttpRequestDef
- func GenReqDefForUpdateResDatastruct() *def.HttpRequestDef
- func GenReqDefForUpdateResIntelligentScene() *def.HttpRequestDef
- func GenReqDefForUpdateResJob() *def.HttpRequestDef
- func GenReqDefForUpdateResOnlineInstance() *def.HttpRequestDef
- func GenReqDefForUpdateResScene() *def.HttpRequestDef
- func GenReqDefForUpdateResWorkspace() *def.HttpRequestDef
- func ResClientBuilder() *http_client.HcHttpClientBuilder
- type ResClient
- func (c *ResClient) CreateResDatasource(request *model.CreateResDatasourceRequest) (*model.CreateResDatasourceResponse, error)
- func (c *ResClient) CreateResIntelligentScene(request *model.CreateResIntelligentSceneRequest) (*model.CreateResIntelligentSceneResponse, error)
- func (c *ResClient) CreateResJob(request *model.CreateResJobRequest) (*model.CreateResJobResponse, error)
- func (c *ResClient) CreateResJobs(request *model.CreateResJobsRequest) (*model.CreateResJobsResponse, error)
- func (c *ResClient) CreateResOnlineInstance(request *model.CreateResOnlineInstanceRequest) (*model.CreateResOnlineInstanceResponse, error)
- func (c *ResClient) CreateResScene(request *model.CreateResSceneRequest) (*model.CreateResSceneResponse, error)
- func (c *ResClient) CreateResWorkspace(request *model.CreateResWorkspaceRequest) (*model.CreateResWorkspaceResponse, error)
- func (c *ResClient) DeleteResDatasource(request *model.DeleteResDatasourceRequest) (*model.DeleteResDatasourceResponse, error)
- func (c *ResClient) DeleteResJob(request *model.DeleteResJobRequest) (*model.DeleteResJobResponse, error)
- func (c *ResClient) DeleteResOnlineInstance(request *model.DeleteResOnlineInstanceRequest) (*model.DeleteResOnlineInstanceResponse, error)
- func (c *ResClient) DeleteResScene(request *model.DeleteResSceneRequest) (*model.DeleteResSceneResponse, error)
- func (c *ResClient) DeleteResWorkspace(request *model.DeleteResWorkspaceRequest) (*model.DeleteResWorkspaceResponse, error)
- func (c *ResClient) ListResDatasources(request *model.ListResDatasourcesRequest) (*model.ListResDatasourcesResponse, error)
- func (c *ResClient) ListResEnterprises(request *model.ListResEnterprisesRequest) (*model.ListResEnterprisesResponse, error)
- func (c *ResClient) ListResOnlineServiceDetails(request *model.ListResOnlineServiceDetailsRequest) (*model.ListResOnlineServiceDetailsResponse, error)
- func (c *ResClient) ListResResourceSpec(request *model.ListResResourceSpecRequest) (*model.ListResResourceSpecResponse, error)
- func (c *ResClient) ListResScenes(request *model.ListResScenesRequest) (*model.ListResScenesResponse, error)
- func (c *ResClient) ListResWorkspaces(request *model.ListResWorkspacesRequest) (*model.ListResWorkspacesResponse, error)
- func (c *ResClient) ShowResDatasource(request *model.ShowResDatasourceRequest) (*model.ShowResDatasourceResponse, error)
- func (c *ResClient) ShowResDatasourceWorkDetail(request *model.ShowResDatasourceWorkDetailRequest) (*model.ShowResDatasourceWorkDetailResponse, error)
- func (c *ResClient) ShowResJob(request *model.ShowResJobRequest) (*model.ShowResJobResponse, error)
- func (c *ResClient) ShowResRecallSet(request *model.ShowResRecallSetRequest) (*model.ShowResRecallSetResponse, error)
- func (c *ResClient) ShowResScene(request *model.ShowResSceneRequest) (*model.ShowResSceneResponse, error)
- func (c *ResClient) ShowResWrokspace(request *model.ShowResWrokspaceRequest) (*model.ShowResWrokspaceResponse, error)
- func (c *ResClient) StartResJob(request *model.StartResJobRequest) (*model.StartResJobResponse, error)
- func (c *ResClient) StartResSceneJobs(request *model.StartResSceneJobsRequest) (*model.StartResSceneJobsResponse, error)
- func (c *ResClient) UpdateResDatasource(request *model.UpdateResDatasourceRequest) (*model.UpdateResDatasourceResponse, error)
- func (c *ResClient) UpdateResDatastruct(request *model.UpdateResDatastructRequest) (*model.UpdateResDatastructResponse, error)
- func (c *ResClient) UpdateResIntelligentScene(request *model.UpdateResIntelligentSceneRequest) (*model.UpdateResIntelligentSceneResponse, error)
- func (c *ResClient) UpdateResJob(request *model.UpdateResJobRequest) (*model.UpdateResJobResponse, error)
- func (c *ResClient) UpdateResOnlineInstance(request *model.UpdateResOnlineInstanceRequest) (*model.UpdateResOnlineInstanceResponse, error)
- func (c *ResClient) UpdateResScene(request *model.UpdateResSceneRequest) (*model.UpdateResSceneResponse, error)
- func (c *ResClient) UpdateResWorkspace(request *model.UpdateResWorkspaceRequest) (*model.UpdateResWorkspaceResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForCreateResDatasource ¶
func GenReqDefForCreateResDatasource() *def.HttpRequestDef
func GenReqDefForCreateResIntelligentScene ¶
func GenReqDefForCreateResIntelligentScene() *def.HttpRequestDef
func GenReqDefForCreateResJob ¶
func GenReqDefForCreateResJob() *def.HttpRequestDef
func GenReqDefForCreateResJobs ¶
func GenReqDefForCreateResJobs() *def.HttpRequestDef
func GenReqDefForCreateResOnlineInstance ¶
func GenReqDefForCreateResOnlineInstance() *def.HttpRequestDef
func GenReqDefForCreateResScene ¶
func GenReqDefForCreateResScene() *def.HttpRequestDef
func GenReqDefForCreateResWorkspace ¶
func GenReqDefForCreateResWorkspace() *def.HttpRequestDef
func GenReqDefForDeleteResDatasource ¶
func GenReqDefForDeleteResDatasource() *def.HttpRequestDef
func GenReqDefForDeleteResJob ¶
func GenReqDefForDeleteResJob() *def.HttpRequestDef
func GenReqDefForDeleteResOnlineInstance ¶
func GenReqDefForDeleteResOnlineInstance() *def.HttpRequestDef
func GenReqDefForDeleteResScene ¶
func GenReqDefForDeleteResScene() *def.HttpRequestDef
func GenReqDefForDeleteResWorkspace ¶
func GenReqDefForDeleteResWorkspace() *def.HttpRequestDef
func GenReqDefForListResDatasources ¶
func GenReqDefForListResDatasources() *def.HttpRequestDef
func GenReqDefForListResEnterprises ¶
func GenReqDefForListResEnterprises() *def.HttpRequestDef
func GenReqDefForListResOnlineServiceDetails ¶
func GenReqDefForListResOnlineServiceDetails() *def.HttpRequestDef
func GenReqDefForListResResourceSpec ¶
func GenReqDefForListResResourceSpec() *def.HttpRequestDef
func GenReqDefForListResScenes ¶
func GenReqDefForListResScenes() *def.HttpRequestDef
func GenReqDefForListResWorkspaces ¶
func GenReqDefForListResWorkspaces() *def.HttpRequestDef
func GenReqDefForShowResDatasource ¶
func GenReqDefForShowResDatasource() *def.HttpRequestDef
func GenReqDefForShowResDatasourceWorkDetail ¶
func GenReqDefForShowResDatasourceWorkDetail() *def.HttpRequestDef
func GenReqDefForShowResJob ¶
func GenReqDefForShowResJob() *def.HttpRequestDef
func GenReqDefForShowResRecallSet ¶
func GenReqDefForShowResRecallSet() *def.HttpRequestDef
func GenReqDefForShowResScene ¶
func GenReqDefForShowResScene() *def.HttpRequestDef
func GenReqDefForShowResWrokspace ¶
func GenReqDefForShowResWrokspace() *def.HttpRequestDef
func GenReqDefForStartResJob ¶
func GenReqDefForStartResJob() *def.HttpRequestDef
func GenReqDefForStartResSceneJobs ¶
func GenReqDefForStartResSceneJobs() *def.HttpRequestDef
func GenReqDefForUpdateResDatasource ¶
func GenReqDefForUpdateResDatasource() *def.HttpRequestDef
func GenReqDefForUpdateResDatastruct ¶
func GenReqDefForUpdateResDatastruct() *def.HttpRequestDef
func GenReqDefForUpdateResIntelligentScene ¶
func GenReqDefForUpdateResIntelligentScene() *def.HttpRequestDef
func GenReqDefForUpdateResJob ¶
func GenReqDefForUpdateResJob() *def.HttpRequestDef
func GenReqDefForUpdateResOnlineInstance ¶
func GenReqDefForUpdateResOnlineInstance() *def.HttpRequestDef
func GenReqDefForUpdateResScene ¶
func GenReqDefForUpdateResScene() *def.HttpRequestDef
func GenReqDefForUpdateResWorkspace ¶
func GenReqDefForUpdateResWorkspace() *def.HttpRequestDef
func ResClientBuilder ¶
func ResClientBuilder() *http_client.HcHttpClientBuilder
Types ¶
type ResClient ¶
type ResClient struct {
HcClient *http_client.HcHttpClient
}
func NewResClient ¶
func NewResClient(hcClient *http_client.HcHttpClient) *ResClient
func (*ResClient) CreateResDatasource ¶
func (c *ResClient) CreateResDatasource(request *model.CreateResDatasourceRequest) (*model.CreateResDatasourceResponse, error)
创建数据源
在指定的工作空间下面创建一个新的数据源。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) CreateResIntelligentScene ¶
func (c *ResClient) CreateResIntelligentScene(request *model.CreateResIntelligentSceneRequest) (*model.CreateResIntelligentSceneResponse, error)
创建智能场景
在指定工作空间下面创建智能场景。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) CreateResJob ¶
func (c *ResClient) CreateResJob(request *model.CreateResJobRequest) (*model.CreateResJobResponse, error)
新建训练作业
新建训练作业元数据,新建成功之后可手动执行此任务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) CreateResJobs ¶
func (c *ResClient) CreateResJobs(request *model.CreateResJobsRequest) (*model.CreateResJobsResponse, error)
新建多个训练作业
批量新建作业。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) CreateResOnlineInstance ¶
func (c *ResClient) CreateResOnlineInstance(request *model.CreateResOnlineInstanceRequest) (*model.CreateResOnlineInstanceResponse, error)
新建在线服务
新建在线服务元数据,新建成功之后可手动发布此服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) CreateResScene ¶
func (c *ResClient) CreateResScene(request *model.CreateResSceneRequest) (*model.CreateResSceneResponse, error)
创建自定义场景
在指定工作空间下面创建自定义场景。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) CreateResWorkspace ¶
func (c *ResClient) CreateResWorkspace(request *model.CreateResWorkspaceRequest) (*model.CreateResWorkspaceResponse, error)
创建工作空间
用于在推荐系统下面创建独立的工作空间,用于资源的隔离,用户可以在工作空间下面继续创建数据源、场景以及推荐任务等。是否有工作空间的操作权限取决于用户是否属于当前工作空间绑定的企业项目。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) DeleteResDatasource ¶
func (c *ResClient) DeleteResDatasource(request *model.DeleteResDatasourceRequest) (*model.DeleteResDatasourceResponse, error)
删除数据源
删除数据源。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) DeleteResJob ¶
func (c *ResClient) DeleteResJob(request *model.DeleteResJobRequest) (*model.DeleteResJobResponse, error)
删除训练作业
删除指定作业。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) DeleteResOnlineInstance ¶
func (c *ResClient) DeleteResOnlineInstance(request *model.DeleteResOnlineInstanceRequest) (*model.DeleteResOnlineInstanceResponse, error)
删除在线服务
删除在线服务实例。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) DeleteResScene ¶
func (c *ResClient) DeleteResScene(request *model.DeleteResSceneRequest) (*model.DeleteResSceneResponse, error)
删除场景
该接口用于删除场景,删除之后不能恢复,请您谨慎操作。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) DeleteResWorkspace ¶
func (c *ResClient) DeleteResWorkspace(request *model.DeleteResWorkspaceRequest) (*model.DeleteResWorkspaceResponse, error)
删除工作空间
删除指定工作空间。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) ListResDatasources ¶
func (c *ResClient) ListResDatasources(request *model.ListResDatasourcesRequest) (*model.ListResDatasourcesResponse, error)
查询数据源列表
查询当前工作空间下的数据源列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) ListResEnterprises ¶
func (c *ResClient) ListResEnterprises(request *model.ListResEnterprisesRequest) (*model.ListResEnterprisesResponse, error)
查询企业项目列表
查询用户在当前项目id下的企业项目列表。在创建工作空间时需要提供企业项目id。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) ListResOnlineServiceDetails ¶
func (c *ResClient) ListResOnlineServiceDetails(request *model.ListResOnlineServiceDetailsRequest) (*model.ListResOnlineServiceDetailsResponse, error)
查询在线服务详情
根据给定的workspace_id和resource_id及category查询在线服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) ListResResourceSpec ¶
func (c *ResClient) ListResResourceSpec(request *model.ListResResourceSpecRequest) (*model.ListResResourceSpecResponse, error)
查询训练规格
查询当前推荐系统所提供的离线计算规格,实时计算规格和排序模型训练规格。在创建数据源和场景时,需要提供此信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) ListResScenes ¶
func (c *ResClient) ListResScenes(request *model.ListResScenesRequest) (*model.ListResScenesResponse, error)
查询场景列表
查询当前工作空间下的场景列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) ListResWorkspaces ¶
func (c *ResClient) ListResWorkspaces(request *model.ListResWorkspacesRequest) (*model.ListResWorkspacesResponse, error)
查询工作空间列表
用于查询当前用户具有操作权限的工作空间列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) ShowResDatasource ¶
func (c *ResClient) ShowResDatasource(request *model.ShowResDatasourceRequest) (*model.ShowResDatasourceResponse, error)
查询数据源详情
查询指定数据源的详情信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) ShowResDatasourceWorkDetail ¶
func (c *ResClient) ShowResDatasourceWorkDetail(request *model.ShowResDatasourceWorkDetailRequest) (*model.ShowResDatasourceWorkDetailResponse, error)
查询数据源任务结果
查询指定数据源下离线任务的结果。其中包括数据格式,数据检测、数据探索及效果评估的内容。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) ShowResJob ¶
func (c *ResClient) ShowResJob(request *model.ShowResJobRequest) (*model.ShowResJobResponse, error)
查询训练作业
查询resource_id(数据源id或场景id)下的指定类型的作业。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) ShowResRecallSet ¶
func (c *ResClient) ShowResRecallSet(request *model.ShowResRecallSetRequest) (*model.ShowResRecallSetResponse, error)
查询训练作业候选集
查询给定workspaces_id和指定resource_id下的候选集。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) ShowResScene ¶
func (c *ResClient) ShowResScene(request *model.ShowResSceneRequest) (*model.ShowResSceneResponse, error)
查询场景详情
查询指定场景的详情。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) ShowResWrokspace ¶
func (c *ResClient) ShowResWrokspace(request *model.ShowResWrokspaceRequest) (*model.ShowResWrokspaceResponse, error)
查询工作空间详情
查询指定工作空间的具体信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) StartResJob ¶
func (c *ResClient) StartResJob(request *model.StartResJobRequest) (*model.StartResJobResponse, error)
执行作业
执行独立的作业。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) StartResSceneJobs ¶
func (c *ResClient) StartResSceneJobs(request *model.StartResSceneJobsRequest) (*model.StartResSceneJobsResponse, error)
执行场景
执行场景下面的所有作业和服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) UpdateResDatasource ¶
func (c *ResClient) UpdateResDatasource(request *model.UpdateResDatasourceRequest) (*model.UpdateResDatasourceResponse, error)
修改数据源内容
修改指定数据源的配置内容。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) UpdateResDatastruct ¶
func (c *ResClient) UpdateResDatastruct(request *model.UpdateResDatastructRequest) (*model.UpdateResDatastructResponse, error)
修改数据源特征
修改数据源中的特征。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) UpdateResIntelligentScene ¶
func (c *ResClient) UpdateResIntelligentScene(request *model.UpdateResIntelligentSceneRequest) (*model.UpdateResIntelligentSceneResponse, error)
更新智能场景内容
更新智能场景的内容信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) UpdateResJob ¶
func (c *ResClient) UpdateResJob(request *model.UpdateResJobRequest) (*model.UpdateResJobResponse, error)
修改训练作业参数
修改指定作业的元数据信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) UpdateResOnlineInstance ¶
func (c *ResClient) UpdateResOnlineInstance(request *model.UpdateResOnlineInstanceRequest) (*model.UpdateResOnlineInstanceResponse, error)
修改在线服务参数
修改指定在线服务的元数据内容。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) UpdateResScene ¶
func (c *ResClient) UpdateResScene(request *model.UpdateResSceneRequest) (*model.UpdateResSceneResponse, error)
更新自定义场景内容
更新自定义场景的内容信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*ResClient) UpdateResWorkspace ¶
func (c *ResClient) UpdateResWorkspace(request *model.UpdateResWorkspaceRequest) (*model.UpdateResWorkspaceResponse, error)
更新工作空间
更新工作空间信息, 只允许更新描述信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.