apis

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateViTemplateRequest

type CreateViTemplateRequest struct {
	core.JDCloudRequest

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

	/* 截图间隔 (Optional) */
	ShotInterval *int `json:"shotInterval"`

	/* 间隔类型:time, percent (Optional) */
	ShotIntervalType *string `json:"shotIntervalType"`

	/* 截图格式:png, jpg (Optional) */
	ShotFormat *string `json:"shotFormat"`

	/* 截图帧类型:any, key (Optional) */
	ShotFrameType *string `json:"shotFrameType"`

	/* 截图宽度 (Optional) */
	ShotWidth *int `json:"shotWidth"`

	/* 截图高度 (Optional) */
	ShotHeight *int `json:"shotHeight"`

	/* 截图填充类型:stretch, gauss, black, white (Optional) */
	ShotFillType *string `json:"shotFillType"`

	/* 审查配置,JSON格式  */
	InspectItems string `json:"inspectItems"`
}

func NewCreateViTemplateRequest

func NewCreateViTemplateRequest(
	templateName string,
	inspectItems string,
) *CreateViTemplateRequest

* param templateName: 模板名称。长度不超过128个字符。UTF-8编码。 (Required) * param inspectItems: 审查配置,JSON格式 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewCreateViTemplateRequestWithAllParams

func NewCreateViTemplateRequestWithAllParams(
	templateName string,
	shotInterval *int,
	shotIntervalType *string,
	shotFormat *string,
	shotFrameType *string,
	shotWidth *int,
	shotHeight *int,
	shotFillType *string,
	inspectItems string,
) *CreateViTemplateRequest

* param templateName: 模板名称。长度不超过128个字符。UTF-8编码。 (Required) * param shotInterval: 截图间隔 (Optional) * param shotIntervalType: 间隔类型:time, percent (Optional) * param shotFormat: 截图格式:png, jpg (Optional) * param shotFrameType: 截图帧类型:any, key (Optional) * param shotWidth: 截图宽度 (Optional) * param shotHeight: 截图高度 (Optional) * param shotFillType: 截图填充类型:stretch, gauss, black, white (Optional) * param inspectItems: 审查配置,JSON格式 (Required)

func NewCreateViTemplateRequestWithoutParam

func NewCreateViTemplateRequestWithoutParam() *CreateViTemplateRequest

This constructor has better compatible ability when API parameters changed

func (CreateViTemplateRequest) GetRegionId

func (r CreateViTemplateRequest) GetRegionId() string

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

func (*CreateViTemplateRequest) SetInspectItems

func (r *CreateViTemplateRequest) SetInspectItems(inspectItems string)

param inspectItems: 审查配置,JSON格式(Required)

func (*CreateViTemplateRequest) SetShotFillType

func (r *CreateViTemplateRequest) SetShotFillType(shotFillType string)

param shotFillType: 截图填充类型:stretch, gauss, black, white(Optional)

func (*CreateViTemplateRequest) SetShotFormat

func (r *CreateViTemplateRequest) SetShotFormat(shotFormat string)

param shotFormat: 截图格式:png, jpg(Optional)

func (*CreateViTemplateRequest) SetShotFrameType

func (r *CreateViTemplateRequest) SetShotFrameType(shotFrameType string)

param shotFrameType: 截图帧类型:any, key(Optional)

func (*CreateViTemplateRequest) SetShotHeight

func (r *CreateViTemplateRequest) SetShotHeight(shotHeight int)

param shotHeight: 截图高度(Optional)

func (*CreateViTemplateRequest) SetShotInterval

func (r *CreateViTemplateRequest) SetShotInterval(shotInterval int)

param shotInterval: 截图间隔(Optional)

func (*CreateViTemplateRequest) SetShotIntervalType

func (r *CreateViTemplateRequest) SetShotIntervalType(shotIntervalType string)

param shotIntervalType: 间隔类型:time, percent(Optional)

func (*CreateViTemplateRequest) SetShotWidth

func (r *CreateViTemplateRequest) SetShotWidth(shotWidth int)

param shotWidth: 截图宽度(Optional)

func (*CreateViTemplateRequest) SetTemplateName

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

(Required)

type CreateViTemplateResponse

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

type CreateViTemplateResult

type CreateViTemplateResult struct {
	TemplateId       string `json:"templateId"`
	TemplateName     string `json:"templateName"`
	ShotInterval     int    `json:"shotInterval"`
	ShotIntervalType string `json:"shotIntervalType"`
	ShotFormat       string `json:"shotFormat"`
	ShotFrameType    string `json:"shotFrameType"`
	ShotWidth        int    `json:"shotWidth"`
	ShotHeight       int    `json:"shotHeight"`
	ShotFillType     string `json:"shotFillType"`
	InspectItems     string `json:"inspectItems"`
	CreateTime       string `json:"createTime"`
	UpdateTime       string `json:"updateTime"`
}

type DeleteViTemplateRequest

type DeleteViTemplateRequest struct {
	core.JDCloudRequest

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

func NewDeleteViTemplateRequest

func NewDeleteViTemplateRequest(
	templateId string,
) *DeleteViTemplateRequest

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

func NewDeleteViTemplateRequestWithAllParams

func NewDeleteViTemplateRequestWithAllParams(
	templateId string,
) *DeleteViTemplateRequest

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

func NewDeleteViTemplateRequestWithoutParam

func NewDeleteViTemplateRequestWithoutParam() *DeleteViTemplateRequest

This constructor has better compatible ability when API parameters changed

func (DeleteViTemplateRequest) GetRegionId

func (r DeleteViTemplateRequest) GetRegionId() string

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

func (*DeleteViTemplateRequest) SetTemplateId

func (r *DeleteViTemplateRequest) SetTemplateId(templateId string)

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

type DeleteViTemplateResponse

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

type DeleteViTemplateResult

type DeleteViTemplateResult struct {
}

type GetViJobSummaryRequest

type GetViJobSummaryRequest struct {
	core.JDCloudRequest

	/* 作业ID,路径参数  */
	JobId string `json:"jobId"`
}

func NewGetViJobSummaryRequest

func NewGetViJobSummaryRequest(
	jobId string,
) *GetViJobSummaryRequest

* param jobId: 作业ID,路径参数 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewGetViJobSummaryRequestWithAllParams

func NewGetViJobSummaryRequestWithAllParams(
	jobId string,
) *GetViJobSummaryRequest

* param jobId: 作业ID,路径参数 (Required)

func NewGetViJobSummaryRequestWithoutParam

func NewGetViJobSummaryRequestWithoutParam() *GetViJobSummaryRequest

This constructor has better compatible ability when API parameters changed

func (GetViJobSummaryRequest) GetRegionId

func (r GetViJobSummaryRequest) GetRegionId() string

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

func (*GetViJobSummaryRequest) SetJobId

func (r *GetViJobSummaryRequest) SetJobId(jobId string)

param jobId: 作业ID,路径参数(Required)

type GetViJobSummaryResponse

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

type GetViJobSummaryResult

type GetViJobSummaryResult struct {
	JobId          string `json:"jobId"`
	TemplateId     string `json:"templateId"`
	Region         string `json:"region"`
	InputBucket    string `json:"inputBucket"`
	InputFileKey   string `json:"inputFileKey"`
	OutputBucket   string `json:"outputBucket"`
	OutputFilePath string `json:"outputFilePath"`
	CreateTime     string `json:"createTime"`
	UpdateTime     string `json:"updateTime"`
}

type GetViTemplateRequest

type GetViTemplateRequest struct {
	core.JDCloudRequest

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

func NewGetViTemplateRequest

func NewGetViTemplateRequest(
	templateId string,
) *GetViTemplateRequest

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

func NewGetViTemplateRequestWithAllParams

func NewGetViTemplateRequestWithAllParams(
	templateId string,
) *GetViTemplateRequest

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

func NewGetViTemplateRequestWithoutParam

func NewGetViTemplateRequestWithoutParam() *GetViTemplateRequest

This constructor has better compatible ability when API parameters changed

func (GetViTemplateRequest) GetRegionId

func (r GetViTemplateRequest) GetRegionId() string

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

func (*GetViTemplateRequest) SetTemplateId

func (r *GetViTemplateRequest) SetTemplateId(templateId string)

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

type GetViTemplateResponse

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

type GetViTemplateResult

type GetViTemplateResult struct {
	TemplateId       string `json:"templateId"`
	TemplateName     string `json:"templateName"`
	ShotInterval     int    `json:"shotInterval"`
	ShotIntervalType string `json:"shotIntervalType"`
	ShotFormat       string `json:"shotFormat"`
	ShotFrameType    string `json:"shotFrameType"`
	ShotWidth        int    `json:"shotWidth"`
	ShotHeight       int    `json:"shotHeight"`
	ShotFillType     string `json:"shotFillType"`
	InspectItems     string `json:"inspectItems"`
	CreateTime       string `json:"createTime"`
	UpdateTime       string `json:"updateTime"`
}

type ListViTemplatesRequest

type ListViTemplatesRequest struct {
	core.JDCloudRequest

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

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

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

func NewListViTemplatesRequest

func NewListViTemplatesRequest() *ListViTemplatesRequest

* * @Deprecated, not compatible when mandatory parameters changed

func NewListViTemplatesRequestWithAllParams

func NewListViTemplatesRequestWithAllParams(
	pageNumber *int,
	pageSize *int,
	filters []iv.Filter,
) *ListViTemplatesRequest

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

func NewListViTemplatesRequestWithoutParam

func NewListViTemplatesRequestWithoutParam() *ListViTemplatesRequest

This constructor has better compatible ability when API parameters changed

func (ListViTemplatesRequest) GetRegionId

func (r ListViTemplatesRequest) GetRegionId() string

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

func (*ListViTemplatesRequest) SetFilters

func (r *ListViTemplatesRequest) SetFilters(filters []iv.Filter)

param filters: (Optional)

func (*ListViTemplatesRequest) SetPageNumber

func (r *ListViTemplatesRequest) SetPageNumber(pageNumber int)

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

func (*ListViTemplatesRequest) SetPageSize

func (r *ListViTemplatesRequest) SetPageSize(pageSize int)

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

type ListViTemplatesResponse

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

type ListViTemplatesResult

type ListViTemplatesResult struct {
	PageNumber    int                 `json:"pageNumber"`
	PageSize      int                 `json:"pageSize"`
	TotalElements int                 `json:"totalElements"`
	TotalPages    int                 `json:"totalPages"`
	Content       []iv.ViTemplateInfo `json:"content"`
}

type SubmitViJobRequest

type SubmitViJobRequest struct {
	core.JDCloudRequest

	/* 视频审查模板ID  */
	TemplateId string `json:"templateId"`

	/* 对象存储区域,输入和输入同区域  */
	Region string `json:"region"`

	/* 输入空间 (Optional) */
	InputBucket *string `json:"inputBucket"`

	/* 输入文件 (Optional) */
	InputFileKey *string `json:"inputFileKey"`

	/* 输入空间 (Optional) */
	OutputBucket *string `json:"outputBucket"`

	/* 输入路径 (Optional) */
	OutputFilePath *string `json:"outputFilePath"`
}

func NewSubmitViJobRequest

func NewSubmitViJobRequest(
	templateId string,
	region string,
) *SubmitViJobRequest

* param templateId: 视频审查模板ID (Required) * param region: 对象存储区域,输入和输入同区域 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewSubmitViJobRequestWithAllParams

func NewSubmitViJobRequestWithAllParams(
	templateId string,
	region string,
	inputBucket *string,
	inputFileKey *string,
	outputBucket *string,
	outputFilePath *string,
) *SubmitViJobRequest

* param templateId: 视频审查模板ID (Required) * param region: 对象存储区域,输入和输入同区域 (Required) * param inputBucket: 输入空间 (Optional) * param inputFileKey: 输入文件 (Optional) * param outputBucket: 输入空间 (Optional) * param outputFilePath: 输入路径 (Optional)

func NewSubmitViJobRequestWithoutParam

func NewSubmitViJobRequestWithoutParam() *SubmitViJobRequest

This constructor has better compatible ability when API parameters changed

func (SubmitViJobRequest) GetRegionId

func (r SubmitViJobRequest) GetRegionId() string

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

func (*SubmitViJobRequest) SetInputBucket

func (r *SubmitViJobRequest) SetInputBucket(inputBucket string)

param inputBucket: 输入空间(Optional)

func (*SubmitViJobRequest) SetInputFileKey

func (r *SubmitViJobRequest) SetInputFileKey(inputFileKey string)

param inputFileKey: 输入文件(Optional)

func (*SubmitViJobRequest) SetOutputBucket

func (r *SubmitViJobRequest) SetOutputBucket(outputBucket string)

param outputBucket: 输入空间(Optional)

func (*SubmitViJobRequest) SetOutputFilePath

func (r *SubmitViJobRequest) SetOutputFilePath(outputFilePath string)

param outputFilePath: 输入路径(Optional)

func (*SubmitViJobRequest) SetRegion

func (r *SubmitViJobRequest) SetRegion(region string)

param region: 对象存储区域,输入和输入同区域(Required)

func (*SubmitViJobRequest) SetTemplateId

func (r *SubmitViJobRequest) SetTemplateId(templateId string)

param templateId: 视频审查模板ID(Required)

type SubmitViJobResponse

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

type SubmitViJobResult

type SubmitViJobResult struct {
	JobId          string `json:"jobId"`
	TemplateId     string `json:"templateId"`
	Region         string `json:"region"`
	InputBucket    string `json:"inputBucket"`
	InputFileKey   string `json:"inputFileKey"`
	OutputBucket   string `json:"outputBucket"`
	OutputFilePath string `json:"outputFilePath"`
	CreateTime     string `json:"createTime"`
	UpdateTime     string `json:"updateTime"`
}

type UpdateViTemplateRequest

type UpdateViTemplateRequest struct {
	core.JDCloudRequest

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

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

	/* 截图间隔 (Optional) */
	ShotInterval *int `json:"shotInterval"`

	/* 间隔类型:time, percent (Optional) */
	ShotIntervalType *string `json:"shotIntervalType"`

	/* 截图格式:png, jpg (Optional) */
	ShotFormat *string `json:"shotFormat"`

	/* 截图帧类型:any, key (Optional) */
	ShotFrameType *string `json:"shotFrameType"`

	/* 截图宽度 (Optional) */
	ShotWidth *int `json:"shotWidth"`

	/* 截图高度 (Optional) */
	ShotHeight *int `json:"shotHeight"`

	/* 截图填充类型:stretch, gauss, black, white (Optional) */
	ShotFillType *string `json:"shotFillType"`

	/* 审查配置,JSON格式 (Optional) */
	InspectItems *string `json:"inspectItems"`
}

func NewUpdateViTemplateRequest

func NewUpdateViTemplateRequest(
	templateId string,
) *UpdateViTemplateRequest

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

func NewUpdateViTemplateRequestWithAllParams

func NewUpdateViTemplateRequestWithAllParams(
	templateId string,
	templateName *string,
	shotInterval *int,
	shotIntervalType *string,
	shotFormat *string,
	shotFrameType *string,
	shotWidth *int,
	shotHeight *int,
	shotFillType *string,
	inspectItems *string,
) *UpdateViTemplateRequest

* param templateId: 模板ID,路径参数 (Required) * param templateName: 模板名称。长度不超过128个字符。UTF-8编码。 (Optional) * param shotInterval: 截图间隔 (Optional) * param shotIntervalType: 间隔类型:time, percent (Optional) * param shotFormat: 截图格式:png, jpg (Optional) * param shotFrameType: 截图帧类型:any, key (Optional) * param shotWidth: 截图宽度 (Optional) * param shotHeight: 截图高度 (Optional) * param shotFillType: 截图填充类型:stretch, gauss, black, white (Optional) * param inspectItems: 审查配置,JSON格式 (Optional)

func NewUpdateViTemplateRequestWithoutParam

func NewUpdateViTemplateRequestWithoutParam() *UpdateViTemplateRequest

This constructor has better compatible ability when API parameters changed

func (UpdateViTemplateRequest) GetRegionId

func (r UpdateViTemplateRequest) GetRegionId() string

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

func (*UpdateViTemplateRequest) SetInspectItems

func (r *UpdateViTemplateRequest) SetInspectItems(inspectItems string)

param inspectItems: 审查配置,JSON格式(Optional)

func (*UpdateViTemplateRequest) SetShotFillType

func (r *UpdateViTemplateRequest) SetShotFillType(shotFillType string)

param shotFillType: 截图填充类型:stretch, gauss, black, white(Optional)

func (*UpdateViTemplateRequest) SetShotFormat

func (r *UpdateViTemplateRequest) SetShotFormat(shotFormat string)

param shotFormat: 截图格式:png, jpg(Optional)

func (*UpdateViTemplateRequest) SetShotFrameType

func (r *UpdateViTemplateRequest) SetShotFrameType(shotFrameType string)

param shotFrameType: 截图帧类型:any, key(Optional)

func (*UpdateViTemplateRequest) SetShotHeight

func (r *UpdateViTemplateRequest) SetShotHeight(shotHeight int)

param shotHeight: 截图高度(Optional)

func (*UpdateViTemplateRequest) SetShotInterval

func (r *UpdateViTemplateRequest) SetShotInterval(shotInterval int)

param shotInterval: 截图间隔(Optional)

func (*UpdateViTemplateRequest) SetShotIntervalType

func (r *UpdateViTemplateRequest) SetShotIntervalType(shotIntervalType string)

param shotIntervalType: 间隔类型:time, percent(Optional)

func (*UpdateViTemplateRequest) SetShotWidth

func (r *UpdateViTemplateRequest) SetShotWidth(shotWidth int)

param shotWidth: 截图宽度(Optional)

func (*UpdateViTemplateRequest) SetTemplateId

func (r *UpdateViTemplateRequest) SetTemplateId(templateId string)

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

func (*UpdateViTemplateRequest) SetTemplateName

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

(Optional)

type UpdateViTemplateResponse

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

type UpdateViTemplateResult

type UpdateViTemplateResult struct {
	TemplateId       string `json:"templateId"`
	TemplateName     string `json:"templateName"`
	ShotInterval     int    `json:"shotInterval"`
	ShotIntervalType string `json:"shotIntervalType"`
	ShotFormat       string `json:"shotFormat"`
	ShotFrameType    string `json:"shotFrameType"`
	ShotWidth        int    `json:"shotWidth"`
	ShotHeight       int    `json:"shotHeight"`
	ShotFillType     string `json:"shotFillType"`
	InspectItems     string `json:"inspectItems"`
	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