@alicloud/dataworks-public20240518 7.2.1 → 7.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +73 -5
- package/dist/client.js.map +1 -1
- package/dist/models/CreateDijobRequest.d.ts +0 -81
- package/dist/models/CreateDijobRequest.js.map +1 -1
- package/dist/models/CreateDijobRequestDestinationDataSourceSettings.d.ts +0 -7
- package/dist/models/CreateDijobRequestDestinationDataSourceSettings.js.map +1 -1
- package/dist/models/CreateDijobRequestJobSettings.d.ts +0 -41
- package/dist/models/CreateDijobRequestJobSettings.js.map +1 -1
- package/dist/models/CreateDijobRequestJobSettingsColumnDataTypeSettings.d.ts +0 -14
- package/dist/models/CreateDijobRequestJobSettingsColumnDataTypeSettings.js.map +1 -1
- package/dist/models/CreateDijobRequestJobSettingsCycleScheduleSettings.d.ts +0 -17
- package/dist/models/CreateDijobRequestJobSettingsCycleScheduleSettings.js.map +1 -1
- package/dist/models/CreateDijobRequestJobSettingsDdlHandlingSettings.d.ts +0 -26
- package/dist/models/CreateDijobRequestJobSettingsDdlHandlingSettings.js.map +1 -1
- package/dist/models/CreateDijobRequestJobSettingsRuntimeSettings.d.ts +0 -23
- package/dist/models/CreateDijobRequestJobSettingsRuntimeSettings.js.map +1 -1
- package/dist/models/CreateDijobRequestResourceSettings.d.ts +0 -12
- package/dist/models/CreateDijobRequestResourceSettings.js.map +1 -1
- package/dist/models/CreateDijobRequestResourceSettingsOfflineResourceSettings.d.ts +0 -14
- package/dist/models/CreateDijobRequestResourceSettingsOfflineResourceSettings.js.map +1 -1
- package/dist/models/CreateDijobRequestResourceSettingsRealtimeResourceSettings.d.ts +0 -14
- package/dist/models/CreateDijobRequestResourceSettingsRealtimeResourceSettings.js.map +1 -1
- package/dist/models/CreateDijobRequestResourceSettingsScheduleResourceSettings.d.ts +0 -14
- package/dist/models/CreateDijobRequestResourceSettingsScheduleResourceSettings.js.map +1 -1
- package/dist/models/CreateDijobRequestSourceDataSourceSettings.d.ts +0 -11
- package/dist/models/CreateDijobRequestSourceDataSourceSettings.js.map +1 -1
- package/dist/models/CreateDijobRequestSourceDataSourceSettingsDataSourceProperties.d.ts +0 -14
- package/dist/models/CreateDijobRequestSourceDataSourceSettingsDataSourceProperties.js.map +1 -1
- package/dist/models/CreateDijobRequestTableMappings.d.ts +0 -8
- package/dist/models/CreateDijobRequestTableMappings.js.map +1 -1
- package/dist/models/CreateDijobRequestTableMappingsSourceObjectSelectionRules.d.ts +0 -32
- package/dist/models/CreateDijobRequestTableMappingsSourceObjectSelectionRules.js.map +1 -1
- package/dist/models/CreateDijobRequestTableMappingsTransformationRules.d.ts +0 -34
- package/dist/models/CreateDijobRequestTableMappingsTransformationRules.js.map +1 -1
- package/dist/models/CreateDijobRequestTransformationRules.d.ts +0 -83
- package/dist/models/CreateDijobRequestTransformationRules.js.map +1 -1
- package/dist/models/CreateDijobShrinkRequest.d.ts +0 -81
- package/dist/models/CreateDijobShrinkRequest.js.map +1 -1
- package/dist/models/UpdateDijobRequest.d.ts +0 -42
- package/dist/models/UpdateDijobRequest.js.map +1 -1
- package/dist/models/UpdateDijobRequestJobSettings.d.ts +0 -41
- package/dist/models/UpdateDijobRequestJobSettings.js.map +1 -1
- package/dist/models/UpdateDijobRequestJobSettingsColumnDataTypeSettings.d.ts +0 -14
- package/dist/models/UpdateDijobRequestJobSettingsColumnDataTypeSettings.js.map +1 -1
- package/dist/models/UpdateDijobRequestJobSettingsCycleScheduleSettings.d.ts +0 -7
- package/dist/models/UpdateDijobRequestJobSettingsCycleScheduleSettings.js.map +1 -1
- package/dist/models/UpdateDijobRequestJobSettingsDdlHandlingSettings.d.ts +0 -26
- package/dist/models/UpdateDijobRequestJobSettingsDdlHandlingSettings.js.map +1 -1
- package/dist/models/UpdateDijobRequestJobSettingsRuntimeSettings.d.ts +0 -23
- package/dist/models/UpdateDijobRequestJobSettingsRuntimeSettings.js.map +1 -1
- package/dist/models/UpdateDijobRequestResourceSettings.d.ts +0 -12
- package/dist/models/UpdateDijobRequestResourceSettings.js.map +1 -1
- package/dist/models/UpdateDijobRequestResourceSettingsOfflineResourceSettings.d.ts +0 -14
- package/dist/models/UpdateDijobRequestResourceSettingsOfflineResourceSettings.js.map +1 -1
- package/dist/models/UpdateDijobRequestResourceSettingsRealtimeResourceSettings.d.ts +0 -14
- package/dist/models/UpdateDijobRequestResourceSettingsRealtimeResourceSettings.js.map +1 -1
- package/dist/models/UpdateDijobRequestResourceSettingsScheduleResourceSettings.d.ts +0 -14
- package/dist/models/UpdateDijobRequestResourceSettingsScheduleResourceSettings.js.map +1 -1
- package/dist/models/UpdateDijobRequestTableMappings.d.ts +0 -8
- package/dist/models/UpdateDijobRequestTableMappings.js.map +1 -1
- package/dist/models/UpdateDijobRequestTableMappingsSourceObjectSelectionRules.d.ts +0 -32
- package/dist/models/UpdateDijobRequestTableMappingsSourceObjectSelectionRules.js.map +1 -1
- package/dist/models/UpdateDijobRequestTableMappingsTransformationRules.d.ts +0 -30
- package/dist/models/UpdateDijobRequestTableMappingsTransformationRules.js.map +1 -1
- package/dist/models/UpdateDijobRequestTransformationRules.d.ts +0 -83
- package/dist/models/UpdateDijobRequestTransformationRules.js.map +1 -1
- package/dist/models/UpdateDijobShrinkRequest.d.ts +0 -42
- package/dist/models/UpdateDijobShrinkRequest.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +95 -5
- package/src/models/CreateDijobRequest.ts +0 -81
- package/src/models/CreateDijobRequestDestinationDataSourceSettings.ts +0 -7
- package/src/models/CreateDijobRequestJobSettings.ts +0 -41
- package/src/models/CreateDijobRequestJobSettingsColumnDataTypeSettings.ts +0 -14
- package/src/models/CreateDijobRequestJobSettingsCycleScheduleSettings.ts +0 -17
- package/src/models/CreateDijobRequestJobSettingsDdlHandlingSettings.ts +0 -26
- package/src/models/CreateDijobRequestJobSettingsRuntimeSettings.ts +0 -23
- package/src/models/CreateDijobRequestResourceSettings.ts +0 -12
- package/src/models/CreateDijobRequestResourceSettingsOfflineResourceSettings.ts +0 -14
- package/src/models/CreateDijobRequestResourceSettingsRealtimeResourceSettings.ts +0 -14
- package/src/models/CreateDijobRequestResourceSettingsScheduleResourceSettings.ts +0 -14
- package/src/models/CreateDijobRequestSourceDataSourceSettings.ts +0 -11
- package/src/models/CreateDijobRequestSourceDataSourceSettingsDataSourceProperties.ts +0 -14
- package/src/models/CreateDijobRequestTableMappings.ts +0 -8
- package/src/models/CreateDijobRequestTableMappingsSourceObjectSelectionRules.ts +0 -32
- package/src/models/CreateDijobRequestTableMappingsTransformationRules.ts +0 -34
- package/src/models/CreateDijobRequestTransformationRules.ts +0 -83
- package/src/models/CreateDijobShrinkRequest.ts +0 -81
- package/src/models/UpdateDijobRequest.ts +0 -42
- package/src/models/UpdateDijobRequestJobSettings.ts +0 -41
- package/src/models/UpdateDijobRequestJobSettingsColumnDataTypeSettings.ts +0 -14
- package/src/models/UpdateDijobRequestJobSettingsCycleScheduleSettings.ts +0 -7
- package/src/models/UpdateDijobRequestJobSettingsDdlHandlingSettings.ts +0 -26
- package/src/models/UpdateDijobRequestJobSettingsRuntimeSettings.ts +0 -23
- package/src/models/UpdateDijobRequestResourceSettings.ts +0 -12
- package/src/models/UpdateDijobRequestResourceSettingsOfflineResourceSettings.ts +0 -14
- package/src/models/UpdateDijobRequestResourceSettingsRealtimeResourceSettings.ts +0 -14
- package/src/models/UpdateDijobRequestResourceSettingsScheduleResourceSettings.ts +0 -14
- package/src/models/UpdateDijobRequestTableMappings.ts +0 -8
- package/src/models/UpdateDijobRequestTableMappingsSourceObjectSelectionRules.ts +0 -32
- package/src/models/UpdateDijobRequestTableMappingsTransformationRules.ts +0 -30
- package/src/models/UpdateDijobRequestTransformationRules.ts +0 -83
- package/src/models/UpdateDijobShrinkRequest.ts +0 -42
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
export declare class UpdateDIJobRequestResourceSettingsScheduleResourceSettings extends $dara.Model {
|
|
3
|
-
/**
|
|
4
|
-
* @remarks
|
|
5
|
-
* The number of CUs in the resource group for scheduling that are used for batch synchronization.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* 2.0
|
|
9
|
-
*/
|
|
10
3
|
requestedCu?: number;
|
|
11
|
-
/**
|
|
12
|
-
* @remarks
|
|
13
|
-
* The name of the resource group for scheduling used for batch synchronization.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* S_res_group_235454102432001_1721021993437
|
|
17
|
-
*/
|
|
18
4
|
resourceGroupIdentifier?: string;
|
|
19
5
|
static names(): {
|
|
20
6
|
[key: string]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateDijobRequestResourceSettingsScheduleResourceSettings.js","sourceRoot":"","sources":["../../src/models/UpdateDijobRequestResourceSettingsScheduleResourceSettings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0DAA2D,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"UpdateDijobRequestResourceSettingsScheduleResourceSettings.js","sourceRoot":"","sources":["../../src/models/UpdateDijobRequestResourceSettingsScheduleResourceSettings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,0DAA2D,SAAQ,KAAK,CAAC,KAAK;IAGzF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,aAAa;YAC1B,uBAAuB,EAAE,yBAAyB;SACnD,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,WAAW,EAAE,QAAQ;YACrB,uBAAuB,EAAE,QAAQ;SAClC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxBD,gIAwBC"}
|
|
@@ -2,15 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
import { UpdateDIJobRequestTableMappingsSourceObjectSelectionRules } from "./UpdateDijobRequestTableMappingsSourceObjectSelectionRules";
|
|
3
3
|
import { UpdateDIJobRequestTableMappingsTransformationRules } from "./UpdateDijobRequestTableMappingsTransformationRules";
|
|
4
4
|
export declare class UpdateDIJobRequestTableMappings extends $dara.Model {
|
|
5
|
-
/**
|
|
6
|
-
* @remarks
|
|
7
|
-
* The list of rules that you want to use to select synchronization objects in the source.
|
|
8
|
-
*/
|
|
9
5
|
sourceObjectSelectionRules?: UpdateDIJobRequestTableMappingsSourceObjectSelectionRules[];
|
|
10
|
-
/**
|
|
11
|
-
* @remarks
|
|
12
|
-
* The transformation rules that you want to apply to the synchronization objects selected from the source.
|
|
13
|
-
*/
|
|
14
6
|
transformationRules?: UpdateDIJobRequestTableMappingsTransformationRules[];
|
|
15
7
|
static names(): {
|
|
16
8
|
[key: string]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateDijobRequestTableMappings.js","sourceRoot":"","sources":["../../src/models/UpdateDijobRequestTableMappings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2IAAwI;AACxI,6HAA0H;AAG1H,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"UpdateDijobRequestTableMappings.js","sourceRoot":"","sources":["../../src/models/UpdateDijobRequestTableMappings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2IAAwI;AACxI,6HAA0H;AAG1H,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAG9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,0BAA0B,EAAE,4BAA4B;YACxD,mBAAmB,EAAE,qBAAqB;SAC3C,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,0BAA0B,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,qHAAyD,EAAE;YACtH,mBAAmB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,uGAAkD,EAAE;SACzG,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,CAAC,EAAE,CAAC;YAClD,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;QAC7D,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,CAAC,EAAE,CAAC;YAC3C,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QACtD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9BD,0EA8BC"}
|
|
@@ -1,40 +1,8 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
export declare class UpdateDIJobRequestTableMappingsSourceObjectSelectionRules extends $dara.Model {
|
|
3
|
-
/**
|
|
4
|
-
* @remarks
|
|
5
|
-
* The operation that is performed to select objects. Valid values: Include and Exclude.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* Include
|
|
9
|
-
*/
|
|
10
3
|
action?: string;
|
|
11
|
-
/**
|
|
12
|
-
* @remarks
|
|
13
|
-
* The expression.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* mysql_table_1
|
|
17
|
-
*/
|
|
18
4
|
expression?: string;
|
|
19
|
-
/**
|
|
20
|
-
* @remarks
|
|
21
|
-
* The expression type. Valid values: Exact and Regex.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* Exact
|
|
25
|
-
*/
|
|
26
5
|
expressionType?: string;
|
|
27
|
-
/**
|
|
28
|
-
* @remarks
|
|
29
|
-
* The object type. Valid values:
|
|
30
|
-
*
|
|
31
|
-
* * Table
|
|
32
|
-
* * Schema
|
|
33
|
-
* * Database
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* Table
|
|
37
|
-
*/
|
|
38
6
|
objectType?: string;
|
|
39
7
|
static names(): {
|
|
40
8
|
[key: string]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateDijobRequestTableMappingsSourceObjectSelectionRules.js","sourceRoot":"","sources":["../../src/models/UpdateDijobRequestTableMappingsSourceObjectSelectionRules.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yDAA0D,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"UpdateDijobRequestTableMappingsSourceObjectSelectionRules.js","sourceRoot":"","sources":["../../src/models/UpdateDijobRequestTableMappingsSourceObjectSelectionRules.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yDAA0D,SAAQ,KAAK,CAAC,KAAK;IAKxF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,YAAY;YACxB,cAAc,EAAE,gBAAgB;YAChC,UAAU,EAAE,YAAY;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,QAAQ;YACpB,cAAc,EAAE,QAAQ;YACxB,UAAU,EAAE,QAAQ;SACrB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9BD,8HA8BC"}
|
|
@@ -1,37 +1,7 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
export declare class UpdateDIJobRequestTableMappingsTransformationRules extends $dara.Model {
|
|
3
|
-
/**
|
|
4
|
-
* @remarks
|
|
5
|
-
* The action type. Valid values:
|
|
6
|
-
*
|
|
7
|
-
* * DefinePrimaryKey
|
|
8
|
-
* * Rename
|
|
9
|
-
* * AddColumn
|
|
10
|
-
* * HandleDml
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* Rename
|
|
14
|
-
*/
|
|
15
3
|
ruleActionType?: string;
|
|
16
|
-
/**
|
|
17
|
-
* @remarks
|
|
18
|
-
* The name of the rule. If the values of the RuleActionType parameter and the RuleTargetType parameter are the same for multiple transformation rules, you must make sure that the transformation rule names are unique.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* rename_rule_1
|
|
22
|
-
*/
|
|
23
4
|
ruleName?: string;
|
|
24
|
-
/**
|
|
25
|
-
* @remarks
|
|
26
|
-
* The type of the object on which you want to perform the action. Valid values:
|
|
27
|
-
*
|
|
28
|
-
* * Table
|
|
29
|
-
* * Schema
|
|
30
|
-
* * Database
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* Table
|
|
34
|
-
*/
|
|
35
5
|
ruleTargetType?: string;
|
|
36
6
|
static names(): {
|
|
37
7
|
[key: string]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateDijobRequestTableMappingsTransformationRules.js","sourceRoot":"","sources":["../../src/models/UpdateDijobRequestTableMappingsTransformationRules.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kDAAmD,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"UpdateDijobRequestTableMappingsTransformationRules.js","sourceRoot":"","sources":["../../src/models/UpdateDijobRequestTableMappingsTransformationRules.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,kDAAmD,SAAQ,KAAK,CAAC,KAAK;IAIjF,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,gBAAgB;YAChC,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,QAAQ;YACxB,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,QAAQ;SACzB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA3BD,gHA2BC"}
|
|
@@ -1,91 +1,8 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
export declare class UpdateDIJobRequestTransformationRules extends $dara.Model {
|
|
3
|
-
/**
|
|
4
|
-
* @remarks
|
|
5
|
-
* The action type. Valid values:
|
|
6
|
-
*
|
|
7
|
-
* * DefinePrimaryKey
|
|
8
|
-
* * Rename
|
|
9
|
-
* * AddColumn
|
|
10
|
-
* * HandleDml
|
|
11
|
-
* * DefineIncrementalCondition
|
|
12
|
-
* * DefineCycleScheduleSettings
|
|
13
|
-
* * DefinePartitionKey
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* Rename
|
|
17
|
-
*/
|
|
18
3
|
ruleActionType?: string;
|
|
19
|
-
/**
|
|
20
|
-
* @remarks
|
|
21
|
-
* The expression of the rule. The expression must be a JSON string.
|
|
22
|
-
*
|
|
23
|
-
* 1. Example of a renaming rule
|
|
24
|
-
*
|
|
25
|
-
* * Example: {"expression":"${srcDatasourceName}_${srcDatabaseName}_0922" }
|
|
26
|
-
* * expression: the expression of the renaming rule. You can use the following variables in an expression: ${srcDatasourceName}, ${srcDatabaseName}, and ${srcTableName}. ${srcDatasourceName} specifies the name of the source. ${srcDatabaseName} specifies the name of a source database. ${srcTableName} specifies the name of a source table.
|
|
27
|
-
*
|
|
28
|
-
* 2. Example of a column addition rule
|
|
29
|
-
*
|
|
30
|
-
* * Example: {"columns":[{"columnName":"my_add_column","columnValueType":"Constant","columnValue":"123"}]}
|
|
31
|
-
* * If you do not configure such a rule, no fields are added to the destination and no values are assigned by default.
|
|
32
|
-
* * columnName: the name of the field that is added.
|
|
33
|
-
* * columnValueType: the value type of the field. Valid values: Constant and Variable.
|
|
34
|
-
* * columnValue: the value of the field. If the columnValueType parameter is set to Constant, set the columnValue parameter to a constant of the STRING data type. If the columnValueType parameter is set to Variable, set the columnValue parameter to a built-in variable. The following built-in variables are supported: EXECUTE_TIME (LONG data type), DB_NAME_SRC (STRING data type), DATASOURCE_NAME_SRC (STRING data type), TABLE_NAME_SRC (STRING data type), DB_NAME_DEST (STRING data type), DATASOURCE_NAME_DEST (STRING data type), TABLE_NAME_DEST (STRING data type), and DB_NAME_SRC_TRANSED (STRING data type). EXECUTE_TIME specifies the execution time. DB_NAME_SRC specifies the name of a source database. DATASOURCE_NAME_SRC specifies the name of the source. TABLE_NAME_SRC specifies the name of a source table. DB_NAME_DEST specifies the name of a destination database. DATASOURCE_NAME_DEST specifies the name of the destination. TABLE_NAME_DEST specifies the name of a destination table. DB_NAME_SRC_TRANSED specifies the database name obtained after a transformation.
|
|
35
|
-
*
|
|
36
|
-
* 3. Example of a rule used to specify primary key fields for a destination table
|
|
37
|
-
*
|
|
38
|
-
* * Example: {"columns":["ukcolumn1","ukcolumn2"]}
|
|
39
|
-
* * If you do not configure such a rule, the primary key fields in the mapped source table are used for the destination table by default.
|
|
40
|
-
* * If the destination table is an existing table, Data Integration does not modify the schema of the destination table. If the specified primary key fields do not exist in the destination table, an error is reported when the synchronization task starts to run.
|
|
41
|
-
* * If the destination table is automatically created by the system, Data Integration automatically creates the schema of the destination table. The schema contains the primary key fields that you specify. If the specified primary key fields do not exist in the destination table, an error is reported when the synchronization task starts to run.
|
|
42
|
-
*
|
|
43
|
-
* 4. Example of a rule used to process DML messages
|
|
44
|
-
*
|
|
45
|
-
* * Example: {"dmlPolicies":[{"dmlType":"Delete","dmlAction":"Filter","filterCondition":"id > 1"}]}
|
|
46
|
-
* * If you do not configure such a rule, the default processing policy for messages generated for insert, update, and delete operations is Normal.
|
|
47
|
-
* * dmlType: the DML operation. Valid values: Insert, Update, and Delete.
|
|
48
|
-
* * dmlAction: the processing policy for DML messages. Valid values: Normal, Ignore, Filter, and LogicalDelete. Filter indicates conditional processing. You can set the dmlAction parameter to Filter only when the dmlType parameter is set to Update or Delete.
|
|
49
|
-
* * filterCondition: the condition used to filter DML messages. This parameter is required only when the dmlAction parameter is set to Filter.
|
|
50
|
-
*
|
|
51
|
-
* 5. Example of a rule used to perform incremental synchronization
|
|
52
|
-
*
|
|
53
|
-
* * Example: {"where":"id > 0"}
|
|
54
|
-
* * You can configure such a rule to perform incremental synchronization.
|
|
55
|
-
*
|
|
56
|
-
* 6. Example of a rule used to configure scheduling parameters for an auto triggered task
|
|
57
|
-
*
|
|
58
|
-
* * Example: {"cronExpress":" \\* \\* \\* \\* \\* \\*", "cycleType":"1"}
|
|
59
|
-
* * You can configure such a rule to configure scheduling parameters for an auto triggered task.
|
|
60
|
-
*
|
|
61
|
-
* 7. Example of a rule used to specify a partition key
|
|
62
|
-
*
|
|
63
|
-
* * Example: {"columns":["id"]}
|
|
64
|
-
* * You can configure such a rule to specify a partition key.
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* {"expression":"${srcDatasoureName}_${srcDatabaseName}"}
|
|
68
|
-
*/
|
|
69
4
|
ruleExpression?: string;
|
|
70
|
-
/**
|
|
71
|
-
* @remarks
|
|
72
|
-
* The name of the rule. If the values of the RuleActionType parameter and the RuleTargetType parameter are the same for multiple transformation rules, you must make sure that the transformation rule names are unique.
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* rename_rule_1
|
|
76
|
-
*/
|
|
77
5
|
ruleName?: string;
|
|
78
|
-
/**
|
|
79
|
-
* @remarks
|
|
80
|
-
* The type of the object on which you want to perform the action. Valid values:
|
|
81
|
-
*
|
|
82
|
-
* * Table
|
|
83
|
-
* * Schema
|
|
84
|
-
* * Database
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* Table
|
|
88
|
-
*/
|
|
89
6
|
ruleTargetType?: string;
|
|
90
7
|
static names(): {
|
|
91
8
|
[key: string]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateDijobRequestTransformationRules.js","sourceRoot":"","sources":["../../src/models/UpdateDijobRequestTransformationRules.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"UpdateDijobRequestTransformationRules.js","sourceRoot":"","sources":["../../src/models/UpdateDijobRequestTransformationRules.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAKpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;YACxB,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,QAAQ;SACzB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9BD,sFA8BC"}
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
export declare class UpdateDIJobShrinkRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
|
-
* @remarks
|
|
5
|
-
* This parameter is deprecated. Use the Id parameter instead.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* 11588
|
|
9
|
-
*
|
|
10
4
|
* @deprecated
|
|
11
5
|
*/
|
|
12
6
|
DIJobId?: number;
|
|
13
|
-
/**
|
|
14
|
-
* @remarks
|
|
15
|
-
* The description of the synchronization task.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* The description of the synchronization task.
|
|
19
|
-
*/
|
|
20
7
|
description?: string;
|
|
21
8
|
/**
|
|
22
9
|
* @remarks
|
|
@@ -26,39 +13,10 @@ export declare class UpdateDIJobShrinkRequest extends $dara.Model {
|
|
|
26
13
|
* 11588
|
|
27
14
|
*/
|
|
28
15
|
id?: number;
|
|
29
|
-
/**
|
|
30
|
-
* @remarks
|
|
31
|
-
* The settings for the dimension of the synchronization task. The settings include processing policies for DDL messages, policies for data type mappings between source fields and destination fields, and runtime parameters of the synchronization task.
|
|
32
|
-
*/
|
|
33
16
|
jobSettingsShrink?: string;
|
|
34
|
-
/**
|
|
35
|
-
* @remarks
|
|
36
|
-
* The ID of the DataWorks workspace. You can log on to the [DataWorks console](https://workbench.data.aliyun.com/console) and go to the Workspace page to obtain the workspace ID.
|
|
37
|
-
*
|
|
38
|
-
* You must configure this parameter to specify the DataWorks workspace to which the operation is applied.
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* 10000
|
|
42
|
-
*/
|
|
43
17
|
projectId?: number;
|
|
44
|
-
/**
|
|
45
|
-
* @remarks
|
|
46
|
-
* The resource settings.
|
|
47
|
-
*/
|
|
48
18
|
resourceSettingsShrink?: string;
|
|
49
|
-
/**
|
|
50
|
-
* @remarks
|
|
51
|
-
* The list of mappings between rules used to select synchronization objects in the source and transformation rules applied to the selected synchronization objects. Each entry in the list displays a mapping between a rule used to select synchronization objects and a transformation rule applied to the selected synchronization objects.
|
|
52
|
-
*
|
|
53
|
-
* > [ { "SourceObjectSelectionRules":[ { "ObjectType":"Database", "Action":"Include", "ExpressionType":"Exact", "Expression":"biz_db" }, { "ObjectType":"Schema", "Action":"Include", "ExpressionType":"Exact", "Expression":"s1" }, { "ObjectType":"Table", "Action":"Include", "ExpressionType":"Exact", "Expression":"table1" } ], "TransformationRuleNames":[ { "RuleName":"my_database_rename_rule", "RuleActionType":"Rename", "RuleTargetType":"Schema" } ] } ]
|
|
54
|
-
*/
|
|
55
19
|
tableMappingsShrink?: string;
|
|
56
|
-
/**
|
|
57
|
-
* @remarks
|
|
58
|
-
* The list of transformation rules for objects involved in the synchronization task.
|
|
59
|
-
*
|
|
60
|
-
* > [ { "RuleName":"my_database_rename_rule", "RuleActionType":"Rename", "RuleTargetType":"Schema", "RuleExpression":"{"expression":"${srcDatasoureName}_${srcDatabaseName}"}" } ]
|
|
61
|
-
*/
|
|
62
20
|
transformationRulesShrink?: string;
|
|
63
21
|
static names(): {
|
|
64
22
|
[key: string]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateDijobShrinkRequest.js","sourceRoot":"","sources":["../../src/models/UpdateDijobShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"UpdateDijobShrinkRequest.js","sourceRoot":"","sources":["../../src/models/UpdateDijobShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,wBAAyB,SAAQ,KAAK,CAAC,KAAK;IAmBvD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,aAAa;YAC1B,EAAE,EAAE,IAAI;YACR,iBAAiB,EAAE,aAAa;YAChC,SAAS,EAAE,WAAW;YACtB,sBAAsB,EAAE,kBAAkB;YAC1C,mBAAmB,EAAE,eAAe;YACpC,yBAAyB,EAAE,qBAAqB;SACjD,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,QAAQ;YACjB,WAAW,EAAE,QAAQ;YACrB,EAAE,EAAE,QAAQ;YACZ,iBAAiB,EAAE,QAAQ;YAC3B,SAAS,EAAE,QAAQ;YACnB,sBAAsB,EAAE,QAAQ;YAChC,mBAAmB,EAAE,QAAQ;YAC7B,yBAAyB,EAAE,QAAQ;SACpC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AApDD,4DAoDC"}
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -594,16 +594,72 @@ export default class Client extends OpenApi {
|
|
|
594
594
|
request.transformationRulesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.transformationRules, "TransformationRules", "json");
|
|
595
595
|
}
|
|
596
596
|
|
|
597
|
-
let
|
|
597
|
+
let body : {[key: string ]: any} = { };
|
|
598
|
+
if (!$dara.isNull(request.description)) {
|
|
599
|
+
body["Description"] = request.description;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
if (!$dara.isNull(request.destinationDataSourceSettingsShrink)) {
|
|
603
|
+
body["DestinationDataSourceSettings"] = request.destinationDataSourceSettingsShrink;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
if (!$dara.isNull(request.destinationDataSourceType)) {
|
|
607
|
+
body["DestinationDataSourceType"] = request.destinationDataSourceType;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
if (!$dara.isNull(request.jobName)) {
|
|
611
|
+
body["JobName"] = request.jobName;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
if (!$dara.isNull(request.jobSettingsShrink)) {
|
|
615
|
+
body["JobSettings"] = request.jobSettingsShrink;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
if (!$dara.isNull(request.jobType)) {
|
|
619
|
+
body["JobType"] = request.jobType;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
if (!$dara.isNull(request.migrationType)) {
|
|
623
|
+
body["MigrationType"] = request.migrationType;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
if (!$dara.isNull(request.name)) {
|
|
627
|
+
body["Name"] = request.name;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
if (!$dara.isNull(request.projectId)) {
|
|
631
|
+
body["ProjectId"] = request.projectId;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
if (!$dara.isNull(request.resourceSettingsShrink)) {
|
|
635
|
+
body["ResourceSettings"] = request.resourceSettingsShrink;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
if (!$dara.isNull(request.sourceDataSourceSettingsShrink)) {
|
|
639
|
+
body["SourceDataSourceSettings"] = request.sourceDataSourceSettingsShrink;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
if (!$dara.isNull(request.sourceDataSourceType)) {
|
|
643
|
+
body["SourceDataSourceType"] = request.sourceDataSourceType;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
if (!$dara.isNull(request.tableMappingsShrink)) {
|
|
647
|
+
body["TableMappings"] = request.tableMappingsShrink;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
if (!$dara.isNull(request.transformationRulesShrink)) {
|
|
651
|
+
body["TransformationRules"] = request.transformationRulesShrink;
|
|
652
|
+
}
|
|
653
|
+
|
|
598
654
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
599
|
-
|
|
655
|
+
body: OpenApiUtil.parseToMap(body),
|
|
600
656
|
});
|
|
601
657
|
let params = new $OpenApiUtil.Params({
|
|
602
658
|
action: "CreateDIJob",
|
|
603
659
|
version: "2024-05-18",
|
|
604
660
|
protocol: "HTTPS",
|
|
605
661
|
pathname: "/",
|
|
606
|
-
method: "
|
|
662
|
+
method: "POST",
|
|
607
663
|
authType: "AK",
|
|
608
664
|
style: "RPC",
|
|
609
665
|
reqBodyType: "formData",
|
|
@@ -10888,16 +10944,50 @@ export default class Client extends OpenApi {
|
|
|
10888
10944
|
request.transformationRulesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.transformationRules, "TransformationRules", "json");
|
|
10889
10945
|
}
|
|
10890
10946
|
|
|
10891
|
-
let query =
|
|
10947
|
+
let query = { };
|
|
10948
|
+
if (!$dara.isNull(request.id)) {
|
|
10949
|
+
query["Id"] = request.id;
|
|
10950
|
+
}
|
|
10951
|
+
|
|
10952
|
+
let body : {[key: string ]: any} = { };
|
|
10953
|
+
if (!$dara.isNull(request.DIJobId)) {
|
|
10954
|
+
body["DIJobId"] = request.DIJobId;
|
|
10955
|
+
}
|
|
10956
|
+
|
|
10957
|
+
if (!$dara.isNull(request.description)) {
|
|
10958
|
+
body["Description"] = request.description;
|
|
10959
|
+
}
|
|
10960
|
+
|
|
10961
|
+
if (!$dara.isNull(request.jobSettingsShrink)) {
|
|
10962
|
+
body["JobSettings"] = request.jobSettingsShrink;
|
|
10963
|
+
}
|
|
10964
|
+
|
|
10965
|
+
if (!$dara.isNull(request.projectId)) {
|
|
10966
|
+
body["ProjectId"] = request.projectId;
|
|
10967
|
+
}
|
|
10968
|
+
|
|
10969
|
+
if (!$dara.isNull(request.resourceSettingsShrink)) {
|
|
10970
|
+
body["ResourceSettings"] = request.resourceSettingsShrink;
|
|
10971
|
+
}
|
|
10972
|
+
|
|
10973
|
+
if (!$dara.isNull(request.tableMappingsShrink)) {
|
|
10974
|
+
body["TableMappings"] = request.tableMappingsShrink;
|
|
10975
|
+
}
|
|
10976
|
+
|
|
10977
|
+
if (!$dara.isNull(request.transformationRulesShrink)) {
|
|
10978
|
+
body["TransformationRules"] = request.transformationRulesShrink;
|
|
10979
|
+
}
|
|
10980
|
+
|
|
10892
10981
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
10893
10982
|
query: OpenApiUtil.query(query),
|
|
10983
|
+
body: OpenApiUtil.parseToMap(body),
|
|
10894
10984
|
});
|
|
10895
10985
|
let params = new $OpenApiUtil.Params({
|
|
10896
10986
|
action: "UpdateDIJob",
|
|
10897
10987
|
version: "2024-05-18",
|
|
10898
10988
|
protocol: "HTTPS",
|
|
10899
10989
|
pathname: "/",
|
|
10900
|
-
method: "
|
|
10990
|
+
method: "POST",
|
|
10901
10991
|
authType: "AK",
|
|
10902
10992
|
style: "RPC",
|
|
10903
10993
|
reqBodyType: "formData",
|
|
@@ -9,131 +9,50 @@ import { CreateDIJobRequestTransformationRules } from "./CreateDijobRequestTrans
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
export class CreateDIJobRequest extends $dara.Model {
|
|
12
|
-
/**
|
|
13
|
-
* @remarks
|
|
14
|
-
* The description of the synchronization task.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* The description of the synchronization task.
|
|
18
|
-
*/
|
|
19
12
|
description?: string;
|
|
20
13
|
/**
|
|
21
14
|
* @remarks
|
|
22
|
-
* The settings of the destination. Only a single destination is supported.
|
|
23
|
-
*
|
|
24
15
|
* This parameter is required.
|
|
25
16
|
*/
|
|
26
17
|
destinationDataSourceSettings?: CreateDIJobRequestDestinationDataSourceSettings[];
|
|
27
18
|
/**
|
|
28
19
|
* @remarks
|
|
29
|
-
* The destination type. Valid values: Hologres, OSS-HDFS, OSS, MaxCompute, LogHub, StarRocks, DataHub, AnalyticDB for MySQL, Kafka, and Hive.
|
|
30
|
-
*
|
|
31
20
|
* This parameter is required.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* Hologres
|
|
35
21
|
*/
|
|
36
22
|
destinationDataSourceType?: string;
|
|
37
23
|
/**
|
|
38
|
-
* @remarks
|
|
39
|
-
* This parameter is deprecated and is replaced by the Name parameter.
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* mysql_to_holo_sync_8772
|
|
43
|
-
*
|
|
44
24
|
* @deprecated
|
|
45
25
|
*/
|
|
46
26
|
jobName?: string;
|
|
47
|
-
/**
|
|
48
|
-
* @remarks
|
|
49
|
-
* The settings for the dimension of the synchronization task. The settings include processing policies for DDL messages, policies for data type mappings between source fields and destination fields, and runtime parameters of the synchronization task.
|
|
50
|
-
*/
|
|
51
27
|
jobSettings?: CreateDIJobRequestJobSettings;
|
|
52
|
-
/**
|
|
53
|
-
* @remarks
|
|
54
|
-
* The type of the task. This parameter is optional. Valid values:
|
|
55
|
-
*
|
|
56
|
-
* * DatabaseRealtimeMigration: A real-time synchronization task used to synchronize only full data, only incremental data, or full and incremental data in multiple tables of multiple databases at the source.
|
|
57
|
-
* * DatabaseOfflineMigration: A batch synchronization task used to synchronize only full data, only incremental data, or full and incremental data in multiple tables of multiple databases at the source.
|
|
58
|
-
* * SingleTableRealtimeMigration: A real-time synchronization task used to synchronize only data in single table at the source.
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* DatabaseRealtimeMigration
|
|
62
|
-
*/
|
|
63
28
|
jobType?: string;
|
|
64
29
|
/**
|
|
65
30
|
* @remarks
|
|
66
|
-
* The synchronization type. Valid values:
|
|
67
|
-
*
|
|
68
|
-
* * FullAndRealtimeIncremental: full synchronization and real-time incremental synchronization of data in an entire database
|
|
69
|
-
* * RealtimeIncremental: real-time incremental synchronization of data in a single table
|
|
70
|
-
* * Full: full batch synchronization of data in an entire database
|
|
71
|
-
* * OfflineIncremental: batch incremental synchronization of data in an entire database
|
|
72
|
-
* * FullAndOfflineIncremental: full synchronization and batch incremental synchronization of data in an entire database
|
|
73
|
-
*
|
|
74
31
|
* This parameter is required.
|
|
75
|
-
*
|
|
76
|
-
* @example
|
|
77
|
-
* FullAndRealtimeIncremental
|
|
78
32
|
*/
|
|
79
33
|
migrationType?: string;
|
|
80
|
-
/**
|
|
81
|
-
* @remarks
|
|
82
|
-
* The name of the synchronization task.
|
|
83
|
-
*
|
|
84
|
-
* @example
|
|
85
|
-
* mysql_to_holo_sync_8772
|
|
86
|
-
*/
|
|
87
34
|
name?: string;
|
|
88
|
-
/**
|
|
89
|
-
* @remarks
|
|
90
|
-
* The DataWorks workspace ID. You can log on to the [DataWorks console](https://workbench.data.aliyun.com/console) and go to the Workspace page to query the ID.
|
|
91
|
-
*
|
|
92
|
-
* You must configure this parameter to specify the DataWorks workspace to which the API operation is applied.
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* 10000
|
|
96
|
-
*/
|
|
97
35
|
projectId?: number;
|
|
98
36
|
/**
|
|
99
37
|
* @remarks
|
|
100
|
-
* The resource settings.
|
|
101
|
-
*
|
|
102
38
|
* This parameter is required.
|
|
103
39
|
*/
|
|
104
40
|
resourceSettings?: CreateDIJobRequestResourceSettings;
|
|
105
41
|
/**
|
|
106
42
|
* @remarks
|
|
107
|
-
* The settings of the source. Only a single source is supported.
|
|
108
|
-
*
|
|
109
43
|
* This parameter is required.
|
|
110
44
|
*/
|
|
111
45
|
sourceDataSourceSettings?: CreateDIJobRequestSourceDataSourceSettings[];
|
|
112
46
|
/**
|
|
113
47
|
* @remarks
|
|
114
|
-
* The source type. Valid values: PolarDB, MySQL, Kafka, LogHub, Hologres, Oracle, OceanBase, MongoDB, Redshift, Hive, SQL Server, Doris, and ClickHouse.
|
|
115
|
-
*
|
|
116
48
|
* This parameter is required.
|
|
117
|
-
*
|
|
118
|
-
* @example
|
|
119
|
-
* MySQL
|
|
120
49
|
*/
|
|
121
50
|
sourceDataSourceType?: string;
|
|
122
51
|
/**
|
|
123
52
|
* @remarks
|
|
124
|
-
* The list of mappings between rules used to select synchronization objects in the source and transformation rules applied to the selected synchronization objects. Each entry in the list displays a mapping between a rule used to select synchronization objects and a transformation rule applied to the selected synchronization objects.
|
|
125
|
-
*
|
|
126
|
-
* > [ { "SourceObjectSelectionRules":[ { "ObjectType":"Database", "Action":"Include", "ExpressionType":"Exact", "Expression":"biz_db" }, { "ObjectType":"Schema", "Action":"Include", "ExpressionType":"Exact", "Expression":"s1" }, { "ObjectType":"Table", "Action":"Include", "ExpressionType":"Exact", "Expression":"table1" } ], "TransformationRuleNames":[ { "RuleName":"my_database_rename_rule", "RuleActionType":"Rename", "RuleTargetType":"Schema" } ] } ]
|
|
127
|
-
*
|
|
128
53
|
* This parameter is required.
|
|
129
54
|
*/
|
|
130
55
|
tableMappings?: CreateDIJobRequestTableMappings[];
|
|
131
|
-
/**
|
|
132
|
-
* @remarks
|
|
133
|
-
* The list of transformation rules for objects involved in the synchronization task.
|
|
134
|
-
*
|
|
135
|
-
* > [ { "RuleName":"my_database_rename_rule", "RuleActionType":"Rename", "RuleTargetType":"Schema", "RuleExpression":"{"expression":"${srcDatasoureName}_${srcDatabaseName}"}" } ]
|
|
136
|
-
*/
|
|
137
56
|
transformationRules?: CreateDIJobRequestTransformationRules[];
|
|
138
57
|
static names(): { [key: string]: string } {
|
|
139
58
|
return {
|
|
@@ -3,13 +3,6 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class CreateDIJobRequestDestinationDataSourceSettings extends $dara.Model {
|
|
6
|
-
/**
|
|
7
|
-
* @remarks
|
|
8
|
-
* The name of the data source.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* holo_datasource_1
|
|
12
|
-
*/
|
|
13
6
|
dataSourceName?: string;
|
|
14
7
|
static names(): { [key: string]: string } {
|
|
15
8
|
return {
|
|
@@ -7,51 +7,10 @@ import { CreateDIJobRequestJobSettingsRuntimeSettings } from "./CreateDijobReque
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
export class CreateDIJobRequestJobSettings extends $dara.Model {
|
|
10
|
-
/**
|
|
11
|
-
* @remarks
|
|
12
|
-
* The channel control settings for the synchronization task. You can configure special channel control settings for the following synchronization links: data synchronization between Hologres data sources and data synchronization from Hologres to Kafka.
|
|
13
|
-
*
|
|
14
|
-
* 1. Holo2Kafka
|
|
15
|
-
*
|
|
16
|
-
* * Example: {"destinationChannelSettings":{"kafkaClientProperties":[{"key":"linger.ms","value":"100"}],"keyColumns":["col3"],"writeMode":"canal"}}
|
|
17
|
-
* * kafkaClientProperties: the parameters related to a Kafka producer, which are used when you write data to a Kafka data source.
|
|
18
|
-
* * keyColumns: the names of Kafka columns to which you want to write data.
|
|
19
|
-
* * writeMode: the writing format of the Kafka data source. Valid values: json and canal.
|
|
20
|
-
*
|
|
21
|
-
* 2. Holo2Holo
|
|
22
|
-
*
|
|
23
|
-
* * Example: {"destinationChannelSettings":{"conflictMode":"replace","dynamicColumnAction":"replay","writeMode":"replay"}}
|
|
24
|
-
* * conflictMode: the policy used to handle a conflict that occurs during data writing to Hologres. Valid values: replace and ignore.
|
|
25
|
-
* * writeMode: the mode in which you want to write data to Hologres. Valid values: replay and insert.
|
|
26
|
-
* * dynamicColumnAction: the mode in which you want to write data to dynamic columns in a Hologres table. Valid values: replay, insert, and ignore.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* {"structInfo":"MANAGED","storageType":"TEXTFILE","writeMode":"APPEND","partitionColumns":[{"columnName":"pt","columnType":"STRING","comment":""}],"fieldDelimiter":""}
|
|
30
|
-
*/
|
|
31
10
|
channelSettings?: string;
|
|
32
|
-
/**
|
|
33
|
-
* @remarks
|
|
34
|
-
* The data type mappings between source fields and destination fields.
|
|
35
|
-
*
|
|
36
|
-
* > "ColumnDataTypeSettings":[ { "SourceDataType":"Bigint", "DestinationDataType":"Text" } ]
|
|
37
|
-
*/
|
|
38
11
|
columnDataTypeSettings?: CreateDIJobRequestJobSettingsColumnDataTypeSettings[];
|
|
39
|
-
/**
|
|
40
|
-
* @remarks
|
|
41
|
-
* The settings for periodic scheduling.
|
|
42
|
-
*/
|
|
43
12
|
cycleScheduleSettings?: CreateDIJobRequestJobSettingsCycleScheduleSettings;
|
|
44
|
-
/**
|
|
45
|
-
* @remarks
|
|
46
|
-
* The processing settings for DDL messages.
|
|
47
|
-
*
|
|
48
|
-
* > "DDLHandlingSettings":[ { "Type":"Insert", "Action":"Normal" } ]
|
|
49
|
-
*/
|
|
50
13
|
ddlHandlingSettings?: CreateDIJobRequestJobSettingsDdlHandlingSettings[];
|
|
51
|
-
/**
|
|
52
|
-
* @remarks
|
|
53
|
-
* The runtime settings.
|
|
54
|
-
*/
|
|
55
14
|
runtimeSettings?: CreateDIJobRequestJobSettingsRuntimeSettings[];
|
|
56
15
|
static names(): { [key: string]: string } {
|
|
57
16
|
return {
|