model

package
v0.0.89 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BandwidthPolicyDto

type BandwidthPolicyDto struct {

	// 流量控制开始时间(包含),格式为“hh:mm”。例如“12:03”表示12时03分。
	End string `json:"end"`

	// 时段内允许的最大流量带宽,单位Byte/s,取值范围为>= 1048576Byte/s(相当于1MB/s)且<=209715200Byte/s(相当于200MB/s)。
	MaxBandwidth int64 `json:"max_bandwidth"`

	// 流量控制开始时间(包含),格式为“hh:mm”。例如“12:03”表示12时03分。
	Start string `json:"start"`
}

带宽限速策略。

func (BandwidthPolicyDto) String

func (o BandwidthPolicyDto) String() string

type CreateSyncEventsRequest

type CreateSyncEventsRequest struct {

	// 同步任务ID
	SyncTaskId string `json:"sync_task_id"`

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

Request Object

func (CreateSyncEventsRequest) String

func (o CreateSyncEventsRequest) String() string

type CreateSyncEventsResponse

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

Response Object

func (CreateSyncEventsResponse) String

func (o CreateSyncEventsResponse) String() string

type CreateTaskReq

type CreateTaskReq struct {

	// 任务类型,默认为object。  list:对象列表迁移 url_list:URL列表迁移 object:文件/文件夹迁移,默认 prefix:对象前缀迁移
	TaskType *CreateTaskReqTaskType `json:"task_type,omitempty"`

	SrcNode *SrcNodeReq `json:"src_node"`

	DstNode *DstNodeReq `json:"dst_node"`

	// 是否开启KMS加密,默认不开启。
	EnableKms *bool `json:"enable_kms,omitempty"`

	// 任务描述,不能超过255个字符,且不能包含^<>&\"'等特殊字符。
	Description *string `json:"description,omitempty"`

	// 以时间戳方式表示的迁移指定时间(单位:秒),表示仅迁移在指定时间之后修改的源端待迁移对象。默认不设置迁移指定时间。
	MigrateSince *int64 `json:"migrate_since,omitempty"`

	// 配置流量控制策略。数组中一个元素对应一个时段的最大带宽,最多允许5个时段,且时段不能重叠。
	BandwidthPolicy *[]BandwidthPolicyDto `json:"bandwidth_policy,omitempty"`

	SourceCdn *SourceCdnReq `json:"source_cdn,omitempty"`

	SmnConfig *SmnConfig `json:"smn_config,omitempty"`

	// 是否自动解冻归档数据,默认否。  开启后,如果遇到归档类型数据,会自动解冻再进行迁移。
	EnableRestore *bool `json:"enable_restore,omitempty"`

	// 是否记录失败对象,默认开启。  开启后,如果有迁移失败对象,会在目的端存储失败对象信息。
	EnableFailedObjectRecording *bool `json:"enable_failed_object_recording,omitempty"`
}

This is a auto create Body Object

func (CreateTaskReq) String

func (o CreateTaskReq) String() string

type CreateTaskReqTaskType

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

func (CreateTaskReqTaskType) MarshalJSON

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

func (*CreateTaskReqTaskType) UnmarshalJSON

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

type CreateTaskReqTaskTypeEnum

type CreateTaskReqTaskTypeEnum struct {
	LIST     CreateTaskReqTaskType
	URL_LIST CreateTaskReqTaskType
	OBJECT   CreateTaskReqTaskType
	PREFIX   CreateTaskReqTaskType
}

func GetCreateTaskReqTaskTypeEnum

func GetCreateTaskReqTaskTypeEnum() CreateTaskReqTaskTypeEnum

type CreateTaskRequest

type CreateTaskRequest struct {
	Body *CreateTaskReq `json:"body,omitempty"`
}

Request Object

func (CreateTaskRequest) String

func (o CreateTaskRequest) String() string

type CreateTaskResponse

type CreateTaskResponse struct {

	// 任务ID。
	Id *int64 `json:"id,omitempty"`

	// 任务名称。
	TaskName       *string `json:"task_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateTaskResponse) String

func (o CreateTaskResponse) String() string

type DeleteTaskRequest

type DeleteTaskRequest struct {

	// 迁移任务ID。
	TaskId int64 `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 DstNodeReq

type DstNodeReq struct {

	// 目的端桶的AK(最大长度100个字符)。
	Ak string `json:"ak"`

	// 目的端桶的SK(最大长度100个字符)。
	Sk string `json:"sk"`

	// 目的端的临时Token(最大长度16384个字符)。
	SecurityToken *string `json:"security_token,omitempty"`

	// 目的端桶的名称。
	Bucket string `json:"bucket"`

	// 目的端桶内路径前缀(拼接在对象key前面,组成新的key,拼接后不能超过1024个字符)。
	SavePrefix *string `json:"save_prefix,omitempty"`

	// 目的端桶所处的区域。  请与Endpoint对应的区域保持一致。
	Region string `json:"region"`
}

func (DstNodeReq) String

func (o DstNodeReq) String() string

type DstNodeResp

type DstNodeResp struct {

	// 目的端桶的名称。
	Bucket *string `json:"bucket,omitempty"`

	// 目的端桶所处的区域。  请与Endpoint对应的区域保持一致。
	Region *string `json:"region,omitempty"`

	// 目的端桶内路径前缀(拼接在对象key前面,组成新的key,拼接后不能超过1024个字符)。
	SavePrefix *string `json:"save_prefix,omitempty"`
}

func (DstNodeResp) String

func (o DstNodeResp) String() string

type ErrorReasonResp

type ErrorReasonResp struct {

	// 迁移失败的错误码。
	ErrorCode *string `json:"error_code,omitempty"`

	// 迁移失败的原因。
	ErrorMsg *string `json:"error_msg,omitempty"`
}

迁移任务查询接口中返回的任务失败信息提示

func (ErrorReasonResp) String

func (o ErrorReasonResp) String() string

type FailedObjectRecordDto

type FailedObjectRecordDto struct {

	// 是否支持失败对象重传。
	Result *bool `json:"result,omitempty"`

	// 失败对象列表文件路径。
	ListFileKey *string `json:"list_file_key,omitempty"`

	// 失败对象列表上传失败的错误码。
	ErrorCode *string `json:"error_code,omitempty"`
}

func (FailedObjectRecordDto) String

func (o FailedObjectRecordDto) String() string
type Link struct {

	// 链接地址。
	Href *string `json:"href,omitempty"`

	// 取值为“self”,表示href为本地链接。
	Rel *string `json:"rel,omitempty"`
}

链接信息。

func (Link) String

func (o Link) String() string

type ListApiVersionsRequest

type ListApiVersionsRequest struct {
}

Request Object

func (ListApiVersionsRequest) String

func (o ListApiVersionsRequest) String() string

type ListApiVersionsResponse

type ListApiVersionsResponse struct {

	// 版本信息列表。
	Versions       *[]Version `json:"versions,omitempty"`
	HttpStatusCode int        `json:"-"`
}

Response Object

func (ListApiVersionsResponse) String

func (o ListApiVersionsResponse) String() string

type ListFile

type ListFile struct {

	// 对象列表文件或URL列表文件对象名。
	ListFileKey string `json:"list_file_key"`

	// 存放对象列表文件的OBS桶名。  请确保与目的端桶处于同一区域,否则将导致任务创建失败。
	ObsBucket string `json:"obs_bucket"`
}

列表文件配置。

func (ListFile) String

func (o ListFile) String() string

type ListTasksRequest

type ListTasksRequest struct {

	// 迁移任务组group_id
	GroupId *string `json:"group_id,omitempty"`

	// 查询返回迁移任务列表当前页面的数量,默认查询10条。 最多返回100条迁移任务信息。
	Limit *int32 `json:"limit,omitempty"`

	// 起始的任务序号,默认为0。 取值大于等于0,取值为0时从第一条开始查询。
	Offset *int32 `json:"offset,omitempty"`

	// 迁移任务状态(无该参数时代表查询所有状态的任务): 1:等待调度 2:正在执行 3:停止 4:失败 5:成功
	Status *int32 `json:"status,omitempty"`
}

Request Object

func (ListTasksRequest) String

func (o ListTasksRequest) String() string

type ListTasksResponse

type ListTasksResponse struct {

	// 查询的任务详情
	Tasks *[]TaskResp `json:"tasks,omitempty"`

	// 满足查询条件的任务总数
	Count          *int64 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListTasksResponse) String

func (o ListTasksResponse) String() string

type ShowApiInfoRequest

type ShowApiInfoRequest struct {

	// 版本信息。
	Version string `json:"version"`
}

Request Object

func (ShowApiInfoRequest) String

func (o ShowApiInfoRequest) String() string

type ShowApiInfoResponse

type ShowApiInfoResponse struct {

	// 版本号,例如v1。
	Id *string `json:"id,omitempty"`

	// 链接地址信息。
	Links *[]Link `json:"links,omitempty"`

	// 版本状态。  取值“CURRENT”,表示该版本为主推版本。  取值\"SUPPORTED\",表示支持该版本。  取值“DEPRECATED”,表示为废弃版本,存在后续删除的可能。
	Status *ShowApiInfoResponseStatus `json:"status,omitempty"`

	// 版本更新时间。  格式为“yyyy-mm-ddThh:mm:ssZ”。  其中,T指某个时间的开始;Z指UTC时间。
	Updated        *string `json:"updated,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowApiInfoResponse) String

func (o ShowApiInfoResponse) String() string

type ShowApiInfoResponseStatus

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

func (ShowApiInfoResponseStatus) MarshalJSON

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

func (*ShowApiInfoResponseStatus) UnmarshalJSON

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

type ShowApiInfoResponseStatusEnum

type ShowApiInfoResponseStatusEnum struct {
	CURRENT    ShowApiInfoResponseStatus
	DEPRECATED ShowApiInfoResponseStatus
	SUPPORTED  ShowApiInfoResponseStatus
}

func GetShowApiInfoResponseStatusEnum

func GetShowApiInfoResponseStatusEnum() ShowApiInfoResponseStatusEnum

type ShowTaskRequest

type ShowTaskRequest struct {

	// 任务ID
	TaskId int64 `json:"task_id"`
}

Request Object

func (ShowTaskRequest) String

func (o ShowTaskRequest) String() string

type ShowTaskResponse

type ShowTaskResponse struct {

	// 流量控制策略,每个任务最多可设置5条限速策略。
	BandwidthPolicy *[]BandwidthPolicyDto `json:"bandwidth_policy,omitempty"`

	// 任务迁移完成大小(Byte)。
	CompleteSize *int64 `json:"complete_size,omitempty"`

	// 任务描述,没有设置时为空字符串。
	Description *string `json:"description,omitempty"`

	DstNode *DstNodeResp `json:"dst_node,omitempty"`

	// 是否记录失败对象。开启后,如果有迁移失败对象,会在目的端存储失败对象信息。
	EnableFailedObjectRecording *bool `json:"enable_failed_object_recording,omitempty"`

	// 存储入OBS时是否使用KMS加密。
	EnableKms *bool `json:"enable_kms,omitempty"`

	// 是否自动解冻归档数据,(由于对象存储解冻需要源端存储等待一定时间,开启自动解冻会对迁移速度有较大影响,建议先完成归档存储数据解冻后再启动迁移)。 开启后,如果遇到归档类型数据,会自动解冻再进行迁移;如果遇到归档类型的对象直接跳过相应对象,系统默认对象迁移失败并记录相关信息到失败对象列表中。
	EnableRestore *bool `json:"enable_restore,omitempty"`

	ErrorReason *ErrorReasonResp `json:"error_reason,omitempty"`

	// 迁移失败对象数量。
	FailedNum *int64 `json:"failed_num,omitempty"`

	FailedObjectRecord *FailedObjectRecordDto `json:"failed_object_record,omitempty"`

	// 迁移任务组ID,当任务由迁移任务组创建时会包含迁移任务组的id信息。
	GroupId *string `json:"group_id,omitempty"`

	// 任务ID。
	Id *int64 `json:"id,omitempty"`

	// 迁移任务是否完成源端对象统计数据扫描。
	IsQueryOver *bool `json:"is_query_over,omitempty"`

	// 任务剩余时间(毫秒)。
	LeftTime *int64 `json:"left_time,omitempty"`

	// 迁移指定时间(时间戳,毫秒),表示仅迁移在指定时间之后修改的源端待迁移对象。默认为0,表示不设置迁移指定时间。
	MigrateSince *int64 `json:"migrate_since,omitempty"`

	// 任务迁移速度(Byte/s)。
	MigrateSpeed *int64 `json:"migrate_speed,omitempty"`

	// 任务名称。
	Name *string `json:"name,omitempty"`

	// 任务进度,例如:0.522代表任务进度为52.2%,1代表任务进度为100%。
	Progress *float64 `json:"progress,omitempty"`

	// 实际迁移对象总大小(Byte),忽略对象的大小不会统计在内。
	RealSize *int64 `json:"real_size,omitempty"`

	// 迁移忽略对象数(存在以下两种情况会自动跳过:1.源端对象最后修改时间在迁移指定时间前;2.目的端已有该对象。)
	SkippedNum *int64 `json:"skipped_num,omitempty"`

	SrcNode *SrcNodeResp `json:"src_node,omitempty"`

	// 任务启动时间(Unix时间戳,毫秒)。
	StartTime *int64 `json:"start_time,omitempty"`

	// 任务状态。 1:等待调度 2:正在执行 3:停止 4:失败 5:成功
	Status *int32 `json:"status,omitempty"`

	// 迁移成功对象数量。
	SuccessfulNum *int64 `json:"successful_num,omitempty"`

	// 任务类型,为空默认设置为object。 list:对象列表迁移 object:文件/文件夹迁移 prefix:对象前缀迁移 url_list: url对象列表
	TaskType *ShowTaskResponseTaskType `json:"task_type,omitempty"`

	// 分组类型 NORMAL_TASK:一般迁移任务 SYNC_TASK:同步任务所属迁移任务 GROUP_TASK:任务组所属迁移任务
	GroupType *ShowTaskResponseGroupType `json:"group_type,omitempty"`

	// 迁移任务对象总数量。
	TotalNum *int64 `json:"total_num,omitempty"`

	// 任务迁移总大小(Byte)。
	TotalSize *int64 `json:"total_size,omitempty"`

	// 任务总耗时(毫秒)。
	TotalTime *int64 `json:"total_time,omitempty"`

	SmnInfo *SmnInfo `json:"smn_info,omitempty"`

	SourceCdn *SourceCdnResp `json:"source_cdn,omitempty"`

	// 迁移成功对象列表记录失败错误码,记录成功时为空
	SuccessRecordErrorReason *string `json:"success_record_error_reason,omitempty"`

	// 迁移忽略对象列表记录失败错误码,记录记录成功时为空。
	SkipRecordErrorReason *string `json:"skip_record_error_reason,omitempty"`
	HttpStatusCode        int     `json:"-"`
}

Response Object

func (ShowTaskResponse) String

func (o ShowTaskResponse) String() string

type ShowTaskResponseGroupType added in v0.0.73

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

func (ShowTaskResponseGroupType) MarshalJSON added in v0.0.73

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

func (*ShowTaskResponseGroupType) UnmarshalJSON added in v0.0.73

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

type ShowTaskResponseGroupTypeEnum added in v0.0.73

type ShowTaskResponseGroupTypeEnum struct {
	NORMAL_TASK ShowTaskResponseGroupType
	SYNC_TASK   ShowTaskResponseGroupType
	GROUP_TASK  ShowTaskResponseGroupType
}

func GetShowTaskResponseGroupTypeEnum added in v0.0.73

func GetShowTaskResponseGroupTypeEnum() ShowTaskResponseGroupTypeEnum

type ShowTaskResponseTaskType

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

func (ShowTaskResponseTaskType) MarshalJSON

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

func (*ShowTaskResponseTaskType) UnmarshalJSON

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

type ShowTaskResponseTaskTypeEnum

type ShowTaskResponseTaskTypeEnum struct {
	LIST     ShowTaskResponseTaskType
	OBJECT   ShowTaskResponseTaskType
	PREFIX   ShowTaskResponseTaskType
	URL_LIST ShowTaskResponseTaskType
}

func GetShowTaskResponseTaskTypeEnum

func GetShowTaskResponseTaskTypeEnum() ShowTaskResponseTaskTypeEnum

type SmnConfig

type SmnConfig struct {

	// 当前用户所使用的管理控制台的语言。  可以选择zh-cn或者en-us。
	Language *SmnConfigLanguage `json:"language,omitempty"`

	// 迁移任务所绑定的SMN消息主题的urn号。
	TopicUrn string `json:"topic_urn"`

	//   SMN消息的触发条件,取决于迁移任务状态。  迁移任务状态的取值范围为SUCCESS或者FAILURE。  - FAILURE表示任务失败后发送SMN消息。 - SUCCESS表示任务成功后发送SMN消息。
	TriggerConditions []string `json:"trigger_conditions"`
}

SMN消息通知配置。

func (SmnConfig) String

func (o SmnConfig) String() string

type SmnConfigLanguage

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

func (SmnConfigLanguage) MarshalJSON

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

func (*SmnConfigLanguage) UnmarshalJSON

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

type SmnConfigLanguageEnum

type SmnConfigLanguageEnum struct {
	ZH_CN SmnConfigLanguage
	EN_US SmnConfigLanguage
}

func GetSmnConfigLanguageEnum

func GetSmnConfigLanguageEnum() SmnConfigLanguageEnum

type SmnInfo

type SmnInfo struct {

	// 记录迁移任务执行完毕后SMN消息是否发送成功。
	NotifyResult *bool `json:"notify_result,omitempty"`

	// 记录SMN消息发送失败原因的错误码(迁移任务成功时为空)。
	NotifyErrorMessage *string `json:"notify_error_message,omitempty"`

	// SMN Topic的名称(SMN消息发送成功时为空)。
	TopicName *string `json:"topic_name,omitempty"`
}

smn 消息通知结果

func (SmnInfo) String

func (o SmnInfo) String() string

type SourceCdnReq

type SourceCdnReq struct {

	// CDN鉴权秘钥,如果CDN需要进行鉴权,则此选项为必选。  无需授权:无需配置此项。 Qiniu:无需配置此项。 Aliyun:根据authentication_type指定的鉴权方式配置此项。 KingsoftCloud:无需配置此项。
	AuthenticationKey *string `json:"authentication_key,omitempty"`

	// 鉴权类型: NONE, QINIU_PRIVATE_AUTHENTICATION, ALIYUN_OSS_A, ALIYUN_OSS_B, ALIYUN_OSS_C, KSYUN_PRIVATE_AUTHENTICATION, AZURE_SAS_TOKEN
	AuthenticationType SourceCdnReqAuthenticationType `json:"authentication_type"`

	//   从指定域名获取对象。
	Domain string `json:"domain"`

	// 协议类型,支持http和https协议。
	Protocol SourceCdnReqProtocol `json:"protocol"`
}

源端CDN配置。

func (SourceCdnReq) String

func (o SourceCdnReq) String() string

type SourceCdnReqAuthenticationType

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

func (SourceCdnReqAuthenticationType) MarshalJSON

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

func (*SourceCdnReqAuthenticationType) UnmarshalJSON

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

type SourceCdnReqAuthenticationTypeEnum

type SourceCdnReqAuthenticationTypeEnum struct {
	NONE                         SourceCdnReqAuthenticationType
	QINIU_PRIVATE_AUTHENTICATION SourceCdnReqAuthenticationType
	ALIYUN_OSS_A                 SourceCdnReqAuthenticationType
	ALIYUN_OSS_B                 SourceCdnReqAuthenticationType
	ALIYUN_OSS_C                 SourceCdnReqAuthenticationType
	KSYUN_PRIVATE_AUTHENTICATION SourceCdnReqAuthenticationType
}

func GetSourceCdnReqAuthenticationTypeEnum

func GetSourceCdnReqAuthenticationTypeEnum() SourceCdnReqAuthenticationTypeEnum

type SourceCdnReqProtocol

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

func (SourceCdnReqProtocol) MarshalJSON

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

func (*SourceCdnReqProtocol) UnmarshalJSON

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

type SourceCdnReqProtocolEnum

type SourceCdnReqProtocolEnum struct {
	HTTP  SourceCdnReqProtocol
	HTTPS SourceCdnReqProtocol
}

func GetSourceCdnReqProtocolEnum

func GetSourceCdnReqProtocolEnum() SourceCdnReqProtocolEnum

type SourceCdnResp

type SourceCdnResp struct {

	//   从指定域名获取对象。
	Domain string `json:"domain"`

	// 协议类型,支持http和https协议。
	Protocol SourceCdnRespProtocol `json:"protocol"`

	// 鉴权类型: NONE, QINIU_PRIVATE_AUTHENTICATION, ALIYUN_OSS_A, ALIYUN_OSS_B, ALIYUN_OSS_C, KSYUN_PRIVATE_AUTHENTICATION, AZURE_SAS_TOKEN
	AuthenticationType *SourceCdnRespAuthenticationType `json:"authentication_type,omitempty"`
}

源端CDN配置返回值。

func (SourceCdnResp) String

func (o SourceCdnResp) String() string

type SourceCdnRespAuthenticationType

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

func (SourceCdnRespAuthenticationType) MarshalJSON

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

func (*SourceCdnRespAuthenticationType) UnmarshalJSON

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

type SourceCdnRespAuthenticationTypeEnum

type SourceCdnRespAuthenticationTypeEnum struct {
	NONE                         SourceCdnRespAuthenticationType
	QINIU_PRIVATE_AUTHENTICATION SourceCdnRespAuthenticationType
	ALIYUN_OSS_A                 SourceCdnRespAuthenticationType
	ALIYUN_OSS_B                 SourceCdnRespAuthenticationType
	ALIYUN_OSS_C                 SourceCdnRespAuthenticationType
	KSYUN_PRIVATE_AUTHENTICATION SourceCdnRespAuthenticationType
	AZURE_SAS_TOKEN              SourceCdnRespAuthenticationType
}

func GetSourceCdnRespAuthenticationTypeEnum

func GetSourceCdnRespAuthenticationTypeEnum() SourceCdnRespAuthenticationTypeEnum

type SourceCdnRespProtocol

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

func (SourceCdnRespProtocol) MarshalJSON

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

func (*SourceCdnRespProtocol) UnmarshalJSON

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

type SourceCdnRespProtocolEnum

type SourceCdnRespProtocolEnum struct {
	HTTP  SourceCdnRespProtocol
	HTTPS SourceCdnRespProtocol
}

func GetSourceCdnRespProtocolEnum

func GetSourceCdnRespProtocolEnum() SourceCdnRespProtocolEnum

type SrcNodeReq

type SrcNodeReq struct {

	// 源端云服务提供商,task_type为非url_list时,本参数为URLSource。  可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、URLSource或者UCloud。默认值为Aliyun。
	CloudType *string `json:"cloud_type,omitempty"`

	// 源端桶所处的区域,task_type为非url_list时,本参数为必选。
	Region *string `json:"region,omitempty"`

	// 源端桶的AK(最大长度100个字符),task_type为非url_list时,本参数为必选。
	Ak *string `json:"ak,omitempty"`

	// 源端桶的SK(最大长度100个字符),task_type为非url_list时,本参数为必选。
	Sk *string `json:"sk,omitempty"`

	// 源端桶的临时Token(最大长度16384个字符)
	SecurityToken *string `json:"security_token,omitempty"`

	// 当源端为腾讯云时,需要填写此参数。
	AppId *string `json:"app_id,omitempty"`

	// 源端桶的名称,task_type为非url_list时,本参数为必选。
	Bucket *string `json:"bucket,omitempty"`

	// 任务类型为对象迁移任务时,表示待迁移对象名称(以“/”结尾的字符串代表待迁移的文件夹,非“/”结尾的字符串代表待迁移的文件。); 任务类型为前缀迁移任务时,表示待迁移前缀。 整桶迁移时,此参数设置为[\"\"]。
	ObjectKey *[]string `json:"object_key,omitempty"`

	ListFile *ListFile `json:"list_file,omitempty"`
}

源端节点信息。

func (SrcNodeReq) String

func (o SrcNodeReq) String() string

type SrcNodeResp

type SrcNodeResp struct {

	// 源端桶的名称。
	Bucket *string `json:"bucket,omitempty"`

	// 源端云服务提供商。  可选值有AWS、Azure、Aliyun、Tencent、HuaweiCloud、QingCloud、KingsoftCloud、Baidu、Qiniu、URLSource或者UCloud。默认值为Aliyun。
	CloudType *SrcNodeRespCloudType `json:"cloud_type,omitempty"`

	// 源端桶所处的区域。
	Region *string `json:"region,omitempty"`

	// 当源端为腾讯云时,会返回此参数。
	AppId *string `json:"app_id,omitempty"`

	// 任务类型为对象迁移任务时,表示待迁移对象名称; 任务类型为前缀迁移任务时,表示待迁移前缀。
	ObjectKey *[]string `json:"object_key,omitempty"`

	ListFile *ListFile `json:"list_file,omitempty"`
}

源端节点信息。

func (SrcNodeResp) String

func (o SrcNodeResp) String() string

type SrcNodeRespCloudType

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

func (SrcNodeRespCloudType) MarshalJSON

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

func (*SrcNodeRespCloudType) UnmarshalJSON

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

type StartTaskReq

type StartTaskReq struct {

	// 源端节点AK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
	SrcAk *string `json:"src_ak,omitempty"`

	// 源端节点SK(最大长度100个字符)。URL列表迁移任务不需要填写此参数。
	SrcSk *string `json:"src_sk,omitempty"`

	// 源端节点临时Token
	SrcSecurityToken *string `json:"src_security_token,omitempty"`

	// 目的端节点AK(最大长度100个字符)。
	DstAk string `json:"dst_ak"`

	// 目的端节点SK(最大长度100个字符)。
	DstSk string `json:"dst_sk"`

	// 目标端节点临时Token
	DstSecurityToken *string `json:"dst_security_token,omitempty"`

	// CDN鉴权秘钥。
	SourceCdnAuthenticationKey *string `json:"source_cdn_authentication_key,omitempty"`

	// 迁移类型,标识是否为全量迁移,默认false(全量迁移)。 值为true时表示只重传失败对象。 值为空或者为false时表示全量迁移。
	MigrateFailedObject *bool `json:"migrate_failed_object,omitempty"`
}

This is a auto create Body Object

func (StartTaskReq) String

func (o StartTaskReq) String() string

type StartTaskRequest

type StartTaskRequest struct {

	// 迁移任务ID。
	TaskId int64 `json:"task_id"`

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

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 {

	// 迁移任务ID。
	TaskId int64 `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 SyncObjectReq

type SyncObjectReq struct {

	// 待同步对象的列表,其中待同步对象最大数量为10,列表中object_key为URL编码处理后的结果
	ObjectKeys []string `json:"object_keys"`
}

同步事件请求体

func (SyncObjectReq) String

func (o SyncObjectReq) String() string

type TaskResp

type TaskResp struct {

	// 流量控制策略,每个任务最多可设置5条限速策略。
	BandwidthPolicy *[]BandwidthPolicyDto `json:"bandwidth_policy,omitempty"`

	// 任务迁移完成大小(Byte)。
	CompleteSize *int64 `json:"complete_size,omitempty"`

	// 任务描述,没有设置时为空字符串。
	Description *string `json:"description,omitempty"`

	DstNode *DstNodeResp `json:"dst_node,omitempty"`

	// 是否记录失败对象。开启后,如果有迁移失败对象,会在目的端存储失败对象信息。
	EnableFailedObjectRecording *bool `json:"enable_failed_object_recording,omitempty"`

	// 存储入OBS时是否使用KMS加密。
	EnableKms *bool `json:"enable_kms,omitempty"`

	// 是否自动解冻归档数据,(由于对象存储解冻需要源端存储等待一定时间,开启自动解冻会对迁移速度有较大影响,建议先完成归档存储数据解冻后再启动迁移)。 开启后,如果遇到归档类型数据,会自动解冻再进行迁移;如果遇到归档类型的对象直接跳过相应对象,系统默认对象迁移失败并记录相关信息到失败对象列表中。
	EnableRestore *bool `json:"enable_restore,omitempty"`

	ErrorReason *ErrorReasonResp `json:"error_reason,omitempty"`

	// 迁移失败对象数量。
	FailedNum *int64 `json:"failed_num,omitempty"`

	FailedObjectRecord *FailedObjectRecordDto `json:"failed_object_record,omitempty"`

	// 迁移任务组ID,当任务由迁移任务组创建时会包含迁移任务组的id信息。
	GroupId *string `json:"group_id,omitempty"`

	// 任务ID。
	Id *int64 `json:"id,omitempty"`

	// 迁移任务是否完成源端对象统计数据扫描。
	IsQueryOver *bool `json:"is_query_over,omitempty"`

	// 任务剩余时间(毫秒)。
	LeftTime *int64 `json:"left_time,omitempty"`

	// 迁移指定时间(时间戳,毫秒),表示仅迁移在指定时间之后修改的源端待迁移对象。默认为0,表示不设置迁移指定时间。
	MigrateSince *int64 `json:"migrate_since,omitempty"`

	// 任务迁移速度(Byte/s)。
	MigrateSpeed *int64 `json:"migrate_speed,omitempty"`

	// 任务名称。
	Name *string `json:"name,omitempty"`

	// 任务进度,例如:0.522代表任务进度为52.2%,1代表任务进度为100%。
	Progress *float64 `json:"progress,omitempty"`

	// 实际迁移对象总大小(Byte),忽略对象的大小不会统计在内。
	RealSize *int64 `json:"real_size,omitempty"`

	// 迁移忽略对象数(存在以下两种情况会自动跳过:1.源端对象最后修改时间在迁移指定时间前;2.目的端已有该对象。)
	SkippedNum *int64 `json:"skipped_num,omitempty"`

	SrcNode *SrcNodeResp `json:"src_node,omitempty"`

	// 任务启动时间(Unix时间戳,毫秒)。
	StartTime *int64 `json:"start_time,omitempty"`

	// 任务状态。 1:等待调度 2:正在执行 3:停止 4:失败 5:成功
	Status *int32 `json:"status,omitempty"`

	// 迁移成功对象数量。
	SuccessfulNum *int64 `json:"successful_num,omitempty"`

	// 任务类型,为空默认设置为object。 list:对象列表迁移 object:文件/文件夹迁移 prefix:对象前缀迁移 url_list: url对象列表
	TaskType *TaskRespTaskType `json:"task_type,omitempty"`

	// 分组类型 NORMAL_TASK:一般迁移任务 SYNC_TASK:同步任务所属迁移任务 GROUP_TASK:任务组所属迁移任务
	GroupType *TaskRespGroupType `json:"group_type,omitempty"`

	// 迁移任务对象总数量。
	TotalNum *int64 `json:"total_num,omitempty"`

	// 任务迁移总大小(Byte)。
	TotalSize *int64 `json:"total_size,omitempty"`

	// 任务总耗时(毫秒)。
	TotalTime *int64 `json:"total_time,omitempty"`

	SmnInfo *SmnInfo `json:"smn_info,omitempty"`

	SourceCdn *SourceCdnResp `json:"source_cdn,omitempty"`

	// 迁移成功对象列表记录失败错误码,记录成功时为空
	SuccessRecordErrorReason *string `json:"success_record_error_reason,omitempty"`

	// 迁移忽略对象列表记录失败错误码,记录记录成功时为空。
	SkipRecordErrorReason *string `json:"skip_record_error_reason,omitempty"`
}

func (TaskResp) String

func (o TaskResp) String() string

type TaskRespGroupType added in v0.0.73

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

func (TaskRespGroupType) MarshalJSON added in v0.0.73

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

func (*TaskRespGroupType) UnmarshalJSON added in v0.0.73

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

type TaskRespGroupTypeEnum added in v0.0.73

type TaskRespGroupTypeEnum struct {
	NORMAL_TASK TaskRespGroupType
	SYNC_TASK   TaskRespGroupType
	GROUP_TASK  TaskRespGroupType
}

func GetTaskRespGroupTypeEnum added in v0.0.73

func GetTaskRespGroupTypeEnum() TaskRespGroupTypeEnum

type TaskRespTaskType

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

func (TaskRespTaskType) MarshalJSON

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

func (*TaskRespTaskType) UnmarshalJSON

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

type TaskRespTaskTypeEnum

type TaskRespTaskTypeEnum struct {
	LIST     TaskRespTaskType
	OBJECT   TaskRespTaskType
	PREFIX   TaskRespTaskType
	URL_LIST TaskRespTaskType
}

func GetTaskRespTaskTypeEnum

func GetTaskRespTaskTypeEnum() TaskRespTaskTypeEnum

type UpdateBandwidthPolicyReq

type UpdateBandwidthPolicyReq struct {

	// 配置流量控制策略。数组中一个元素对应一个时段的最大带宽,最多允许5个时段,且时段不能重叠。
	BandwidthPolicy []BandwidthPolicyDto `json:"bandwidth_policy"`
}

func (UpdateBandwidthPolicyReq) String

func (o UpdateBandwidthPolicyReq) String() string

type UpdateBandwidthPolicyRequest

type UpdateBandwidthPolicyRequest struct {

	// 任务ID。
	TaskId int64 `json:"task_id"`

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

Request Object

func (UpdateBandwidthPolicyRequest) String

type UpdateBandwidthPolicyResponse

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

Response Object

func (UpdateBandwidthPolicyResponse) String

type Version

type Version struct {

	// 版本号,例如v1。
	Id *string `json:"id,omitempty"`

	// 链接地址信息。
	Links *[]Link `json:"links,omitempty"`

	// 版本状态。  取值“CURRENT”,表示该版本为主推版本。  取值\"SUPPORTED\",表示支持该版本。  取值“DEPRECATED”,表示为废弃版本,存在后续删除的可能。
	Status *VersionStatus `json:"status,omitempty"`

	// 版本更新时间。  格式为“yyyy-mm-ddThh:mm:ssZ”。  其中,T指某个时间的开始;Z指UTC时间。
	Updated *string `json:"updated,omitempty"`
}

func (Version) String

func (o Version) String() string

type VersionStatus

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

func (VersionStatus) MarshalJSON

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

func (*VersionStatus) UnmarshalJSON

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

type VersionStatusEnum

type VersionStatusEnum struct {
	CURRENT    VersionStatus
	DEPRECATED VersionStatus
	SUPPORTED  VersionStatus
}

func GetVersionStatusEnum

func GetVersionStatusEnum() VersionStatusEnum

Jump to

Keyboard shortcuts

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