apis

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 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 AsyncImageScanRequest

type AsyncImageScanRequest struct {
	core.JDCloudRequest

	/* 指定检测场景 (Optional) */
	Scenes []string `json:"scenes"`

	/* 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见ImageTask。 (Optional) */
	Tasks []censor.ImageTask `json:"tasks"`

	/* 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。 (Optional) */
	Callback *string `json:"callback"`

	/* 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。 (Optional) */
	Seed *string `json:"seed"`
}

func NewAsyncImageScanRequest

func NewAsyncImageScanRequest() *AsyncImageScanRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewAsyncImageScanRequestWithAllParams

func NewAsyncImageScanRequestWithAllParams(
	scenes []string,
	tasks []censor.ImageTask,
	callback *string,
	seed *string,
) *AsyncImageScanRequest

* param scenes: 指定检测场景 (Optional) * param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见ImageTask。 (Optional) * param callback: 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。 (Optional) * param seed: 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。 (Optional)

func NewAsyncImageScanRequestWithoutParam

func NewAsyncImageScanRequestWithoutParam() *AsyncImageScanRequest

This constructor has better compatible ability when API parameters changed

func (AsyncImageScanRequest) GetRegionId

func (r AsyncImageScanRequest) GetRegionId() string

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

func (*AsyncImageScanRequest) SetCallback

func (r *AsyncImageScanRequest) SetCallback(callback string)

param callback: 异步检测结果回调通知您的URL,支持HTTP/HTTPS。该字段为空时,您必须定时检索检测结果。(Optional)

func (*AsyncImageScanRequest) SetScenes

func (r *AsyncImageScanRequest) SetScenes(scenes []string)

param scenes: 指定检测场景(Optional)

func (*AsyncImageScanRequest) SetSeed

func (r *AsyncImageScanRequest) SetSeed(seed string)

param seed: 随机字符串,该值用于回调通知请求中的签名。当使用callback时,该字段必须提供。(Optional)

func (*AsyncImageScanRequest) SetTasks

func (r *AsyncImageScanRequest) SetTasks(tasks []censor.ImageTask)

param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,每个元素的具体结构描述见ImageTask。(Optional)

type AsyncImageScanResponse

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

type AsyncImageScanResult

type AsyncImageScanResult struct {
	Data []censor.TaskData `json:"data"`
}

type ImageResultsRequest

type ImageResultsRequest struct {
	core.JDCloudRequest

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

func NewImageResultsRequest

func NewImageResultsRequest(
	taskIds []string,
) *ImageResultsRequest

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

func NewImageResultsRequestWithAllParams

func NewImageResultsRequestWithAllParams(
	taskIds []string,
) *ImageResultsRequest

* param taskIds: (Required)

func NewImageResultsRequestWithoutParam

func NewImageResultsRequestWithoutParam() *ImageResultsRequest

This constructor has better compatible ability when API parameters changed

func (ImageResultsRequest) GetRegionId

func (r ImageResultsRequest) GetRegionId() string

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

func (*ImageResultsRequest) SetTaskIds

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

param taskIds: (Required)

type ImageResultsResponse

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

type ImageResultsResult

type ImageResultsResult struct {
	Data []censor.ImageResult `json:"data"`
}

type ImageScanRequest

type ImageScanRequest struct {
	core.JDCloudRequest

	/* 指定检测场景 (Optional) */
	Scenes []string `json:"scenes"`

	/* 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见ImageTask。 (Optional) */
	Tasks []censor.ImageTask `json:"tasks"`
}

func NewImageScanRequest

func NewImageScanRequest() *ImageScanRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewImageScanRequestWithAllParams

func NewImageScanRequestWithAllParams(
	scenes []string,
	tasks []censor.ImageTask,
) *ImageScanRequest

* param scenes: 指定检测场景 (Optional) * param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见ImageTask。 (Optional)

func NewImageScanRequestWithoutParam

func NewImageScanRequestWithoutParam() *ImageScanRequest

This constructor has better compatible ability when API parameters changed

func (ImageScanRequest) GetRegionId

func (r ImageScanRequest) GetRegionId() string

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

func (*ImageScanRequest) SetScenes

func (r *ImageScanRequest) SetScenes(scenes []string)

param scenes: 指定检测场景(Optional)

func (*ImageScanRequest) SetTasks

func (r *ImageScanRequest) SetTasks(tasks []censor.ImageTask)

param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见ImageTask。(Optional)

type ImageScanResponse

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

type ImageScanResult

type ImageScanResult struct {
	Data []censor.ImageResult `json:"data"`
}

type TextScanRequest

type TextScanRequest struct {
	core.JDCloudRequest

	/* 指定检测场景,固定值:antispam (Optional) */
	Scenes []string `json:"scenes"`

	/* 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见TextTask。 (Optional) */
	Tasks []censor.TextTask `json:"tasks"`
}

func NewTextScanRequest

func NewTextScanRequest() *TextScanRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewTextScanRequestWithAllParams

func NewTextScanRequestWithAllParams(
	scenes []string,
	tasks []censor.TextTask,
) *TextScanRequest

* param scenes: 指定检测场景,固定值:antispam (Optional) * param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见TextTask。 (Optional)

func NewTextScanRequestWithoutParam

func NewTextScanRequestWithoutParam() *TextScanRequest

This constructor has better compatible ability when API parameters changed

func (TextScanRequest) GetRegionId

func (r TextScanRequest) GetRegionId() string

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

func (*TextScanRequest) SetScenes

func (r *TextScanRequest) SetScenes(scenes []string)

param scenes: 指定检测场景,固定值:antispam(Optional)

func (*TextScanRequest) SetTasks

func (r *TextScanRequest) SetTasks(tasks []censor.TextTask)

param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加10个元素,即最多对10段文本进行检测。每个元素的具体结构描述见TextTask。(Optional)

type TextScanResponse

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

type TextScanResult

type TextScanResult struct {
	Data []censor.TextResult `json:"data"`
}

Jump to

Keyboard shortcuts

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