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) GenAnalysis(request *GenAnalysisRequest) (response *GenAnalysisResponse, err error)
- func (client *Client) GenAnalysisWithCallback(request *GenAnalysisRequest, ...) <-chan int
- func (client *Client) GenAnalysisWithChan(request *GenAnalysisRequest) (<-chan *GenAnalysisResponse, <-chan error)
- func (client *Client) GenStep(request *GenStepRequest) (response *GenStepResponse, err error)
- func (client *Client) GenStepWithCallback(request *GenStepRequest, callback func(response *GenStepResponse, err error)) <-chan int
- func (client *Client) GenStepWithChan(request *GenStepRequest) (<-chan *GenStepResponse, <-chan error)
- func (client *Client) GlobalConfirm(request *GlobalConfirmRequest) (response *GlobalConfirmResponse, err error)
- func (client *Client) GlobalConfirmWithCallback(request *GlobalConfirmRequest, ...) <-chan int
- func (client *Client) GlobalConfirmWithChan(request *GlobalConfirmRequest) (<-chan *GlobalConfirmResponse, <-chan error)
- func (client *Client) UpdateAnalysis(request *UpdateAnalysisRequest) (response *UpdateAnalysisResponse, err error)
- func (client *Client) UpdateAnalysisWithCallback(request *UpdateAnalysisRequest, ...) <-chan int
- func (client *Client) UpdateAnalysisWithChan(request *UpdateAnalysisRequest) (<-chan *UpdateAnalysisResponse, <-chan error)
- func (client *Client) UpdateStep(request *UpdateStepRequest) (response *UpdateStepResponse, err error)
- func (client *Client) UpdateStepWithCallback(request *UpdateStepRequest, ...) <-chan int
- func (client *Client) UpdateStepWithChan(request *UpdateStepRequest) (<-chan *UpdateStepResponse, <-chan error)
- type GenAnalysisRequest
- type GenAnalysisResponse
- type GenStepRequest
- type GenStepResponse
- type GlobalConfirmRequest
- type GlobalConfirmResponse
- type UpdateAnalysisRequest
- type UpdateAnalysisResponse
- type UpdateStepRequest
- type UpdateStepResponse
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) GenAnalysis ¶
func (client *Client) GenAnalysis(request *GenAnalysisRequest) (response *GenAnalysisResponse, err error)
GenAnalysis invokes the aimath.GenAnalysis API synchronously
func (*Client) GenAnalysisWithCallback ¶
func (client *Client) GenAnalysisWithCallback(request *GenAnalysisRequest, callback func(response *GenAnalysisResponse, err error)) <-chan int
GenAnalysisWithCallback invokes the aimath.GenAnalysis API asynchronously
func (*Client) GenAnalysisWithChan ¶
func (client *Client) GenAnalysisWithChan(request *GenAnalysisRequest) (<-chan *GenAnalysisResponse, <-chan error)
GenAnalysisWithChan invokes the aimath.GenAnalysis API asynchronously
func (*Client) GenStep ¶
func (client *Client) GenStep(request *GenStepRequest) (response *GenStepResponse, err error)
GenStep invokes the aimath.GenStep API synchronously
func (*Client) GenStepWithCallback ¶
func (client *Client) GenStepWithCallback(request *GenStepRequest, callback func(response *GenStepResponse, err error)) <-chan int
GenStepWithCallback invokes the aimath.GenStep API asynchronously
func (*Client) GenStepWithChan ¶
func (client *Client) GenStepWithChan(request *GenStepRequest) (<-chan *GenStepResponse, <-chan error)
GenStepWithChan invokes the aimath.GenStep API asynchronously
func (*Client) GlobalConfirm ¶
func (client *Client) GlobalConfirm(request *GlobalConfirmRequest) (response *GlobalConfirmResponse, err error)
GlobalConfirm invokes the aimath.GlobalConfirm API synchronously
func (*Client) GlobalConfirmWithCallback ¶
func (client *Client) GlobalConfirmWithCallback(request *GlobalConfirmRequest, callback func(response *GlobalConfirmResponse, err error)) <-chan int
GlobalConfirmWithCallback invokes the aimath.GlobalConfirm API asynchronously
func (*Client) GlobalConfirmWithChan ¶
func (client *Client) GlobalConfirmWithChan(request *GlobalConfirmRequest) (<-chan *GlobalConfirmResponse, <-chan error)
GlobalConfirmWithChan invokes the aimath.GlobalConfirm API asynchronously
func (*Client) UpdateAnalysis ¶
func (client *Client) UpdateAnalysis(request *UpdateAnalysisRequest) (response *UpdateAnalysisResponse, err error)
UpdateAnalysis invokes the aimath.UpdateAnalysis API synchronously
func (*Client) UpdateAnalysisWithCallback ¶
func (client *Client) UpdateAnalysisWithCallback(request *UpdateAnalysisRequest, callback func(response *UpdateAnalysisResponse, err error)) <-chan int
UpdateAnalysisWithCallback invokes the aimath.UpdateAnalysis API asynchronously
func (*Client) UpdateAnalysisWithChan ¶
func (client *Client) UpdateAnalysisWithChan(request *UpdateAnalysisRequest) (<-chan *UpdateAnalysisResponse, <-chan error)
UpdateAnalysisWithChan invokes the aimath.UpdateAnalysis API asynchronously
func (*Client) UpdateStep ¶
func (client *Client) UpdateStep(request *UpdateStepRequest) (response *UpdateStepResponse, err error)
UpdateStep invokes the aimath.UpdateStep API synchronously
func (*Client) UpdateStepWithCallback ¶
func (client *Client) UpdateStepWithCallback(request *UpdateStepRequest, callback func(response *UpdateStepResponse, err error)) <-chan int
UpdateStepWithCallback invokes the aimath.UpdateStep API asynchronously
func (*Client) UpdateStepWithChan ¶
func (client *Client) UpdateStepWithChan(request *UpdateStepRequest) (<-chan *UpdateStepResponse, <-chan error)
UpdateStepWithChan invokes the aimath.UpdateStep API asynchronously
type GenAnalysisRequest ¶
type GenAnalysisRequest struct { *requests.RpcRequest ExerciseContent string `position:"Body" name:"ExerciseContent"` }
GenAnalysisRequest is the request struct for api GenAnalysis
func CreateGenAnalysisRequest ¶
func CreateGenAnalysisRequest() (request *GenAnalysisRequest)
CreateGenAnalysisRequest creates a request to invoke GenAnalysis API
type GenAnalysisResponse ¶
type GenAnalysisResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` EventType string `json:"EventType" xml:"EventType"` Content string `json:"Content" xml:"Content"` ErrCode string `json:"ErrCode" xml:"ErrCode"` ErrMsg string `json:"ErrMsg" xml:"ErrMsg"` }
GenAnalysisResponse is the response struct for api GenAnalysis
func CreateGenAnalysisResponse ¶
func CreateGenAnalysisResponse() (response *GenAnalysisResponse)
CreateGenAnalysisResponse creates a response to parse from GenAnalysis response
type GenStepRequest ¶
type GenStepRequest struct { *requests.RpcRequest ExerciseCode string `position:"Body" name:"ExerciseCode"` }
GenStepRequest is the request struct for api GenStep
func CreateGenStepRequest ¶
func CreateGenStepRequest() (request *GenStepRequest)
CreateGenStepRequest creates a request to invoke GenStep API
type GenStepResponse ¶
type GenStepResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` EventType string `json:"EventType" xml:"EventType"` Content string `json:"Content" xml:"Content"` ErrCode string `json:"ErrCode" xml:"ErrCode"` ErrMsg string `json:"ErrMsg" xml:"ErrMsg"` }
GenStepResponse is the response struct for api GenStep
func CreateGenStepResponse ¶
func CreateGenStepResponse() (response *GenStepResponse)
CreateGenStepResponse creates a response to parse from GenStep response
type GlobalConfirmRequest ¶
type GlobalConfirmRequest struct { *requests.RpcRequest Tag string `position:"Body" name:"Tag"` ExerciseCode string `position:"Body" name:"ExerciseCode"` }
GlobalConfirmRequest is the request struct for api GlobalConfirm
func CreateGlobalConfirmRequest ¶
func CreateGlobalConfirmRequest() (request *GlobalConfirmRequest)
CreateGlobalConfirmRequest creates a request to invoke GlobalConfirm API
type GlobalConfirmResponse ¶
type GlobalConfirmResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Success bool `json:"Success" xml:"Success"` ErrCode string `json:"ErrCode" xml:"ErrCode"` ErrMsg string `json:"ErrMsg" xml:"ErrMsg"` }
GlobalConfirmResponse is the response struct for api GlobalConfirm
func CreateGlobalConfirmResponse ¶
func CreateGlobalConfirmResponse() (response *GlobalConfirmResponse)
CreateGlobalConfirmResponse creates a response to parse from GlobalConfirm response
type UpdateAnalysisRequest ¶
type UpdateAnalysisRequest struct { *requests.RpcRequest Content string `position:"Body" name:"Content"` ContentCode string `position:"Body" name:"ContentCode"` ExerciseCode string `position:"Body" name:"ExerciseCode"` }
UpdateAnalysisRequest is the request struct for api UpdateAnalysis
func CreateUpdateAnalysisRequest ¶
func CreateUpdateAnalysisRequest() (request *UpdateAnalysisRequest)
CreateUpdateAnalysisRequest creates a request to invoke UpdateAnalysis API
type UpdateAnalysisResponse ¶
type UpdateAnalysisResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Success bool `json:"Success" xml:"Success"` ErrCode string `json:"ErrCode" xml:"ErrCode"` ErrMsg string `json:"ErrMsg" xml:"ErrMsg"` }
UpdateAnalysisResponse is the response struct for api UpdateAnalysis
func CreateUpdateAnalysisResponse ¶
func CreateUpdateAnalysisResponse() (response *UpdateAnalysisResponse)
CreateUpdateAnalysisResponse creates a response to parse from UpdateAnalysis response
type UpdateStepRequest ¶
type UpdateStepRequest struct { *requests.RpcRequest Content string `position:"Body" name:"Content"` ContentCode string `position:"Body" name:"ContentCode"` ExerciseCode string `position:"Body" name:"ExerciseCode"` }
UpdateStepRequest is the request struct for api UpdateStep
func CreateUpdateStepRequest ¶
func CreateUpdateStepRequest() (request *UpdateStepRequest)
CreateUpdateStepRequest creates a request to invoke UpdateStep API
type UpdateStepResponse ¶
type UpdateStepResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Success bool `json:"Success" xml:"Success"` ErrCode string `json:"ErrCode" xml:"ErrCode"` ErrMsg string `json:"ErrMsg" xml:"ErrMsg"` }
UpdateStepResponse is the response struct for api UpdateStep
func CreateUpdateStepResponse ¶
func CreateUpdateStepResponse() (response *UpdateStepResponse)
CreateUpdateStepResponse creates a response to parse from UpdateStep response