dts_v20180101

package
v1.0.161 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName    = "dts"
	DefaultTimeout = 10 * time.Second
)

Variables

View Source
var (
	ServiceInfoMap = map[string]common.ServiceInfo{
		"cn-beijing": {
			Timeout: DefaultTimeout,
			Scheme:  "https",
			Host:    "dts.volcengineapi.com",
			Header: http.Header{
				"Accept": []string{"application/json"},
			},
			Credentials: common.Credentials{
				Region:  "cn-beijing",
				Service: ServiceName,
			},
		},
		"cn-guangzhou": {
			Timeout: DefaultTimeout,
			Scheme:  "https",
			Host:    "dts.volcengineapi.com",
			Header: http.Header{
				"Accept": []string{"application/json"},
			},
			Credentials: common.Credentials{
				Region:  "cn-guangzhou",
				Service: ServiceName,
			},
		},
		"cn-shanghai": {
			Timeout: DefaultTimeout,
			Scheme:  "https",
			Host:    "dts.volcengineapi.com",
			Header: http.Header{
				"Accept": []string{"application/json"},
			},
			Credentials: common.Credentials{
				Region:  "cn-shanghai",
				Service: ServiceName,
			},
		},
	}
	ApiListInfo = map[string]*common.ApiInfo{

		"GetAsyncPreCheckResult": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetAsyncPreCheckResult"},
				"Version": []string{"2018-01-01"},
			},
		},
		"PreCheckAsync": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"PreCheckAsync"},
				"Version": []string{"2018-01-01"},
			},
		},
	}
)

Functions

This section is empty.

Types

type Components8K6CbSchemasObjectmapping20221001PropertiesMappinglistItemsPropertiesObjectmappingsettingPropertiesEsmetamappingsetting

type Components8K6CbSchemasObjectmapping20221001PropertiesMappinglistItemsPropertiesObjectmappingsettingPropertiesEsmetamappingsetting struct {
	EnableRouting *bool     `json:"EnableRouting,omitempty"`
	PidCol        []*string `json:"PidCol,omitempty"`
	RoutingCol    []*string `json:"RoutingCol,omitempty"`
}

type Dts

type Dts struct {
	*common.Client
}

func NewInstance

func NewInstance() *Dts

func NewInstanceWithRegion

func NewInstanceWithRegion(region string) *Dts

func (*Dts) GetAsyncPreCheckResult

func (c *Dts) GetAsyncPreCheckResult(ctx context.Context, arg *GetAsyncPreCheckResultBody) (*GetAsyncPreCheckResultRes, error)

func (*Dts) PreCheckAsync

func (c *Dts) PreCheckAsync(ctx context.Context, arg *PreCheckAsyncBody) (*PreCheckAsyncRes, error)

type Enum0

type Enum0 string

type Enum5

type Enum5 string

type GetAsyncPreCheckResult

type GetAsyncPreCheckResult struct{}

type GetAsyncPreCheckResultBody

type GetAsyncPreCheckResultBody struct {
	// REQUIRED; 预检查任务ID
	ID string `json:"ID"`
}

type GetAsyncPreCheckResultQuery

type GetAsyncPreCheckResultQuery struct{}

type GetAsyncPreCheckResultReq

type GetAsyncPreCheckResultReq struct {
	*GetAsyncPreCheckResultQuery
	*GetAsyncPreCheckResultBody
}

type GetAsyncPreCheckResultRes

type GetAsyncPreCheckResultRes struct {
	ResponseMetadata *GetAsyncPreCheckResultResResponseMetadata `json:"ResponseMetadata,omitempty"`
	Result           *GetAsyncPreCheckResultResResult           `json:"Result,omitempty"`
}

type GetAsyncPreCheckResultResResponseMetadata

type GetAsyncPreCheckResultResResponseMetadata struct {
	// REQUIRED; 请求的接口名,属于请求的公共参数。
	Action string `json:"Action"`

	// REQUIRED; 请求的Region,例如:cn-north-1
	Region string `json:"Region"`

	// REQUIRED; RequestID为每次API请求的唯一标识。
	RequestID string `json:"RequestId"`

	// REQUIRED; 请求的服务,属于请求的公共参数。
	Service string `json:"Service"`

	// REQUIRED; 请求的版本号,属于请求的公共参数。
	Version string `json:"Version"`
}

type GetAsyncPreCheckResultResResult

type GetAsyncPreCheckResultResResult struct {
	// 是否通过
	Pass *bool `json:"Pass,omitempty"`

	// 预检查结果
	PreChecks []*GetAsyncPreCheckResultResResultPreChecksItem `json:"PreChecks,omitempty"`

	// 进度,如10
	Progress *int64                                 `json:"Progress,omitempty"`
	Status   *GetAsyncPreCheckResultResResultStatus `json:"Status,omitempty"`
}

type GetAsyncPreCheckResultResResultPreChecksItem

type GetAsyncPreCheckResultResResultPreChecksItem struct {
	// 描述
	Desc *string `json:"Desc,omitempty"`

	// 详情
	Details *string                                            `json:"Details,omitempty"`
	Level   *GetAsyncPreCheckResultResResultPreChecksItemLevel `json:"Level,omitempty"`

	// 名称
	Name *string `json:"Name,omitempty"`

	// 是否通过
	Pass *bool `json:"Pass,omitempty"`
}

type GetAsyncPreCheckResultResResultPreChecksItemLevel

type GetAsyncPreCheckResultResResultPreChecksItemLevel string

type GetAsyncPreCheckResultResResultStatus

type GetAsyncPreCheckResultResResultStatus string

type ObjectMapping20221001

type ObjectMapping20221001 struct {
	DestObjName          *string                                    `json:"DestObjName,omitempty"`
	MappingList          []*ObjectMapping20221001MappingListItem    `json:"MappingList,omitempty"`
	ObjectMappingSetting *ObjectMapping20221001ObjectMappingSetting `json:"ObjectMappingSetting,omitempty"`
	ObjectType           *ObjectMapping20221001ObjectType           `json:"ObjectType,omitempty"`
	SrcObjName           *string                                    `json:"SrcObjName,omitempty"`
}

type ObjectMapping20221001MappingListItem

type ObjectMapping20221001MappingListItem struct {
	DestObjName          *string                                                   `json:"DestObjName,omitempty"`
	MappingList          []*ObjectMapping20221001                                  `json:"MappingList,omitempty"`
	ObjectMappingSetting *ObjectMapping20221001MappingListItemObjectMappingSetting `json:"ObjectMappingSetting,omitempty"`
	ObjectType           *ObjectMapping20221001MappingListItemObjectType           `json:"ObjectType,omitempty"`
	SrcObjName           *string                                                   `json:"SrcObjName,omitempty"`
}

type ObjectMapping20221001MappingListItemObjectMappingSetting

type ObjectMapping20221001MappingListItemObjectMappingSetting struct {
	ESMetaMappingSetting *Components8K6CbSchemasObjectmapping20221001PropertiesMappinglistItemsPropertiesObjectmappingsettingPropertiesEsmetamappingsetting `json:"ESMetaMappingSetting,omitempty"`
	ObjectTransTypes     []*ObjectMapping20221001MappingListPropertiesItemsItem                                                                             `json:"ObjectTransTypes,omitempty"`
	PolicyForKeyConflict *Enum5                                                                                                                             `json:"PolicyForKeyConflict,omitempty"`

	// 向前兼容,默认false,表示所有操作类型
	SetObjectTransType *bool `json:"SetObjectTransType,omitempty"`
}

type ObjectMapping20221001MappingListItemObjectType

type ObjectMapping20221001MappingListItemObjectType string

type ObjectMapping20221001MappingListPropertiesItemsItem

type ObjectMapping20221001MappingListPropertiesItemsItem string

type ObjectMapping20221001ObjectMappingSetting

type ObjectMapping20221001ObjectMappingSetting struct {
	ESMetaMappingSetting *ObjectMapping20221001ObjectMappingSettingESMetaMappingSetting   `json:"ESMetaMappingSetting,omitempty"`
	ObjectTransTypes     []*ObjectMapping20221001ObjectMappingSettingObjectTransTypesItem `json:"ObjectTransTypes,omitempty"`
	PolicyForKeyConflict *ObjectMapping20221001ObjectMappingSettingPolicyForKeyConflict   `json:"PolicyForKeyConflict,omitempty"`

	// 向前兼容,默认false,表示所有操作类型
	SetObjectTransType *bool `json:"SetObjectTransType,omitempty"`
}

type ObjectMapping20221001ObjectMappingSettingESMetaMappingSetting

type ObjectMapping20221001ObjectMappingSettingESMetaMappingSetting struct {
	EnableRouting *bool     `json:"EnableRouting,omitempty"`
	PidCol        []*string `json:"PidCol,omitempty"`
	RoutingCol    []*string `json:"RoutingCol,omitempty"`
}

type ObjectMapping20221001ObjectMappingSettingObjectTransTypesItem

type ObjectMapping20221001ObjectMappingSettingObjectTransTypesItem string

type ObjectMapping20221001ObjectMappingSettingPolicyForKeyConflict

type ObjectMapping20221001ObjectMappingSettingPolicyForKeyConflict string

type ObjectMapping20221001ObjectType

type ObjectMapping20221001ObjectType string

type PreCheckAsync

type PreCheckAsync struct{}

type PreCheckAsyncBody

type PreCheckAsyncBody struct {
	// REQUIRED; 迁移ID
	TaskID string `json:"TaskID"`
}

type PreCheckAsyncQuery

type PreCheckAsyncQuery struct{}

type PreCheckAsyncReq

type PreCheckAsyncReq struct {
	*PreCheckAsyncQuery
	*PreCheckAsyncBody
}

type PreCheckAsyncRes

type PreCheckAsyncRes struct {
	ResponseMetadata *PreCheckAsyncResResponseMetadata `json:"ResponseMetadata,omitempty"`
	Result           *PreCheckAsyncResResult           `json:"Result,omitempty"`
}

type PreCheckAsyncResResponseMetadata

type PreCheckAsyncResResponseMetadata struct {
	// REQUIRED; 请求的接口名,属于请求的公共参数。
	Action string `json:"Action"`

	// REQUIRED; 请求的Region,例如:cn-north-1
	Region string `json:"Region"`

	// REQUIRED; RequestID为每次API请求的唯一标识。
	RequestID string `json:"RequestId"`

	// REQUIRED; 请求的服务,属于请求的公共参数。
	Service string `json:"Service"`

	// REQUIRED; 请求的版本号,属于请求的公共参数。
	Version string `json:"Version"`
}

type PreCheckAsyncResResult

type PreCheckAsyncResResult struct {

	// 预检查结果id
	ID *string `json:"ID,omitempty"`
}

Jump to

Keyboard shortcuts

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