@alicloud/dts20200101 1.1.0 → 1.2.0

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 CHANGED
@@ -4104,6 +4104,49 @@ export declare class ModifyDtsJobResponse extends $tea.Model {
4104
4104
  [key: string]: any;
4105
4105
  });
4106
4106
  }
4107
+ export declare class ModifyDtsJobConfigRequest extends $tea.Model {
4108
+ dtsJobId?: string;
4109
+ ownerId?: string;
4110
+ parameters?: string;
4111
+ regionId?: string;
4112
+ static names(): {
4113
+ [key: string]: string;
4114
+ };
4115
+ static types(): {
4116
+ [key: string]: any;
4117
+ };
4118
+ constructor(map?: {
4119
+ [key: string]: any;
4120
+ });
4121
+ }
4122
+ export declare class ModifyDtsJobConfigResponseBody extends $tea.Model {
4123
+ requestId?: string;
4124
+ static names(): {
4125
+ [key: string]: string;
4126
+ };
4127
+ static types(): {
4128
+ [key: string]: any;
4129
+ };
4130
+ constructor(map?: {
4131
+ [key: string]: any;
4132
+ });
4133
+ }
4134
+ export declare class ModifyDtsJobConfigResponse extends $tea.Model {
4135
+ headers: {
4136
+ [key: string]: string;
4137
+ };
4138
+ statusCode: number;
4139
+ body: ModifyDtsJobConfigResponseBody;
4140
+ static names(): {
4141
+ [key: string]: string;
4142
+ };
4143
+ static types(): {
4144
+ [key: string]: any;
4145
+ };
4146
+ constructor(map?: {
4147
+ [key: string]: any;
4148
+ });
4149
+ }
4107
4150
  export declare class ModifyDtsJobDedicatedClusterRequest extends $tea.Model {
4108
4151
  dedicatedClusterId?: string;
4109
4152
  dtsJobIds?: string;
@@ -10745,6 +10788,8 @@ export default class Client extends OpenApi {
10745
10788
  modifyDtsJobWithOptions(tmpReq: ModifyDtsJobRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobResponse>;
10746
10789
  modifyDtsJob(request: ModifyDtsJobRequest): Promise<ModifyDtsJobResponse>;
10747
10790
  modifyDtsJobAdvance(request: ModifyDtsJobAdvanceRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobResponse>;
10791
+ modifyDtsJobConfigWithOptions(request: ModifyDtsJobConfigRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobConfigResponse>;
10792
+ modifyDtsJobConfig(request: ModifyDtsJobConfigRequest): Promise<ModifyDtsJobConfigResponse>;
10748
10793
  modifyDtsJobDedicatedClusterWithOptions(request: ModifyDtsJobDedicatedClusterRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobDedicatedClusterResponse>;
10749
10794
  modifyDtsJobDedicatedCluster(request: ModifyDtsJobDedicatedClusterRequest): Promise<ModifyDtsJobDedicatedClusterResponse>;
10750
10795
  /**
package/dist/client.js CHANGED
@@ -6147,6 +6147,64 @@ class ModifyDtsJobResponse extends $tea.Model {
6147
6147
  }
6148
6148
  }
6149
6149
  exports.ModifyDtsJobResponse = ModifyDtsJobResponse;
6150
+ class ModifyDtsJobConfigRequest extends $tea.Model {
6151
+ constructor(map) {
6152
+ super(map);
6153
+ }
6154
+ static names() {
6155
+ return {
6156
+ dtsJobId: 'DtsJobId',
6157
+ ownerId: 'OwnerId',
6158
+ parameters: 'Parameters',
6159
+ regionId: 'RegionId',
6160
+ };
6161
+ }
6162
+ static types() {
6163
+ return {
6164
+ dtsJobId: 'string',
6165
+ ownerId: 'string',
6166
+ parameters: 'string',
6167
+ regionId: 'string',
6168
+ };
6169
+ }
6170
+ }
6171
+ exports.ModifyDtsJobConfigRequest = ModifyDtsJobConfigRequest;
6172
+ class ModifyDtsJobConfigResponseBody extends $tea.Model {
6173
+ constructor(map) {
6174
+ super(map);
6175
+ }
6176
+ static names() {
6177
+ return {
6178
+ requestId: 'RequestId',
6179
+ };
6180
+ }
6181
+ static types() {
6182
+ return {
6183
+ requestId: 'string',
6184
+ };
6185
+ }
6186
+ }
6187
+ exports.ModifyDtsJobConfigResponseBody = ModifyDtsJobConfigResponseBody;
6188
+ class ModifyDtsJobConfigResponse extends $tea.Model {
6189
+ constructor(map) {
6190
+ super(map);
6191
+ }
6192
+ static names() {
6193
+ return {
6194
+ headers: 'headers',
6195
+ statusCode: 'statusCode',
6196
+ body: 'body',
6197
+ };
6198
+ }
6199
+ static types() {
6200
+ return {
6201
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6202
+ statusCode: 'number',
6203
+ body: ModifyDtsJobConfigResponseBody,
6204
+ };
6205
+ }
6206
+ }
6207
+ exports.ModifyDtsJobConfigResponse = ModifyDtsJobConfigResponse;
6150
6208
  class ModifyDtsJobDedicatedClusterRequest extends $tea.Model {
6151
6209
  constructor(map) {
6152
6210
  super(map);
@@ -19410,6 +19468,41 @@ class Client extends openapi_client_1.default {
19410
19468
  let modifyDtsJobResp = await this.modifyDtsJobWithOptions(modifyDtsJobReq, runtime);
19411
19469
  return modifyDtsJobResp;
19412
19470
  }
19471
+ async modifyDtsJobConfigWithOptions(request, runtime) {
19472
+ tea_util_1.default.validateModel(request);
19473
+ let query = {};
19474
+ if (!tea_util_1.default.isUnset(request.dtsJobId)) {
19475
+ query["DtsJobId"] = request.dtsJobId;
19476
+ }
19477
+ if (!tea_util_1.default.isUnset(request.ownerId)) {
19478
+ query["OwnerId"] = request.ownerId;
19479
+ }
19480
+ if (!tea_util_1.default.isUnset(request.parameters)) {
19481
+ query["Parameters"] = request.parameters;
19482
+ }
19483
+ if (!tea_util_1.default.isUnset(request.regionId)) {
19484
+ query["RegionId"] = request.regionId;
19485
+ }
19486
+ let req = new $OpenApi.OpenApiRequest({
19487
+ query: openapi_util_1.default.query(query),
19488
+ });
19489
+ let params = new $OpenApi.Params({
19490
+ action: "ModifyDtsJobConfig",
19491
+ version: "2020-01-01",
19492
+ protocol: "HTTPS",
19493
+ pathname: "/",
19494
+ method: "POST",
19495
+ authType: "AK",
19496
+ style: "RPC",
19497
+ reqBodyType: "formData",
19498
+ bodyType: "json",
19499
+ });
19500
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyDtsJobConfigResponse({}));
19501
+ }
19502
+ async modifyDtsJobConfig(request) {
19503
+ let runtime = new $Util.RuntimeOptions({});
19504
+ return await this.modifyDtsJobConfigWithOptions(request, runtime);
19505
+ }
19413
19506
  async modifyDtsJobDedicatedClusterWithOptions(request, runtime) {
19414
19507
  tea_util_1.default.validateModel(request);
19415
19508
  let query = {};