Documentation
¶
Index ¶
- type CreateThumbnailTaskRequest
- func (r CreateThumbnailTaskRequest) GetRegionId() string
- func (r *CreateThumbnailTaskRequest) SetCreatedTime(createdTime string)
- func (r *CreateThumbnailTaskRequest) SetErrorCode(errorCode int)
- func (r *CreateThumbnailTaskRequest) SetLastUpdatedTime(lastUpdatedTime string)
- func (r *CreateThumbnailTaskRequest) SetRegionId(regionId string)
- func (r *CreateThumbnailTaskRequest) SetRule(rule *mps.ThumbnailTaskRule)
- func (r *CreateThumbnailTaskRequest) SetSource(source *mps.ThumbnailTaskSource)
- func (r *CreateThumbnailTaskRequest) SetStatus(status string)
- func (r *CreateThumbnailTaskRequest) SetTarget(target *mps.ThumbnailTaskTarget)
- func (r *CreateThumbnailTaskRequest) SetTaskID(taskID string)
- type CreateThumbnailTaskResponse
- type CreateThumbnailTaskResult
- type GetNotificationRequest
- type GetNotificationResponse
- type GetNotificationResult
- type GetThumbnailTaskRequest
- type GetThumbnailTaskResponse
- type GetThumbnailTaskResult
- type ListThumbnailTaskRequest
- func (r ListThumbnailTaskRequest) GetRegionId() string
- func (r *ListThumbnailTaskRequest) SetBegin(begin string)
- func (r *ListThumbnailTaskRequest) SetEnd(end string)
- func (r *ListThumbnailTaskRequest) SetLimit(limit int)
- func (r *ListThumbnailTaskRequest) SetMarker(marker string)
- func (r *ListThumbnailTaskRequest) SetRegionId(regionId string)
- func (r *ListThumbnailTaskRequest) SetStatus(status string)
- type ListThumbnailTaskResponse
- type ListThumbnailTaskResult
- type SetNotificationRequest
- func (r SetNotificationRequest) GetRegionId() string
- func (r *SetNotificationRequest) SetEnabled(enabled bool)
- func (r *SetNotificationRequest) SetEndpoint(endpoint string)
- func (r *SetNotificationRequest) SetEvents(events []string)
- func (r *SetNotificationRequest) SetNotifyContentFormat(notifyContentFormat string)
- func (r *SetNotificationRequest) SetNotifyStrategy(notifyStrategy string)
- func (r *SetNotificationRequest) SetRegionId(regionId string)
- type SetNotificationResponse
- type SetNotificationResult
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 (r *CreateThumbnailTaskRequest) SetRule(rule *mps.ThumbnailTaskRule)
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 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 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 { }