videosearch

package
v1.63.57 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 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 AddDeletionVideoTaskRequest

type AddDeletionVideoTaskRequest struct {
	*requests.RpcRequest
	ClientToken string `position:"Query" name:"ClientToken"`
	VideoId     string `position:"Body" name:"VideoId"`
	InstanceId  string `position:"Body" name:"InstanceId"`
}

AddDeletionVideoTaskRequest is the request struct for api AddDeletionVideoTask

func CreateAddDeletionVideoTaskRequest

func CreateAddDeletionVideoTaskRequest() (request *AddDeletionVideoTaskRequest)

CreateAddDeletionVideoTaskRequest creates a request to invoke AddDeletionVideoTask API

type AddDeletionVideoTaskResponse

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

AddDeletionVideoTaskResponse is the response struct for api AddDeletionVideoTask

func CreateAddDeletionVideoTaskResponse

func CreateAddDeletionVideoTaskResponse() (response *AddDeletionVideoTaskResponse)

CreateAddDeletionVideoTaskResponse creates a response to parse from AddDeletionVideoTask response

type AddSearchVideoTaskRequest

type AddSearchVideoTaskRequest struct {
	*requests.RpcRequest
	ClientToken             string           `position:"Query" name:"ClientToken"`
	StorageType             requests.Integer `position:"Body" name:"StorageType"`
	VideoTags               string           `position:"Body" name:"VideoTags"`
	ReturnVideoNumber       requests.Integer `position:"Body" name:"ReturnVideoNumber"`
	VideoId                 string           `position:"Body" name:"VideoId"`
	ReplaceStorageThreshold requests.Float   `position:"Body" name:"ReplaceStorageThreshold"`
	InstanceId              string           `position:"Body" name:"InstanceId"`
	VideoUrl                string           `position:"Body" name:"VideoUrl"`
	QueryTags               string           `position:"Body" name:"QueryTags"`
	CallbackUrl             string           `position:"Body" name:"CallbackUrl"`
}

AddSearchVideoTaskRequest is the request struct for api AddSearchVideoTask

func CreateAddSearchVideoTaskRequest

func CreateAddSearchVideoTaskRequest() (request *AddSearchVideoTaskRequest)

CreateAddSearchVideoTaskRequest creates a request to invoke AddSearchVideoTask API

type AddSearchVideoTaskResponse

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

AddSearchVideoTaskResponse is the response struct for api AddSearchVideoTask

func CreateAddSearchVideoTaskResponse

func CreateAddSearchVideoTaskResponse() (response *AddSearchVideoTaskResponse)

CreateAddSearchVideoTaskResponse creates a response to parse from AddSearchVideoTask response

type AddStorageVideoTaskRequest

type AddStorageVideoTaskRequest struct {
	*requests.RpcRequest
	ClientToken string `position:"Query" name:"ClientToken"`
	VideoTags   string `position:"Body" name:"VideoTags"`
	VideoId     string `position:"Body" name:"VideoId"`
	InstanceId  string `position:"Body" name:"InstanceId"`
	VideoUrl    string `position:"Body" name:"VideoUrl"`
	CallbackUrl string `position:"Body" name:"CallbackUrl"`
}

AddStorageVideoTaskRequest is the request struct for api AddStorageVideoTask

func CreateAddStorageVideoTaskRequest

func CreateAddStorageVideoTaskRequest() (request *AddStorageVideoTaskRequest)

CreateAddStorageVideoTaskRequest creates a request to invoke AddStorageVideoTask API

type AddStorageVideoTaskResponse

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

AddStorageVideoTaskResponse is the response struct for api AddStorageVideoTask

func CreateAddStorageVideoTaskResponse

func CreateAddStorageVideoTaskResponse() (response *AddStorageVideoTaskResponse)

CreateAddStorageVideoTaskResponse creates a response to parse from AddStorageVideoTask 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

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

func (client *Client) AddDeletionVideoTask(request *AddDeletionVideoTaskRequest) (response *AddDeletionVideoTaskResponse, err error)

AddDeletionVideoTask invokes the videosearch.AddDeletionVideoTask API synchronously api document: https://help.aliyun.com/api/videosearch/adddeletionvideotask.html

func (*Client) AddDeletionVideoTaskWithCallback

func (client *Client) AddDeletionVideoTaskWithCallback(request *AddDeletionVideoTaskRequest, callback func(response *AddDeletionVideoTaskResponse, err error)) <-chan int

AddDeletionVideoTaskWithCallback invokes the videosearch.AddDeletionVideoTask API asynchronously api document: https://help.aliyun.com/api/videosearch/adddeletionvideotask.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) AddDeletionVideoTaskWithChan

func (client *Client) AddDeletionVideoTaskWithChan(request *AddDeletionVideoTaskRequest) (<-chan *AddDeletionVideoTaskResponse, <-chan error)

AddDeletionVideoTaskWithChan invokes the videosearch.AddDeletionVideoTask API asynchronously api document: https://help.aliyun.com/api/videosearch/adddeletionvideotask.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) AddSearchVideoTask

func (client *Client) AddSearchVideoTask(request *AddSearchVideoTaskRequest) (response *AddSearchVideoTaskResponse, err error)

AddSearchVideoTask invokes the videosearch.AddSearchVideoTask API synchronously api document: https://help.aliyun.com/api/videosearch/addsearchvideotask.html

func (*Client) AddSearchVideoTaskWithCallback

func (client *Client) AddSearchVideoTaskWithCallback(request *AddSearchVideoTaskRequest, callback func(response *AddSearchVideoTaskResponse, err error)) <-chan int

AddSearchVideoTaskWithCallback invokes the videosearch.AddSearchVideoTask API asynchronously api document: https://help.aliyun.com/api/videosearch/addsearchvideotask.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) AddSearchVideoTaskWithChan

func (client *Client) AddSearchVideoTaskWithChan(request *AddSearchVideoTaskRequest) (<-chan *AddSearchVideoTaskResponse, <-chan error)

AddSearchVideoTaskWithChan invokes the videosearch.AddSearchVideoTask API asynchronously api document: https://help.aliyun.com/api/videosearch/addsearchvideotask.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) AddStorageVideoTask

func (client *Client) AddStorageVideoTask(request *AddStorageVideoTaskRequest) (response *AddStorageVideoTaskResponse, err error)

AddStorageVideoTask invokes the videosearch.AddStorageVideoTask API synchronously api document: https://help.aliyun.com/api/videosearch/addstoragevideotask.html

func (*Client) AddStorageVideoTaskWithCallback

func (client *Client) AddStorageVideoTaskWithCallback(request *AddStorageVideoTaskRequest, callback func(response *AddStorageVideoTaskResponse, err error)) <-chan int

AddStorageVideoTaskWithCallback invokes the videosearch.AddStorageVideoTask API asynchronously api document: https://help.aliyun.com/api/videosearch/addstoragevideotask.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) AddStorageVideoTaskWithChan

func (client *Client) AddStorageVideoTaskWithChan(request *AddStorageVideoTaskRequest) (<-chan *AddStorageVideoTaskResponse, <-chan error)

AddStorageVideoTaskWithChan invokes the videosearch.AddStorageVideoTask API asynchronously api document: https://help.aliyun.com/api/videosearch/addstoragevideotask.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetTaskStatus

func (client *Client) GetTaskStatus(request *GetTaskStatusRequest) (response *GetTaskStatusResponse, err error)

GetTaskStatus invokes the videosearch.GetTaskStatus API synchronously api document: https://help.aliyun.com/api/videosearch/gettaskstatus.html

func (*Client) GetTaskStatusWithCallback

func (client *Client) GetTaskStatusWithCallback(request *GetTaskStatusRequest, callback func(response *GetTaskStatusResponse, err error)) <-chan int

GetTaskStatusWithCallback invokes the videosearch.GetTaskStatus API asynchronously api document: https://help.aliyun.com/api/videosearch/gettaskstatus.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetTaskStatusWithChan

func (client *Client) GetTaskStatusWithChan(request *GetTaskStatusRequest) (<-chan *GetTaskStatusResponse, <-chan error)

GetTaskStatusWithChan invokes the videosearch.GetTaskStatus API asynchronously api document: https://help.aliyun.com/api/videosearch/gettaskstatus.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type Data

type Data struct {
	TaskId string `json:"TaskId" xml:"TaskId"`
}

Data is a nested struct in videosearch response

type GetTaskStatusRequest

type GetTaskStatusRequest struct {
	*requests.RpcRequest
	ClientToken string `position:"Query" name:"ClientToken"`
	InstanceId  string `position:"Body" name:"InstanceId"`
	TaskId      string `position:"Body" name:"TaskId"`
}

GetTaskStatusRequest is the request struct for api GetTaskStatus

func CreateGetTaskStatusRequest

func CreateGetTaskStatusRequest() (request *GetTaskStatusRequest)

CreateGetTaskStatusRequest creates a request to invoke GetTaskStatus API

type GetTaskStatusResponse

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

GetTaskStatusResponse is the response struct for api GetTaskStatus

func CreateGetTaskStatusResponse

func CreateGetTaskStatusResponse() (response *GetTaskStatusResponse)

CreateGetTaskStatusResponse creates a response to parse from GetTaskStatus response

type TaskInfo added in v1.61.360

type TaskInfo struct {
	AnalysisUseTime  int64   `json:"AnalysisUseTime" xml:"AnalysisUseTime"`
	Duration         float64 `json:"Duration" xml:"Duration"`
	ProcessResultOss string  `json:"ProcessResultOss" xml:"ProcessResultOss"`
	Resolution       string  `json:"Resolution" xml:"Resolution"`
	Status           int     `json:"Status" xml:"Status"`
	SubmitTime       int64   `json:"SubmitTime" xml:"SubmitTime"`
	FinishTime       int64   `json:"FinishTime" xml:"FinishTime"`
	TaskId           int64   `json:"TaskId" xml:"TaskId"`
	ErrorInfo        string  `json:"ErrorInfo" xml:"ErrorInfo"`
	StorageInfo      int     `json:"StorageInfo" xml:"StorageInfo"`
	Description      string  `json:"Description" xml:"Description"`
	VideoId          string  `json:"VideoId" xml:"VideoId"`
	VideoTags        string  `json:"VideoTags" xml:"VideoTags"`
	VideoUrl         string  `json:"VideoUrl" xml:"VideoUrl"`
	QueryTags        string  `json:"QueryTags" xml:"QueryTags"`
}

TaskInfo is a nested struct in videosearch response

Jump to

Keyboard shortcuts

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