@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 +45 -0
- package/dist/client.js +93 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +113 -0
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -8099,6 +8099,78 @@ export class ModifyDtsJobResponse extends $tea.Model {
|
|
|
8099
8099
|
}
|
|
8100
8100
|
}
|
|
8101
8101
|
|
|
8102
|
+
export class ModifyDtsJobConfigRequest extends $tea.Model {
|
|
8103
|
+
dtsJobId?: string;
|
|
8104
|
+
ownerId?: string;
|
|
8105
|
+
parameters?: string;
|
|
8106
|
+
regionId?: string;
|
|
8107
|
+
static names(): { [key: string]: string } {
|
|
8108
|
+
return {
|
|
8109
|
+
dtsJobId: 'DtsJobId',
|
|
8110
|
+
ownerId: 'OwnerId',
|
|
8111
|
+
parameters: 'Parameters',
|
|
8112
|
+
regionId: 'RegionId',
|
|
8113
|
+
};
|
|
8114
|
+
}
|
|
8115
|
+
|
|
8116
|
+
static types(): { [key: string]: any } {
|
|
8117
|
+
return {
|
|
8118
|
+
dtsJobId: 'string',
|
|
8119
|
+
ownerId: 'string',
|
|
8120
|
+
parameters: 'string',
|
|
8121
|
+
regionId: 'string',
|
|
8122
|
+
};
|
|
8123
|
+
}
|
|
8124
|
+
|
|
8125
|
+
constructor(map?: { [key: string]: any }) {
|
|
8126
|
+
super(map);
|
|
8127
|
+
}
|
|
8128
|
+
}
|
|
8129
|
+
|
|
8130
|
+
export class ModifyDtsJobConfigResponseBody extends $tea.Model {
|
|
8131
|
+
requestId?: string;
|
|
8132
|
+
static names(): { [key: string]: string } {
|
|
8133
|
+
return {
|
|
8134
|
+
requestId: 'RequestId',
|
|
8135
|
+
};
|
|
8136
|
+
}
|
|
8137
|
+
|
|
8138
|
+
static types(): { [key: string]: any } {
|
|
8139
|
+
return {
|
|
8140
|
+
requestId: 'string',
|
|
8141
|
+
};
|
|
8142
|
+
}
|
|
8143
|
+
|
|
8144
|
+
constructor(map?: { [key: string]: any }) {
|
|
8145
|
+
super(map);
|
|
8146
|
+
}
|
|
8147
|
+
}
|
|
8148
|
+
|
|
8149
|
+
export class ModifyDtsJobConfigResponse extends $tea.Model {
|
|
8150
|
+
headers: { [key: string]: string };
|
|
8151
|
+
statusCode: number;
|
|
8152
|
+
body: ModifyDtsJobConfigResponseBody;
|
|
8153
|
+
static names(): { [key: string]: string } {
|
|
8154
|
+
return {
|
|
8155
|
+
headers: 'headers',
|
|
8156
|
+
statusCode: 'statusCode',
|
|
8157
|
+
body: 'body',
|
|
8158
|
+
};
|
|
8159
|
+
}
|
|
8160
|
+
|
|
8161
|
+
static types(): { [key: string]: any } {
|
|
8162
|
+
return {
|
|
8163
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
8164
|
+
statusCode: 'number',
|
|
8165
|
+
body: ModifyDtsJobConfigResponseBody,
|
|
8166
|
+
};
|
|
8167
|
+
}
|
|
8168
|
+
|
|
8169
|
+
constructor(map?: { [key: string]: any }) {
|
|
8170
|
+
super(map);
|
|
8171
|
+
}
|
|
8172
|
+
}
|
|
8173
|
+
|
|
8102
8174
|
export class ModifyDtsJobDedicatedClusterRequest extends $tea.Model {
|
|
8103
8175
|
dedicatedClusterId?: string;
|
|
8104
8176
|
dtsJobIds?: string;
|
|
@@ -24944,6 +25016,47 @@ export default class Client extends OpenApi {
|
|
|
24944
25016
|
return modifyDtsJobResp;
|
|
24945
25017
|
}
|
|
24946
25018
|
|
|
25019
|
+
async modifyDtsJobConfigWithOptions(request: ModifyDtsJobConfigRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobConfigResponse> {
|
|
25020
|
+
Util.validateModel(request);
|
|
25021
|
+
let query = { };
|
|
25022
|
+
if (!Util.isUnset(request.dtsJobId)) {
|
|
25023
|
+
query["DtsJobId"] = request.dtsJobId;
|
|
25024
|
+
}
|
|
25025
|
+
|
|
25026
|
+
if (!Util.isUnset(request.ownerId)) {
|
|
25027
|
+
query["OwnerId"] = request.ownerId;
|
|
25028
|
+
}
|
|
25029
|
+
|
|
25030
|
+
if (!Util.isUnset(request.parameters)) {
|
|
25031
|
+
query["Parameters"] = request.parameters;
|
|
25032
|
+
}
|
|
25033
|
+
|
|
25034
|
+
if (!Util.isUnset(request.regionId)) {
|
|
25035
|
+
query["RegionId"] = request.regionId;
|
|
25036
|
+
}
|
|
25037
|
+
|
|
25038
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
25039
|
+
query: OpenApiUtil.query(query),
|
|
25040
|
+
});
|
|
25041
|
+
let params = new $OpenApi.Params({
|
|
25042
|
+
action: "ModifyDtsJobConfig",
|
|
25043
|
+
version: "2020-01-01",
|
|
25044
|
+
protocol: "HTTPS",
|
|
25045
|
+
pathname: "/",
|
|
25046
|
+
method: "POST",
|
|
25047
|
+
authType: "AK",
|
|
25048
|
+
style: "RPC",
|
|
25049
|
+
reqBodyType: "formData",
|
|
25050
|
+
bodyType: "json",
|
|
25051
|
+
});
|
|
25052
|
+
return $tea.cast<ModifyDtsJobConfigResponse>(await this.callApi(params, req, runtime), new ModifyDtsJobConfigResponse({}));
|
|
25053
|
+
}
|
|
25054
|
+
|
|
25055
|
+
async modifyDtsJobConfig(request: ModifyDtsJobConfigRequest): Promise<ModifyDtsJobConfigResponse> {
|
|
25056
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
25057
|
+
return await this.modifyDtsJobConfigWithOptions(request, runtime);
|
|
25058
|
+
}
|
|
25059
|
+
|
|
24947
25060
|
async modifyDtsJobDedicatedClusterWithOptions(request: ModifyDtsJobDedicatedClusterRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDtsJobDedicatedClusterResponse> {
|
|
24948
25061
|
Util.validateModel(request);
|
|
24949
25062
|
let query = { };
|