model

package
v0.0.81 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateResponseBody

type CreateResponseBody struct {
	Id string `json:"id"`
}

func (CreateResponseBody) String

func (o CreateResponseBody) String() string

type CreateTasksRequest

type CreateTasksRequest struct {
	ServiceName string `json:"service_name"`

	Body *CreateTasksRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateTasksRequest) String

func (o CreateTasksRequest) String() string

type CreateTasksRequestBody

type CreateTasksRequestBody struct {
	Name string `json:"name"`

	Description *string `json:"description,omitempty"`

	ServiceVersion string `json:"service_version"`

	EdgePoolId *string `json:"edge_pool_id,omitempty"`

	ResourceOrderId *string `json:"resource_order_id,omitempty"`

	Timing *TaskTiming `json:"timing,omitempty"`

	Input *TaskInput `json:"input"`

	Output *TaskOutput `json:"output"`

	ServiceConfig *TaskServiceConfig `json:"service_config,omitempty"`
}

func (CreateTasksRequestBody) String

func (o CreateTasksRequestBody) String() string

type CreateTasksResponse

type CreateTasksResponse struct {
	Body           *[]CreateResponseBody `json:"body,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

Response Object

func (CreateTasksResponse) String

func (o CreateTasksResponse) String() string

type DeleteTaskRequest

type DeleteTaskRequest struct {
	ServiceName string `json:"service_name"`

	TaskId string `json:"task_id"`
}

Request Object

func (DeleteTaskRequest) String

func (o DeleteTaskRequest) String() string

type DeleteTaskResponse

type DeleteTaskResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteTaskResponse) String

func (o DeleteTaskResponse) String() string

type ListTasksDetailsRequest

type ListTasksDetailsRequest struct {
	ServiceName string `json:"service_name"`

	ServiceVersion *string `json:"service_version,omitempty"`

	State *ListTasksDetailsRequestState `json:"state,omitempty"`

	NameLike *string `json:"name_like,omitempty"`

	IdLike *string `json:"id_like,omitempty"`

	CreatedSince *int64 `json:"created_since,omitempty"`

	CreatedUntil *int64 `json:"created_until,omitempty"`

	Order *ListTasksDetailsRequestOrder `json:"order,omitempty"`

	Offset *int32 `json:"offset,omitempty"`

	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListTasksDetailsRequest) String

func (o ListTasksDetailsRequest) String() string

type ListTasksDetailsRequestOrder

type ListTasksDetailsRequestOrder struct {
	// contains filtered or unexported fields
}

func (ListTasksDetailsRequestOrder) MarshalJSON

func (c ListTasksDetailsRequestOrder) MarshalJSON() ([]byte, error)

func (*ListTasksDetailsRequestOrder) UnmarshalJSON

func (c *ListTasksDetailsRequestOrder) UnmarshalJSON(b []byte) error

type ListTasksDetailsRequestOrderEnum

type ListTasksDetailsRequestOrderEnum struct {
	NAMEASC        ListTasksDetailsRequestOrder
	NAMEDESC       ListTasksDetailsRequestOrder
	CREATED_ATASC  ListTasksDetailsRequestOrder
	CREATED_ATDESC ListTasksDetailsRequestOrder
	UPDATED_ATASC  ListTasksDetailsRequestOrder
	UPDATED_ATDESC ListTasksDetailsRequestOrder
}

func GetListTasksDetailsRequestOrderEnum

func GetListTasksDetailsRequestOrderEnum() ListTasksDetailsRequestOrderEnum

type ListTasksDetailsRequestState

type ListTasksDetailsRequestState struct {
	// contains filtered or unexported fields
}

func (ListTasksDetailsRequestState) MarshalJSON

func (c ListTasksDetailsRequestState) MarshalJSON() ([]byte, error)

func (*ListTasksDetailsRequestState) UnmarshalJSON

func (c *ListTasksDetailsRequestState) UnmarshalJSON(b []byte) error

type ListTasksDetailsResponse

type ListTasksDetailsResponse struct {
	Count *int64 `json:"count,omitempty"`

	Tasks          *[]TaskDetails `json:"tasks,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ListTasksDetailsResponse) String

func (o ListTasksDetailsResponse) String() string

type ShowTaskRequest

type ShowTaskRequest struct {
	ServiceName string `json:"service_name"`

	TaskId string `json:"task_id"`
}

Request Object

func (ShowTaskRequest) String

func (o ShowTaskRequest) String() string

type ShowTaskResponse

type ShowTaskResponse struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Creator string `json:"creator"`

	ProjectId string `json:"project_id"`

	Description *string `json:"description,omitempty"`

	ServiceName string `json:"service_name"`

	ServiceVersion string `json:"service_version"`

	ServiceTitle *TaskDetailsServiceTitle `json:"service_title"`

	EdgePoolId *string `json:"edge_pool_id,omitempty"`

	ResourceOrderId *string `json:"resource_order_id,omitempty"`

	CreatedAt *sdktime.SdkTime `json:"created_at"`

	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	State ShowTaskResponseState `json:"state"`

	Status *string `json:"status,omitempty"`

	Error *TaskDetailsError `json:"error,omitempty"`

	TimingStatus *ShowTaskResponseTimingStatus `json:"timing_status,omitempty"`

	Timing *TaskTiming `json:"timing,omitempty"`

	Input *TaskInput `json:"input"`

	Output *TaskOutputForDisplay `json:"output"`

	ServiceConfig *TaskServiceConfig `json:"service_config,omitempty"`

	HostingResult  *TaskHostingResultHostingResult `json:"hosting_result,omitempty"`
	HttpStatusCode int                             `json:"-"`
}

Response Object

func (ShowTaskResponse) String

func (o ShowTaskResponse) String() string

type ShowTaskResponseState

type ShowTaskResponseState struct {
	// contains filtered or unexported fields
}

func (ShowTaskResponseState) MarshalJSON

func (c ShowTaskResponseState) MarshalJSON() ([]byte, error)

func (*ShowTaskResponseState) UnmarshalJSON

func (c *ShowTaskResponseState) UnmarshalJSON(b []byte) error

type ShowTaskResponseTimingStatus

type ShowTaskResponseTimingStatus struct {
	// contains filtered or unexported fields
}

func (ShowTaskResponseTimingStatus) MarshalJSON

func (c ShowTaskResponseTimingStatus) MarshalJSON() ([]byte, error)

func (*ShowTaskResponseTimingStatus) UnmarshalJSON

func (c *ShowTaskResponseTimingStatus) UnmarshalJSON(b []byte) error

type ShowTaskResponseTimingStatusEnum

type ShowTaskResponseTimingStatusEnum struct {
	ACTIVATED   ShowTaskResponseTimingStatus
	INACTIVATED ShowTaskResponseTimingStatus
}

func GetShowTaskResponseTimingStatusEnum

func GetShowTaskResponseTimingStatusEnum() ShowTaskResponseTimingStatusEnum

type StartTaskRequest

type StartTaskRequest struct {
	ServiceName string `json:"service_name"`

	TaskId string `json:"task_id"`
}

Request Object

func (StartTaskRequest) String

func (o StartTaskRequest) String() string

type StartTaskResponse

type StartTaskResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (StartTaskResponse) String

func (o StartTaskResponse) String() string

type StopTaskRequest

type StopTaskRequest struct {
	ServiceName string `json:"service_name"`

	TaskId string `json:"task_id"`
}

Request Object

func (StopTaskRequest) String

func (o StopTaskRequest) String() string

type StopTaskResponse

type StopTaskResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (StopTaskResponse) String

func (o StopTaskResponse) String() string

type TaskDetails

type TaskDetails struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Creator string `json:"creator"`

	ProjectId string `json:"project_id"`

	Description *string `json:"description,omitempty"`

	ServiceName string `json:"service_name"`

	ServiceVersion string `json:"service_version"`

	ServiceTitle *TaskDetailsServiceTitle `json:"service_title"`

	EdgePoolId *string `json:"edge_pool_id,omitempty"`

	ResourceOrderId *string `json:"resource_order_id,omitempty"`

	CreatedAt *sdktime.SdkTime `json:"created_at"`

	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	State TaskDetailsState `json:"state"`

	Status *string `json:"status,omitempty"`

	Error *TaskDetailsError `json:"error,omitempty"`

	TimingStatus *TaskDetailsTimingStatus `json:"timing_status,omitempty"`

	Timing *TaskTiming `json:"timing,omitempty"`

	Input *TaskInput `json:"input"`

	Output *TaskOutputForDisplay `json:"output"`

	ServiceConfig *TaskServiceConfig `json:"service_config,omitempty"`
}

func (TaskDetails) String

func (o TaskDetails) String() string

type TaskDetailsError

type TaskDetailsError struct {
	Code string `json:"code"`

	Message string `json:"message"`
}

作业运行失败时收集到的错误信息

func (TaskDetailsError) String

func (o TaskDetailsError) String() string

type TaskDetailsServiceTitle

type TaskDetailsServiceTitle struct {
	Zh *string `json:"zh,omitempty"`

	En *string `json:"en,omitempty"`
}

作业对应服务的标题

func (TaskDetailsServiceTitle) String

func (o TaskDetailsServiceTitle) String() string

type TaskDetailsState

type TaskDetailsState struct {
	// contains filtered or unexported fields
}

func (TaskDetailsState) MarshalJSON

func (c TaskDetailsState) MarshalJSON() ([]byte, error)

func (*TaskDetailsState) UnmarshalJSON

func (c *TaskDetailsState) UnmarshalJSON(b []byte) error

type TaskDetailsStateEnum

type TaskDetailsStateEnum struct {
	PENDING       TaskDetailsState
	RECOVERING    TaskDetailsState
	STARTING      TaskDetailsState
	UPGRADING     TaskDetailsState
	CREATE_FAILED TaskDetailsState
	START_FAILED  TaskDetailsState
	RUNNING       TaskDetailsState
	STOPPING      TaskDetailsState
	STOPPED       TaskDetailsState
	ABNORMAL      TaskDetailsState
	SUCCEEDED     TaskDetailsState
	FAILED        TaskDetailsState
	DELETING      TaskDetailsState
	FREEZING      TaskDetailsState
	FROZEN        TaskDetailsState
}

func GetTaskDetailsStateEnum

func GetTaskDetailsStateEnum() TaskDetailsStateEnum

type TaskDetailsTimingStatus

type TaskDetailsTimingStatus struct {
	// contains filtered or unexported fields
}

func (TaskDetailsTimingStatus) MarshalJSON

func (c TaskDetailsTimingStatus) MarshalJSON() ([]byte, error)

func (*TaskDetailsTimingStatus) UnmarshalJSON

func (c *TaskDetailsTimingStatus) UnmarshalJSON(b []byte) error

type TaskDetailsTimingStatusEnum

type TaskDetailsTimingStatusEnum struct {
	ACTIVATED   TaskDetailsTimingStatus
	INACTIVATED TaskDetailsTimingStatus
}

func GetTaskDetailsTimingStatusEnum

func GetTaskDetailsTimingStatusEnum() TaskDetailsTimingStatusEnum

type TaskHostingResult

type TaskHostingResult struct {
	HostingResult *TaskHostingResultHostingResult `json:"hosting_result,omitempty"`
}

输出为hosting时,hosting结果文件的相关信息

func (TaskHostingResult) String

func (o TaskHostingResult) String() string

type TaskHostingResultHostingResult

type TaskHostingResultHostingResult struct {
	OverdueDate *sdktime.SdkTime `json:"overdue_date,omitempty"`

	Status *TaskHostingResultHostingResultStatus `json:"status,omitempty"`

	Data *string `json:"data,omitempty"`

	FileSize *string `json:"file_size,omitempty"`
}

hosting结果文件的相关信息

func (TaskHostingResultHostingResult) String

type TaskHostingResultHostingResultStatus

type TaskHostingResultHostingResultStatus struct {
	// contains filtered or unexported fields
}

func (TaskHostingResultHostingResultStatus) MarshalJSON

func (c TaskHostingResultHostingResultStatus) MarshalJSON() ([]byte, error)

func (*TaskHostingResultHostingResultStatus) UnmarshalJSON

func (c *TaskHostingResultHostingResultStatus) UnmarshalJSON(b []byte) error

type TaskInput

type TaskInput struct {
	Type TaskInputType `json:"type"`

	Data []TaskInputData `json:"data"`

	Vcn *TaskInputVcn `json:"vcn,omitempty"`
}

作业的输入配置,必填。

func (TaskInput) String

func (o TaskInput) String() string

type TaskInputData

type TaskInputData struct {
	StreamName *string `json:"stream_name,omitempty"`

	Bucket *string `json:"bucket,omitempty"`

	Path *string `json:"path,omitempty"`

	Url *string `json:"url,omitempty"`

	Headers *interface{} `json:"headers,omitempty"`

	CertificateCheck *bool `json:"certificate_check,omitempty"`

	RtspPathInResponse *string `json:"rtsp_path_in_response,omitempty"`

	NodeId *string `json:"node_id,omitempty"`

	DeviceId *string `json:"device_id,omitempty"`

	StreamType *int32 `json:"stream_type,omitempty"`

	Id *string `json:"id,omitempty"`
}

输入数据的配置信息

func (TaskInputData) String

func (o TaskInputData) String() string

type TaskInputType

type TaskInputType struct {
	// contains filtered or unexported fields
}

func (TaskInputType) MarshalJSON

func (c TaskInputType) MarshalJSON() ([]byte, error)

func (*TaskInputType) UnmarshalJSON

func (c *TaskInputType) UnmarshalJSON(b []byte) error

type TaskInputTypeEnum

type TaskInputTypeEnum struct {
	OBS         TaskInputType
	VIS         TaskInputType
	URL         TaskInputType
	EDGECAMERA  TaskInputType
	EDGERESTFUL TaskInputType
	VCN         TaskInputType
}

func GetTaskInputTypeEnum

func GetTaskInputTypeEnum() TaskInputTypeEnum

type TaskInputVcn

type TaskInputVcn struct {
	Ip string `json:"ip"`

	Port int32 `json:"port"`

	Username string `json:"username"`

	Password string `json:"password"`
}

VCN服务器信息,仅输入类型为vcn时需填且必填。

func (TaskInputVcn) String

func (o TaskInputVcn) String() string

type TaskOutput

type TaskOutput struct {
	Obs *TaskOutputObs `json:"obs,omitempty"`

	Dis *TaskOutputDis `json:"dis,omitempty"`

	Webhook *TaskOutputWebhook `json:"webhook,omitempty"`

	Hosting *TaskOutputHosting `json:"hosting,omitempty"`

	Localpath *TaskOutputLocalpath `json:"localpath,omitempty"`
}

作业的输出配置,至少需要配置一项输出方式。

func (TaskOutput) String

func (o TaskOutput) String() string

type TaskOutputDis

type TaskOutputDis struct {
	StreamName string `json:"stream_name"`

	DataCategory *[]string `json:"data_category,omitempty"`
}

输出为dis类型时的配置信息

func (TaskOutputDis) String

func (o TaskOutputDis) String() string

type TaskOutputForDisplay

type TaskOutputForDisplay struct {
	Obs *TaskOutputObs `json:"obs,omitempty"`

	Dis *TaskOutputDis `json:"dis,omitempty"`

	Webhook *TaskOutputWebhook `json:"webhook,omitempty"`

	Hosting *TaskOutputHostingForDisplay `json:"hosting,omitempty"`

	Localpath *TaskOutputLocalpath `json:"localpath,omitempty"`
}

作业的输出配置展示

func (TaskOutputForDisplay) String

func (o TaskOutputForDisplay) String() string

type TaskOutputHosting

type TaskOutputHosting struct {
	DataCategory *[]string `json:"data_category,omitempty"`
}

输出为hosting类型时的配置信息

func (TaskOutputHosting) String

func (o TaskOutputHosting) String() string

type TaskOutputHostingForDisplay

type TaskOutputHostingForDisplay struct {
	Obs *[]TaskOutputHostingForDisplayObs `json:"obs,omitempty"`

	ResultJsonOverdueAt *int64 `json:"result_json_overdue_at,omitempty"`

	DataCategory *[]string `json:"data_category,omitempty"`
}

输出为hosting类型时的配置和展示信息

func (TaskOutputHostingForDisplay) String

type TaskOutputHostingForDisplayObs

type TaskOutputHostingForDisplayObs struct {
	Bucket *string `json:"bucket,omitempty"`

	Path *string `json:"path,omitempty"`
}

单个结果文件result.json所在的OBS桶和路径

func (TaskOutputHostingForDisplayObs) String

type TaskOutputLocalpath

type TaskOutputLocalpath struct {
	MountSourcePath string `json:"mount_source_path"`

	DataCategory *[]string `json:"data_category,omitempty"`
}

输出为localpath类型时的配置信息

func (TaskOutputLocalpath) String

func (o TaskOutputLocalpath) String() string

type TaskOutputObs

type TaskOutputObs struct {
	Bucket string `json:"bucket"`

	Path string `json:"path"`

	DataCategory *[]string `json:"data_category,omitempty"`
}

输出为obs类型时的配置信息

func (TaskOutputObs) String

func (o TaskOutputObs) String() string

type TaskOutputWebhook

type TaskOutputWebhook struct {
	Url string `json:"url"`

	Headers *interface{} `json:"headers"`

	DataCategory *[]string `json:"data_category,omitempty"`
}

输出为webhook类型时的配置信息

func (TaskOutputWebhook) String

func (o TaskOutputWebhook) String() string

type TaskServiceConfig

type TaskServiceConfig struct {
	Common *interface{} `json:"common,omitempty"`
}

作业运行时指定的算法配置参数,部分服务需填且必填。

func (TaskServiceConfig) String

func (o TaskServiceConfig) String() string

type TaskTiming

type TaskTiming struct {
	Type TaskTimingType `json:"type"`

	Timezone string `json:"timezone"`

	DaysOfWeek *[]int32 `json:"days_of_week,omitempty"`

	DaysOfMonth *[]int32 `json:"days_of_month,omitempty"`

	Date *string `json:"date,omitempty"`

	Periods *[]TaskTimingPeriods `json:"periods,omitempty"`

	Frequency *TaskTimingFrequency `json:"frequency,omitempty"`
}

计划任务的配置项,选填。计划任务不支持obs输入,对于url输入则仅支持rtmp和rtsp两种形式。

func (TaskTiming) String

func (o TaskTiming) String() string

type TaskTimingFrequency

type TaskTimingFrequency struct {
	Interval int32 `json:"interval"`

	Duration int32 `json:"duration"`

	BeginAt *string `json:"begin_at,omitempty"`

	EndAt *string `json:"end_at,omitempty"`
}

频率模式配置。和periods字段二选一,不可共存。

func (TaskTimingFrequency) String

func (o TaskTimingFrequency) String() string

type TaskTimingPeriods

type TaskTimingPeriods struct {
	BeginAt *string `json:"begin_at,omitempty"`

	EndAt *string `json:"end_at,omitempty"`
}

func (TaskTimingPeriods) String

func (o TaskTimingPeriods) String() string

type TaskTimingType

type TaskTimingType struct {
	// contains filtered or unexported fields
}

func (TaskTimingType) MarshalJSON

func (c TaskTimingType) MarshalJSON() ([]byte, error)

func (*TaskTimingType) UnmarshalJSON

func (c *TaskTimingType) UnmarshalJSON(b []byte) error

type TaskTimingTypeEnum

type TaskTimingTypeEnum struct {
	ONCE    TaskTimingType
	DAILY   TaskTimingType
	WEEKLY  TaskTimingType
	MONTHLY TaskTimingType
}

func GetTaskTimingTypeEnum

func GetTaskTimingTypeEnum() TaskTimingTypeEnum

type UpdateTaskRequest

type UpdateTaskRequest struct {
	ServiceName string `json:"service_name"`

	TaskId string `json:"task_id"`

	Body *UpdateTaskRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateTaskRequest) String

func (o UpdateTaskRequest) String() string

type UpdateTaskRequestBody

type UpdateTaskRequestBody struct {
	Name *string `json:"name,omitempty"`

	Description *string `json:"description,omitempty"`

	Timing *TaskTiming `json:"timing,omitempty"`

	Input *TaskInput `json:"input,omitempty"`

	Output *TaskOutput `json:"output,omitempty"`

	ServiceConfig *TaskServiceConfig `json:"service_config,omitempty"`
}

func (UpdateTaskRequestBody) String

func (o UpdateTaskRequestBody) String() string

type UpdateTaskResponse

type UpdateTaskResponse struct {
	Id string `json:"id"`

	Name string `json:"name"`

	Creator string `json:"creator"`

	ProjectId string `json:"project_id"`

	Description *string `json:"description,omitempty"`

	ServiceName string `json:"service_name"`

	ServiceVersion string `json:"service_version"`

	ServiceTitle *TaskDetailsServiceTitle `json:"service_title"`

	EdgePoolId *string `json:"edge_pool_id,omitempty"`

	ResourceOrderId *string `json:"resource_order_id,omitempty"`

	CreatedAt *sdktime.SdkTime `json:"created_at"`

	UpdatedAt *sdktime.SdkTime `json:"updated_at"`

	State UpdateTaskResponseState `json:"state"`

	Status *string `json:"status,omitempty"`

	Error *TaskDetailsError `json:"error,omitempty"`

	TimingStatus *UpdateTaskResponseTimingStatus `json:"timing_status,omitempty"`

	Timing *TaskTiming `json:"timing,omitempty"`

	Input *TaskInput `json:"input"`

	Output *TaskOutputForDisplay `json:"output"`

	ServiceConfig  *TaskServiceConfig `json:"service_config,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (UpdateTaskResponse) String

func (o UpdateTaskResponse) String() string

type UpdateTaskResponseState

type UpdateTaskResponseState struct {
	// contains filtered or unexported fields
}

func (UpdateTaskResponseState) MarshalJSON

func (c UpdateTaskResponseState) MarshalJSON() ([]byte, error)

func (*UpdateTaskResponseState) UnmarshalJSON

func (c *UpdateTaskResponseState) UnmarshalJSON(b []byte) error

type UpdateTaskResponseTimingStatus

type UpdateTaskResponseTimingStatus struct {
	// contains filtered or unexported fields
}

func (UpdateTaskResponseTimingStatus) MarshalJSON

func (c UpdateTaskResponseTimingStatus) MarshalJSON() ([]byte, error)

func (*UpdateTaskResponseTimingStatus) UnmarshalJSON

func (c *UpdateTaskResponseTimingStatus) UnmarshalJSON(b []byte) error

type UpdateTaskResponseTimingStatusEnum

type UpdateTaskResponseTimingStatusEnum struct {
	ACTIVATED   UpdateTaskResponseTimingStatus
	INACTIVATED UpdateTaskResponseTimingStatus
}

func GetUpdateTaskResponseTimingStatusEnum

func GetUpdateTaskResponseTimingStatusEnum() UpdateTaskResponseTimingStatusEnum

Jump to

Keyboard shortcuts

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