alimt

package
v1.62.207 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointMap map[string]string

EndpointMap Endpoint Data

View Source
var EndpointType = "regional"

EndpointType regional or central

Functions

func GetEndpointMap added in v1.61.14

func GetEndpointMap() map[string]string

GetEndpointMap Get Endpoint Data Map

func GetEndpointType added in v1.61.14

func GetEndpointType() string

GetEndpointType Get Endpoint Type Value

func SetClientProperty added in v1.61.14

func SetClientProperty(client *Client, propertyName string, propertyValue interface{})

SetClientProperty Set Property by Reflect

func SetEndpointDataToClient added in v1.61.14

func SetEndpointDataToClient(client *Client)

SetEndpointDataToClient Set EndpointMap and ENdpointType

Types

type CertificateTranslateItemDTO added in v1.61.46

type CertificateTranslateItemDTO struct {
	KeyTranslation   string `json:"KeyTranslation" xml:"KeyTranslation"`
	Key              string `json:"Key" xml:"Key"`
	Value            string `json:"Value" xml:"Value"`
	ValueTranslation string `json:"ValueTranslation" xml:"ValueTranslation"`
}

CertificateTranslateItemDTO is a nested struct in alimt response

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 added in v1.61.14

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 added in v1.61.14

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) CreateDocTranslateTask added in v1.61.14

func (client *Client) CreateDocTranslateTask(request *CreateDocTranslateTaskRequest) (response *CreateDocTranslateTaskResponse, err error)

CreateDocTranslateTask invokes the alimt.CreateDocTranslateTask API synchronously

func (*Client) CreateDocTranslateTaskWithCallback added in v1.61.14

func (client *Client) CreateDocTranslateTaskWithCallback(request *CreateDocTranslateTaskRequest, callback func(response *CreateDocTranslateTaskResponse, err error)) <-chan int

CreateDocTranslateTaskWithCallback invokes the alimt.CreateDocTranslateTask API asynchronously

func (*Client) CreateDocTranslateTaskWithChan added in v1.61.14

func (client *Client) CreateDocTranslateTaskWithChan(request *CreateDocTranslateTaskRequest) (<-chan *CreateDocTranslateTaskResponse, <-chan error)

CreateDocTranslateTaskWithChan invokes the alimt.CreateDocTranslateTask API asynchronously

func (*Client) CreateImageTranslateTask added in v1.61.578

func (client *Client) CreateImageTranslateTask(request *CreateImageTranslateTaskRequest) (response *CreateImageTranslateTaskResponse, err error)

CreateImageTranslateTask invokes the alimt.CreateImageTranslateTask API synchronously

func (*Client) CreateImageTranslateTaskWithCallback added in v1.61.578

func (client *Client) CreateImageTranslateTaskWithCallback(request *CreateImageTranslateTaskRequest, callback func(response *CreateImageTranslateTaskResponse, err error)) <-chan int

CreateImageTranslateTaskWithCallback invokes the alimt.CreateImageTranslateTask API asynchronously

func (*Client) CreateImageTranslateTaskWithChan added in v1.61.578

func (client *Client) CreateImageTranslateTaskWithChan(request *CreateImageTranslateTaskRequest) (<-chan *CreateImageTranslateTaskResponse, <-chan error)

CreateImageTranslateTaskWithChan invokes the alimt.CreateImageTranslateTask API asynchronously

func (*Client) GetBatchTranslate added in v1.61.883

func (client *Client) GetBatchTranslate(request *GetBatchTranslateRequest) (response *GetBatchTranslateResponse, err error)

GetBatchTranslate invokes the alimt.GetBatchTranslate API synchronously

func (*Client) GetBatchTranslateWithCallback added in v1.61.883

func (client *Client) GetBatchTranslateWithCallback(request *GetBatchTranslateRequest, callback func(response *GetBatchTranslateResponse, err error)) <-chan int

GetBatchTranslateWithCallback invokes the alimt.GetBatchTranslate API asynchronously

func (*Client) GetBatchTranslateWithChan added in v1.61.883

func (client *Client) GetBatchTranslateWithChan(request *GetBatchTranslateRequest) (<-chan *GetBatchTranslateResponse, <-chan error)

GetBatchTranslateWithChan invokes the alimt.GetBatchTranslate API asynchronously

func (*Client) GetDetectLanguage added in v1.61.159

func (client *Client) GetDetectLanguage(request *GetDetectLanguageRequest) (response *GetDetectLanguageResponse, err error)

GetDetectLanguage invokes the alimt.GetDetectLanguage API synchronously

func (*Client) GetDetectLanguageWithCallback added in v1.61.159

func (client *Client) GetDetectLanguageWithCallback(request *GetDetectLanguageRequest, callback func(response *GetDetectLanguageResponse, err error)) <-chan int

GetDetectLanguageWithCallback invokes the alimt.GetDetectLanguage API asynchronously

func (*Client) GetDetectLanguageWithChan added in v1.61.159

func (client *Client) GetDetectLanguageWithChan(request *GetDetectLanguageRequest) (<-chan *GetDetectLanguageResponse, <-chan error)

GetDetectLanguageWithChan invokes the alimt.GetDetectLanguage API asynchronously

func (*Client) GetDocTranslateTask added in v1.61.14

func (client *Client) GetDocTranslateTask(request *GetDocTranslateTaskRequest) (response *GetDocTranslateTaskResponse, err error)

GetDocTranslateTask invokes the alimt.GetDocTranslateTask API synchronously

func (*Client) GetDocTranslateTaskWithCallback added in v1.61.14

func (client *Client) GetDocTranslateTaskWithCallback(request *GetDocTranslateTaskRequest, callback func(response *GetDocTranslateTaskResponse, err error)) <-chan int

GetDocTranslateTaskWithCallback invokes the alimt.GetDocTranslateTask API asynchronously

func (*Client) GetDocTranslateTaskWithChan added in v1.61.14

func (client *Client) GetDocTranslateTaskWithChan(request *GetDocTranslateTaskRequest) (<-chan *GetDocTranslateTaskResponse, <-chan error)

GetDocTranslateTaskWithChan invokes the alimt.GetDocTranslateTask API asynchronously

func (*Client) GetImageDiagnose added in v1.61.385

func (client *Client) GetImageDiagnose(request *GetImageDiagnoseRequest) (response *GetImageDiagnoseResponse, err error)

GetImageDiagnose invokes the alimt.GetImageDiagnose API synchronously

func (*Client) GetImageDiagnoseWithCallback added in v1.61.385

func (client *Client) GetImageDiagnoseWithCallback(request *GetImageDiagnoseRequest, callback func(response *GetImageDiagnoseResponse, err error)) <-chan int

GetImageDiagnoseWithCallback invokes the alimt.GetImageDiagnose API asynchronously

func (*Client) GetImageDiagnoseWithChan added in v1.61.385

func (client *Client) GetImageDiagnoseWithChan(request *GetImageDiagnoseRequest) (<-chan *GetImageDiagnoseResponse, <-chan error)

GetImageDiagnoseWithChan invokes the alimt.GetImageDiagnose API asynchronously

func (*Client) GetImageTranslate added in v1.61.385

func (client *Client) GetImageTranslate(request *GetImageTranslateRequest) (response *GetImageTranslateResponse, err error)

GetImageTranslate invokes the alimt.GetImageTranslate API synchronously

func (*Client) GetImageTranslateTask added in v1.61.578

func (client *Client) GetImageTranslateTask(request *GetImageTranslateTaskRequest) (response *GetImageTranslateTaskResponse, err error)

GetImageTranslateTask invokes the alimt.GetImageTranslateTask API synchronously

func (*Client) GetImageTranslateTaskWithCallback added in v1.61.578

func (client *Client) GetImageTranslateTaskWithCallback(request *GetImageTranslateTaskRequest, callback func(response *GetImageTranslateTaskResponse, err error)) <-chan int

GetImageTranslateTaskWithCallback invokes the alimt.GetImageTranslateTask API asynchronously

func (*Client) GetImageTranslateTaskWithChan added in v1.61.578

func (client *Client) GetImageTranslateTaskWithChan(request *GetImageTranslateTaskRequest) (<-chan *GetImageTranslateTaskResponse, <-chan error)

GetImageTranslateTaskWithChan invokes the alimt.GetImageTranslateTask API asynchronously

func (*Client) GetImageTranslateWithCallback added in v1.61.385

func (client *Client) GetImageTranslateWithCallback(request *GetImageTranslateRequest, callback func(response *GetImageTranslateResponse, err error)) <-chan int

GetImageTranslateWithCallback invokes the alimt.GetImageTranslate API asynchronously

func (*Client) GetImageTranslateWithChan added in v1.61.385

func (client *Client) GetImageTranslateWithChan(request *GetImageTranslateRequest) (<-chan *GetImageTranslateResponse, <-chan error)

GetImageTranslateWithChan invokes the alimt.GetImageTranslate API asynchronously

func (*Client) GetTitleDiagnose added in v1.61.385

func (client *Client) GetTitleDiagnose(request *GetTitleDiagnoseRequest) (response *GetTitleDiagnoseResponse, err error)

GetTitleDiagnose invokes the alimt.GetTitleDiagnose API synchronously

func (*Client) GetTitleDiagnoseWithCallback added in v1.61.385

func (client *Client) GetTitleDiagnoseWithCallback(request *GetTitleDiagnoseRequest, callback func(response *GetTitleDiagnoseResponse, err error)) <-chan int

GetTitleDiagnoseWithCallback invokes the alimt.GetTitleDiagnose API asynchronously

func (*Client) GetTitleDiagnoseWithChan added in v1.61.385

func (client *Client) GetTitleDiagnoseWithChan(request *GetTitleDiagnoseRequest) (<-chan *GetTitleDiagnoseResponse, <-chan error)

GetTitleDiagnoseWithChan invokes the alimt.GetTitleDiagnose API asynchronously

func (*Client) GetTitleGenerate added in v1.61.385

func (client *Client) GetTitleGenerate(request *GetTitleGenerateRequest) (response *GetTitleGenerateResponse, err error)

GetTitleGenerate invokes the alimt.GetTitleGenerate API synchronously

func (*Client) GetTitleGenerateWithCallback added in v1.61.385

func (client *Client) GetTitleGenerateWithCallback(request *GetTitleGenerateRequest, callback func(response *GetTitleGenerateResponse, err error)) <-chan int

GetTitleGenerateWithCallback invokes the alimt.GetTitleGenerate API asynchronously

func (*Client) GetTitleGenerateWithChan added in v1.61.385

func (client *Client) GetTitleGenerateWithChan(request *GetTitleGenerateRequest) (<-chan *GetTitleGenerateResponse, <-chan error)

GetTitleGenerateWithChan invokes the alimt.GetTitleGenerate API asynchronously

func (*Client) GetTitleIntelligence added in v1.61.500

func (client *Client) GetTitleIntelligence(request *GetTitleIntelligenceRequest) (response *GetTitleIntelligenceResponse, err error)

GetTitleIntelligence invokes the alimt.GetTitleIntelligence API synchronously

func (*Client) GetTitleIntelligenceWithCallback added in v1.61.500

func (client *Client) GetTitleIntelligenceWithCallback(request *GetTitleIntelligenceRequest, callback func(response *GetTitleIntelligenceResponse, err error)) <-chan int

GetTitleIntelligenceWithCallback invokes the alimt.GetTitleIntelligence API asynchronously

func (*Client) GetTitleIntelligenceWithChan added in v1.61.500

func (client *Client) GetTitleIntelligenceWithChan(request *GetTitleIntelligenceRequest) (<-chan *GetTitleIntelligenceResponse, <-chan error)

GetTitleIntelligenceWithChan invokes the alimt.GetTitleIntelligence API asynchronously

func (*Client) GetTranslateReport added in v1.61.1326

func (client *Client) GetTranslateReport(request *GetTranslateReportRequest) (response *GetTranslateReportResponse, err error)

GetTranslateReport invokes the alimt.GetTranslateReport API synchronously

func (*Client) GetTranslateReportWithCallback added in v1.61.1326

func (client *Client) GetTranslateReportWithCallback(request *GetTranslateReportRequest, callback func(response *GetTranslateReportResponse, err error)) <-chan int

GetTranslateReportWithCallback invokes the alimt.GetTranslateReport API asynchronously

func (*Client) GetTranslateReportWithChan added in v1.61.1326

func (client *Client) GetTranslateReportWithChan(request *GetTranslateReportRequest) (<-chan *GetTranslateReportResponse, <-chan error)

GetTranslateReportWithChan invokes the alimt.GetTranslateReport API asynchronously

func (*Client) GetUser added in v1.61.1326

func (client *Client) GetUser(request *GetUserRequest) (response *GetUserResponse, err error)

GetUser invokes the alimt.GetUser API synchronously

func (*Client) GetUserWithCallback added in v1.61.1326

func (client *Client) GetUserWithCallback(request *GetUserRequest, callback func(response *GetUserResponse, err error)) <-chan int

GetUserWithCallback invokes the alimt.GetUser API asynchronously

func (*Client) GetUserWithChan added in v1.61.1326

func (client *Client) GetUserWithChan(request *GetUserRequest) (<-chan *GetUserResponse, <-chan error)

GetUserWithChan invokes the alimt.GetUser API asynchronously

func (*Client) OpenAlimtService added in v1.61.676

func (client *Client) OpenAlimtService(request *OpenAlimtServiceRequest) (response *OpenAlimtServiceResponse, err error)

OpenAlimtService invokes the alimt.OpenAlimtService API synchronously

func (*Client) OpenAlimtServiceWithCallback added in v1.61.676

func (client *Client) OpenAlimtServiceWithCallback(request *OpenAlimtServiceRequest, callback func(response *OpenAlimtServiceResponse, err error)) <-chan int

OpenAlimtServiceWithCallback invokes the alimt.OpenAlimtService API asynchronously

func (*Client) OpenAlimtServiceWithChan added in v1.61.676

func (client *Client) OpenAlimtServiceWithChan(request *OpenAlimtServiceRequest) (<-chan *OpenAlimtServiceResponse, <-chan error)

OpenAlimtServiceWithChan invokes the alimt.OpenAlimtService API asynchronously

func (*Client) Translate added in v1.61.14

func (client *Client) Translate(request *TranslateRequest) (response *TranslateResponse, err error)

Translate invokes the alimt.Translate API synchronously

func (*Client) TranslateCertificate added in v1.61.46

func (client *Client) TranslateCertificate(request *TranslateCertificateRequest) (response *TranslateCertificateResponse, err error)

TranslateCertificate invokes the alimt.TranslateCertificate API synchronously

func (*Client) TranslateCertificateWithCallback added in v1.61.46

func (client *Client) TranslateCertificateWithCallback(request *TranslateCertificateRequest, callback func(response *TranslateCertificateResponse, err error)) <-chan int

TranslateCertificateWithCallback invokes the alimt.TranslateCertificate API asynchronously

func (*Client) TranslateCertificateWithChan added in v1.61.46

func (client *Client) TranslateCertificateWithChan(request *TranslateCertificateRequest) (<-chan *TranslateCertificateResponse, <-chan error)

TranslateCertificateWithChan invokes the alimt.TranslateCertificate API asynchronously

func (*Client) TranslateECommerce

func (client *Client) TranslateECommerce(request *TranslateECommerceRequest) (response *TranslateECommerceResponse, err error)

TranslateECommerce invokes the alimt.TranslateECommerce API synchronously

func (*Client) TranslateECommerceWithCallback

func (client *Client) TranslateECommerceWithCallback(request *TranslateECommerceRequest, callback func(response *TranslateECommerceResponse, err error)) <-chan int

TranslateECommerceWithCallback invokes the alimt.TranslateECommerce API asynchronously

func (*Client) TranslateECommerceWithChan

func (client *Client) TranslateECommerceWithChan(request *TranslateECommerceRequest) (<-chan *TranslateECommerceResponse, <-chan error)

TranslateECommerceWithChan invokes the alimt.TranslateECommerce API asynchronously

func (*Client) TranslateGeneral

func (client *Client) TranslateGeneral(request *TranslateGeneralRequest) (response *TranslateGeneralResponse, err error)

TranslateGeneral invokes the alimt.TranslateGeneral API synchronously

func (*Client) TranslateGeneralWithCallback

func (client *Client) TranslateGeneralWithCallback(request *TranslateGeneralRequest, callback func(response *TranslateGeneralResponse, err error)) <-chan int

TranslateGeneralWithCallback invokes the alimt.TranslateGeneral API asynchronously

func (*Client) TranslateGeneralWithChan

func (client *Client) TranslateGeneralWithChan(request *TranslateGeneralRequest) (<-chan *TranslateGeneralResponse, <-chan error)

TranslateGeneralWithChan invokes the alimt.TranslateGeneral API asynchronously

func (*Client) TranslateImage added in v1.61.1326

func (client *Client) TranslateImage(request *TranslateImageRequest) (response *TranslateImageResponse, err error)

TranslateImage invokes the alimt.TranslateImage API synchronously

func (*Client) TranslateImageWithCallback added in v1.61.1326

func (client *Client) TranslateImageWithCallback(request *TranslateImageRequest, callback func(response *TranslateImageResponse, err error)) <-chan int

TranslateImageWithCallback invokes the alimt.TranslateImage API asynchronously

func (*Client) TranslateImageWithChan added in v1.61.1326

func (client *Client) TranslateImageWithChan(request *TranslateImageRequest) (<-chan *TranslateImageResponse, <-chan error)

TranslateImageWithChan invokes the alimt.TranslateImage API asynchronously

func (*Client) TranslateWithCallback added in v1.61.14

func (client *Client) TranslateWithCallback(request *TranslateRequest, callback func(response *TranslateResponse, err error)) <-chan int

TranslateWithCallback invokes the alimt.Translate API asynchronously

func (*Client) TranslateWithChan added in v1.61.14

func (client *Client) TranslateWithChan(request *TranslateRequest) (<-chan *TranslateResponse, <-chan error)

TranslateWithChan invokes the alimt.Translate API asynchronously

type CreateDocTranslateTaskRequest added in v1.61.14

type CreateDocTranslateTaskRequest struct {
	*requests.RpcRequest
	SourceLanguage string `position:"Body" name:"SourceLanguage"`
	ClientToken    string `position:"Body" name:"ClientToken"`
	Scene          string `position:"Body" name:"Scene"`
	FileUrl        string `position:"Body" name:"FileUrl"`
	TargetLanguage string `position:"Body" name:"TargetLanguage"`
	CallbackUrl    string `position:"Body" name:"CallbackUrl"`
}

CreateDocTranslateTaskRequest is the request struct for api CreateDocTranslateTask

func CreateCreateDocTranslateTaskRequest added in v1.61.14

func CreateCreateDocTranslateTaskRequest() (request *CreateDocTranslateTaskRequest)

CreateCreateDocTranslateTaskRequest creates a request to invoke CreateDocTranslateTask API

type CreateDocTranslateTaskResponse added in v1.61.14

type CreateDocTranslateTaskResponse struct {
	*responses.BaseResponse
	Status    string `json:"Status" xml:"Status"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	TaskId    string `json:"TaskId" xml:"TaskId"`
}

CreateDocTranslateTaskResponse is the response struct for api CreateDocTranslateTask

func CreateCreateDocTranslateTaskResponse added in v1.61.14

func CreateCreateDocTranslateTaskResponse() (response *CreateDocTranslateTaskResponse)

CreateCreateDocTranslateTaskResponse creates a response to parse from CreateDocTranslateTask response

type CreateImageTranslateTaskRequest added in v1.61.578

type CreateImageTranslateTaskRequest struct {
	*requests.RpcRequest
	SourceLanguage string `position:"Body" name:"SourceLanguage"`
	ClientToken    string `position:"Body" name:"ClientToken"`
	UrlList        string `position:"Body" name:"UrlList"`
	Extra          string `position:"Body" name:"Extra"`
	TargetLanguage string `position:"Body" name:"TargetLanguage"`
}

CreateImageTranslateTaskRequest is the request struct for api CreateImageTranslateTask

func CreateCreateImageTranslateTaskRequest added in v1.61.578

func CreateCreateImageTranslateTaskRequest() (request *CreateImageTranslateTaskRequest)

CreateCreateImageTranslateTaskRequest creates a request to invoke CreateImageTranslateTask API

type CreateImageTranslateTaskResponse added in v1.61.578

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

CreateImageTranslateTaskResponse is the response struct for api CreateImageTranslateTask

func CreateCreateImageTranslateTaskResponse added in v1.61.578

func CreateCreateImageTranslateTaskResponse() (response *CreateImageTranslateTaskResponse)

CreateCreateImageTranslateTaskResponse creates a response to parse from CreateImageTranslateTask response

type Data

type Data struct {
	Translated              string                        `json:"Translated" xml:"Translated"`
	WordSpelledCorrectError string                        `json:"WordSpelledCorrectError" xml:"WordSpelledCorrectError"`
	ContainCoreClasses      string                        `json:"ContainCoreClasses" xml:"ContainCoreClasses"`
	OverLengthLimit         string                        `json:"OverLengthLimit" xml:"OverLengthLimit"`
	Titles                  string                        `json:"Titles" xml:"Titles"`
	Language                string                        `json:"Language" xml:"Language"`
	DuplicateWords          string                        `json:"DuplicateWords" xml:"DuplicateWords"`
	NoFirstUppercaseList    string                        `json:"NoFirstUppercaseList" xml:"NoFirstUppercaseList"`
	ImageData               string                        `json:"ImageData" xml:"ImageData"`
	AllUppercaseWords       string                        `json:"AllUppercaseWords" xml:"AllUppercaseWords"`
	Url                     string                        `json:"Url" xml:"Url"`
	TemplateJson            string                        `json:"TemplateJson" xml:"TemplateJson"`
	TaskId                  string                        `json:"TaskId" xml:"TaskId"`
	LanguageQualityScore    string                        `json:"LanguageQualityScore" xml:"LanguageQualityScore"`
	InPaintingUrl           string                        `json:"InPaintingUrl" xml:"InPaintingUrl"`
	FinalImageUrl           string                        `json:"FinalImageUrl" xml:"FinalImageUrl"`
	PictureEditor           string                        `json:"PictureEditor" xml:"PictureEditor"`
	Orc                     string                        `json:"Orc" xml:"Orc"`
	WordCount               string                        `json:"WordCount" xml:"WordCount"`
	TotalScore              string                        `json:"TotalScore" xml:"TotalScore"`
	DisableWords            string                        `json:"DisableWords" xml:"DisableWords"`
	TranslatedValues        []CertificateTranslateItemDTO `json:"TranslatedValues" xml:"TranslatedValues"`
}

Data is a nested struct in alimt response

type GetBatchTranslateRequest added in v1.61.883

type GetBatchTranslateRequest struct {
	*requests.RpcRequest
	SourceLanguage string `position:"Body" name:"SourceLanguage"`
	SourceText     string `position:"Body" name:"SourceText"`
	FormatType     string `position:"Body" name:"FormatType"`
	ApiType        string `position:"Body" name:"ApiType"`
	Scene          string `position:"Body" name:"Scene"`
	TargetLanguage string `position:"Body" name:"TargetLanguage"`
}

GetBatchTranslateRequest is the request struct for api GetBatchTranslate

func CreateGetBatchTranslateRequest added in v1.61.883

func CreateGetBatchTranslateRequest() (request *GetBatchTranslateRequest)

CreateGetBatchTranslateRequest creates a request to invoke GetBatchTranslate API

type GetBatchTranslateResponse added in v1.61.883

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

GetBatchTranslateResponse is the response struct for api GetBatchTranslate

func CreateGetBatchTranslateResponse added in v1.61.883

func CreateGetBatchTranslateResponse() (response *GetBatchTranslateResponse)

CreateGetBatchTranslateResponse creates a response to parse from GetBatchTranslate response

type GetDetectLanguageRequest added in v1.61.159

type GetDetectLanguageRequest struct {
	*requests.RpcRequest
	SourceText string `position:"Body" name:"SourceText"`
}

GetDetectLanguageRequest is the request struct for api GetDetectLanguage

func CreateGetDetectLanguageRequest added in v1.61.159

func CreateGetDetectLanguageRequest() (request *GetDetectLanguageRequest)

CreateGetDetectLanguageRequest creates a request to invoke GetDetectLanguage API

type GetDetectLanguageResponse added in v1.61.159

type GetDetectLanguageResponse struct {
	*responses.BaseResponse
	DetectedLanguage string `json:"DetectedLanguage" xml:"DetectedLanguage"`
	RequestId        string `json:"RequestId" xml:"RequestId"`
}

GetDetectLanguageResponse is the response struct for api GetDetectLanguage

func CreateGetDetectLanguageResponse added in v1.61.159

func CreateGetDetectLanguageResponse() (response *GetDetectLanguageResponse)

CreateGetDetectLanguageResponse creates a response to parse from GetDetectLanguage response

type GetDocTranslateTaskRequest added in v1.61.14

type GetDocTranslateTaskRequest struct {
	*requests.RpcRequest
	TaskId string `position:"Query" name:"TaskId"`
}

GetDocTranslateTaskRequest is the request struct for api GetDocTranslateTask

func CreateGetDocTranslateTaskRequest added in v1.61.14

func CreateGetDocTranslateTaskRequest() (request *GetDocTranslateTaskRequest)

CreateGetDocTranslateTaskRequest creates a request to invoke GetDocTranslateTask API

type GetDocTranslateTaskResponse added in v1.61.14

type GetDocTranslateTaskResponse struct {
	*responses.BaseResponse
	Status                string `json:"Status" xml:"Status"`
	RequestId             string `json:"RequestId" xml:"RequestId"`
	TranslateFileUrl      string `json:"TranslateFileUrl" xml:"TranslateFileUrl"`
	TranslateErrorCode    string `json:"TranslateErrorCode" xml:"TranslateErrorCode"`
	PageCount             int    `json:"PageCount" xml:"PageCount"`
	TaskId                string `json:"TaskId" xml:"TaskId"`
	TranslateErrorMessage string `json:"TranslateErrorMessage" xml:"TranslateErrorMessage"`
}

GetDocTranslateTaskResponse is the response struct for api GetDocTranslateTask

func CreateGetDocTranslateTaskResponse added in v1.61.14

func CreateGetDocTranslateTaskResponse() (response *GetDocTranslateTaskResponse)

CreateGetDocTranslateTaskResponse creates a response to parse from GetDocTranslateTask response

type GetImageDiagnoseRequest added in v1.61.385

type GetImageDiagnoseRequest struct {
	*requests.RpcRequest
	Url   string `position:"Body" name:"Url"`
	Extra string `position:"Body" name:"Extra"`
}

GetImageDiagnoseRequest is the request struct for api GetImageDiagnose

func CreateGetImageDiagnoseRequest added in v1.61.385

func CreateGetImageDiagnoseRequest() (request *GetImageDiagnoseRequest)

CreateGetImageDiagnoseRequest creates a request to invoke GetImageDiagnose API

type GetImageDiagnoseResponse added in v1.61.385

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

GetImageDiagnoseResponse is the response struct for api GetImageDiagnose

func CreateGetImageDiagnoseResponse added in v1.61.385

func CreateGetImageDiagnoseResponse() (response *GetImageDiagnoseResponse)

CreateGetImageDiagnoseResponse creates a response to parse from GetImageDiagnose response

type GetImageTranslateRequest added in v1.61.385

type GetImageTranslateRequest struct {
	*requests.RpcRequest
	SourceLanguage string `position:"Body" name:"SourceLanguage"`
	Url            string `position:"Body" name:"Url"`
	Extra          string `position:"Body" name:"Extra"`
	TargetLanguage string `position:"Body" name:"TargetLanguage"`
}

GetImageTranslateRequest is the request struct for api GetImageTranslate

func CreateGetImageTranslateRequest added in v1.61.385

func CreateGetImageTranslateRequest() (request *GetImageTranslateRequest)

CreateGetImageTranslateRequest creates a request to invoke GetImageTranslate API

type GetImageTranslateResponse added in v1.61.385

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

GetImageTranslateResponse is the response struct for api GetImageTranslate

func CreateGetImageTranslateResponse added in v1.61.385

func CreateGetImageTranslateResponse() (response *GetImageTranslateResponse)

CreateGetImageTranslateResponse creates a response to parse from GetImageTranslate response

type GetImageTranslateTaskRequest added in v1.61.578

type GetImageTranslateTaskRequest struct {
	*requests.RpcRequest
	TaskId string `position:"Body" name:"TaskId"`
}

GetImageTranslateTaskRequest is the request struct for api GetImageTranslateTask

func CreateGetImageTranslateTaskRequest added in v1.61.578

func CreateGetImageTranslateTaskRequest() (request *GetImageTranslateTaskRequest)

CreateGetImageTranslateTaskRequest creates a request to invoke GetImageTranslateTask API

type GetImageTranslateTaskResponse added in v1.61.578

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

GetImageTranslateTaskResponse is the response struct for api GetImageTranslateTask

func CreateGetImageTranslateTaskResponse added in v1.61.578

func CreateGetImageTranslateTaskResponse() (response *GetImageTranslateTaskResponse)

CreateGetImageTranslateTaskResponse creates a response to parse from GetImageTranslateTask response

type GetTitleDiagnoseRequest added in v1.61.385

type GetTitleDiagnoseRequest struct {
	*requests.RpcRequest
	Language   string `position:"Body" name:"Language"`
	Title      string `position:"Body" name:"Title"`
	Platform   string `position:"Body" name:"Platform"`
	Extra      string `position:"Body" name:"Extra"`
	CategoryId string `position:"Body" name:"CategoryId"`
}

GetTitleDiagnoseRequest is the request struct for api GetTitleDiagnose

func CreateGetTitleDiagnoseRequest added in v1.61.385

func CreateGetTitleDiagnoseRequest() (request *GetTitleDiagnoseRequest)

CreateGetTitleDiagnoseRequest creates a request to invoke GetTitleDiagnose API

type GetTitleDiagnoseResponse added in v1.61.385

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

GetTitleDiagnoseResponse is the response struct for api GetTitleDiagnose

func CreateGetTitleDiagnoseResponse added in v1.61.385

func CreateGetTitleDiagnoseResponse() (response *GetTitleDiagnoseResponse)

CreateGetTitleDiagnoseResponse creates a response to parse from GetTitleDiagnose response

type GetTitleGenerateRequest added in v1.61.385

type GetTitleGenerateRequest struct {
	*requests.RpcRequest
	Language   string `position:"Body" name:"Language"`
	Title      string `position:"Body" name:"Title"`
	Platform   string `position:"Body" name:"Platform"`
	Extra      string `position:"Body" name:"Extra"`
	Attributes string `position:"Body" name:"Attributes"`
	HotWords   string `position:"Body" name:"HotWords"`
	CategoryId string `position:"Body" name:"CategoryId"`
}

GetTitleGenerateRequest is the request struct for api GetTitleGenerate

func CreateGetTitleGenerateRequest added in v1.61.385

func CreateGetTitleGenerateRequest() (request *GetTitleGenerateRequest)

CreateGetTitleGenerateRequest creates a request to invoke GetTitleGenerate API

type GetTitleGenerateResponse added in v1.61.385

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

GetTitleGenerateResponse is the response struct for api GetTitleGenerate

func CreateGetTitleGenerateResponse added in v1.61.385

func CreateGetTitleGenerateResponse() (response *GetTitleGenerateResponse)

CreateGetTitleGenerateResponse creates a response to parse from GetTitleGenerate response

type GetTitleIntelligenceRequest added in v1.61.500

type GetTitleIntelligenceRequest struct {
	*requests.RpcRequest
	CatLevelThreeId requests.Integer `position:"Body" name:"CatLevelThreeId"`
	CatLevelTwoId   requests.Integer `position:"Body" name:"CatLevelTwoId"`
	Keywords        string           `position:"Body" name:"Keywords"`
	Platform        string           `position:"Body" name:"Platform"`
	Extra           string           `position:"Body" name:"Extra"`
}

GetTitleIntelligenceRequest is the request struct for api GetTitleIntelligence

func CreateGetTitleIntelligenceRequest added in v1.61.500

func CreateGetTitleIntelligenceRequest() (request *GetTitleIntelligenceRequest)

CreateGetTitleIntelligenceRequest creates a request to invoke GetTitleIntelligence API

type GetTitleIntelligenceResponse added in v1.61.500

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

GetTitleIntelligenceResponse is the response struct for api GetTitleIntelligence

func CreateGetTitleIntelligenceResponse added in v1.61.500

func CreateGetTitleIntelligenceResponse() (response *GetTitleIntelligenceResponse)

CreateGetTitleIntelligenceResponse creates a response to parse from GetTitleIntelligence response

type GetTranslateReportRequest added in v1.61.1326

type GetTranslateReportRequest struct {
	*requests.RpcRequest
	EndTime   string `position:"Query" name:"EndTime"`
	BeginTime string `position:"Query" name:"BeginTime"`
	ApiName   string `position:"Query" name:"ApiName"`
	Group     string `position:"Query" name:"Group"`
}

GetTranslateReportRequest is the request struct for api GetTranslateReport

func CreateGetTranslateReportRequest added in v1.61.1326

func CreateGetTranslateReportRequest() (request *GetTranslateReportRequest)

CreateGetTranslateReportRequest creates a request to invoke GetTranslateReport API

type GetTranslateReportResponse added in v1.61.1326

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

GetTranslateReportResponse is the response struct for api GetTranslateReport

func CreateGetTranslateReportResponse added in v1.61.1326

func CreateGetTranslateReportResponse() (response *GetTranslateReportResponse)

CreateGetTranslateReportResponse creates a response to parse from GetTranslateReport response

type GetUserRequest added in v1.61.1326

type GetUserRequest struct {
	*requests.RpcRequest
}

GetUserRequest is the request struct for api GetUser

func CreateGetUserRequest added in v1.61.1326

func CreateGetUserRequest() (request *GetUserRequest)

CreateGetUserRequest creates a request to invoke GetUser API

type GetUserResponse added in v1.61.1326

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

GetUserResponse is the response struct for api GetUser

func CreateGetUserResponse added in v1.61.1326

func CreateGetUserResponse() (response *GetUserResponse)

CreateGetUserResponse creates a response to parse from GetUser response

type OpenAlimtServiceRequest added in v1.61.676

type OpenAlimtServiceRequest struct {
	*requests.RpcRequest
	OwnerId requests.Integer `position:"Query" name:"OwnerId"`
	Type    string           `position:"Query" name:"Type"`
}

OpenAlimtServiceRequest is the request struct for api OpenAlimtService

func CreateOpenAlimtServiceRequest added in v1.61.676

func CreateOpenAlimtServiceRequest() (request *OpenAlimtServiceRequest)

CreateOpenAlimtServiceRequest creates a request to invoke OpenAlimtService API

type OpenAlimtServiceResponse added in v1.61.676

type OpenAlimtServiceResponse struct {
	*responses.BaseResponse
	OrderId   string `json:"OrderId" xml:"OrderId"`
	RequestId string `json:"RequestId" xml:"RequestId"`
}

OpenAlimtServiceResponse is the response struct for api OpenAlimtService

func CreateOpenAlimtServiceResponse added in v1.61.676

func CreateOpenAlimtServiceResponse() (response *OpenAlimtServiceResponse)

CreateOpenAlimtServiceResponse creates a response to parse from OpenAlimtService response

type TranslateCertificateRequest added in v1.61.46

type TranslateCertificateRequest struct {
	*requests.RpcRequest
	Ext             string `position:"Body" name:"Ext"`
	SourceLanguage  string `position:"Body" name:"SourceLanguage"`
	CertificateType string `position:"Body" name:"CertificateType"`
	ResultType      string `position:"Body" name:"ResultType"`
	ImageUrl        string `position:"Body" name:"ImageUrl"`
	TargetLanguage  string `position:"Body" name:"TargetLanguage"`
}

TranslateCertificateRequest is the request struct for api TranslateCertificate

func CreateTranslateCertificateRequest added in v1.61.46

func CreateTranslateCertificateRequest() (request *TranslateCertificateRequest)

CreateTranslateCertificateRequest creates a request to invoke TranslateCertificate API

type TranslateCertificateResponse added in v1.61.46

type TranslateCertificateResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

TranslateCertificateResponse is the response struct for api TranslateCertificate

func CreateTranslateCertificateResponse added in v1.61.46

func CreateTranslateCertificateResponse() (response *TranslateCertificateResponse)

CreateTranslateCertificateResponse creates a response to parse from TranslateCertificate response

type TranslateECommerceRequest

type TranslateECommerceRequest struct {
	*requests.RpcRequest
	SourceLanguage string `position:"Body" name:"SourceLanguage"`
	SourceText     string `position:"Body" name:"SourceText"`
	FormatType     string `position:"Body" name:"FormatType"`
	Scene          string `position:"Body" name:"Scene"`
	TargetLanguage string `position:"Body" name:"TargetLanguage"`
}

TranslateECommerceRequest is the request struct for api TranslateECommerce

func CreateTranslateECommerceRequest

func CreateTranslateECommerceRequest() (request *TranslateECommerceRequest)

CreateTranslateECommerceRequest creates a request to invoke TranslateECommerce API

type TranslateECommerceResponse

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

TranslateECommerceResponse is the response struct for api TranslateECommerce

func CreateTranslateECommerceResponse

func CreateTranslateECommerceResponse() (response *TranslateECommerceResponse)

CreateTranslateECommerceResponse creates a response to parse from TranslateECommerce response

type TranslateGeneralRequest

type TranslateGeneralRequest struct {
	*requests.RpcRequest
	SourceLanguage string `position:"Body" name:"SourceLanguage"`
	SourceText     string `position:"Body" name:"SourceText"`
	FormatType     string `position:"Body" name:"FormatType"`
	Scene          string `position:"Body" name:"Scene"`
	TargetLanguage string `position:"Body" name:"TargetLanguage"`
}

TranslateGeneralRequest is the request struct for api TranslateGeneral

func CreateTranslateGeneralRequest

func CreateTranslateGeneralRequest() (request *TranslateGeneralRequest)

CreateTranslateGeneralRequest creates a request to invoke TranslateGeneral API

type TranslateGeneralResponse

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

TranslateGeneralResponse is the response struct for api TranslateGeneral

func CreateTranslateGeneralResponse

func CreateTranslateGeneralResponse() (response *TranslateGeneralResponse)

CreateTranslateGeneralResponse creates a response to parse from TranslateGeneral response

type TranslateImageRequest added in v1.61.1326

type TranslateImageRequest struct {
	*requests.RpcRequest
	Ext            string `position:"Body" name:"Ext"`
	SourceLanguage string `position:"Body" name:"SourceLanguage"`
	Field          string `position:"Body" name:"Field"`
	ImageUrl       string `position:"Body" name:"ImageUrl"`
	TargetLanguage string `position:"Body" name:"TargetLanguage"`
	ImageBase64    string `position:"Body" name:"ImageBase64"`
}

TranslateImageRequest is the request struct for api TranslateImage

func CreateTranslateImageRequest added in v1.61.1326

func CreateTranslateImageRequest() (request *TranslateImageRequest)

CreateTranslateImageRequest creates a request to invoke TranslateImage API

type TranslateImageResponse added in v1.61.1326

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

TranslateImageResponse is the response struct for api TranslateImage

func CreateTranslateImageResponse added in v1.61.1326

func CreateTranslateImageResponse() (response *TranslateImageResponse)

CreateTranslateImageResponse creates a response to parse from TranslateImage response

type TranslateRequest added in v1.61.14

type TranslateRequest struct {
	*requests.RpcRequest
	SourceLanguage string `position:"Body" name:"SourceLanguage"`
	SourceText     string `position:"Body" name:"SourceText"`
	FormatType     string `position:"Body" name:"FormatType"`
	Scene          string `position:"Body" name:"Scene"`
	TargetLanguage string `position:"Body" name:"TargetLanguage"`
}

TranslateRequest is the request struct for api Translate

func CreateTranslateRequest added in v1.61.14

func CreateTranslateRequest() (request *TranslateRequest)

CreateTranslateRequest creates a request to invoke Translate API

type TranslateResponse added in v1.61.14

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

TranslateResponse is the response struct for api Translate

func CreateTranslateResponse added in v1.61.14

func CreateTranslateResponse() (response *TranslateResponse)

CreateTranslateResponse creates a response to parse from Translate response

type TranslatedList added in v1.61.883

type TranslatedList struct {
	Translated []map[string]interface{} `json:"Translated" xml:"Translated"`
}

TranslatedList is a nested struct in alimt response

type TranslatedValues added in v1.61.46

type TranslatedValues struct {
	CertificateTranslateItemDTO []CertificateTranslateItemDTO `json:"CertificateTranslateItemDTO" xml:"CertificateTranslateItemDTO"`
}

TranslatedValues is a nested struct in alimt response

Jump to

Keyboard shortcuts

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