industry_brain

package
v1.62.14 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 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 AsyncResponsePostRequest

type AsyncResponsePostRequest struct {
	*requests.RpcRequest
	Data     string         `position:"Query" name:"Data"`
	Context  string         `position:"Query" name:"Context"`
	Progress requests.Float `position:"Query" name:"Progress"`
	Message  string         `position:"Query" name:"Message"`
	TaskId   string         `position:"Query" name:"TaskId"`
	Status   string         `position:"Query" name:"Status"`
}

AsyncResponsePostRequest is the request struct for api AsyncResponsePost

func CreateAsyncResponsePostRequest

func CreateAsyncResponsePostRequest() (request *AsyncResponsePostRequest)

CreateAsyncResponsePostRequest creates a request to invoke AsyncResponsePost API

type AsyncResponsePostResponse

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

AsyncResponsePostResponse is the response struct for api AsyncResponsePost

func CreateAsyncResponsePostResponse

func CreateAsyncResponsePostResponse() (response *AsyncResponsePostResponse)

CreateAsyncResponsePostResponse creates a response to parse from AsyncResponsePost 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.442

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.442

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

func (client *Client) AsyncResponsePost(request *AsyncResponsePostRequest) (response *AsyncResponsePostResponse, err error)

AsyncResponsePost invokes the industry_brain.AsyncResponsePost API synchronously

func (*Client) AsyncResponsePostWithCallback

func (client *Client) AsyncResponsePostWithCallback(request *AsyncResponsePostRequest, callback func(response *AsyncResponsePostResponse, err error)) <-chan int

AsyncResponsePostWithCallback invokes the industry_brain.AsyncResponsePost API asynchronously

func (*Client) AsyncResponsePostWithChan

func (client *Client) AsyncResponsePostWithChan(request *AsyncResponsePostRequest) (<-chan *AsyncResponsePostResponse, <-chan error)

AsyncResponsePostWithChan invokes the industry_brain.AsyncResponsePost API asynchronously

func (*Client) GetAlgorithmHistoryResult added in v1.61.442

func (client *Client) GetAlgorithmHistoryResult(request *GetAlgorithmHistoryResultRequest) (response *GetAlgorithmHistoryResultResponse, err error)

GetAlgorithmHistoryResult invokes the industry_brain.GetAlgorithmHistoryResult API synchronously

func (*Client) GetAlgorithmHistoryResultWithCallback added in v1.61.442

func (client *Client) GetAlgorithmHistoryResultWithCallback(request *GetAlgorithmHistoryResultRequest, callback func(response *GetAlgorithmHistoryResultResponse, err error)) <-chan int

GetAlgorithmHistoryResultWithCallback invokes the industry_brain.GetAlgorithmHistoryResult API asynchronously

func (*Client) GetAlgorithmHistoryResultWithChan added in v1.61.442

func (client *Client) GetAlgorithmHistoryResultWithChan(request *GetAlgorithmHistoryResultRequest) (<-chan *GetAlgorithmHistoryResultResponse, <-chan error)

GetAlgorithmHistoryResultWithChan invokes the industry_brain.GetAlgorithmHistoryResult API asynchronously

func (*Client) GetServiceResultAsync

func (client *Client) GetServiceResultAsync(request *GetServiceResultAsyncRequest) (response *GetServiceResultAsyncResponse, err error)

GetServiceResultAsync invokes the industry_brain.GetServiceResultAsync API synchronously

func (*Client) GetServiceResultAsyncWithCallback

func (client *Client) GetServiceResultAsyncWithCallback(request *GetServiceResultAsyncRequest, callback func(response *GetServiceResultAsyncResponse, err error)) <-chan int

GetServiceResultAsyncWithCallback invokes the industry_brain.GetServiceResultAsync API asynchronously

func (*Client) GetServiceResultAsyncWithChan

func (client *Client) GetServiceResultAsyncWithChan(request *GetServiceResultAsyncRequest) (<-chan *GetServiceResultAsyncResponse, <-chan error)

GetServiceResultAsyncWithChan invokes the industry_brain.GetServiceResultAsync API asynchronously

func (*Client) InvokeService

func (client *Client) InvokeService(request *InvokeServiceRequest) (response *InvokeServiceResponse, err error)

InvokeService invokes the industry_brain.InvokeService API synchronously

func (*Client) InvokeServiceAsync

func (client *Client) InvokeServiceAsync(request *InvokeServiceAsyncRequest) (response *InvokeServiceAsyncResponse, err error)

InvokeServiceAsync invokes the industry_brain.InvokeServiceAsync API synchronously

func (*Client) InvokeServiceAsyncWithCallback

func (client *Client) InvokeServiceAsyncWithCallback(request *InvokeServiceAsyncRequest, callback func(response *InvokeServiceAsyncResponse, err error)) <-chan int

InvokeServiceAsyncWithCallback invokes the industry_brain.InvokeServiceAsync API asynchronously

func (*Client) InvokeServiceAsyncWithChan

func (client *Client) InvokeServiceAsyncWithChan(request *InvokeServiceAsyncRequest) (<-chan *InvokeServiceAsyncResponse, <-chan error)

InvokeServiceAsyncWithChan invokes the industry_brain.InvokeServiceAsync API asynchronously

func (*Client) InvokeServiceWithCallback

func (client *Client) InvokeServiceWithCallback(request *InvokeServiceRequest, callback func(response *InvokeServiceResponse, err error)) <-chan int

InvokeServiceWithCallback invokes the industry_brain.InvokeService API asynchronously

func (*Client) InvokeServiceWithChan

func (client *Client) InvokeServiceWithChan(request *InvokeServiceRequest) (<-chan *InvokeServiceResponse, <-chan error)

InvokeServiceWithChan invokes the industry_brain.InvokeService API asynchronously

type Data

type Data struct {
	Region []Region `json:"Region" xml:"Region"`
}

Data is a nested struct in industry_brain response

type GetAlgorithmHistoryResultRequest added in v1.61.442

type GetAlgorithmHistoryResultRequest struct {
	*requests.RpcRequest
	EndTime   string `position:"Query" name:"EndTime"`
	StartTime string `position:"Query" name:"StartTime"`
	ServiceId string `position:"Query" name:"ServiceId"`
}

GetAlgorithmHistoryResultRequest is the request struct for api GetAlgorithmHistoryResult

func CreateGetAlgorithmHistoryResultRequest added in v1.61.442

func CreateGetAlgorithmHistoryResultRequest() (request *GetAlgorithmHistoryResultRequest)

CreateGetAlgorithmHistoryResultRequest creates a request to invoke GetAlgorithmHistoryResult API

type GetAlgorithmHistoryResultResponse added in v1.61.442

type GetAlgorithmHistoryResultResponse struct {
	*responses.BaseResponse
	RequestId string   `json:"RequestId" xml:"RequestId"`
	Code      string   `json:"Code" xml:"Code"`
	Message   string   `json:"Message" xml:"Message"`
	TraceId   string   `json:"TraceId" xml:"TraceId"`
	Data      []Region `json:"Data" xml:"Data"`
}

GetAlgorithmHistoryResultResponse is the response struct for api GetAlgorithmHistoryResult

func CreateGetAlgorithmHistoryResultResponse added in v1.61.442

func CreateGetAlgorithmHistoryResultResponse() (response *GetAlgorithmHistoryResultResponse)

CreateGetAlgorithmHistoryResultResponse creates a response to parse from GetAlgorithmHistoryResult response

type GetServiceResultAsyncRequest

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

GetServiceResultAsyncRequest is the request struct for api GetServiceResultAsync

func CreateGetServiceResultAsyncRequest

func CreateGetServiceResultAsyncRequest() (request *GetServiceResultAsyncRequest)

CreateGetServiceResultAsyncRequest creates a request to invoke GetServiceResultAsync API

type GetServiceResultAsyncResponse

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

GetServiceResultAsyncResponse is the response struct for api GetServiceResultAsync

func CreateGetServiceResultAsyncResponse

func CreateGetServiceResultAsyncResponse() (response *GetServiceResultAsyncResponse)

CreateGetServiceResultAsyncResponse creates a response to parse from GetServiceResultAsync response

type InvokeServiceAsyncRequest

type InvokeServiceAsyncRequest struct {
	*requests.RpcRequest
	IsShowInput requests.Boolean `position:"Query" name:"IsShowInput"`
	ServiceId   string           `position:"Query" name:"ServiceId"`
	Params      string           `position:"Query" name:"Params"`
	RequestData string           `position:"Query" name:"RequestData"`
}

InvokeServiceAsyncRequest is the request struct for api InvokeServiceAsync

func CreateInvokeServiceAsyncRequest

func CreateInvokeServiceAsyncRequest() (request *InvokeServiceAsyncRequest)

CreateInvokeServiceAsyncRequest creates a request to invoke InvokeServiceAsync API

type InvokeServiceAsyncResponse

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

InvokeServiceAsyncResponse is the response struct for api InvokeServiceAsync

func CreateInvokeServiceAsyncResponse

func CreateInvokeServiceAsyncResponse() (response *InvokeServiceAsyncResponse)

CreateInvokeServiceAsyncResponse creates a response to parse from InvokeServiceAsync response

type InvokeServiceRequest

type InvokeServiceRequest struct {
	*requests.RpcRequest
	RequestParams            string           `position:"Query" name:"RequestParams"`
	ShowBizInfo              requests.Boolean `position:"Query" name:"ShowBizInfo"`
	ForceInvokeConfiguration requests.Boolean `position:"Query" name:"ForceInvokeConfiguration"`
	Context                  string           `position:"Query" name:"Context"`
	ServiceId                string           `position:"Query" name:"ServiceId"`
	RequestData              string           `position:"Query" name:"RequestData"`
	ShowParams               requests.Boolean `position:"Query" name:"ShowParams"`
}

InvokeServiceRequest is the request struct for api InvokeService

func CreateInvokeServiceRequest

func CreateInvokeServiceRequest() (request *InvokeServiceRequest)

CreateInvokeServiceRequest creates a request to invoke InvokeService API

type InvokeServiceResponse

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

InvokeServiceResponse is the response struct for api InvokeService

func CreateInvokeServiceResponse

func CreateInvokeServiceResponse() (response *InvokeServiceResponse)

CreateInvokeServiceResponse creates a response to parse from InvokeService response

type Region added in v1.61.442

type Region struct {
	Output     map[string]interface{} `json:"Output" xml:"Output"`
	Input      map[string]interface{} `json:"Input" xml:"Input"`
	InvokeTime string                 `json:"InvokeTime" xml:"InvokeTime"`
}

Region is a nested struct in industry_brain response

Jump to

Keyboard shortcuts

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