apis

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchDeleteVqdTasksRequest

type BatchDeleteVqdTasksRequest struct {
	core.JDCloudRequest

	/*   */
	TaskIds []string `json:"taskIds"`
}

func NewBatchDeleteVqdTasksRequest

func NewBatchDeleteVqdTasksRequest(
	taskIds []string,
) *BatchDeleteVqdTasksRequest

* param taskIds: (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewBatchDeleteVqdTasksRequestWithAllParams

func NewBatchDeleteVqdTasksRequestWithAllParams(
	taskIds []string,
) *BatchDeleteVqdTasksRequest

* param taskIds: (Required)

func NewBatchDeleteVqdTasksRequestWithoutParam

func NewBatchDeleteVqdTasksRequestWithoutParam() *BatchDeleteVqdTasksRequest

This constructor has better compatible ability when API parameters changed

func (BatchDeleteVqdTasksRequest) GetRegionId

func (r BatchDeleteVqdTasksRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*BatchDeleteVqdTasksRequest) SetTaskIds

func (r *BatchDeleteVqdTasksRequest) SetTaskIds(taskIds []string)

param taskIds: (Required)

type BatchDeleteVqdTasksResponse

type BatchDeleteVqdTasksResponse struct {
	RequestID string                    `json:"requestId"`
	Error     core.ErrorResponse        `json:"error"`
	Result    BatchDeleteVqdTasksResult `json:"result"`
}

type BatchDeleteVqdTasksResult

type BatchDeleteVqdTasksResult struct {
}

type BatchSubmitVqdTasksRequest

type BatchSubmitVqdTasksRequest struct {
	core.JDCloudRequest

	/* 媒体列表  */
	MediaList []vqd.VqdMediaObject `json:"mediaList"`

	/* 检测模板ID  */
	TemplateId string `json:"templateId"`
}

func NewBatchSubmitVqdTasksRequest

func NewBatchSubmitVqdTasksRequest(
	mediaList []vqd.VqdMediaObject,
	templateId string,
) *BatchSubmitVqdTasksRequest

* param mediaList: 媒体列表 (Required) * param templateId: 检测模板ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewBatchSubmitVqdTasksRequestWithAllParams

func NewBatchSubmitVqdTasksRequestWithAllParams(
	mediaList []vqd.VqdMediaObject,
	templateId string,
) *BatchSubmitVqdTasksRequest

* param mediaList: 媒体列表 (Required) * param templateId: 检测模板ID (Required)

func NewBatchSubmitVqdTasksRequestWithoutParam

func NewBatchSubmitVqdTasksRequestWithoutParam() *BatchSubmitVqdTasksRequest

This constructor has better compatible ability when API parameters changed

func (BatchSubmitVqdTasksRequest) GetRegionId

func (r BatchSubmitVqdTasksRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*BatchSubmitVqdTasksRequest) SetMediaList

func (r *BatchSubmitVqdTasksRequest) SetMediaList(mediaList []vqd.VqdMediaObject)

param mediaList: 媒体列表(Required)

func (*BatchSubmitVqdTasksRequest) SetTemplateId

func (r *BatchSubmitVqdTasksRequest) SetTemplateId(templateId string)

param templateId: 检测模板ID(Required)

type BatchSubmitVqdTasksResponse

type BatchSubmitVqdTasksResponse struct {
	RequestID string                    `json:"requestId"`
	Error     core.ErrorResponse        `json:"error"`
	Result    BatchSubmitVqdTasksResult `json:"result"`
}

type BatchSubmitVqdTasksResult

type BatchSubmitVqdTasksResult struct {
	TaskIds []string `json:"taskIds"`
}

type CreateVqdTemplateRequest added in v1.17.0

type CreateVqdTemplateRequest struct {
	core.JDCloudRequest

	/* 模板名称。长度不超过128个字符。UTF-8编码。
	 */
	TemplateName string `json:"templateName"`

	/* 缺陷判定时间阈值,非必须,默认值为 3.0 (Optional) */
	Threshold *float64 `json:"threshold"`

	/* 检测项列表  */
	Detections []string `json:"detections"`
}

func NewCreateVqdTemplateRequest added in v1.17.0

func NewCreateVqdTemplateRequest(
	templateName string,
	detections []string,
) *CreateVqdTemplateRequest

* param templateName: 模板名称。长度不超过128个字符。UTF-8编码。 (Required) * param detections: 检测项列表 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateVqdTemplateRequestWithAllParams added in v1.17.0

func NewCreateVqdTemplateRequestWithAllParams(
	templateName string,
	threshold *float64,
	detections []string,
) *CreateVqdTemplateRequest

* param templateName: 模板名称。长度不超过128个字符。UTF-8编码。 (Required) * param threshold: 缺陷判定时间阈值,非必须,默认值为 3.0 (Optional) * param detections: 检测项列表 (Required)

func NewCreateVqdTemplateRequestWithoutParam added in v1.17.0

func NewCreateVqdTemplateRequestWithoutParam() *CreateVqdTemplateRequest

This constructor has better compatible ability when API parameters changed

func (CreateVqdTemplateRequest) GetRegionId added in v1.17.0

func (r CreateVqdTemplateRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*CreateVqdTemplateRequest) SetDetections added in v1.17.0

func (r *CreateVqdTemplateRequest) SetDetections(detections []string)

param detections: 检测项列表(Required)

func (*CreateVqdTemplateRequest) SetTemplateName added in v1.17.0

func (r *CreateVqdTemplateRequest) SetTemplateName(templateName string)
param templateName: 模板名称。长度不超过128个字符。UTF-8编码。

(Required)

func (*CreateVqdTemplateRequest) SetThreshold added in v1.17.0

func (r *CreateVqdTemplateRequest) SetThreshold(threshold float64)

param threshold: 缺陷判定时间阈值,非必须,默认值为 3.0(Optional)

type CreateVqdTemplateResponse added in v1.17.0

type CreateVqdTemplateResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    CreateVqdTemplateResult `json:"result"`
}

type CreateVqdTemplateResult added in v1.17.0

type CreateVqdTemplateResult struct {
	TemplateId   string   `json:"templateId"`
	TemplateName string   `json:"templateName"`
	Threshold    float64  `json:"threshold"`
	Detections   []string `json:"detections"`
	CreateTime   string   `json:"createTime"`
	UpdateTime   string   `json:"updateTime"`
}

type DeleteVqdTaskRequest added in v1.17.0

type DeleteVqdTaskRequest struct {
	core.JDCloudRequest

	/* 任务ID,路径参数  */
	TaskId string `json:"taskId"`
}

func NewDeleteVqdTaskRequest added in v1.17.0

func NewDeleteVqdTaskRequest(
	taskId string,
) *DeleteVqdTaskRequest

* param taskId: 任务ID,路径参数 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteVqdTaskRequestWithAllParams added in v1.17.0

func NewDeleteVqdTaskRequestWithAllParams(
	taskId string,
) *DeleteVqdTaskRequest

* param taskId: 任务ID,路径参数 (Required)

func NewDeleteVqdTaskRequestWithoutParam added in v1.17.0

func NewDeleteVqdTaskRequestWithoutParam() *DeleteVqdTaskRequest

This constructor has better compatible ability when API parameters changed

func (DeleteVqdTaskRequest) GetRegionId added in v1.17.0

func (r DeleteVqdTaskRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteVqdTaskRequest) SetTaskId added in v1.17.0

func (r *DeleteVqdTaskRequest) SetTaskId(taskId string)

param taskId: 任务ID,路径参数(Required)

type DeleteVqdTaskResponse added in v1.17.0

type DeleteVqdTaskResponse struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    DeleteVqdTaskResult `json:"result"`
}

type DeleteVqdTaskResult added in v1.17.0

type DeleteVqdTaskResult struct {
}

type DeleteVqdTemplateRequest added in v1.17.0

type DeleteVqdTemplateRequest struct {
	core.JDCloudRequest

	/* 模板ID,路径参数  */
	TemplateId string `json:"templateId"`
}

func NewDeleteVqdTemplateRequest added in v1.17.0

func NewDeleteVqdTemplateRequest(
	templateId string,
) *DeleteVqdTemplateRequest

* param templateId: 模板ID,路径参数 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewDeleteVqdTemplateRequestWithAllParams added in v1.17.0

func NewDeleteVqdTemplateRequestWithAllParams(
	templateId string,
) *DeleteVqdTemplateRequest

* param templateId: 模板ID,路径参数 (Required)

func NewDeleteVqdTemplateRequestWithoutParam added in v1.17.0

func NewDeleteVqdTemplateRequestWithoutParam() *DeleteVqdTemplateRequest

This constructor has better compatible ability when API parameters changed

func (DeleteVqdTemplateRequest) GetRegionId added in v1.17.0

func (r DeleteVqdTemplateRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*DeleteVqdTemplateRequest) SetTemplateId added in v1.17.0

func (r *DeleteVqdTemplateRequest) SetTemplateId(templateId string)

param templateId: 模板ID,路径参数(Required)

type DeleteVqdTemplateResponse added in v1.17.0

type DeleteVqdTemplateResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    DeleteVqdTemplateResult `json:"result"`
}

type DeleteVqdTemplateResult added in v1.17.0

type DeleteVqdTemplateResult struct {
}

type GetVqdTaskRequest added in v1.17.0

type GetVqdTaskRequest struct {
	core.JDCloudRequest

	/* 任务ID,路径参数  */
	TaskId string `json:"taskId"`
}

func NewGetVqdTaskRequest added in v1.17.0

func NewGetVqdTaskRequest(
	taskId string,
) *GetVqdTaskRequest

* param taskId: 任务ID,路径参数 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewGetVqdTaskRequestWithAllParams added in v1.17.0

func NewGetVqdTaskRequestWithAllParams(
	taskId string,
) *GetVqdTaskRequest

* param taskId: 任务ID,路径参数 (Required)

func NewGetVqdTaskRequestWithoutParam added in v1.17.0

func NewGetVqdTaskRequestWithoutParam() *GetVqdTaskRequest

This constructor has better compatible ability when API parameters changed

func (GetVqdTaskRequest) GetRegionId added in v1.17.0

func (r GetVqdTaskRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*GetVqdTaskRequest) SetTaskId added in v1.17.0

func (r *GetVqdTaskRequest) SetTaskId(taskId string)

param taskId: 任务ID,路径参数(Required)

type GetVqdTaskResponse added in v1.17.0

type GetVqdTaskResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    GetVqdTaskResult   `json:"result"`
}

type GetVqdTaskResult added in v1.17.0

type GetVqdTaskResult struct {
	TaskId     string   `json:"taskId"`
	TemplateId string   `json:"templateId"`
	MediaName  string   `json:"mediaName"`
	Threshold  float64  `json:"threshold"`
	Detections []string `json:"detections"`
	Status     string   `json:"status"`
	CreateTime string   `json:"createTime"`
	UpdateTime string   `json:"updateTime"`
}

type GetVqdTemplateRequest added in v1.17.0

type GetVqdTemplateRequest struct {
	core.JDCloudRequest

	/* 模板ID,路径参数  */
	TemplateId string `json:"templateId"`
}

func NewGetVqdTemplateRequest added in v1.17.0

func NewGetVqdTemplateRequest(
	templateId string,
) *GetVqdTemplateRequest

* param templateId: 模板ID,路径参数 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewGetVqdTemplateRequestWithAllParams added in v1.17.0

func NewGetVqdTemplateRequestWithAllParams(
	templateId string,
) *GetVqdTemplateRequest

* param templateId: 模板ID,路径参数 (Required)

func NewGetVqdTemplateRequestWithoutParam added in v1.17.0

func NewGetVqdTemplateRequestWithoutParam() *GetVqdTemplateRequest

This constructor has better compatible ability when API parameters changed

func (GetVqdTemplateRequest) GetRegionId added in v1.17.0

func (r GetVqdTemplateRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*GetVqdTemplateRequest) SetTemplateId added in v1.17.0

func (r *GetVqdTemplateRequest) SetTemplateId(templateId string)

param templateId: 模板ID,路径参数(Required)

type GetVqdTemplateResponse added in v1.17.0

type GetVqdTemplateResponse struct {
	RequestID string               `json:"requestId"`
	Error     core.ErrorResponse   `json:"error"`
	Result    GetVqdTemplateResult `json:"result"`
}

type GetVqdTemplateResult added in v1.17.0

type GetVqdTemplateResult struct {
	TemplateId   string   `json:"templateId"`
	TemplateName string   `json:"templateName"`
	Threshold    float64  `json:"threshold"`
	Detections   []string `json:"detections"`
	CreateTime   string   `json:"createTime"`
	UpdateTime   string   `json:"updateTime"`
}

type ListVqdTasksRequest added in v1.17.0

type ListVqdTasksRequest struct {
	core.JDCloudRequest

	/* 页码;默认值为 1 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小;默认值为 10;取值范围 [10, 100] (Optional) */
	PageSize *int `json:"pageSize"`

	/*  (Optional) */
	Filters []vqd.Filter `json:"filters"`
}

func NewListVqdTasksRequest added in v1.17.0

func NewListVqdTasksRequest() *ListVqdTasksRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewListVqdTasksRequestWithAllParams added in v1.17.0

func NewListVqdTasksRequestWithAllParams(
	pageNumber *int,
	pageSize *int,
	filters []vqd.Filter,
) *ListVqdTasksRequest

* param pageNumber: 页码;默认值为 1 (Optional) * param pageSize: 分页大小;默认值为 10;取值范围 [10, 100] (Optional) * param filters: (Optional)

func NewListVqdTasksRequestWithoutParam added in v1.17.0

func NewListVqdTasksRequestWithoutParam() *ListVqdTasksRequest

This constructor has better compatible ability when API parameters changed

func (ListVqdTasksRequest) GetRegionId added in v1.17.0

func (r ListVqdTasksRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ListVqdTasksRequest) SetFilters added in v1.17.0

func (r *ListVqdTasksRequest) SetFilters(filters []vqd.Filter)

param filters: (Optional)

func (*ListVqdTasksRequest) SetPageNumber added in v1.17.0

func (r *ListVqdTasksRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码;默认值为 1(Optional)

func (*ListVqdTasksRequest) SetPageSize added in v1.17.0

func (r *ListVqdTasksRequest) SetPageSize(pageSize int)

param pageSize: 分页大小;默认值为 10;取值范围 [10, 100](Optional)

type ListVqdTasksResponse added in v1.17.0

type ListVqdTasksResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    ListVqdTasksResult `json:"result"`
}

type ListVqdTasksResult added in v1.17.0

type ListVqdTasksResult struct {
	PageNumber    int                 `json:"pageNumber"`
	PageSize      int                 `json:"pageSize"`
	TotalElements int                 `json:"totalElements"`
	TotalPages    int                 `json:"totalPages"`
	Content       []vqd.VqdTaskObject `json:"content"`
}

type ListVqdTemplatesRequest added in v1.17.0

type ListVqdTemplatesRequest struct {
	core.JDCloudRequest

	/* 页码;默认值为 1 (Optional) */
	PageNumber *int `json:"pageNumber"`

	/* 分页大小;默认值为 10;取值范围 [10, 100] (Optional) */
	PageSize *int `json:"pageSize"`

	/*  (Optional) */
	Filters []vqd.Filter `json:"filters"`
}

func NewListVqdTemplatesRequest added in v1.17.0

func NewListVqdTemplatesRequest() *ListVqdTemplatesRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewListVqdTemplatesRequestWithAllParams added in v1.17.0

func NewListVqdTemplatesRequestWithAllParams(
	pageNumber *int,
	pageSize *int,
	filters []vqd.Filter,
) *ListVqdTemplatesRequest

* param pageNumber: 页码;默认值为 1 (Optional) * param pageSize: 分页大小;默认值为 10;取值范围 [10, 100] (Optional) * param filters: (Optional)

func NewListVqdTemplatesRequestWithoutParam added in v1.17.0

func NewListVqdTemplatesRequestWithoutParam() *ListVqdTemplatesRequest

This constructor has better compatible ability when API parameters changed

func (ListVqdTemplatesRequest) GetRegionId added in v1.17.0

func (r ListVqdTemplatesRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*ListVqdTemplatesRequest) SetFilters added in v1.17.0

func (r *ListVqdTemplatesRequest) SetFilters(filters []vqd.Filter)

param filters: (Optional)

func (*ListVqdTemplatesRequest) SetPageNumber added in v1.17.0

func (r *ListVqdTemplatesRequest) SetPageNumber(pageNumber int)

param pageNumber: 页码;默认值为 1(Optional)

func (*ListVqdTemplatesRequest) SetPageSize added in v1.17.0

func (r *ListVqdTemplatesRequest) SetPageSize(pageSize int)

param pageSize: 分页大小;默认值为 10;取值范围 [10, 100](Optional)

type ListVqdTemplatesResponse added in v1.17.0

type ListVqdTemplatesResponse struct {
	RequestID string                 `json:"requestId"`
	Error     core.ErrorResponse     `json:"error"`
	Result    ListVqdTemplatesResult `json:"result"`
}

type ListVqdTemplatesResult added in v1.17.0

type ListVqdTemplatesResult struct {
	PageNumber    int                     `json:"pageNumber"`
	PageSize      int                     `json:"pageSize"`
	TotalElements int                     `json:"totalElements"`
	TotalPages    int                     `json:"totalPages"`
	Content       []vqd.VqdTemplateObject `json:"content"`
}

type QueryCallbackRequest

type QueryCallbackRequest struct {
	core.JDCloudRequest
}

func NewQueryCallbackRequest

func NewQueryCallbackRequest() *QueryCallbackRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewQueryCallbackRequestWithAllParams

func NewQueryCallbackRequestWithAllParams() *QueryCallbackRequest

func NewQueryCallbackRequestWithoutParam

func NewQueryCallbackRequestWithoutParam() *QueryCallbackRequest

This constructor has better compatible ability when API parameters changed

func (QueryCallbackRequest) GetRegionId

func (r QueryCallbackRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

type QueryCallbackResponse

type QueryCallbackResponse struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    QueryCallbackResult `json:"result"`
}

type QueryCallbackResult

type QueryCallbackResult struct {
	CallbackType   string   `json:"callbackType"`
	HttpUrl        string   `json:"httpUrl"`
	CallbackEvents []string `json:"callbackEvents"`
	CreateTime     string   `json:"createTime"`
	UpdateTime     string   `json:"updateTime"`
}

type QueryVqdTaskResultRequest added in v1.17.0

type QueryVqdTaskResultRequest struct {
	core.JDCloudRequest

	/* 任务ID,路径参数  */
	TaskId string `json:"taskId"`
}

func NewQueryVqdTaskResultRequest added in v1.17.0

func NewQueryVqdTaskResultRequest(
	taskId string,
) *QueryVqdTaskResultRequest

* param taskId: 任务ID,路径参数 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewQueryVqdTaskResultRequestWithAllParams added in v1.17.0

func NewQueryVqdTaskResultRequestWithAllParams(
	taskId string,
) *QueryVqdTaskResultRequest

* param taskId: 任务ID,路径参数 (Required)

func NewQueryVqdTaskResultRequestWithoutParam added in v1.17.0

func NewQueryVqdTaskResultRequestWithoutParam() *QueryVqdTaskResultRequest

This constructor has better compatible ability when API parameters changed

func (QueryVqdTaskResultRequest) GetRegionId added in v1.17.0

func (r QueryVqdTaskResultRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*QueryVqdTaskResultRequest) SetTaskId added in v1.17.0

func (r *QueryVqdTaskResultRequest) SetTaskId(taskId string)

param taskId: 任务ID,路径参数(Required)

type QueryVqdTaskResultResponse added in v1.17.0

type QueryVqdTaskResultResponse struct {
	RequestID string                   `json:"requestId"`
	Error     core.ErrorResponse       `json:"error"`
	Result    QueryVqdTaskResultResult `json:"result"`
}

type QueryVqdTaskResultResult added in v1.17.0

type QueryVqdTaskResultResult struct {
	TaskId    string                `json:"taskId"`
	Status    string                `json:"status"`
	Defects   []vqd.VqdDefectObject `json:"defects"`
	ErrorCode string                `json:"errorCode"`
}

type SetCallbackRequest

type SetCallbackRequest struct {
	core.JDCloudRequest

	/* 回调方式,目前只支持 http  */
	CallbackType string `json:"callbackType"`

	/* HTTP方式的该字段为必选项 (Optional) */
	HttpUrl *string `json:"httpUrl"`

	/* 回调事件列表。
	- VqdSuccess 视频质检成功
	- VqdFailure 视频质检失败
	- VqdStart 视频质检开始
	*/
	CallbackEvents []string `json:"callbackEvents"`
}

func NewSetCallbackRequest

func NewSetCallbackRequest(
	callbackType string,
	callbackEvents []string,
) *SetCallbackRequest
  • param callbackType: 回调方式,目前只支持 http (Required)
  • param callbackEvents: 回调事件列表。
  • VqdSuccess 视频质检成功
  • VqdFailure 视频质检失败
  • VqdStart 视频质检开始 (Required) *
  • @Deprecated, not compatible when mandatory parameters changed

func NewSetCallbackRequestWithAllParams

func NewSetCallbackRequestWithAllParams(
	callbackType string,
	httpUrl *string,
	callbackEvents []string,
) *SetCallbackRequest
  • param callbackType: 回调方式,目前只支持 http (Required)
  • param httpUrl: HTTP方式的该字段为必选项 (Optional)
  • param callbackEvents: 回调事件列表。
  • VqdSuccess 视频质检成功
  • VqdFailure 视频质检失败
  • VqdStart 视频质检开始 (Required)

func NewSetCallbackRequestWithoutParam

func NewSetCallbackRequestWithoutParam() *SetCallbackRequest

This constructor has better compatible ability when API parameters changed

func (SetCallbackRequest) GetRegionId

func (r SetCallbackRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*SetCallbackRequest) SetCallbackEvents

func (r *SetCallbackRequest) SetCallbackEvents(callbackEvents []string)
param callbackEvents: 回调事件列表。

- VqdSuccess 视频质检成功 - VqdFailure 视频质检失败 - VqdStart 视频质检开始 (Required)

func (*SetCallbackRequest) SetCallbackType

func (r *SetCallbackRequest) SetCallbackType(callbackType string)

param callbackType: 回调方式,目前只支持 http(Required)

func (*SetCallbackRequest) SetHttpUrl

func (r *SetCallbackRequest) SetHttpUrl(httpUrl string)

param httpUrl: HTTP方式的该字段为必选项(Optional)

type SetCallbackResponse

type SetCallbackResponse struct {
	RequestID string             `json:"requestId"`
	Error     core.ErrorResponse `json:"error"`
	Result    SetCallbackResult  `json:"result"`
}

type SetCallbackResult

type SetCallbackResult struct {
}

type SubmitVqdTaskRequest added in v1.17.0

type SubmitVqdTaskRequest struct {
	core.JDCloudRequest

	/*   */
	Media *vqd.VqdMediaObject `json:"media"`

	/* 检测模板ID  */
	TemplateId string `json:"templateId"`
}

func NewSubmitVqdTaskRequest added in v1.17.0

func NewSubmitVqdTaskRequest(
	media *vqd.VqdMediaObject,
	templateId string,
) *SubmitVqdTaskRequest

* param media: (Required) * param templateId: 检测模板ID (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewSubmitVqdTaskRequestWithAllParams added in v1.17.0

func NewSubmitVqdTaskRequestWithAllParams(
	media *vqd.VqdMediaObject,
	templateId string,
) *SubmitVqdTaskRequest

* param media: (Required) * param templateId: 检测模板ID (Required)

func NewSubmitVqdTaskRequestWithoutParam added in v1.17.0

func NewSubmitVqdTaskRequestWithoutParam() *SubmitVqdTaskRequest

This constructor has better compatible ability when API parameters changed

func (SubmitVqdTaskRequest) GetRegionId added in v1.17.0

func (r SubmitVqdTaskRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*SubmitVqdTaskRequest) SetMedia added in v1.17.0

func (r *SubmitVqdTaskRequest) SetMedia(media *vqd.VqdMediaObject)

param media: (Required)

func (*SubmitVqdTaskRequest) SetTemplateId added in v1.17.0

func (r *SubmitVqdTaskRequest) SetTemplateId(templateId string)

param templateId: 检测模板ID(Required)

type SubmitVqdTaskResponse added in v1.17.0

type SubmitVqdTaskResponse struct {
	RequestID string              `json:"requestId"`
	Error     core.ErrorResponse  `json:"error"`
	Result    SubmitVqdTaskResult `json:"result"`
}

type SubmitVqdTaskResult added in v1.17.0

type SubmitVqdTaskResult struct {
	TaskId string `json:"taskId"`
}

type UpdateVqdTemplateRequest added in v1.17.0

type UpdateVqdTemplateRequest struct {
	core.JDCloudRequest

	/* 模板ID,路径参数  */
	TemplateId string `json:"templateId"`

	/* 模板名称。长度不超过128个字符。UTF-8编码。
	(Optional) */
	TemplateName *string `json:"templateName"`

	/* 缺陷判定时间阈值 (Optional) */
	Threshold *float64 `json:"threshold"`

	/* 检测项列表 (Optional) */
	Detections []string `json:"detections"`
}

func NewUpdateVqdTemplateRequest added in v1.17.0

func NewUpdateVqdTemplateRequest(
	templateId string,
) *UpdateVqdTemplateRequest

* param templateId: 模板ID,路径参数 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewUpdateVqdTemplateRequestWithAllParams added in v1.17.0

func NewUpdateVqdTemplateRequestWithAllParams(
	templateId string,
	templateName *string,
	threshold *float64,
	detections []string,
) *UpdateVqdTemplateRequest

* param templateId: 模板ID,路径参数 (Required) * param templateName: 模板名称。长度不超过128个字符。UTF-8编码。 (Optional) * param threshold: 缺陷判定时间阈值 (Optional) * param detections: 检测项列表 (Optional)

func NewUpdateVqdTemplateRequestWithoutParam added in v1.17.0

func NewUpdateVqdTemplateRequestWithoutParam() *UpdateVqdTemplateRequest

This constructor has better compatible ability when API parameters changed

func (UpdateVqdTemplateRequest) GetRegionId added in v1.17.0

func (r UpdateVqdTemplateRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*UpdateVqdTemplateRequest) SetDetections added in v1.17.0

func (r *UpdateVqdTemplateRequest) SetDetections(detections []string)

param detections: 检测项列表(Optional)

func (*UpdateVqdTemplateRequest) SetTemplateId added in v1.17.0

func (r *UpdateVqdTemplateRequest) SetTemplateId(templateId string)

param templateId: 模板ID,路径参数(Required)

func (*UpdateVqdTemplateRequest) SetTemplateName added in v1.17.0

func (r *UpdateVqdTemplateRequest) SetTemplateName(templateName string)
param templateName: 模板名称。长度不超过128个字符。UTF-8编码。

(Optional)

func (*UpdateVqdTemplateRequest) SetThreshold added in v1.17.0

func (r *UpdateVqdTemplateRequest) SetThreshold(threshold float64)

param threshold: 缺陷判定时间阈值(Optional)

type UpdateVqdTemplateResponse added in v1.17.0

type UpdateVqdTemplateResponse struct {
	RequestID string                  `json:"requestId"`
	Error     core.ErrorResponse      `json:"error"`
	Result    UpdateVqdTemplateResult `json:"result"`
}

type UpdateVqdTemplateResult added in v1.17.0

type UpdateVqdTemplateResult struct {
	TemplateId   string   `json:"templateId"`
	TemplateName string   `json:"templateName"`
	Threshold    float64  `json:"threshold"`
	Detections   []string `json:"detections"`
	CreateTime   string   `json:"createTime"`
	UpdateTime   string   `json:"updateTime"`
}

Jump to

Keyboard shortcuts

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