Documentation ¶
Index ¶
- type Client
- func NewClient() (client *Client, err error)
- func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
- func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)
- func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
- func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)
- func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
- func NewClientWithRamRoleArnAndPolicy(regionId string, ...) (client *Client, err error)
- func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
- func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
- func (client *Client) CreateProject(request *CreateProjectRequest) (response *CreateProjectResponse, err error)
- func (client *Client) CreateProjectWithCallback(request *CreateProjectRequest, ...) <-chan int
- func (client *Client) CreateProjectWithChan(request *CreateProjectRequest) (<-chan *CreateProjectResponse, <-chan error)
- func (client *Client) DeleteProject(request *DeleteProjectRequest) (response *DeleteProjectResponse, err error)
- func (client *Client) DeleteProjectWithCallback(request *DeleteProjectRequest, ...) <-chan int
- func (client *Client) DeleteProjectWithChan(request *DeleteProjectRequest) (<-chan *DeleteProjectResponse, <-chan error)
- func (client *Client) DeployService(request *DeployServiceRequest) (response *DeployServiceResponse, err error)
- func (client *Client) DeployServiceWithCallback(request *DeployServiceRequest, ...) <-chan int
- func (client *Client) DeployServiceWithChan(request *DeployServiceRequest) (<-chan *DeployServiceResponse, <-chan error)
- func (client *Client) DescribeProject(request *DescribeProjectRequest) (response *DescribeProjectResponse, err error)
- func (client *Client) DescribeProjectWithCallback(request *DescribeProjectRequest, ...) <-chan int
- func (client *Client) DescribeProjectWithChan(request *DescribeProjectRequest) (<-chan *DescribeProjectResponse, <-chan error)
- func (client *Client) GetPredictResult(request *GetPredictResultRequest) (response *GetPredictResultResponse, err error)
- func (client *Client) GetPredictResultWithCallback(request *GetPredictResultRequest, ...) <-chan int
- func (client *Client) GetPredictResultWithChan(request *GetPredictResultRequest) (<-chan *GetPredictResultResponse, <-chan error)
- func (client *Client) ListProjects(request *ListProjectsRequest) (response *ListProjectsResponse, err error)
- func (client *Client) ListProjectsWithCallback(request *ListProjectsRequest, ...) <-chan int
- func (client *Client) ListProjectsWithChan(request *ListProjectsRequest) (<-chan *ListProjectsResponse, <-chan error)
- func (client *Client) ModifiyProject(request *ModifiyProjectRequest) (response *ModifiyProjectResponse, err error)
- func (client *Client) ModifiyProjectWithCallback(request *ModifiyProjectRequest, ...) <-chan int
- func (client *Client) ModifiyProjectWithChan(request *ModifiyProjectRequest) (<-chan *ModifiyProjectResponse, <-chan error)
- func (client *Client) UploadDictionary(request *UploadDictionaryRequest) (response *UploadDictionaryResponse, err error)
- func (client *Client) UploadDictionaryWithCallback(request *UploadDictionaryRequest, ...) <-chan int
- func (client *Client) UploadDictionaryWithChan(request *UploadDictionaryRequest) (<-chan *UploadDictionaryResponse, <-chan error)
- func (client *Client) UploadDocument(request *UploadDocumentRequest) (response *UploadDocumentResponse, err error)
- func (client *Client) UploadDocumentWithCallback(request *UploadDocumentRequest, ...) <-chan int
- func (client *Client) UploadDocumentWithChan(request *UploadDocumentRequest) (<-chan *UploadDocumentResponse, <-chan error)
- type CreateProjectRequest
- type CreateProjectResponse
- type DeleteProjectRequest
- type DeleteProjectResponse
- type DeployServiceRequest
- type DeployServiceResponse
- type DescribeProjectRequest
- type DescribeProjectResponse
- type GetPredictResultRequest
- type GetPredictResultResponse
- type ListProjectsRequest
- type ListProjectsResponse
- type ModifiyProjectRequest
- type ModifiyProjectResponse
- type PredictResult
- type PredictResults
- type Project
- type Projects
- type UploadDictionaryRequest
- type UploadDictionaryResponse
- type UploadDocumentRequest
- type UploadDocumentResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the sdk client struct, each func corresponds to an OpenAPI
func NewClientWithAccessKey ¶
func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithEcsRamRole ¶
NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithOptions ¶
func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client
func NewClientWithProvider ¶
func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)
NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithRamRoleArn ¶
func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithRamRoleArnAndPolicy ¶
func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)
NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithRsaKeyPair ¶
func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithStsToken ¶
func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func (*Client) CreateProject ¶
func (client *Client) CreateProject(request *CreateProjectRequest) (response *CreateProjectResponse, err error)
CreateProject invokes the iqa.CreateProject API synchronously api document: https://help.aliyun.com/api/iqa/createproject.html
func (*Client) CreateProjectWithCallback ¶
func (client *Client) CreateProjectWithCallback(request *CreateProjectRequest, callback func(response *CreateProjectResponse, err error)) <-chan int
CreateProjectWithCallback invokes the iqa.CreateProject API asynchronously api document: https://help.aliyun.com/api/iqa/createproject.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) CreateProjectWithChan ¶
func (client *Client) CreateProjectWithChan(request *CreateProjectRequest) (<-chan *CreateProjectResponse, <-chan error)
CreateProjectWithChan invokes the iqa.CreateProject API asynchronously api document: https://help.aliyun.com/api/iqa/createproject.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DeleteProject ¶
func (client *Client) DeleteProject(request *DeleteProjectRequest) (response *DeleteProjectResponse, err error)
DeleteProject invokes the iqa.DeleteProject API synchronously api document: https://help.aliyun.com/api/iqa/deleteproject.html
func (*Client) DeleteProjectWithCallback ¶
func (client *Client) DeleteProjectWithCallback(request *DeleteProjectRequest, callback func(response *DeleteProjectResponse, err error)) <-chan int
DeleteProjectWithCallback invokes the iqa.DeleteProject API asynchronously api document: https://help.aliyun.com/api/iqa/deleteproject.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DeleteProjectWithChan ¶
func (client *Client) DeleteProjectWithChan(request *DeleteProjectRequest) (<-chan *DeleteProjectResponse, <-chan error)
DeleteProjectWithChan invokes the iqa.DeleteProject API asynchronously api document: https://help.aliyun.com/api/iqa/deleteproject.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DeployService ¶
func (client *Client) DeployService(request *DeployServiceRequest) (response *DeployServiceResponse, err error)
DeployService invokes the iqa.DeployService API synchronously api document: https://help.aliyun.com/api/iqa/deployservice.html
func (*Client) DeployServiceWithCallback ¶
func (client *Client) DeployServiceWithCallback(request *DeployServiceRequest, callback func(response *DeployServiceResponse, err error)) <-chan int
DeployServiceWithCallback invokes the iqa.DeployService API asynchronously api document: https://help.aliyun.com/api/iqa/deployservice.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DeployServiceWithChan ¶
func (client *Client) DeployServiceWithChan(request *DeployServiceRequest) (<-chan *DeployServiceResponse, <-chan error)
DeployServiceWithChan invokes the iqa.DeployService API asynchronously api document: https://help.aliyun.com/api/iqa/deployservice.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DescribeProject ¶
func (client *Client) DescribeProject(request *DescribeProjectRequest) (response *DescribeProjectResponse, err error)
DescribeProject invokes the iqa.DescribeProject API synchronously api document: https://help.aliyun.com/api/iqa/describeproject.html
func (*Client) DescribeProjectWithCallback ¶
func (client *Client) DescribeProjectWithCallback(request *DescribeProjectRequest, callback func(response *DescribeProjectResponse, err error)) <-chan int
DescribeProjectWithCallback invokes the iqa.DescribeProject API asynchronously api document: https://help.aliyun.com/api/iqa/describeproject.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) DescribeProjectWithChan ¶
func (client *Client) DescribeProjectWithChan(request *DescribeProjectRequest) (<-chan *DescribeProjectResponse, <-chan error)
DescribeProjectWithChan invokes the iqa.DescribeProject API asynchronously api document: https://help.aliyun.com/api/iqa/describeproject.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetPredictResult ¶
func (client *Client) GetPredictResult(request *GetPredictResultRequest) (response *GetPredictResultResponse, err error)
GetPredictResult invokes the iqa.GetPredictResult API synchronously api document: https://help.aliyun.com/api/iqa/getpredictresult.html
func (*Client) GetPredictResultWithCallback ¶
func (client *Client) GetPredictResultWithCallback(request *GetPredictResultRequest, callback func(response *GetPredictResultResponse, err error)) <-chan int
GetPredictResultWithCallback invokes the iqa.GetPredictResult API asynchronously api document: https://help.aliyun.com/api/iqa/getpredictresult.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) GetPredictResultWithChan ¶
func (client *Client) GetPredictResultWithChan(request *GetPredictResultRequest) (<-chan *GetPredictResultResponse, <-chan error)
GetPredictResultWithChan invokes the iqa.GetPredictResult API asynchronously api document: https://help.aliyun.com/api/iqa/getpredictresult.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) ListProjects ¶
func (client *Client) ListProjects(request *ListProjectsRequest) (response *ListProjectsResponse, err error)
ListProjects invokes the iqa.ListProjects API synchronously api document: https://help.aliyun.com/api/iqa/listprojects.html
func (*Client) ListProjectsWithCallback ¶
func (client *Client) ListProjectsWithCallback(request *ListProjectsRequest, callback func(response *ListProjectsResponse, err error)) <-chan int
ListProjectsWithCallback invokes the iqa.ListProjects API asynchronously api document: https://help.aliyun.com/api/iqa/listprojects.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) ListProjectsWithChan ¶
func (client *Client) ListProjectsWithChan(request *ListProjectsRequest) (<-chan *ListProjectsResponse, <-chan error)
ListProjectsWithChan invokes the iqa.ListProjects API asynchronously api document: https://help.aliyun.com/api/iqa/listprojects.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) ModifiyProject ¶
func (client *Client) ModifiyProject(request *ModifiyProjectRequest) (response *ModifiyProjectResponse, err error)
ModifiyProject invokes the iqa.ModifiyProject API synchronously api document: https://help.aliyun.com/api/iqa/modifiyproject.html
func (*Client) ModifiyProjectWithCallback ¶
func (client *Client) ModifiyProjectWithCallback(request *ModifiyProjectRequest, callback func(response *ModifiyProjectResponse, err error)) <-chan int
ModifiyProjectWithCallback invokes the iqa.ModifiyProject API asynchronously api document: https://help.aliyun.com/api/iqa/modifiyproject.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) ModifiyProjectWithChan ¶
func (client *Client) ModifiyProjectWithChan(request *ModifiyProjectRequest) (<-chan *ModifiyProjectResponse, <-chan error)
ModifiyProjectWithChan invokes the iqa.ModifiyProject API asynchronously api document: https://help.aliyun.com/api/iqa/modifiyproject.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) UploadDictionary ¶
func (client *Client) UploadDictionary(request *UploadDictionaryRequest) (response *UploadDictionaryResponse, err error)
UploadDictionary invokes the iqa.UploadDictionary API synchronously api document: https://help.aliyun.com/api/iqa/uploaddictionary.html
func (*Client) UploadDictionaryWithCallback ¶
func (client *Client) UploadDictionaryWithCallback(request *UploadDictionaryRequest, callback func(response *UploadDictionaryResponse, err error)) <-chan int
UploadDictionaryWithCallback invokes the iqa.UploadDictionary API asynchronously api document: https://help.aliyun.com/api/iqa/uploaddictionary.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) UploadDictionaryWithChan ¶
func (client *Client) UploadDictionaryWithChan(request *UploadDictionaryRequest) (<-chan *UploadDictionaryResponse, <-chan error)
UploadDictionaryWithChan invokes the iqa.UploadDictionary API asynchronously api document: https://help.aliyun.com/api/iqa/uploaddictionary.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) UploadDocument ¶
func (client *Client) UploadDocument(request *UploadDocumentRequest) (response *UploadDocumentResponse, err error)
UploadDocument invokes the iqa.UploadDocument API synchronously api document: https://help.aliyun.com/api/iqa/uploaddocument.html
func (*Client) UploadDocumentWithCallback ¶
func (client *Client) UploadDocumentWithCallback(request *UploadDocumentRequest, callback func(response *UploadDocumentResponse, err error)) <-chan int
UploadDocumentWithCallback invokes the iqa.UploadDocument API asynchronously api document: https://help.aliyun.com/api/iqa/uploaddocument.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) UploadDocumentWithChan ¶
func (client *Client) UploadDocumentWithChan(request *UploadDocumentRequest) (<-chan *UploadDocumentResponse, <-chan error)
UploadDocumentWithChan invokes the iqa.UploadDocument API asynchronously api document: https://help.aliyun.com/api/iqa/uploaddocument.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
type CreateProjectRequest ¶
type CreateProjectRequest struct { *requests.RpcRequest ProjectName string `position:"Body" name:"ProjectName"` ModelId string `position:"Body" name:"ModelId"` ProjectType string `position:"Body" name:"ProjectType"` }
CreateProjectRequest is the request struct for api CreateProject
func CreateCreateProjectRequest ¶
func CreateCreateProjectRequest() (request *CreateProjectRequest)
CreateCreateProjectRequest creates a request to invoke CreateProject API
type CreateProjectResponse ¶
type CreateProjectResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` ProjectId string `json:"ProjectId" xml:"ProjectId"` }
CreateProjectResponse is the response struct for api CreateProject
func CreateCreateProjectResponse ¶
func CreateCreateProjectResponse() (response *CreateProjectResponse)
CreateCreateProjectResponse creates a response to parse from CreateProject response
type DeleteProjectRequest ¶
type DeleteProjectRequest struct { *requests.RpcRequest ProjectId string `position:"Query" name:"ProjectId"` }
DeleteProjectRequest is the request struct for api DeleteProject
func CreateDeleteProjectRequest ¶
func CreateDeleteProjectRequest() (request *DeleteProjectRequest)
CreateDeleteProjectRequest creates a request to invoke DeleteProject API
type DeleteProjectResponse ¶
type DeleteProjectResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` }
DeleteProjectResponse is the response struct for api DeleteProject
func CreateDeleteProjectResponse ¶
func CreateDeleteProjectResponse() (response *DeleteProjectResponse)
CreateDeleteProjectResponse creates a response to parse from DeleteProject response
type DeployServiceRequest ¶
type DeployServiceRequest struct { *requests.RpcRequest ProjectId string `position:"Query" name:"ProjectId"` }
DeployServiceRequest is the request struct for api DeployService
func CreateDeployServiceRequest ¶
func CreateDeployServiceRequest() (request *DeployServiceRequest)
CreateDeployServiceRequest creates a request to invoke DeployService API
type DeployServiceResponse ¶
type DeployServiceResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` }
DeployServiceResponse is the response struct for api DeployService
func CreateDeployServiceResponse ¶
func CreateDeployServiceResponse() (response *DeployServiceResponse)
CreateDeployServiceResponse creates a response to parse from DeployService response
type DescribeProjectRequest ¶
type DescribeProjectRequest struct { *requests.RpcRequest ProjectId string `position:"Query" name:"ProjectId"` }
DescribeProjectRequest is the request struct for api DescribeProject
func CreateDescribeProjectRequest ¶
func CreateDescribeProjectRequest() (request *DescribeProjectRequest)
CreateDescribeProjectRequest creates a request to invoke DescribeProject API
type DescribeProjectResponse ¶
type DescribeProjectResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` ProjectType string `json:"ProjectType" xml:"ProjectType"` ProjectId string `json:"ProjectId" xml:"ProjectId"` ProjectName string `json:"ProjectName" xml:"ProjectName"` CreateTime int64 `json:"CreateTime" xml:"CreateTime"` DeployTime int64 `json:"DeployTime" xml:"DeployTime"` ModelId string `json:"ModelId" xml:"ModelId"` ModelName string `json:"ModelName" xml:"ModelName"` QuestionCount int `json:"QuestionCount" xml:"QuestionCount"` DataStatus string `json:"DataStatus" xml:"DataStatus"` TestServiceStatus string `json:"TestServiceStatus" xml:"TestServiceStatus"` OnlineServiceStatus string `json:"OnlineServiceStatus" xml:"OnlineServiceStatus"` DeployAvailable string `json:"DeployAvailable" xml:"DeployAvailable"` }
DescribeProjectResponse is the response struct for api DescribeProject
func CreateDescribeProjectResponse ¶
func CreateDescribeProjectResponse() (response *DescribeProjectResponse)
CreateDescribeProjectResponse creates a response to parse from DescribeProject response
type GetPredictResultRequest ¶
type GetPredictResultRequest struct { *requests.RpcRequest TopK requests.Integer `position:"Query" name:"TopK"` TraceTag string `position:"Query" name:"TraceTag"` Question string `position:"Body" name:"Question"` ProjectId string `position:"Query" name:"ProjectId"` }
GetPredictResultRequest is the request struct for api GetPredictResult
func CreateGetPredictResultRequest ¶
func CreateGetPredictResultRequest() (request *GetPredictResultRequest)
CreateGetPredictResultRequest creates a request to invoke GetPredictResult API
type GetPredictResultResponse ¶
type GetPredictResultResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` ProjectId string `json:"ProjectId" xml:"ProjectId"` Question string `json:"Question" xml:"Question"` TopK int `json:"TopK" xml:"TopK"` TraceTag string `json:"TraceTag" xml:"TraceTag"` CostTime int64 `json:"CostTime" xml:"CostTime"` Trace string `json:"Trace" xml:"Trace"` PredictResults []PredictResult `json:"PredictResults" xml:"PredictResults"` }
GetPredictResultResponse is the response struct for api GetPredictResult
func CreateGetPredictResultResponse ¶
func CreateGetPredictResultResponse() (response *GetPredictResultResponse)
CreateGetPredictResultResponse creates a response to parse from GetPredictResult response
type ListProjectsRequest ¶
type ListProjectsRequest struct { *requests.RpcRequest FilterParam string `position:"Query" name:"FilterParam"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` PageSize requests.Integer `position:"Query" name:"PageSize"` ProjectType string `position:"Query" name:"ProjectType"` }
ListProjectsRequest is the request struct for api ListProjects
func CreateListProjectsRequest ¶
func CreateListProjectsRequest() (request *ListProjectsRequest)
CreateListProjectsRequest creates a request to invoke ListProjects API
type ListProjectsResponse ¶
type ListProjectsResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` PageSize int `json:"PageSize" xml:"PageSize"` Projects []Project `json:"Projects" xml:"Projects"` }
ListProjectsResponse is the response struct for api ListProjects
func CreateListProjectsResponse ¶
func CreateListProjectsResponse() (response *ListProjectsResponse)
CreateListProjectsResponse creates a response to parse from ListProjects response
type ModifiyProjectRequest ¶
type ModifiyProjectRequest struct { *requests.RpcRequest ProjectName string `position:"Body" name:"ProjectName"` ModelId string `position:"Body" name:"ModelId"` ProjectId string `position:"Body" name:"ProjectId"` }
ModifiyProjectRequest is the request struct for api ModifiyProject
func CreateModifiyProjectRequest ¶
func CreateModifiyProjectRequest() (request *ModifiyProjectRequest)
CreateModifiyProjectRequest creates a request to invoke ModifiyProject API
type ModifiyProjectResponse ¶
type ModifiyProjectResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` ProjectId string `json:"ProjectId" xml:"ProjectId"` }
ModifiyProjectResponse is the response struct for api ModifiyProject
func CreateModifiyProjectResponse ¶
func CreateModifiyProjectResponse() (response *ModifiyProjectResponse)
CreateModifiyProjectResponse creates a response to parse from ModifiyProject response
type PredictResult ¶
type PredictResult struct { Rank int `json:"Rank" xml:"Rank"` QuestionId string `json:"QuestionId" xml:"QuestionId"` Question string `json:"Question" xml:"Question"` Score float64 `json:"Score" xml:"Score"` Answer string `json:"Answer" xml:"Answer"` }
PredictResult is a nested struct in iqa response
type PredictResults ¶
type PredictResults struct {
PredictResult []PredictResult `json:"PredictResult" xml:"PredictResult"`
}
PredictResults is a nested struct in iqa response
type Project ¶
type Project struct { ProjectType string `json:"ProjectType" xml:"ProjectType"` ProjectId string `json:"ProjectId" xml:"ProjectId"` ProjectName string `json:"ProjectName" xml:"ProjectName"` CreateTime int64 `json:"CreateTime" xml:"CreateTime"` DeployTime int64 `json:"DeployTime" xml:"DeployTime"` ModelId string `json:"ModelId" xml:"ModelId"` QuestionCount int `json:"QuestionCount" xml:"QuestionCount"` DataStatus string `json:"DataStatus" xml:"DataStatus"` TestServiceStatus string `json:"TestServiceStatus" xml:"TestServiceStatus"` OnlineServiceStatus string `json:"OnlineServiceStatus" xml:"OnlineServiceStatus"` DeployAvailable string `json:"DeployAvailable" xml:"DeployAvailable"` ModelName string `json:"ModelName" xml:"ModelName"` }
Project is a nested struct in iqa response
type Projects ¶
type Projects struct {
Project []Project `json:"Project" xml:"Project"`
}
Projects is a nested struct in iqa response
type UploadDictionaryRequest ¶
type UploadDictionaryRequest struct { *requests.RpcRequest DictionaryFileUrl string `position:"Body" name:"DictionaryFileUrl"` ProjectId string `position:"Body" name:"ProjectId"` DictionaryData string `position:"Body" name:"DictionaryData"` }
UploadDictionaryRequest is the request struct for api UploadDictionary
func CreateUploadDictionaryRequest ¶
func CreateUploadDictionaryRequest() (request *UploadDictionaryRequest)
CreateUploadDictionaryRequest creates a request to invoke UploadDictionary API
type UploadDictionaryResponse ¶
type UploadDictionaryResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` ProjectId string `json:"ProjectId" xml:"ProjectId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` FileDataCount int `json:"FileDataCount" xml:"FileDataCount"` JsonDataCount int `json:"JsonDataCount" xml:"JsonDataCount"` }
UploadDictionaryResponse is the response struct for api UploadDictionary
func CreateUploadDictionaryResponse ¶
func CreateUploadDictionaryResponse() (response *UploadDictionaryResponse)
CreateUploadDictionaryResponse creates a response to parse from UploadDictionary response
type UploadDocumentRequest ¶
type UploadDocumentRequest struct { *requests.RpcRequest DocumentData string `position:"Body" name:"DocumentData"` DocumentFileUrl string `position:"Body" name:"DocumentFileUrl"` ProjectId string `position:"Body" name:"ProjectId"` }
UploadDocumentRequest is the request struct for api UploadDocument
func CreateUploadDocumentRequest ¶
func CreateUploadDocumentRequest() (request *UploadDocumentRequest)
CreateUploadDocumentRequest creates a request to invoke UploadDocument API
type UploadDocumentResponse ¶
type UploadDocumentResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` ProjectId string `json:"ProjectId" xml:"ProjectId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` FileDataCount int `json:"FileDataCount" xml:"FileDataCount"` JsonDataCount int `json:"JsonDataCount" xml:"JsonDataCount"` }
UploadDocumentResponse is the response struct for api UploadDocument
func CreateUploadDocumentResponse ¶
func CreateUploadDocumentResponse() (response *UploadDocumentResponse)
CreateUploadDocumentResponse creates a response to parse from UploadDocument response