@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/dts20200101",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -23,6 +23,8 @@ export class ConfigureDtsJobRequest extends $tea.Model {
23
23
  delayNotice?: boolean;
24
24
  delayPhone?: string;
25
25
  delayRuleTime?: number;
26
+ destCaCertificateOssUrl?: string;
27
+ destCaCertificatePassword?: string;
26
28
  destinationEndpointDataBaseName?: string;
27
29
  destinationEndpointEngineName?: string;
28
30
  destinationEndpointIP?: string;
@@ -60,6 +62,8 @@ export class ConfigureDtsJobRequest extends $tea.Model {
60
62
  sourceEndpointRole?: string;
61
63
  sourceEndpointUserName?: string;
62
64
  sourceEndpointVSwitchID?: string;
65
+ srcCaCertificateOssUrl?: string;
66
+ srcCaCertificatePassword?: string;
63
67
  structureInitialization?: boolean;
64
68
  synchronizationDirection?: string;
65
69
  static names(): { [key: string]: string } {
@@ -73,6 +77,8 @@ export class ConfigureDtsJobRequest extends $tea.Model {
73
77
  delayNotice: 'DelayNotice',
74
78
  delayPhone: 'DelayPhone',
75
79
  delayRuleTime: 'DelayRuleTime',
80
+ destCaCertificateOssUrl: 'DestCaCertificateOssUrl',
81
+ destCaCertificatePassword: 'DestCaCertificatePassword',
76
82
  destinationEndpointDataBaseName: 'DestinationEndpointDataBaseName',
77
83
  destinationEndpointEngineName: 'DestinationEndpointEngineName',
78
84
  destinationEndpointIP: 'DestinationEndpointIP',
@@ -110,6 +116,8 @@ export class ConfigureDtsJobRequest extends $tea.Model {
110
116
  sourceEndpointRole: 'SourceEndpointRole',
111
117
  sourceEndpointUserName: 'SourceEndpointUserName',
112
118
  sourceEndpointVSwitchID: 'SourceEndpointVSwitchID',
119
+ srcCaCertificateOssUrl: 'SrcCaCertificateOssUrl',
120
+ srcCaCertificatePassword: 'SrcCaCertificatePassword',
113
121
  structureInitialization: 'StructureInitialization',
114
122
  synchronizationDirection: 'SynchronizationDirection',
115
123
  };
@@ -126,6 +134,8 @@ export class ConfigureDtsJobRequest extends $tea.Model {
126
134
  delayNotice: 'boolean',
127
135
  delayPhone: 'string',
128
136
  delayRuleTime: 'number',
137
+ destCaCertificateOssUrl: 'string',
138
+ destCaCertificatePassword: 'string',
129
139
  destinationEndpointDataBaseName: 'string',
130
140
  destinationEndpointEngineName: 'string',
131
141
  destinationEndpointIP: 'string',
@@ -163,6 +173,8 @@ export class ConfigureDtsJobRequest extends $tea.Model {
163
173
  sourceEndpointRole: 'string',
164
174
  sourceEndpointUserName: 'string',
165
175
  sourceEndpointVSwitchID: 'string',
176
+ srcCaCertificateOssUrl: 'string',
177
+ srcCaCertificatePassword: 'string',
166
178
  structureInitialization: 'boolean',
167
179
  synchronizationDirection: 'string',
168
180
  };
@@ -183,6 +195,8 @@ export class ConfigureDtsJobAdvanceRequest extends $tea.Model {
183
195
  delayNotice?: boolean;
184
196
  delayPhone?: string;
185
197
  delayRuleTime?: number;
198
+ destCaCertificateOssUrl?: string;
199
+ destCaCertificatePassword?: string;
186
200
  destinationEndpointDataBaseName?: string;
187
201
  destinationEndpointEngineName?: string;
188
202
  destinationEndpointIP?: string;
@@ -220,6 +234,8 @@ export class ConfigureDtsJobAdvanceRequest extends $tea.Model {
220
234
  sourceEndpointRole?: string;
221
235
  sourceEndpointUserName?: string;
222
236
  sourceEndpointVSwitchID?: string;
237
+ srcCaCertificateOssUrl?: string;
238
+ srcCaCertificatePassword?: string;
223
239
  structureInitialization?: boolean;
224
240
  synchronizationDirection?: string;
225
241
  static names(): { [key: string]: string } {
@@ -233,6 +249,8 @@ export class ConfigureDtsJobAdvanceRequest extends $tea.Model {
233
249
  delayNotice: 'DelayNotice',
234
250
  delayPhone: 'DelayPhone',
235
251
  delayRuleTime: 'DelayRuleTime',
252
+ destCaCertificateOssUrl: 'DestCaCertificateOssUrl',
253
+ destCaCertificatePassword: 'DestCaCertificatePassword',
236
254
  destinationEndpointDataBaseName: 'DestinationEndpointDataBaseName',
237
255
  destinationEndpointEngineName: 'DestinationEndpointEngineName',
238
256
  destinationEndpointIP: 'DestinationEndpointIP',
@@ -270,6 +288,8 @@ export class ConfigureDtsJobAdvanceRequest extends $tea.Model {
270
288
  sourceEndpointRole: 'SourceEndpointRole',
271
289
  sourceEndpointUserName: 'SourceEndpointUserName',
272
290
  sourceEndpointVSwitchID: 'SourceEndpointVSwitchID',
291
+ srcCaCertificateOssUrl: 'SrcCaCertificateOssUrl',
292
+ srcCaCertificatePassword: 'SrcCaCertificatePassword',
273
293
  structureInitialization: 'StructureInitialization',
274
294
  synchronizationDirection: 'SynchronizationDirection',
275
295
  };
@@ -286,6 +306,8 @@ export class ConfigureDtsJobAdvanceRequest extends $tea.Model {
286
306
  delayNotice: 'boolean',
287
307
  delayPhone: 'string',
288
308
  delayRuleTime: 'number',
309
+ destCaCertificateOssUrl: 'string',
310
+ destCaCertificatePassword: 'string',
289
311
  destinationEndpointDataBaseName: 'string',
290
312
  destinationEndpointEngineName: 'string',
291
313
  destinationEndpointIP: 'string',
@@ -323,6 +345,8 @@ export class ConfigureDtsJobAdvanceRequest extends $tea.Model {
323
345
  sourceEndpointRole: 'string',
324
346
  sourceEndpointUserName: 'string',
325
347
  sourceEndpointVSwitchID: 'string',
348
+ srcCaCertificateOssUrl: 'string',
349
+ srcCaCertificatePassword: 'string',
326
350
  structureInitialization: 'boolean',
327
351
  synchronizationDirection: 'string',
328
352
  };
@@ -8099,6 +8123,78 @@ export class ModifyDtsJobResponse extends $tea.Model {
8099
8123
  }
8100
8124
  }
8101
8125
 
8126
+ export class ModifyDtsJobConfigRequest extends $tea.Model {
8127
+ dtsJobId?: string;
8128
+ ownerId?: string;
8129
+ parameters?: string;
8130
+ regionId?: string;
8131
+ static names(): { [key: string]: string } {
8132
+ return {
8133
+ dtsJobId: 'DtsJobId',
8134
+ ownerId: 'OwnerId',
8135
+ parameters: 'Parameters',
8136
+ regionId: 'RegionId',
8137
+ };
8138
+ }
8139
+
8140
+ static types(): { [key: string]: any } {
8141
+ return {
8142
+ dtsJobId: 'string',
8143
+ ownerId: 'string',
8144
+ parameters: 'string',
8145
+ regionId: 'string',
8146
+ };
8147
+ }
8148
+
8149
+ constructor(map?: { [key: string]: any }) {
8150
+ super(map);
8151
+ }
8152
+ }
8153
+
8154
+ export class ModifyDtsJobConfigResponseBody extends $tea.Model {
8155
+ requestId?: string;
8156
+ static names(): { [key: string]: string } {
8157
+ return {
8158
+ requestId: 'RequestId',
8159
+ };
8160
+ }
8161
+
8162
+ static types(): { [key: string]: any } {
8163
+ return {
8164
+ requestId: 'string',
8165
+ };
8166
+ }
8167
+
8168
+ constructor(map?: { [key: string]: any }) {
8169
+ super(map);
8170
+ }
8171
+ }
8172
+
8173
+ export class ModifyDtsJobConfigResponse extends $tea.Model {
8174
+ headers: { [key: string]: string };
8175
+ statusCode: number;
8176
+ body: ModifyDtsJobConfigResponseBody;
8177
+ static names(): { [key: string]: string } {
8178
+ return {
8179
+ headers: 'headers',
8180
+ statusCode: 'statusCode',
8181
+ body: 'body',
8182
+ };
8183
+ }
8184
+
8185
+ static types(): { [key: string]: any } {
8186
+ return {
8187
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
8188
+ statusCode: 'number',
8189
+ body: ModifyDtsJobConfigResponseBody,
8190
+ };
8191
+ }
8192
+
8193
+ constructor(map?: { [key: string]: any }) {
8194
+ super(map);
8195
+ }
8196
+ }
8197
+
8102
8198
  export class ModifyDtsJobDedicatedClusterRequest extends $tea.Model {
8103
8199
  dedicatedClusterId?: string;
8104
8200
  dtsJobIds?: string;
@@ -20310,6 +20406,14 @@ export default class Client extends OpenApi {
20310
20406
  query["DelayRuleTime"] = request.delayRuleTime;
20311
20407
  }
20312
20408
 
20409
+ if (!Util.isUnset(request.destCaCertificateOssUrl)) {
20410
+ query["DestCaCertificateOssUrl"] = request.destCaCertificateOssUrl;
20411
+ }
20412
+
20413
+ if (!Util.isUnset(request.destCaCertificatePassword)) {
20414
+ query["DestCaCertificatePassword"] = request.destCaCertificatePassword;
20415
+ }
20416
+
20313
20417
  if (!Util.isUnset(request.destinationEndpointDataBaseName)) {
20314
20418
  query["DestinationEndpointDataBaseName"] = request.destinationEndpointDataBaseName;
20315
20419
  }
@@ -20454,6 +20558,14 @@ export default class Client extends OpenApi {
20454
20558
  query["SourceEndpointVSwitchID"] = request.sourceEndpointVSwitchID;
20455
20559
  }
20456
20560
 
20561
+ if (!Util.isUnset(request.srcCaCertificateOssUrl)) {
20562
+ query["SrcCaCertificateOssUrl"] = request.srcCaCertificateOssUrl;
20563
+ }
20564
+
20565
+ if (!Util.isUnset(request.srcCaCertificatePassword)) {
20566
+ query["SrcCaCertificatePassword"] = request.srcCaCertificatePassword;
20567
+ }
20568
+
20457
20569
  if (!Util.isUnset(request.structureInitialization)) {
20458
20570
  query["StructureInitialization"] = request.structureInitialization;
20459
20571
  }
@@ -24944,6 +25056,47 @@ export default class Client extends OpenApi {
24944
25056
  return modifyDtsJobResp;
24945
25057
  }
24946
25058
 
25059
+ async modifyDtsJobConfigWithOptions(request: ModifyDtsJobConfigRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobConfigResponse> {
25060
+ Util.validateModel(request);
25061
+ let query = { };
25062
+ if (!Util.isUnset(request.dtsJobId)) {
25063
+ query["DtsJobId"] = request.dtsJobId;
25064
+ }
25065
+
25066
+ if (!Util.isUnset(request.ownerId)) {
25067
+ query["OwnerId"] = request.ownerId;
25068
+ }
25069
+
25070
+ if (!Util.isUnset(request.parameters)) {
25071
+ query["Parameters"] = request.parameters;
25072
+ }
25073
+
25074
+ if (!Util.isUnset(request.regionId)) {
25075
+ query["RegionId"] = request.regionId;
25076
+ }
25077
+
25078
+ let req = new $OpenApi.OpenApiRequest({
25079
+ query: OpenApiUtil.query(query),
25080
+ });
25081
+ let params = new $OpenApi.Params({
25082
+ action: "ModifyDtsJobConfig",
25083
+ version: "2020-01-01",
25084
+ protocol: "HTTPS",
25085
+ pathname: "/",
25086
+ method: "POST",
25087
+ authType: "AK",
25088
+ style: "RPC",
25089
+ reqBodyType: "formData",
25090
+ bodyType: "json",
25091
+ });
25092
+ return $tea.cast<ModifyDtsJobConfigResponse>(await this.callApi(params, req, runtime), new ModifyDtsJobConfigResponse({}));
25093
+ }
25094
+
25095
+ async modifyDtsJobConfig(request: ModifyDtsJobConfigRequest): Promise<ModifyDtsJobConfigResponse> {
25096
+ let runtime = new $Util.RuntimeOptions({ });
25097
+ return await this.modifyDtsJobConfigWithOptions(request, runtime);
25098
+ }
25099
+
24947
25100
  async modifyDtsJobDedicatedClusterWithOptions(request: ModifyDtsJobDedicatedClusterRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobDedicatedClusterResponse> {
24948
25101
  Util.validateModel(request);
24949
25102
  let query = { };