@alicloud/dts20200101 1.1.0 → 1.2.1
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.d.ts +53 -0
- package/dist/client.js +121 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +153 -0
package/dist/client.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ export declare class ConfigureDtsJobRequest extends $tea.Model {
|
|
|
16
16
|
delayNotice?: boolean;
|
|
17
17
|
delayPhone?: string;
|
|
18
18
|
delayRuleTime?: number;
|
|
19
|
+
destCaCertificateOssUrl?: string;
|
|
20
|
+
destCaCertificatePassword?: string;
|
|
19
21
|
destinationEndpointDataBaseName?: string;
|
|
20
22
|
destinationEndpointEngineName?: string;
|
|
21
23
|
destinationEndpointIP?: string;
|
|
@@ -53,6 +55,8 @@ export declare class ConfigureDtsJobRequest extends $tea.Model {
|
|
|
53
55
|
sourceEndpointRole?: string;
|
|
54
56
|
sourceEndpointUserName?: string;
|
|
55
57
|
sourceEndpointVSwitchID?: string;
|
|
58
|
+
srcCaCertificateOssUrl?: string;
|
|
59
|
+
srcCaCertificatePassword?: string;
|
|
56
60
|
structureInitialization?: boolean;
|
|
57
61
|
synchronizationDirection?: string;
|
|
58
62
|
static names(): {
|
|
@@ -75,6 +79,8 @@ export declare class ConfigureDtsJobAdvanceRequest extends $tea.Model {
|
|
|
75
79
|
delayNotice?: boolean;
|
|
76
80
|
delayPhone?: string;
|
|
77
81
|
delayRuleTime?: number;
|
|
82
|
+
destCaCertificateOssUrl?: string;
|
|
83
|
+
destCaCertificatePassword?: string;
|
|
78
84
|
destinationEndpointDataBaseName?: string;
|
|
79
85
|
destinationEndpointEngineName?: string;
|
|
80
86
|
destinationEndpointIP?: string;
|
|
@@ -112,6 +118,8 @@ export declare class ConfigureDtsJobAdvanceRequest extends $tea.Model {
|
|
|
112
118
|
sourceEndpointRole?: string;
|
|
113
119
|
sourceEndpointUserName?: string;
|
|
114
120
|
sourceEndpointVSwitchID?: string;
|
|
121
|
+
srcCaCertificateOssUrl?: string;
|
|
122
|
+
srcCaCertificatePassword?: string;
|
|
115
123
|
structureInitialization?: boolean;
|
|
116
124
|
synchronizationDirection?: string;
|
|
117
125
|
static names(): {
|
|
@@ -4104,6 +4112,49 @@ export declare class ModifyDtsJobResponse extends $tea.Model {
|
|
|
4104
4112
|
[key: string]: any;
|
|
4105
4113
|
});
|
|
4106
4114
|
}
|
|
4115
|
+
export declare class ModifyDtsJobConfigRequest extends $tea.Model {
|
|
4116
|
+
dtsJobId?: string;
|
|
4117
|
+
ownerId?: string;
|
|
4118
|
+
parameters?: string;
|
|
4119
|
+
regionId?: string;
|
|
4120
|
+
static names(): {
|
|
4121
|
+
[key: string]: string;
|
|
4122
|
+
};
|
|
4123
|
+
static types(): {
|
|
4124
|
+
[key: string]: any;
|
|
4125
|
+
};
|
|
4126
|
+
constructor(map?: {
|
|
4127
|
+
[key: string]: any;
|
|
4128
|
+
});
|
|
4129
|
+
}
|
|
4130
|
+
export declare class ModifyDtsJobConfigResponseBody extends $tea.Model {
|
|
4131
|
+
requestId?: string;
|
|
4132
|
+
static names(): {
|
|
4133
|
+
[key: string]: string;
|
|
4134
|
+
};
|
|
4135
|
+
static types(): {
|
|
4136
|
+
[key: string]: any;
|
|
4137
|
+
};
|
|
4138
|
+
constructor(map?: {
|
|
4139
|
+
[key: string]: any;
|
|
4140
|
+
});
|
|
4141
|
+
}
|
|
4142
|
+
export declare class ModifyDtsJobConfigResponse extends $tea.Model {
|
|
4143
|
+
headers: {
|
|
4144
|
+
[key: string]: string;
|
|
4145
|
+
};
|
|
4146
|
+
statusCode: number;
|
|
4147
|
+
body: ModifyDtsJobConfigResponseBody;
|
|
4148
|
+
static names(): {
|
|
4149
|
+
[key: string]: string;
|
|
4150
|
+
};
|
|
4151
|
+
static types(): {
|
|
4152
|
+
[key: string]: any;
|
|
4153
|
+
};
|
|
4154
|
+
constructor(map?: {
|
|
4155
|
+
[key: string]: any;
|
|
4156
|
+
});
|
|
4157
|
+
}
|
|
4107
4158
|
export declare class ModifyDtsJobDedicatedClusterRequest extends $tea.Model {
|
|
4108
4159
|
dedicatedClusterId?: string;
|
|
4109
4160
|
dtsJobIds?: string;
|
|
@@ -10745,6 +10796,8 @@ export default class Client extends OpenApi {
|
|
|
10745
10796
|
modifyDtsJobWithOptions(tmpReq: ModifyDtsJobRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobResponse>;
|
|
10746
10797
|
modifyDtsJob(request: ModifyDtsJobRequest): Promise<ModifyDtsJobResponse>;
|
|
10747
10798
|
modifyDtsJobAdvance(request: ModifyDtsJobAdvanceRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobResponse>;
|
|
10799
|
+
modifyDtsJobConfigWithOptions(request: ModifyDtsJobConfigRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobConfigResponse>;
|
|
10800
|
+
modifyDtsJobConfig(request: ModifyDtsJobConfigRequest): Promise<ModifyDtsJobConfigResponse>;
|
|
10748
10801
|
modifyDtsJobDedicatedClusterWithOptions(request: ModifyDtsJobDedicatedClusterRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobDedicatedClusterResponse>;
|
|
10749
10802
|
modifyDtsJobDedicatedCluster(request: ModifyDtsJobDedicatedClusterRequest): Promise<ModifyDtsJobDedicatedClusterResponse>;
|
|
10750
10803
|
/**
|
package/dist/client.js
CHANGED
|
@@ -38,6 +38,8 @@ class ConfigureDtsJobRequest extends $tea.Model {
|
|
|
38
38
|
delayNotice: 'DelayNotice',
|
|
39
39
|
delayPhone: 'DelayPhone',
|
|
40
40
|
delayRuleTime: 'DelayRuleTime',
|
|
41
|
+
destCaCertificateOssUrl: 'DestCaCertificateOssUrl',
|
|
42
|
+
destCaCertificatePassword: 'DestCaCertificatePassword',
|
|
41
43
|
destinationEndpointDataBaseName: 'DestinationEndpointDataBaseName',
|
|
42
44
|
destinationEndpointEngineName: 'DestinationEndpointEngineName',
|
|
43
45
|
destinationEndpointIP: 'DestinationEndpointIP',
|
|
@@ -75,6 +77,8 @@ class ConfigureDtsJobRequest extends $tea.Model {
|
|
|
75
77
|
sourceEndpointRole: 'SourceEndpointRole',
|
|
76
78
|
sourceEndpointUserName: 'SourceEndpointUserName',
|
|
77
79
|
sourceEndpointVSwitchID: 'SourceEndpointVSwitchID',
|
|
80
|
+
srcCaCertificateOssUrl: 'SrcCaCertificateOssUrl',
|
|
81
|
+
srcCaCertificatePassword: 'SrcCaCertificatePassword',
|
|
78
82
|
structureInitialization: 'StructureInitialization',
|
|
79
83
|
synchronizationDirection: 'SynchronizationDirection',
|
|
80
84
|
};
|
|
@@ -90,6 +94,8 @@ class ConfigureDtsJobRequest extends $tea.Model {
|
|
|
90
94
|
delayNotice: 'boolean',
|
|
91
95
|
delayPhone: 'string',
|
|
92
96
|
delayRuleTime: 'number',
|
|
97
|
+
destCaCertificateOssUrl: 'string',
|
|
98
|
+
destCaCertificatePassword: 'string',
|
|
93
99
|
destinationEndpointDataBaseName: 'string',
|
|
94
100
|
destinationEndpointEngineName: 'string',
|
|
95
101
|
destinationEndpointIP: 'string',
|
|
@@ -127,6 +133,8 @@ class ConfigureDtsJobRequest extends $tea.Model {
|
|
|
127
133
|
sourceEndpointRole: 'string',
|
|
128
134
|
sourceEndpointUserName: 'string',
|
|
129
135
|
sourceEndpointVSwitchID: 'string',
|
|
136
|
+
srcCaCertificateOssUrl: 'string',
|
|
137
|
+
srcCaCertificatePassword: 'string',
|
|
130
138
|
structureInitialization: 'boolean',
|
|
131
139
|
synchronizationDirection: 'string',
|
|
132
140
|
};
|
|
@@ -148,6 +156,8 @@ class ConfigureDtsJobAdvanceRequest extends $tea.Model {
|
|
|
148
156
|
delayNotice: 'DelayNotice',
|
|
149
157
|
delayPhone: 'DelayPhone',
|
|
150
158
|
delayRuleTime: 'DelayRuleTime',
|
|
159
|
+
destCaCertificateOssUrl: 'DestCaCertificateOssUrl',
|
|
160
|
+
destCaCertificatePassword: 'DestCaCertificatePassword',
|
|
151
161
|
destinationEndpointDataBaseName: 'DestinationEndpointDataBaseName',
|
|
152
162
|
destinationEndpointEngineName: 'DestinationEndpointEngineName',
|
|
153
163
|
destinationEndpointIP: 'DestinationEndpointIP',
|
|
@@ -185,6 +195,8 @@ class ConfigureDtsJobAdvanceRequest extends $tea.Model {
|
|
|
185
195
|
sourceEndpointRole: 'SourceEndpointRole',
|
|
186
196
|
sourceEndpointUserName: 'SourceEndpointUserName',
|
|
187
197
|
sourceEndpointVSwitchID: 'SourceEndpointVSwitchID',
|
|
198
|
+
srcCaCertificateOssUrl: 'SrcCaCertificateOssUrl',
|
|
199
|
+
srcCaCertificatePassword: 'SrcCaCertificatePassword',
|
|
188
200
|
structureInitialization: 'StructureInitialization',
|
|
189
201
|
synchronizationDirection: 'SynchronizationDirection',
|
|
190
202
|
};
|
|
@@ -200,6 +212,8 @@ class ConfigureDtsJobAdvanceRequest extends $tea.Model {
|
|
|
200
212
|
delayNotice: 'boolean',
|
|
201
213
|
delayPhone: 'string',
|
|
202
214
|
delayRuleTime: 'number',
|
|
215
|
+
destCaCertificateOssUrl: 'string',
|
|
216
|
+
destCaCertificatePassword: 'string',
|
|
203
217
|
destinationEndpointDataBaseName: 'string',
|
|
204
218
|
destinationEndpointEngineName: 'string',
|
|
205
219
|
destinationEndpointIP: 'string',
|
|
@@ -237,6 +251,8 @@ class ConfigureDtsJobAdvanceRequest extends $tea.Model {
|
|
|
237
251
|
sourceEndpointRole: 'string',
|
|
238
252
|
sourceEndpointUserName: 'string',
|
|
239
253
|
sourceEndpointVSwitchID: 'string',
|
|
254
|
+
srcCaCertificateOssUrl: 'string',
|
|
255
|
+
srcCaCertificatePassword: 'string',
|
|
240
256
|
structureInitialization: 'boolean',
|
|
241
257
|
synchronizationDirection: 'string',
|
|
242
258
|
};
|
|
@@ -6147,6 +6163,64 @@ class ModifyDtsJobResponse extends $tea.Model {
|
|
|
6147
6163
|
}
|
|
6148
6164
|
}
|
|
6149
6165
|
exports.ModifyDtsJobResponse = ModifyDtsJobResponse;
|
|
6166
|
+
class ModifyDtsJobConfigRequest extends $tea.Model {
|
|
6167
|
+
constructor(map) {
|
|
6168
|
+
super(map);
|
|
6169
|
+
}
|
|
6170
|
+
static names() {
|
|
6171
|
+
return {
|
|
6172
|
+
dtsJobId: 'DtsJobId',
|
|
6173
|
+
ownerId: 'OwnerId',
|
|
6174
|
+
parameters: 'Parameters',
|
|
6175
|
+
regionId: 'RegionId',
|
|
6176
|
+
};
|
|
6177
|
+
}
|
|
6178
|
+
static types() {
|
|
6179
|
+
return {
|
|
6180
|
+
dtsJobId: 'string',
|
|
6181
|
+
ownerId: 'string',
|
|
6182
|
+
parameters: 'string',
|
|
6183
|
+
regionId: 'string',
|
|
6184
|
+
};
|
|
6185
|
+
}
|
|
6186
|
+
}
|
|
6187
|
+
exports.ModifyDtsJobConfigRequest = ModifyDtsJobConfigRequest;
|
|
6188
|
+
class ModifyDtsJobConfigResponseBody extends $tea.Model {
|
|
6189
|
+
constructor(map) {
|
|
6190
|
+
super(map);
|
|
6191
|
+
}
|
|
6192
|
+
static names() {
|
|
6193
|
+
return {
|
|
6194
|
+
requestId: 'RequestId',
|
|
6195
|
+
};
|
|
6196
|
+
}
|
|
6197
|
+
static types() {
|
|
6198
|
+
return {
|
|
6199
|
+
requestId: 'string',
|
|
6200
|
+
};
|
|
6201
|
+
}
|
|
6202
|
+
}
|
|
6203
|
+
exports.ModifyDtsJobConfigResponseBody = ModifyDtsJobConfigResponseBody;
|
|
6204
|
+
class ModifyDtsJobConfigResponse extends $tea.Model {
|
|
6205
|
+
constructor(map) {
|
|
6206
|
+
super(map);
|
|
6207
|
+
}
|
|
6208
|
+
static names() {
|
|
6209
|
+
return {
|
|
6210
|
+
headers: 'headers',
|
|
6211
|
+
statusCode: 'statusCode',
|
|
6212
|
+
body: 'body',
|
|
6213
|
+
};
|
|
6214
|
+
}
|
|
6215
|
+
static types() {
|
|
6216
|
+
return {
|
|
6217
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6218
|
+
statusCode: 'number',
|
|
6219
|
+
body: ModifyDtsJobConfigResponseBody,
|
|
6220
|
+
};
|
|
6221
|
+
}
|
|
6222
|
+
}
|
|
6223
|
+
exports.ModifyDtsJobConfigResponse = ModifyDtsJobConfigResponse;
|
|
6150
6224
|
class ModifyDtsJobDedicatedClusterRequest extends $tea.Model {
|
|
6151
6225
|
constructor(map) {
|
|
6152
6226
|
super(map);
|
|
@@ -15510,6 +15584,12 @@ class Client extends openapi_client_1.default {
|
|
|
15510
15584
|
if (!tea_util_1.default.isUnset(request.delayRuleTime)) {
|
|
15511
15585
|
query["DelayRuleTime"] = request.delayRuleTime;
|
|
15512
15586
|
}
|
|
15587
|
+
if (!tea_util_1.default.isUnset(request.destCaCertificateOssUrl)) {
|
|
15588
|
+
query["DestCaCertificateOssUrl"] = request.destCaCertificateOssUrl;
|
|
15589
|
+
}
|
|
15590
|
+
if (!tea_util_1.default.isUnset(request.destCaCertificatePassword)) {
|
|
15591
|
+
query["DestCaCertificatePassword"] = request.destCaCertificatePassword;
|
|
15592
|
+
}
|
|
15513
15593
|
if (!tea_util_1.default.isUnset(request.destinationEndpointDataBaseName)) {
|
|
15514
15594
|
query["DestinationEndpointDataBaseName"] = request.destinationEndpointDataBaseName;
|
|
15515
15595
|
}
|
|
@@ -15618,6 +15698,12 @@ class Client extends openapi_client_1.default {
|
|
|
15618
15698
|
if (!tea_util_1.default.isUnset(request.sourceEndpointVSwitchID)) {
|
|
15619
15699
|
query["SourceEndpointVSwitchID"] = request.sourceEndpointVSwitchID;
|
|
15620
15700
|
}
|
|
15701
|
+
if (!tea_util_1.default.isUnset(request.srcCaCertificateOssUrl)) {
|
|
15702
|
+
query["SrcCaCertificateOssUrl"] = request.srcCaCertificateOssUrl;
|
|
15703
|
+
}
|
|
15704
|
+
if (!tea_util_1.default.isUnset(request.srcCaCertificatePassword)) {
|
|
15705
|
+
query["SrcCaCertificatePassword"] = request.srcCaCertificatePassword;
|
|
15706
|
+
}
|
|
15621
15707
|
if (!tea_util_1.default.isUnset(request.structureInitialization)) {
|
|
15622
15708
|
query["StructureInitialization"] = request.structureInitialization;
|
|
15623
15709
|
}
|
|
@@ -19410,6 +19496,41 @@ class Client extends openapi_client_1.default {
|
|
|
19410
19496
|
let modifyDtsJobResp = await this.modifyDtsJobWithOptions(modifyDtsJobReq, runtime);
|
|
19411
19497
|
return modifyDtsJobResp;
|
|
19412
19498
|
}
|
|
19499
|
+
async modifyDtsJobConfigWithOptions(request, runtime) {
|
|
19500
|
+
tea_util_1.default.validateModel(request);
|
|
19501
|
+
let query = {};
|
|
19502
|
+
if (!tea_util_1.default.isUnset(request.dtsJobId)) {
|
|
19503
|
+
query["DtsJobId"] = request.dtsJobId;
|
|
19504
|
+
}
|
|
19505
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
19506
|
+
query["OwnerId"] = request.ownerId;
|
|
19507
|
+
}
|
|
19508
|
+
if (!tea_util_1.default.isUnset(request.parameters)) {
|
|
19509
|
+
query["Parameters"] = request.parameters;
|
|
19510
|
+
}
|
|
19511
|
+
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
19512
|
+
query["RegionId"] = request.regionId;
|
|
19513
|
+
}
|
|
19514
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
19515
|
+
query: openapi_util_1.default.query(query),
|
|
19516
|
+
});
|
|
19517
|
+
let params = new $OpenApi.Params({
|
|
19518
|
+
action: "ModifyDtsJobConfig",
|
|
19519
|
+
version: "2020-01-01",
|
|
19520
|
+
protocol: "HTTPS",
|
|
19521
|
+
pathname: "/",
|
|
19522
|
+
method: "POST",
|
|
19523
|
+
authType: "AK",
|
|
19524
|
+
style: "RPC",
|
|
19525
|
+
reqBodyType: "formData",
|
|
19526
|
+
bodyType: "json",
|
|
19527
|
+
});
|
|
19528
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDtsJobConfigResponse({}));
|
|
19529
|
+
}
|
|
19530
|
+
async modifyDtsJobConfig(request) {
|
|
19531
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
19532
|
+
return await this.modifyDtsJobConfigWithOptions(request, runtime);
|
|
19533
|
+
}
|
|
19413
19534
|
async modifyDtsJobDedicatedClusterWithOptions(request, runtime) {
|
|
19414
19535
|
tea_util_1.default.validateModel(request);
|
|
19415
19536
|
let query = {};
|