model

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 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 CreateTaskGroupReq added in v0.1.3

type CreateTaskGroupReq struct {
	SrcNode *TaskGroupSrcNode `json:"src_node"`

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

	DstNode *TaskGroupDstNode `json:"dst_node"`

	// 是否启用元数据迁移,默认否。不启用时,为保证迁移任务正常运行,仍将为您迁移ContentType元数据。
	EnableMetadataMigration *bool `json:"enable_metadata_migration,omitempty"`

	// 是否开启记录失败对象
	EnableFailedObjectRecording *bool `json:"enable_failed_object_recording,omitempty"`

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

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

	// 任务类型,默认为PREFIX。 LIST:对象列表迁移 URL_LIST:URL列表迁移, PREFIX:对象前缀迁移
	TaskType *CreateTaskGroupReqTaskType `json:"task_type,omitempty"`

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

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

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

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

	// 迁移前同名对象覆盖方式,用于迁移前判断源端与目的端有同名对象时,覆盖目的端或跳过迁移。默认SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE。 NO_OVERWRITE:不覆盖。迁移前源端对象与目的端对象同名时,不做对比直接跳过迁移。 SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE:大小/最后修改时间对比覆盖。默认配置。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象大小和最后修改时间,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。源端与目的端同名对象大小不相同,或目的端对象的最后修改时间晚于源端对象的最后修改时间(源端较新),覆盖目的端。 CRC64_COMPARISON_OVERWRITE:CRC64对比覆盖。目前仅支持华为/阿里/腾讯。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象元数据中CRC64值是否相同,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE(大小/最后修改时间对比覆盖)来对比进行覆盖判断。 FULL_OVERWRITE:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
	ObjectOverwriteMode *CreateTaskGroupReqObjectOverwriteMode `json:"object_overwrite_mode,omitempty"`

	// 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
	ConsistencyCheck *CreateTaskGroupReqConsistencyCheck `json:"consistency_check,omitempty"`

	// 是否开启请求者付款,在启用后,请求者支付请求和数据传输费用。
	EnableRequesterPays *bool `json:"enable_requester_pays,omitempty"`
}

迁移任务组创建请求体

func (CreateTaskGroupReq) String added in v0.1.3

func (o CreateTaskGroupReq) String() string

type CreateTaskGroupReqConsistencyCheck added in v0.1.3

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

func (CreateTaskGroupReqConsistencyCheck) MarshalJSON added in v0.1.3

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

func (*CreateTaskGroupReqConsistencyCheck) UnmarshalJSON added in v0.1.3

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

func (CreateTaskGroupReqConsistencyCheck) Value added in v0.1.3

type CreateTaskGroupReqConsistencyCheckEnum added in v0.1.3

type CreateTaskGroupReqConsistencyCheckEnum struct {
	SIZE_LAST_MODIFIED CreateTaskGroupReqConsistencyCheck
	CRC64              CreateTaskGroupReqConsistencyCheck
	NO_CHECK           CreateTaskGroupReqConsistencyCheck
}

func GetCreateTaskGroupReqConsistencyCheckEnum added in v0.1.3

func GetCreateTaskGroupReqConsistencyCheckEnum() CreateTaskGroupReqConsistencyCheckEnum

type CreateTaskGroupReqObjectOverwriteMode added in v0.1.3

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

func (CreateTaskGroupReqObjectOverwriteMode) MarshalJSON added in v0.1.3

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

func (*CreateTaskGroupReqObjectOverwriteMode) UnmarshalJSON added in v0.1.3

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

func (CreateTaskGroupReqObjectOverwriteMode) Value added in v0.1.3

type CreateTaskGroupReqObjectOverwriteModeEnum added in v0.1.3

type CreateTaskGroupReqObjectOverwriteModeEnum struct {
	NO_OVERWRITE                            CreateTaskGroupReqObjectOverwriteMode
	SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE CreateTaskGroupReqObjectOverwriteMode
	CRC64_COMPARISON_OVERWRITE              CreateTaskGroupReqObjectOverwriteMode
	FULL_OVERWRITE                          CreateTaskGroupReqObjectOverwriteMode
}

func GetCreateTaskGroupReqObjectOverwriteModeEnum added in v0.1.3

func GetCreateTaskGroupReqObjectOverwriteModeEnum() CreateTaskGroupReqObjectOverwriteModeEnum

type CreateTaskGroupReqTaskType added in v0.1.3

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

func (CreateTaskGroupReqTaskType) MarshalJSON added in v0.1.3

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

func (*CreateTaskGroupReqTaskType) UnmarshalJSON added in v0.1.3

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

func (CreateTaskGroupReqTaskType) Value added in v0.1.3

type CreateTaskGroupReqTaskTypeEnum added in v0.1.3

type CreateTaskGroupReqTaskTypeEnum struct {
	LIST     CreateTaskGroupReqTaskType
	URL_LIST CreateTaskGroupReqTaskType
	PREFIX   CreateTaskGroupReqTaskType
}

func GetCreateTaskGroupReqTaskTypeEnum added in v0.1.3

func GetCreateTaskGroupReqTaskTypeEnum() CreateTaskGroupReqTaskTypeEnum

type CreateTaskGroupRequest added in v0.1.3

type CreateTaskGroupRequest struct {
	Body *CreateTaskGroupReq `json:"body,omitempty"`
}

Request Object

func (CreateTaskGroupRequest) String added in v0.1.3

func (o CreateTaskGroupRequest) String() string

type CreateTaskGroupResponse added in v0.1.3

type CreateTaskGroupResponse struct {

	// 创建的迁移任务组id
	GroupId        *string `json:"group_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateTaskGroupResponse) String added in v0.1.3

func (o CreateTaskGroupResponse) 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"`

	// 是否启用元数据迁移,默认否。不启用时,为保证迁移任务正常运行,仍将为您迁移ContentType元数据。
	EnableMetadataMigration *bool `json:"enable_metadata_migration,omitempty"`

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

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

	// 迁移前同名对象覆盖方式,用于迁移前判断源端与目的端有同名对象时,覆盖目的端或跳过迁移。默认SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE。 NO_OVERWRITE:不覆盖。迁移前源端对象与目的端对象同名时,不做对比直接跳过迁移。 SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE:大小/最后修改时间对比覆盖。默认配置。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象大小和最后修改时间,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。源端与目的端同名对象大小不相同,或目的端对象的最后修改时间晚于源端对象的最后修改时间(源端较新),覆盖目的端。 CRC64_COMPARISON_OVERWRITE:CRC64对比覆盖。目前仅支持华为/阿里/腾讯。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象元数据中CRC64值是否相同,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE(大小/最后修改时间对比覆盖)来对比进行覆盖判断。 FULL_OVERWRITE:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
	ObjectOverwriteMode *CreateTaskReqObjectOverwriteMode `json:"object_overwrite_mode,omitempty"`

	// 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
	ConsistencyCheck *CreateTaskReqConsistencyCheck `json:"consistency_check,omitempty"`

	// 是否开启请求者付款,在启用后,请求者支付请求和数据传输费用。
	EnableRequesterPays *bool `json:"enable_requester_pays,omitempty"`
}

This is a auto create Body Object

func (CreateTaskReq) String

func (o CreateTaskReq) String() string

type CreateTaskReqConsistencyCheck added in v0.1.3

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

func (CreateTaskReqConsistencyCheck) MarshalJSON added in v0.1.3

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

func (*CreateTaskReqConsistencyCheck) UnmarshalJSON added in v0.1.3

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

func (CreateTaskReqConsistencyCheck) Value added in v0.1.3

type CreateTaskReqConsistencyCheckEnum added in v0.1.3

type CreateTaskReqConsistencyCheckEnum struct {
	SIZE_LAST_MODIFIED CreateTaskReqConsistencyCheck
	CRC64              CreateTaskReqConsistencyCheck
	NO_CHECK           CreateTaskReqConsistencyCheck
}

func GetCreateTaskReqConsistencyCheckEnum added in v0.1.3

func GetCreateTaskReqConsistencyCheckEnum() CreateTaskReqConsistencyCheckEnum

type CreateTaskReqObjectOverwriteMode added in v0.1.3

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

func (CreateTaskReqObjectOverwriteMode) MarshalJSON added in v0.1.3

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

func (*CreateTaskReqObjectOverwriteMode) UnmarshalJSON added in v0.1.3

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

func (CreateTaskReqObjectOverwriteMode) Value added in v0.1.3

type CreateTaskReqObjectOverwriteModeEnum added in v0.1.3

type CreateTaskReqObjectOverwriteModeEnum struct {
	NO_OVERWRITE                            CreateTaskReqObjectOverwriteMode
	SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE CreateTaskReqObjectOverwriteMode
	CRC64_COMPARISON_OVERWRITE              CreateTaskReqObjectOverwriteMode
	FULL_OVERWRITE                          CreateTaskReqObjectOverwriteMode
}

func GetCreateTaskReqObjectOverwriteModeEnum added in v0.1.3

func GetCreateTaskReqObjectOverwriteModeEnum() CreateTaskReqObjectOverwriteModeEnum

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

func (CreateTaskReqTaskType) Value added in v0.0.90

func (c CreateTaskReqTaskType) Value() string

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 DeleteTaskGroupRequest added in v0.1.3

type DeleteTaskGroupRequest struct {

	// 任务组id
	GroupId string `json:"group_id"`
}

Request Object

func (DeleteTaskGroupRequest) String added in v0.1.3

func (o DeleteTaskGroupRequest) String() string

type DeleteTaskGroupResponse added in v0.1.3

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

Response Object

func (DeleteTaskGroupResponse) String added in v0.1.3

func (o DeleteTaskGroupResponse) String() string

type DeleteTaskRequest

type DeleteTaskRequest struct {

	// 迁移任务ID。
	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 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 ListTaskGroupRequest added in v0.1.3

type ListTaskGroupRequest struct {

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

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

	// 迁移任务组状态(无该参数时代表查询所有状态的任务) 0 – 等待中 1 – 执行中/创建中 2 – 监控任务执行 3 – 暂停 4 – 创建任务失败 5 – 迁移失败 6 – 迁移完成 7 – 暂停中 8 – 等待删除中 9 – 删除
	Status *int32 `json:"status,omitempty"`
}

Request Object

func (ListTaskGroupRequest) String added in v0.1.3

func (o ListTaskGroupRequest) String() string

type ListTaskGroupResponse added in v0.1.3

type ListTaskGroupResponse struct {

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

	// 查询的迁移任务组详情
	Taskgroups     *[]TaskGroupResp `json:"taskgroups,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ListTaskGroupResponse) String added in v0.1.3

func (o ListTaskGroupResponse) 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:成功 7: 暂停中
	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 RetryTaskGroupReq added in v0.1.3

type RetryTaskGroupReq struct {

	// 源端ak(最大长度100个字符)
	SrcAk *string `json:"src_ak,omitempty"`

	// 源端sk(最大长度100个字符)
	SrcSk *string `json:"src_sk,omitempty"`

	// 目的端ak(最大长度100个字符)
	DstAk *string `json:"dst_ak,omitempty"`

	// 目的端sk(最大长度100个字符)
	DstSk *string `json:"dst_sk,omitempty"`

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

	// 失败任务重试方式,标识是否为全量重新迁移,默认false(全量重新迁移)。 值为true时表示只重传失败对象。 值为空或者为false时表示全量重新迁移(默认跳过目的端已迁移对象)。
	MigrateFailedObject *bool `json:"migrate_failed_object,omitempty"`
}

重试迁移任务组请求参数

func (RetryTaskGroupReq) String added in v0.1.3

func (o RetryTaskGroupReq) String() string

type RetryTaskGroupRequest added in v0.1.3

type RetryTaskGroupRequest struct {

	// 任务组id
	GroupId string `json:"group_id"`

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

Request Object

func (RetryTaskGroupRequest) String added in v0.1.3

func (o RetryTaskGroupRequest) String() string

type RetryTaskGroupResponse added in v0.1.3

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

Response Object

func (RetryTaskGroupResponse) String added in v0.1.3

func (o RetryTaskGroupResponse) 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

func (ShowApiInfoResponseStatus) Value added in v0.0.90

type ShowApiInfoResponseStatusEnum

type ShowApiInfoResponseStatusEnum struct {
	CURRENT    ShowApiInfoResponseStatus
	DEPRECATED ShowApiInfoResponseStatus
	SUPPORTED  ShowApiInfoResponseStatus
}

func GetShowApiInfoResponseStatusEnum

func GetShowApiInfoResponseStatusEnum() ShowApiInfoResponseStatusEnum

type ShowTaskGroupRequest added in v0.1.3

type ShowTaskGroupRequest struct {

	// 任务组id
	GroupId string `json:"group_id"`
}

Request Object

func (ShowTaskGroupRequest) String added in v0.1.3

func (o ShowTaskGroupRequest) String() string

type ShowTaskGroupResponse added in v0.1.3

type ShowTaskGroupResponse struct {

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

	// 迁移组任务状态。 0 – 等待中 1 – 执行中/创建中 2 – 监控任务执行 3 – 暂停 4 – 创建任务失败 5 – 迁移失败 6 – 迁移完成 7 – 暂停中 8 – 等待删除中 9 – 删除
	Status *int32 `json:"status,omitempty"`

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

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

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

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

	// 是否启用元数据迁移,默认否。不启用时,为保证迁移任务正常运行,仍将为您迁移ContentType元数据。
	EnableMetadataMigration *bool `json:"enable_metadata_migration,omitempty"`

	// 是否开启记录失败对象
	EnableFailedObjectRecording *bool `json:"enable_failed_object_recording,omitempty"`

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

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

	// 任务类型,默认为PREFIX。 LIST:对象列表迁移 URL_LIST:URL列表迁移, PREFIX:对象前缀迁移
	TaskType *ShowTaskGroupResponseTaskType `json:"task_type,omitempty"`

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

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

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

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

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

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

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

	// 任务组包含的迁移任务总数
	TotalTaskNum *int64 `json:"total_task_num,omitempty"`

	// 已创建的迁移任务数
	CreateTaskNum *int64 `json:"create_task_num,omitempty"`

	// 失败的迁移任务数
	FailedTaskNum *int64 `json:"failed_task_num,omitempty"`

	// 已完成的迁移任务数
	CompleteTaskNum *int64 `json:"complete_task_num,omitempty"`

	// 暂停的迁移任务数
	PausedTaskNum *int64 `json:"paused_task_num,omitempty"`

	// 正在运行的迁移任务数
	ExecutingTaskNum *int64 `json:"executing_task_num,omitempty"`

	// 等待中的迁移任务数
	WaitingTaskNum *int64 `json:"waiting_task_num,omitempty"`

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

	// 任务创建的对象总数量
	CreateCompleteNum *int64 `json:"create_complete_num,omitempty"`

	// 成功的对象数量
	SuccessNum *int64 `json:"success_num,omitempty"`

	// 失败的对象数量
	FailNum *int64 `json:"fail_num,omitempty"`

	// 忽略的对象数量
	SkipNum *int64 `json:"skip_num,omitempty"`

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

	// 已创建迁移任务包含的对象总大小(Byte)
	CreateCompleteSize *int64 `json:"create_complete_size,omitempty"`

	// 已迁移成功的对象总大小(Byte)
	CompleteSize *int64 `json:"complete_size,omitempty"`

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

	// 迁移前同名对象覆盖方式,用于迁移前判断源端与目的端有同名对象时,覆盖目的端或跳过迁移。默认SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE。 NO_OVERWRITE:不覆盖。迁移前源端对象与目的端对象同名时,不做对比直接跳过迁移。 SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE:大小/最后修改时间对比覆盖。默认配置。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象大小和最后修改时间,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。源端与目的端同名对象大小不相同,或目的端对象的最后修改时间晚于源端对象的最后修改时间(源端较新),覆盖目的端。 CRC64_COMPARISON_OVERWRITE:CRC64对比覆盖。目前仅支持华为/阿里/腾讯。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象元数据中CRC64值是否相同,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE(大小/最后修改时间对比覆盖)来对比进行覆盖判断。 FULL_OVERWRITE:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
	ObjectOverwriteMode *ShowTaskGroupResponseObjectOverwriteMode `json:"object_overwrite_mode,omitempty"`

	// 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
	ConsistencyCheck *ShowTaskGroupResponseConsistencyCheck `json:"consistency_check,omitempty"`

	// 是否开启请求者付款,在启用后,请求者支付请求和数据传输费用。
	EnableRequesterPays *bool `json:"enable_requester_pays,omitempty"`
	HttpStatusCode      int   `json:"-"`
}

Response Object

func (ShowTaskGroupResponse) String added in v0.1.3

func (o ShowTaskGroupResponse) String() string

type ShowTaskGroupResponseConsistencyCheck added in v0.1.3

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

func (ShowTaskGroupResponseConsistencyCheck) MarshalJSON added in v0.1.3

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

func (*ShowTaskGroupResponseConsistencyCheck) UnmarshalJSON added in v0.1.3

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

func (ShowTaskGroupResponseConsistencyCheck) Value added in v0.1.3

type ShowTaskGroupResponseConsistencyCheckEnum added in v0.1.3

type ShowTaskGroupResponseConsistencyCheckEnum struct {
	SIZE_LAST_MODIFIED ShowTaskGroupResponseConsistencyCheck
	CRC64              ShowTaskGroupResponseConsistencyCheck
	NO_CHECK           ShowTaskGroupResponseConsistencyCheck
}

func GetShowTaskGroupResponseConsistencyCheckEnum added in v0.1.3

func GetShowTaskGroupResponseConsistencyCheckEnum() ShowTaskGroupResponseConsistencyCheckEnum

type ShowTaskGroupResponseObjectOverwriteMode added in v0.1.3

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

func (ShowTaskGroupResponseObjectOverwriteMode) MarshalJSON added in v0.1.3

func (*ShowTaskGroupResponseObjectOverwriteMode) UnmarshalJSON added in v0.1.3

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

func (ShowTaskGroupResponseObjectOverwriteMode) Value added in v0.1.3

type ShowTaskGroupResponseObjectOverwriteModeEnum added in v0.1.3

type ShowTaskGroupResponseObjectOverwriteModeEnum struct {
	NO_OVERWRITE                            ShowTaskGroupResponseObjectOverwriteMode
	SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE ShowTaskGroupResponseObjectOverwriteMode
	CRC64_COMPARISON_OVERWRITE              ShowTaskGroupResponseObjectOverwriteMode
	FULL_OVERWRITE                          ShowTaskGroupResponseObjectOverwriteMode
}

func GetShowTaskGroupResponseObjectOverwriteModeEnum added in v0.1.3

func GetShowTaskGroupResponseObjectOverwriteModeEnum() ShowTaskGroupResponseObjectOverwriteModeEnum

type ShowTaskGroupResponseTaskType added in v0.1.3

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

func (ShowTaskGroupResponseTaskType) MarshalJSON added in v0.1.3

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

func (*ShowTaskGroupResponseTaskType) UnmarshalJSON added in v0.1.3

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

func (ShowTaskGroupResponseTaskType) Value added in v0.1.3

type ShowTaskGroupResponseTaskTypeEnum added in v0.1.3

type ShowTaskGroupResponseTaskTypeEnum struct {
	LIST     ShowTaskGroupResponseTaskType
	URL_LIST ShowTaskGroupResponseTaskType
	PREFIX   ShowTaskGroupResponseTaskType
}

func GetShowTaskGroupResponseTaskTypeEnum added in v0.1.3

func GetShowTaskGroupResponseTaskTypeEnum() ShowTaskGroupResponseTaskTypeEnum

type ShowTaskRequest

type ShowTaskRequest struct {

	// 任务ID
	TaskId string `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"`

	// 是否启用元数据迁移,默认否。不启用时,为保证迁移任务正常运行,仍将为您迁移ContentType元数据。
	EnableMetadataMigration *bool `json:"enable_metadata_migration,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"`

	// 迁移前同名对象覆盖方式,用于迁移前判断源端与目的端有同名对象时,覆盖目的端或跳过迁移。默认SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE。 NO_OVERWRITE:不覆盖。迁移前源端对象与目的端对象同名时,不做对比直接跳过迁移。 SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE:大小/最后修改时间对比覆盖。默认配置。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象大小和最后修改时间,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。源端与目的端同名对象大小不相同,或目的端对象的最后修改时间晚于源端对象的最后修改时间(源端较新),覆盖目的端。 CRC64_COMPARISON_OVERWRITE:CRC64对比覆盖。目前仅支持华为/阿里/腾讯。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象元数据中CRC64值是否相同,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE(大小/最后修改时间对比覆盖)来对比进行覆盖判断。 FULL_OVERWRITE:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
	ObjectOverwriteMode *ShowTaskResponseObjectOverwriteMode `json:"object_overwrite_mode,omitempty"`

	// 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
	ConsistencyCheck *ShowTaskResponseConsistencyCheck `json:"consistency_check,omitempty"`

	// 是否开启请求者付款,在启用后,请求者支付请求和数据传输费用。
	EnableRequesterPays *bool `json:"enable_requester_pays,omitempty"`
	HttpStatusCode      int   `json:"-"`
}

Response Object

func (ShowTaskResponse) String

func (o ShowTaskResponse) String() string

type ShowTaskResponseConsistencyCheck added in v0.1.3

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

func (ShowTaskResponseConsistencyCheck) MarshalJSON added in v0.1.3

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

func (*ShowTaskResponseConsistencyCheck) UnmarshalJSON added in v0.1.3

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

func (ShowTaskResponseConsistencyCheck) Value added in v0.1.3

type ShowTaskResponseConsistencyCheckEnum added in v0.1.3

type ShowTaskResponseConsistencyCheckEnum struct {
	SIZE_LAST_MODIFIED ShowTaskResponseConsistencyCheck
	CRC64              ShowTaskResponseConsistencyCheck
	NO_CHECK           ShowTaskResponseConsistencyCheck
}

func GetShowTaskResponseConsistencyCheckEnum added in v0.1.3

func GetShowTaskResponseConsistencyCheckEnum() ShowTaskResponseConsistencyCheckEnum

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

func (ShowTaskResponseGroupType) Value added in v0.0.90

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 ShowTaskResponseObjectOverwriteMode added in v0.1.3

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

func (ShowTaskResponseObjectOverwriteMode) MarshalJSON added in v0.1.3

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

func (*ShowTaskResponseObjectOverwriteMode) UnmarshalJSON added in v0.1.3

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

func (ShowTaskResponseObjectOverwriteMode) Value added in v0.1.3

type ShowTaskResponseObjectOverwriteModeEnum added in v0.1.3

type ShowTaskResponseObjectOverwriteModeEnum struct {
	NO_OVERWRITE                            ShowTaskResponseObjectOverwriteMode
	SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE ShowTaskResponseObjectOverwriteMode
	CRC64_COMPARISON_OVERWRITE              ShowTaskResponseObjectOverwriteMode
	FULL_OVERWRITE                          ShowTaskResponseObjectOverwriteMode
}

func GetShowTaskResponseObjectOverwriteModeEnum added in v0.1.3

func GetShowTaskResponseObjectOverwriteModeEnum() ShowTaskResponseObjectOverwriteModeEnum

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

func (ShowTaskResponseTaskType) Value added in v0.0.90

func (c ShowTaskResponseTaskType) Value() string

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

func (SmnConfigLanguage) Value added in v0.0.90

func (c SmnConfigLanguage) Value() string

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

func (SourceCdnReqAuthenticationType) Value added in v0.0.90

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

func (SourceCdnReqProtocol) Value added in v0.0.90

func (c SourceCdnReqProtocol) Value() string

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

func (SourceCdnRespAuthenticationType) Value added in v0.0.90

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

func (SourceCdnRespProtocol) Value added in v0.0.90

func (c SourceCdnRespProtocol) Value() string

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

func (SrcNodeRespCloudType) Value added in v0.0.90

func (c SrcNodeRespCloudType) Value() string

type StartTaskGroupReq added in v0.1.3

type StartTaskGroupReq struct {

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

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

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

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

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

This is a auto create Body Object

func (StartTaskGroupReq) String added in v0.1.3

func (o StartTaskGroupReq) String() string

type StartTaskGroupRequest added in v0.1.3

type StartTaskGroupRequest struct {

	// 任务组id
	GroupId string `json:"group_id"`

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

Request Object

func (StartTaskGroupRequest) String added in v0.1.3

func (o StartTaskGroupRequest) String() string

type StartTaskGroupResponse added in v0.1.3

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

Response Object

func (StartTaskGroupResponse) String added in v0.1.3

func (o StartTaskGroupResponse) String() string

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 string `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 StopTaskGroupRequest added in v0.1.3

type StopTaskGroupRequest struct {

	// 任务组id
	GroupId string `json:"group_id"`
}

Request Object

func (StopTaskGroupRequest) String added in v0.1.3

func (o StopTaskGroupRequest) String() string

type StopTaskGroupResponse added in v0.1.3

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

Response Object

func (StopTaskGroupResponse) String added in v0.1.3

func (o StopTaskGroupResponse) String() string

type StopTaskRequest

type StopTaskRequest struct {

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

type SyncObjectReq struct {

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

同步事件请求体

func (SyncObjectReq) String

func (o SyncObjectReq) String() string

type TaskGroupDstNode added in v0.1.3

type TaskGroupDstNode struct {

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

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

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

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

	// 华为云目的端信息,默认为HEC
	CloudType *string `json:"cloud_type,omitempty"`

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

迁移任务组目的端节点信息

func (TaskGroupDstNode) String added in v0.1.3

func (o TaskGroupDstNode) String() string

type TaskGroupDstNodeResp added in v0.1.3

type TaskGroupDstNodeResp struct {

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

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

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

迁移任务组目的端节点信息

func (TaskGroupDstNodeResp) String added in v0.1.3

func (o TaskGroupDstNodeResp) String() string

type TaskGroupResp added in v0.1.3

type TaskGroupResp struct {

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

	// 迁移组任务状态。 0 – 等待中 1 – 执行中/创建中 2 – 监控任务执行 3 – 暂停 4 – 创建任务失败 5 – 迁移失败 6 – 迁移完成 7 – 暂停中 8 – 等待删除中 9 – 删除
	Status *int32 `json:"status,omitempty"`

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

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

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

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

	// 是否启用元数据迁移,默认否。不启用时,为保证迁移任务正常运行,仍将为您迁移ContentType元数据。
	EnableMetadataMigration *bool `json:"enable_metadata_migration,omitempty"`

	// 是否开启记录失败对象
	EnableFailedObjectRecording *bool `json:"enable_failed_object_recording,omitempty"`

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

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

	// 任务类型,默认为PREFIX。 LIST:对象列表迁移 URL_LIST:URL列表迁移, PREFIX:对象前缀迁移
	TaskType *TaskGroupRespTaskType `json:"task_type,omitempty"`

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

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

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

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

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

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

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

	// 任务组包含的迁移任务总数
	TotalTaskNum *int64 `json:"total_task_num,omitempty"`

	// 已创建的迁移任务数
	CreateTaskNum *int64 `json:"create_task_num,omitempty"`

	// 失败的迁移任务数
	FailedTaskNum *int64 `json:"failed_task_num,omitempty"`

	// 已完成的迁移任务数
	CompleteTaskNum *int64 `json:"complete_task_num,omitempty"`

	// 暂停的迁移任务数
	PausedTaskNum *int64 `json:"paused_task_num,omitempty"`

	// 正在运行的迁移任务数
	ExecutingTaskNum *int64 `json:"executing_task_num,omitempty"`

	// 等待中的迁移任务数
	WaitingTaskNum *int64 `json:"waiting_task_num,omitempty"`

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

	// 任务创建的对象总数量
	CreateCompleteNum *int64 `json:"create_complete_num,omitempty"`

	// 成功的对象数量
	SuccessNum *int64 `json:"success_num,omitempty"`

	// 失败的对象数量
	FailNum *int64 `json:"fail_num,omitempty"`

	// 忽略的对象数量
	SkipNum *int64 `json:"skip_num,omitempty"`

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

	// 已创建迁移任务包含的对象总大小(Byte)
	CreateCompleteSize *int64 `json:"create_complete_size,omitempty"`

	// 已迁移成功的对象总大小(Byte)
	CompleteSize *int64 `json:"complete_size,omitempty"`

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

	// 迁移前同名对象覆盖方式,用于迁移前判断源端与目的端有同名对象时,覆盖目的端或跳过迁移。默认SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE。 NO_OVERWRITE:不覆盖。迁移前源端对象与目的端对象同名时,不做对比直接跳过迁移。 SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE:大小/最后修改时间对比覆盖。默认配置。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象大小和最后修改时间,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。源端与目的端同名对象大小不相同,或目的端对象的最后修改时间晚于源端对象的最后修改时间(源端较新),覆盖目的端。 CRC64_COMPARISON_OVERWRITE:CRC64对比覆盖。目前仅支持华为/阿里/腾讯。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象元数据中CRC64值是否相同,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE(大小/最后修改时间对比覆盖)来对比进行覆盖判断。 FULL_OVERWRITE:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
	ObjectOverwriteMode *TaskGroupRespObjectOverwriteMode `json:"object_overwrite_mode,omitempty"`

	// 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
	ConsistencyCheck *TaskGroupRespConsistencyCheck `json:"consistency_check,omitempty"`

	// 是否开启请求者付款,在启用后,请求者支付请求和数据传输费用。
	EnableRequesterPays *bool `json:"enable_requester_pays,omitempty"`
}

返回的查询的迁移任务组信息

func (TaskGroupResp) String added in v0.1.3

func (o TaskGroupResp) String() string

type TaskGroupRespConsistencyCheck added in v0.1.3

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

func (TaskGroupRespConsistencyCheck) MarshalJSON added in v0.1.3

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

func (*TaskGroupRespConsistencyCheck) UnmarshalJSON added in v0.1.3

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

func (TaskGroupRespConsistencyCheck) Value added in v0.1.3

type TaskGroupRespConsistencyCheckEnum added in v0.1.3

type TaskGroupRespConsistencyCheckEnum struct {
	SIZE_LAST_MODIFIED TaskGroupRespConsistencyCheck
	CRC64              TaskGroupRespConsistencyCheck
	NO_CHECK           TaskGroupRespConsistencyCheck
}

func GetTaskGroupRespConsistencyCheckEnum added in v0.1.3

func GetTaskGroupRespConsistencyCheckEnum() TaskGroupRespConsistencyCheckEnum

type TaskGroupRespObjectOverwriteMode added in v0.1.3

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

func (TaskGroupRespObjectOverwriteMode) MarshalJSON added in v0.1.3

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

func (*TaskGroupRespObjectOverwriteMode) UnmarshalJSON added in v0.1.3

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

func (TaskGroupRespObjectOverwriteMode) Value added in v0.1.3

type TaskGroupRespObjectOverwriteModeEnum added in v0.1.3

type TaskGroupRespObjectOverwriteModeEnum struct {
	NO_OVERWRITE                            TaskGroupRespObjectOverwriteMode
	SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE TaskGroupRespObjectOverwriteMode
	CRC64_COMPARISON_OVERWRITE              TaskGroupRespObjectOverwriteMode
	FULL_OVERWRITE                          TaskGroupRespObjectOverwriteMode
}

func GetTaskGroupRespObjectOverwriteModeEnum added in v0.1.3

func GetTaskGroupRespObjectOverwriteModeEnum() TaskGroupRespObjectOverwriteModeEnum

type TaskGroupRespTaskType added in v0.1.3

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

func (TaskGroupRespTaskType) MarshalJSON added in v0.1.3

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

func (*TaskGroupRespTaskType) UnmarshalJSON added in v0.1.3

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

func (TaskGroupRespTaskType) Value added in v0.1.3

func (c TaskGroupRespTaskType) Value() string

type TaskGroupRespTaskTypeEnum added in v0.1.3

type TaskGroupRespTaskTypeEnum struct {
	LIST     TaskGroupRespTaskType
	URL_LIST TaskGroupRespTaskType
	PREFIX   TaskGroupRespTaskType
}

func GetTaskGroupRespTaskTypeEnum added in v0.1.3

func GetTaskGroupRespTaskTypeEnum() TaskGroupRespTaskTypeEnum

type TaskGroupSrcNode added in v0.1.3

type TaskGroupSrcNode struct {

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

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

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

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

	// 任务类型为前缀迁移任务时,表示待迁移前缀。 整桶迁移时,此参数设置为[\"\"]。
	ObjectKey *[]string `json:"object_key,omitempty"`

	// 源端所在桶
	Bucket *string `json:"bucket,omitempty"`

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

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

迁移任务组的源端节点

func (TaskGroupSrcNode) String added in v0.1.3

func (o TaskGroupSrcNode) String() string

type TaskGroupSrcNodeResp added in v0.1.3

type TaskGroupSrcNodeResp struct {

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

	// 源端云服务提供商。  可选值有AWS、AZURE、ALIYUN、TENCENT、HUAWEICLOUD、QINGCLOUD、KINGSOFTCLOUD、BAIDU、QINIU、URLSOURCE或者UCLOUD。默认值为ALIYUN。
	CloudType *TaskGroupSrcNodeRespCloudType `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 (TaskGroupSrcNodeResp) String added in v0.1.3

func (o TaskGroupSrcNodeResp) String() string

type TaskGroupSrcNodeRespCloudType added in v0.1.3

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

func (TaskGroupSrcNodeRespCloudType) MarshalJSON added in v0.1.3

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

func (*TaskGroupSrcNodeRespCloudType) UnmarshalJSON added in v0.1.3

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

func (TaskGroupSrcNodeRespCloudType) Value added in v0.1.3

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"`

	// 是否启用元数据迁移,默认否。不启用时,为保证迁移任务正常运行,仍将为您迁移ContentType元数据。
	EnableMetadataMigration *bool `json:"enable_metadata_migration,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"`

	// 迁移前同名对象覆盖方式,用于迁移前判断源端与目的端有同名对象时,覆盖目的端或跳过迁移。默认SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE。 NO_OVERWRITE:不覆盖。迁移前源端对象与目的端对象同名时,不做对比直接跳过迁移。 SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE:大小/最后修改时间对比覆盖。默认配置。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象大小和最后修改时间,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。源端与目的端同名对象大小不相同,或目的端对象的最后修改时间晚于源端对象的最后修改时间(源端较新),覆盖目的端。 CRC64_COMPARISON_OVERWRITE:CRC64对比覆盖。目前仅支持华为/阿里/腾讯。迁移前源端对象与目的端对象同名时,通过对比源端和目的端对象元数据中CRC64值是否相同,判断是否覆盖目的端,需满足源端/目的端对象的加密状态一致。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE(大小/最后修改时间对比覆盖)来对比进行覆盖判断。 FULL_OVERWRITE:全覆盖。迁移前源端对象与目的端对象同名时,不做对比覆盖目的端。
	ObjectOverwriteMode *TaskRespObjectOverwriteMode `json:"object_overwrite_mode,omitempty"`

	// 一致性校验方式,用于迁移前/后校验对象是否一致,所有校验方式需满足源端/目的端对象的加密状态一致,具体校验方式和校验结果可通过对象列表查看。默认size_last_modified。 size_last_modified:默认配置。迁移前后,通过对比源端和目的端对象大小+最后修改时间,判断对象是否已存在或迁移后数据是否完整。源端与目的端同名对象大小相同,且目的端对象的最后修改时间不早于源端对象的最后修改时间,则代表该对象已存在/迁移成功。 crc64:目前仅支持华为/阿里/腾讯。迁移前后,通过对比源端和目的端对象元数据中CRC64值是否相同,判断对象是否已存在/迁移完成。如果源端与目的端对象元数据中不存在CRC64值,则系统会默认使用大小/最后修改时间校验方式来校验。 no_check:目前仅支持HTTP/HTTPS数据源。当源端对象无法通过标准http协议中content-length字段获取数据大小时,默认数据下载成功即迁移成功,不对数据做额外校验,且迁移时源端对象默认覆盖目的端同名对象。当源端对象能正常通过标准http协议中content-length字段获取数据大小时,则采用大小/最后修改时间校验方式来校验。
	ConsistencyCheck *TaskRespConsistencyCheck `json:"consistency_check,omitempty"`

	// 是否开启请求者付款,在启用后,请求者支付请求和数据传输费用。
	EnableRequesterPays *bool `json:"enable_requester_pays,omitempty"`
}

func (TaskResp) String

func (o TaskResp) String() string

type TaskRespConsistencyCheck added in v0.1.3

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

func (TaskRespConsistencyCheck) MarshalJSON added in v0.1.3

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

func (*TaskRespConsistencyCheck) UnmarshalJSON added in v0.1.3

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

func (TaskRespConsistencyCheck) Value added in v0.1.3

func (c TaskRespConsistencyCheck) Value() string

type TaskRespConsistencyCheckEnum added in v0.1.3

type TaskRespConsistencyCheckEnum struct {
	SIZE_LAST_MODIFIED TaskRespConsistencyCheck
	CRC64              TaskRespConsistencyCheck
	NO_CHECK           TaskRespConsistencyCheck
}

func GetTaskRespConsistencyCheckEnum added in v0.1.3

func GetTaskRespConsistencyCheckEnum() TaskRespConsistencyCheckEnum

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

func (TaskRespGroupType) Value added in v0.0.90

func (c TaskRespGroupType) Value() string

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 TaskRespObjectOverwriteMode added in v0.1.3

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

func (TaskRespObjectOverwriteMode) MarshalJSON added in v0.1.3

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

func (*TaskRespObjectOverwriteMode) UnmarshalJSON added in v0.1.3

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

func (TaskRespObjectOverwriteMode) Value added in v0.1.3

type TaskRespObjectOverwriteModeEnum added in v0.1.3

type TaskRespObjectOverwriteModeEnum struct {
	NO_OVERWRITE                            TaskRespObjectOverwriteMode
	SIZE_LAST_MODIFIED_COMPARISON_OVERWRITE TaskRespObjectOverwriteMode
	CRC64_COMPARISON_OVERWRITE              TaskRespObjectOverwriteMode
	FULL_OVERWRITE                          TaskRespObjectOverwriteMode
}

func GetTaskRespObjectOverwriteModeEnum added in v0.1.3

func GetTaskRespObjectOverwriteModeEnum() TaskRespObjectOverwriteModeEnum

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

func (TaskRespTaskType) Value added in v0.0.90

func (c TaskRespTaskType) Value() string

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 string `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 UpdateTaskGroupRequest added in v0.1.3

type UpdateTaskGroupRequest struct {

	// 任务组id
	GroupId string `json:"group_id"`

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

Request Object

func (UpdateTaskGroupRequest) String added in v0.1.3

func (o UpdateTaskGroupRequest) String() string

type UpdateTaskGroupResponse added in v0.1.3

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

Response Object

func (UpdateTaskGroupResponse) String added in v0.1.3

func (o UpdateTaskGroupResponse) String() 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

func (VersionStatus) Value added in v0.0.90

func (c VersionStatus) Value() string

type VersionStatusEnum

type VersionStatusEnum struct {
	CURRENT    VersionStatus
	DEPRECATED VersionStatus
	SUPPORTED  VersionStatus
}

func GetVersionStatusEnum

func GetVersionStatusEnum() VersionStatusEnum

Source Files

Jump to

Keyboard shortcuts

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