documentautoml

package
v1.62.665 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

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

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

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) CreateModelAsyncPredict

func (client *Client) CreateModelAsyncPredict(request *CreateModelAsyncPredictRequest) (response *CreateModelAsyncPredictResponse, err error)

CreateModelAsyncPredict invokes the documentautoml.CreateModelAsyncPredict API synchronously

func (*Client) CreateModelAsyncPredictWithCallback

func (client *Client) CreateModelAsyncPredictWithCallback(request *CreateModelAsyncPredictRequest, callback func(response *CreateModelAsyncPredictResponse, err error)) <-chan int

CreateModelAsyncPredictWithCallback invokes the documentautoml.CreateModelAsyncPredict API asynchronously

func (*Client) CreateModelAsyncPredictWithChan

func (client *Client) CreateModelAsyncPredictWithChan(request *CreateModelAsyncPredictRequest) (<-chan *CreateModelAsyncPredictResponse, <-chan error)

CreateModelAsyncPredictWithChan invokes the documentautoml.CreateModelAsyncPredict API asynchronously

func (*Client) GetModelAsyncPredict

func (client *Client) GetModelAsyncPredict(request *GetModelAsyncPredictRequest) (response *GetModelAsyncPredictResponse, err error)

GetModelAsyncPredict invokes the documentautoml.GetModelAsyncPredict API synchronously

func (*Client) GetModelAsyncPredictWithCallback

func (client *Client) GetModelAsyncPredictWithCallback(request *GetModelAsyncPredictRequest, callback func(response *GetModelAsyncPredictResponse, err error)) <-chan int

GetModelAsyncPredictWithCallback invokes the documentautoml.GetModelAsyncPredict API asynchronously

func (*Client) GetModelAsyncPredictWithChan

func (client *Client) GetModelAsyncPredictWithChan(request *GetModelAsyncPredictRequest) (<-chan *GetModelAsyncPredictResponse, <-chan error)

GetModelAsyncPredictWithChan invokes the documentautoml.GetModelAsyncPredict API asynchronously

func (*Client) PredictClassifierModel

func (client *Client) PredictClassifierModel(request *PredictClassifierModelRequest) (response *PredictClassifierModelResponse, err error)

PredictClassifierModel invokes the documentautoml.PredictClassifierModel API synchronously

func (*Client) PredictClassifierModelWithCallback

func (client *Client) PredictClassifierModelWithCallback(request *PredictClassifierModelRequest, callback func(response *PredictClassifierModelResponse, err error)) <-chan int

PredictClassifierModelWithCallback invokes the documentautoml.PredictClassifierModel API asynchronously

func (*Client) PredictClassifierModelWithChan

func (client *Client) PredictClassifierModelWithChan(request *PredictClassifierModelRequest) (<-chan *PredictClassifierModelResponse, <-chan error)

PredictClassifierModelWithChan invokes the documentautoml.PredictClassifierModel API asynchronously

func (*Client) PredictModel

func (client *Client) PredictModel(request *PredictModelRequest) (response *PredictModelResponse, err error)

PredictModel invokes the documentautoml.PredictModel API synchronously

func (*Client) PredictModelWithCallback

func (client *Client) PredictModelWithCallback(request *PredictModelRequest, callback func(response *PredictModelResponse, err error)) <-chan int

PredictModelWithCallback invokes the documentautoml.PredictModel API asynchronously

func (*Client) PredictModelWithChan

func (client *Client) PredictModelWithChan(request *PredictModelRequest) (<-chan *PredictModelResponse, <-chan error)

PredictModelWithChan invokes the documentautoml.PredictModel API asynchronously

func (*Client) PredictTemplateModel

func (client *Client) PredictTemplateModel(request *PredictTemplateModelRequest) (response *PredictTemplateModelResponse, err error)

PredictTemplateModel invokes the documentautoml.PredictTemplateModel API synchronously

func (*Client) PredictTemplateModelWithCallback

func (client *Client) PredictTemplateModelWithCallback(request *PredictTemplateModelRequest, callback func(response *PredictTemplateModelResponse, err error)) <-chan int

PredictTemplateModelWithCallback invokes the documentautoml.PredictTemplateModel API asynchronously

func (*Client) PredictTemplateModelWithChan

func (client *Client) PredictTemplateModelWithChan(request *PredictTemplateModelRequest) (<-chan *PredictTemplateModelResponse, <-chan error)

PredictTemplateModelWithChan invokes the documentautoml.PredictTemplateModel API asynchronously

type CreateModelAsyncPredictRequest

type CreateModelAsyncPredictRequest struct {
	*requests.RpcRequest
	Body           string           `position:"Body" name:"body"`
	BinaryToText   requests.Boolean `position:"Query" name:"BinaryToText"`
	Content        string           `position:"Query" name:"Content"`
	ServiceName    string           `position:"Query" name:"ServiceName"`
	Product        string           `position:"Query" name:"Product"`
	ModelId        requests.Integer `position:"Query" name:"ModelId"`
	ServiceVersion string           `position:"Query" name:"ServiceVersion"`
	ModelVersion   string           `position:"Query" name:"ModelVersion"`
}

CreateModelAsyncPredictRequest is the request struct for api CreateModelAsyncPredict

func CreateCreateModelAsyncPredictRequest

func CreateCreateModelAsyncPredictRequest() (request *CreateModelAsyncPredictRequest)

CreateCreateModelAsyncPredictRequest creates a request to invoke CreateModelAsyncPredict API

type CreateModelAsyncPredictResponse

type CreateModelAsyncPredictResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Code      int    `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      string `json:"Data" xml:"Data"`
}

CreateModelAsyncPredictResponse is the response struct for api CreateModelAsyncPredict

func CreateCreateModelAsyncPredictResponse

func CreateCreateModelAsyncPredictResponse() (response *CreateModelAsyncPredictResponse)

CreateCreateModelAsyncPredictResponse creates a response to parse from CreateModelAsyncPredict response

type GetModelAsyncPredictRequest

type GetModelAsyncPredictRequest struct {
	*requests.RpcRequest
	AsyncPredictId requests.Integer `position:"Query" name:"AsyncPredictId"`
	Product        string           `position:"Query" name:"Product"`
}

GetModelAsyncPredictRequest is the request struct for api GetModelAsyncPredict

func CreateGetModelAsyncPredictRequest

func CreateGetModelAsyncPredictRequest() (request *GetModelAsyncPredictRequest)

CreateGetModelAsyncPredictRequest creates a request to invoke GetModelAsyncPredict API

type GetModelAsyncPredictResponse

type GetModelAsyncPredictResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Code      int    `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      string `json:"Data" xml:"Data"`
}

GetModelAsyncPredictResponse is the response struct for api GetModelAsyncPredict

func CreateGetModelAsyncPredictResponse

func CreateGetModelAsyncPredictResponse() (response *GetModelAsyncPredictResponse)

CreateGetModelAsyncPredictResponse creates a response to parse from GetModelAsyncPredict response

type PredictClassifierModelRequest

type PredictClassifierModelRequest struct {
	*requests.RpcRequest
	Body           string           `position:"Body" name:"body"`
	Content        string           `position:"Query" name:"Content"`
	ClassifierId   requests.Integer `position:"Query" name:"ClassifierId"`
	AutoPrediction requests.Boolean `position:"Query" name:"AutoPrediction"`
}

PredictClassifierModelRequest is the request struct for api PredictClassifierModel

func CreatePredictClassifierModelRequest

func CreatePredictClassifierModelRequest() (request *PredictClassifierModelRequest)

CreatePredictClassifierModelRequest creates a request to invoke PredictClassifierModel API

type PredictClassifierModelResponse

type PredictClassifierModelResponse struct {
	*responses.BaseResponse
	RequestId string                 `json:"RequestId" xml:"RequestId"`
	Code      int                    `json:"Code" xml:"Code"`
	Data      map[string]interface{} `json:"Data" xml:"Data"`
	Message   string                 `json:"Message" xml:"Message"`
}

PredictClassifierModelResponse is the response struct for api PredictClassifierModel

func CreatePredictClassifierModelResponse

func CreatePredictClassifierModelResponse() (response *PredictClassifierModelResponse)

CreatePredictClassifierModelResponse creates a response to parse from PredictClassifierModel response

type PredictModelRequest

type PredictModelRequest struct {
	*requests.RpcRequest
	Body         string           `position:"Body" name:"body"`
	Content      string           `position:"Query" name:"Content"`
	BinaryToText requests.Boolean `position:"Query" name:"BinaryToText"`
	Product      string           `position:"Query" name:"Product"`
	ModelId      requests.Integer `position:"Query" name:"ModelId"`
	ModelVersion string           `position:"Query" name:"ModelVersion"`
}

PredictModelRequest is the request struct for api PredictModel

func CreatePredictModelRequest

func CreatePredictModelRequest() (request *PredictModelRequest)

CreatePredictModelRequest creates a request to invoke PredictModel API

type PredictModelResponse

type PredictModelResponse struct {
	*responses.BaseResponse
	RequestId string                 `json:"RequestId" xml:"RequestId"`
	Code      int                    `json:"Code" xml:"Code"`
	Message   string                 `json:"Message" xml:"Message"`
	Data      map[string]interface{} `json:"Data" xml:"Data"`
}

PredictModelResponse is the response struct for api PredictModel

func CreatePredictModelResponse

func CreatePredictModelResponse() (response *PredictModelResponse)

CreatePredictModelResponse creates a response to parse from PredictModel response

type PredictTemplateModelRequest

type PredictTemplateModelRequest struct {
	*requests.RpcRequest
	Body         string           `position:"Body" name:"body"`
	Content      string           `position:"Query" name:"Content"`
	BinaryToText requests.Boolean `position:"Query" name:"BinaryToText"`
	TaskId       requests.Integer `position:"Query" name:"TaskId"`
	Product      string           `position:"Query" name:"Product"`
}

PredictTemplateModelRequest is the request struct for api PredictTemplateModel

func CreatePredictTemplateModelRequest

func CreatePredictTemplateModelRequest() (request *PredictTemplateModelRequest)

CreatePredictTemplateModelRequest creates a request to invoke PredictTemplateModel API

type PredictTemplateModelResponse

type PredictTemplateModelResponse struct {
	*responses.BaseResponse
	RequestId string                 `json:"RequestId" xml:"RequestId"`
	Data      map[string]interface{} `json:"Data" xml:"Data"`
	Message   string                 `json:"Message" xml:"Message"`
	Code      string                 `json:"Code" xml:"Code"`
}

PredictTemplateModelResponse is the response struct for api PredictTemplateModel

func CreatePredictTemplateModelResponse

func CreatePredictTemplateModelResponse() (response *PredictTemplateModelResponse)

CreatePredictTemplateModelResponse creates a response to parse from PredictTemplateModel response

Jump to

Keyboard shortcuts

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