apis

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: Apache-2.0 Imports: 2 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateThumbnailTaskRequest

type CreateThumbnailTaskRequest struct {
	core.JDCloudRequest

	/* region id  */
	RegionId string `json:"regionId"`

	/* 任务ID (readonly) (Optional) */
	TaskID *string `json:"taskID"`

	/* 状态 (SUCCESS, ERROR, PENDDING, RUNNING) (readonly) (Optional) */
	Status *string `json:"status"`

	/* 错误码 (readonly) (Optional) */
	ErrorCode *int `json:"errorCode"`

	/* 任务创建时间 时间格式(GMT): yyyy-MM-dd’T’HH:mm:ss.SSS’Z’  (readonly) (Optional) */
	CreatedTime *string `json:"createdTime"`

	/* 任务创建时间 时间格式(GMT): yyyy-MM-dd’T’HH:mm:ss.SSS’Z’  (readonly) (Optional) */
	LastUpdatedTime *string `json:"lastUpdatedTime"`

	/*   */
	Source *mps.ThumbnailTaskSource `json:"source"`

	/*   */
	Target *mps.ThumbnailTaskTarget `json:"target"`

	/*  (Optional) */
	Rule *mps.ThumbnailTaskRule `json:"rule"`
}

func NewCreateThumbnailTaskRequest

func NewCreateThumbnailTaskRequest(
	regionId string,
	source *mps.ThumbnailTaskSource,
	target *mps.ThumbnailTaskTarget,
) *CreateThumbnailTaskRequest

* param regionId: region id * param taskID: 任务ID (readonly) (Optional) * param status: 状态 (SUCCESS, ERROR, PENDDING, RUNNING) (readonly) (Optional) * param errorCode: 错误码 (readonly) (Optional) * param createdTime: 任务创建时间 时间格式(GMT): yyyy-MM-dd’T’HH:mm:ss.SSS’Z’ (readonly) (Optional) * param lastUpdatedTime: 任务创建时间 时间格式(GMT): yyyy-MM-dd’T’HH:mm:ss.SSS’Z’ (readonly) (Optional) * param source: * param target: * param rule: (Optional)

func (CreateThumbnailTaskRequest) GetRegionId

func (r CreateThumbnailTaskRequest) GetRegionId() string

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

func (*CreateThumbnailTaskRequest) SetCreatedTime

func (r *CreateThumbnailTaskRequest) SetCreatedTime(createdTime string)

func (*CreateThumbnailTaskRequest) SetErrorCode

func (r *CreateThumbnailTaskRequest) SetErrorCode(errorCode int)

func (*CreateThumbnailTaskRequest) SetLastUpdatedTime

func (r *CreateThumbnailTaskRequest) SetLastUpdatedTime(lastUpdatedTime string)

func (*CreateThumbnailTaskRequest) SetRegionId

func (r *CreateThumbnailTaskRequest) SetRegionId(regionId string)

func (*CreateThumbnailTaskRequest) SetRule

func (*CreateThumbnailTaskRequest) SetSource

func (r *CreateThumbnailTaskRequest) SetSource(source *mps.ThumbnailTaskSource)

func (*CreateThumbnailTaskRequest) SetStatus

func (r *CreateThumbnailTaskRequest) SetStatus(status string)

func (*CreateThumbnailTaskRequest) SetTarget

func (r *CreateThumbnailTaskRequest) SetTarget(target *mps.ThumbnailTaskTarget)

func (*CreateThumbnailTaskRequest) SetTaskID

func (r *CreateThumbnailTaskRequest) SetTaskID(taskID string)

type CreateThumbnailTaskResponse

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

type CreateThumbnailTaskResult

type CreateThumbnailTaskResult struct {
	TaskID string `json:"taskID"`
}

type GetNotificationRequest

type GetNotificationRequest struct {
	core.JDCloudRequest

	/* region id  */
	RegionId string `json:"regionId"`
}

func NewGetNotificationRequest

func NewGetNotificationRequest(
	regionId string,
) *GetNotificationRequest

* param regionId: region id

func (GetNotificationRequest) GetRegionId

func (r GetNotificationRequest) GetRegionId() string

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

func (*GetNotificationRequest) SetRegionId

func (r *GetNotificationRequest) SetRegionId(regionId string)

type GetNotificationResponse

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

type GetNotificationResult

type GetNotificationResult struct {
	Enabled             bool     `json:"enabled"`
	Endpoint            string   `json:"endpoint"`
	Events              []string `json:"events"`
	NotifyStrategy      string   `json:"notifyStrategy"`
	NotifyContentFormat string   `json:"notifyContentFormat"`
}

type GetThumbnailTaskRequest

type GetThumbnailTaskRequest struct {
	core.JDCloudRequest

	/* region id  */
	RegionId string `json:"regionId"`

	/* task id  */
	TaskId string `json:"taskId"`
}

func NewGetThumbnailTaskRequest

func NewGetThumbnailTaskRequest(
	regionId string,
	taskId string,
) *GetThumbnailTaskRequest

* param regionId: region id * param taskId: task id

func (GetThumbnailTaskRequest) GetRegionId

func (r GetThumbnailTaskRequest) GetRegionId() string

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

func (*GetThumbnailTaskRequest) SetRegionId

func (r *GetThumbnailTaskRequest) SetRegionId(regionId string)

func (*GetThumbnailTaskRequest) SetTaskId

func (r *GetThumbnailTaskRequest) SetTaskId(taskId string)

type GetThumbnailTaskResponse

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

type GetThumbnailTaskResult

type GetThumbnailTaskResult struct {
	TaskID          string                  `json:"taskID"`
	Status          string                  `json:"status"`
	ErrorCode       int                     `json:"errorCode"`
	CreatedTime     string                  `json:"createdTime"`
	LastUpdatedTime string                  `json:"lastUpdatedTime"`
	Source          mps.ThumbnailTaskSource `json:"source"`
	Target          mps.ThumbnailTaskTarget `json:"target"`
	Rule            mps.ThumbnailTaskRule   `json:"rule"`
}

type ListThumbnailTaskRequest

type ListThumbnailTaskRequest struct {
	core.JDCloudRequest

	/* region id  */
	RegionId string `json:"regionId"`

	/* task 状态 (PENDING, RUNNING, SUCCESS, FAILED) (Optional) */
	Status *string `json:"status"`

	/* 开始时间 时间格式(GMT): yyyy-MM-dd'T'HH:mm:ss.SSS'Z' (Optional) */
	Begin *string `json:"begin"`

	/* 结束时间 时间格式(GMT): yyyy-MM-dd'T'HH:mm:ss.SSS'Z' (Optional) */
	End *string `json:"end"`

	/* 查询标记 (Optional) */
	Marker *string `json:"marker"`

	/* 查询记录数 [1, 1000] (Optional) */
	Limit *int `json:"limit"`
}

func NewListThumbnailTaskRequest

func NewListThumbnailTaskRequest(
	regionId string,
) *ListThumbnailTaskRequest

* param regionId: region id * param status: task 状态 (PENDING, RUNNING, SUCCESS, FAILED) (Optional) * param begin: 开始时间 时间格式(GMT): yyyy-MM-dd'T'HH:mm:ss.SSS'Z' (Optional) * param end: 结束时间 时间格式(GMT): yyyy-MM-dd'T'HH:mm:ss.SSS'Z' (Optional) * param marker: 查询标记 (Optional) * param limit: 查询记录数 [1, 1000] (Optional)

func (ListThumbnailTaskRequest) GetRegionId

func (r ListThumbnailTaskRequest) GetRegionId() string

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

func (*ListThumbnailTaskRequest) SetBegin

func (r *ListThumbnailTaskRequest) SetBegin(begin string)

func (*ListThumbnailTaskRequest) SetEnd

func (r *ListThumbnailTaskRequest) SetEnd(end string)

func (*ListThumbnailTaskRequest) SetLimit

func (r *ListThumbnailTaskRequest) SetLimit(limit int)

func (*ListThumbnailTaskRequest) SetMarker

func (r *ListThumbnailTaskRequest) SetMarker(marker string)

func (*ListThumbnailTaskRequest) SetRegionId

func (r *ListThumbnailTaskRequest) SetRegionId(regionId string)

func (*ListThumbnailTaskRequest) SetStatus

func (r *ListThumbnailTaskRequest) SetStatus(status string)

type ListThumbnailTaskResponse

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

type ListThumbnailTaskResult

type ListThumbnailTaskResult struct {
	Status     string              `json:"status"`
	Begin      string              `json:"begin"`
	End        string              `json:"end"`
	Marker     string              `json:"marker"`
	Limit      int                 `json:"limit"`
	NextMarker string              `json:"nextMarker"`
	Truncated  bool                `json:"truncated"`
	TaskList   []mps.ThumbnailTask `json:"taskList"`
}

type SetNotificationRequest

type SetNotificationRequest struct {
	core.JDCloudRequest

	/* region id  */
	RegionId string `json:"regionId"`

	/* 是否启用通知  */
	Enabled bool `json:"enabled"`

	/* 通知endpoint, 当前支持http://和https:// (Optional) */
	Endpoint *string `json:"endpoint"`

	/* 触发通知的事件集合 (mpsTranscodeComplete, mpsThumbnailComplete) (Optional) */
	Events []string `json:"events"`

	/* 重试策略, BACKOFF_RETRY: 退避重试策略, 重试 3 次, 每次重试的间隔时间是 10秒 到 20秒 之间的随机值; EXPONENTIAL_DECAY_RETRY: 指数衰减重试, 重试 176 次, 每次重试的间隔时间指数递增至 512秒, 总计重试时间为1天; 每次重试的具体间隔为: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 512 ... 512 秒(共167个512) (Optional) */
	NotifyStrategy *string `json:"notifyStrategy"`

	/* 描述了向 Endpoint 推送的消息格式, JSON: 包含消息正文和消息属性, SIMPLIFIED: 消息体即用户发布的消息, 不包含任何属性信息 (Optional) */
	NotifyContentFormat *string `json:"notifyContentFormat"`
}

func NewSetNotificationRequest

func NewSetNotificationRequest(
	regionId string,
	enabled bool,
) *SetNotificationRequest

* param regionId: region id * param enabled: 是否启用通知 * param endpoint: 通知endpoint, 当前支持http://和https:// (Optional) * param events: 触发通知的事件集合 (mpsTranscodeComplete, mpsThumbnailComplete) (Optional) * param notifyStrategy: 重试策略, BACKOFF_RETRY: 退避重试策略, 重试 3 次, 每次重试的间隔时间是 10秒 到 20秒 之间的随机值; EXPONENTIAL_DECAY_RETRY: 指数衰减重试, 重试 176 次, 每次重试的间隔时间指数递增至 512秒, 总计重试时间为1天; 每次重试的具体间隔为: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 512 ... 512 秒(共167个512) (Optional) * param notifyContentFormat: 描述了向 Endpoint 推送的消息格式, JSON: 包含消息正文和消息属性, SIMPLIFIED: 消息体即用户发布的消息, 不包含任何属性信息 (Optional)

func (SetNotificationRequest) GetRegionId

func (r SetNotificationRequest) GetRegionId() string

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

func (*SetNotificationRequest) SetEnabled

func (r *SetNotificationRequest) SetEnabled(enabled bool)

func (*SetNotificationRequest) SetEndpoint

func (r *SetNotificationRequest) SetEndpoint(endpoint string)

func (*SetNotificationRequest) SetEvents

func (r *SetNotificationRequest) SetEvents(events []string)

func (*SetNotificationRequest) SetNotifyContentFormat

func (r *SetNotificationRequest) SetNotifyContentFormat(notifyContentFormat string)

func (*SetNotificationRequest) SetNotifyStrategy

func (r *SetNotificationRequest) SetNotifyStrategy(notifyStrategy string)

func (*SetNotificationRequest) SetRegionId

func (r *SetNotificationRequest) SetRegionId(regionId string)

type SetNotificationResponse

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

type SetNotificationResult

type SetNotificationResult struct {
}

Jump to

Keyboard shortcuts

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