@alicloud/dms20250414 1.0.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/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ English | [简体中文](README-CN.md)
2
+ ![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg)
3
+
4
+ # Alibaba Cloud Dms SDK for NodeJS
5
+
6
+ ## Installation
7
+ If you use `npm` to manage your dependence, you can use the following command:
8
+
9
+ ```sh
10
+ npm install @alicloud/dms20250414 -S
11
+ ```
12
+
13
+ ## Issues
14
+ [Opening an Issue](https://github.com/aliyun/alibabacloud-typescript-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
15
+
16
+ ## Usage
17
+ [Usage Document](https://github.com/aliyun/alibabacloud-typescript-sdk/blob/master/docs/Usage-EN.md#quick-examples)
18
+
19
+ ## References
20
+ * [Latest Release](https://github.com/aliyun/alibabacloud-typescript-sdk/)
21
+
22
+ ## License
23
+ [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
24
+
25
+ Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
@@ -0,0 +1,26 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import OpenApi from '@alicloud/openapi-core';
3
+ import { $OpenApiUtil } from '@alicloud/openapi-core';
4
+ import * as $_model from './models/model';
5
+ export * from './models/model';
6
+ export default class Client extends OpenApi {
7
+ constructor(config: $OpenApiUtil.Config);
8
+ getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
9
+ [key: string]: string;
10
+ }, endpoint: string): string;
11
+ /**
12
+ * 获取airflow登录凭证
13
+ *
14
+ * @param request - CreateAirflowLoginTokenRequest
15
+ * @param runtime - runtime options for this request RuntimeOptions
16
+ * @returns CreateAirflowLoginTokenResponse
17
+ */
18
+ createAirflowLoginTokenWithOptions(request: $_model.CreateAirflowLoginTokenRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateAirflowLoginTokenResponse>;
19
+ /**
20
+ * 获取airflow登录凭证
21
+ *
22
+ * @param request - CreateAirflowLoginTokenRequest
23
+ * @returns CreateAirflowLoginTokenResponse
24
+ */
25
+ createAirflowLoginToken(request: $_model.CreateAirflowLoginTokenRequest): Promise<$_model.CreateAirflowLoginTokenResponse>;
26
+ }
package/dist/client.js ADDED
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ var __importDefault = (this && this.__importDefault) || function (mod) {
39
+ return (mod && mod.__esModule) ? mod : { "default": mod };
40
+ };
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ // This file is auto-generated, don't edit it
43
+ const $dara = __importStar(require("@darabonba/typescript"));
44
+ const openapi_core_1 = __importDefault(require("@alicloud/openapi-core"));
45
+ const openapi_core_2 = require("@alicloud/openapi-core");
46
+ const $_model = __importStar(require("./models/model"));
47
+ __exportStar(require("./models/model"), exports);
48
+ class Client extends openapi_core_1.default {
49
+ constructor(config) {
50
+ super(config);
51
+ this._endpointRule = "";
52
+ this.checkConfig(config);
53
+ this._endpoint = this.getEndpoint("dms", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
54
+ }
55
+ getEndpoint(productId, regionId, endpointRule, network, suffix, endpointMap, endpoint) {
56
+ if (!$dara.isNull(endpoint)) {
57
+ return endpoint;
58
+ }
59
+ if (!$dara.isNull(endpointMap) && !$dara.isNull(endpointMap[regionId])) {
60
+ return endpointMap[regionId];
61
+ }
62
+ return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
63
+ }
64
+ /**
65
+ * 获取airflow登录凭证
66
+ *
67
+ * @param request - CreateAirflowLoginTokenRequest
68
+ * @param runtime - runtime options for this request RuntimeOptions
69
+ * @returns CreateAirflowLoginTokenResponse
70
+ */
71
+ async createAirflowLoginTokenWithOptions(request, runtime) {
72
+ request.validate();
73
+ let query = {};
74
+ if (!$dara.isNull(request.airflowId)) {
75
+ query["AirflowId"] = request.airflowId;
76
+ }
77
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
78
+ query: openapi_core_2.OpenApiUtil.query(query),
79
+ });
80
+ let params = new openapi_core_2.$OpenApiUtil.Params({
81
+ action: "CreateAirflowLoginToken",
82
+ version: "2025-04-14",
83
+ protocol: "HTTPS",
84
+ pathname: "/",
85
+ method: "POST",
86
+ authType: "AK",
87
+ style: "RPC",
88
+ reqBodyType: "formData",
89
+ bodyType: "json",
90
+ });
91
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateAirflowLoginTokenResponse({}));
92
+ }
93
+ /**
94
+ * 获取airflow登录凭证
95
+ *
96
+ * @param request - CreateAirflowLoginTokenRequest
97
+ * @returns CreateAirflowLoginTokenResponse
98
+ */
99
+ async createAirflowLoginToken(request) {
100
+ let runtime = new $dara.RuntimeOptions({});
101
+ return await this.createAirflowLoginTokenWithOptions(request, runtime);
102
+ }
103
+ }
104
+ exports.default = Client;
105
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,0EAA6C;AAC7C,yDAAkE;AAGlE,wDAA0C;AAC1C,iDAA+B;AAE/B,MAAqB,MAAO,SAAQ,sBAAO;IAEzC,YAAY,MAA2B;QACrC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;QACxB,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IAC/I,CAAC;IAGD,WAAW,CAAC,SAAiB,EAAE,QAAgB,EAAE,YAAoB,EAAE,OAAe,EAAE,MAAc,EAAE,WAAqC,EAAE,QAAgB;QAC7J,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC5B,OAAO,QAAQ,CAAC;QAClB,CAAC;QAED,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC;YACvE,OAAO,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC/B,CAAC;QAED,OAAO,0BAAW,CAAC,gBAAgB,CAAC,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,kCAAkC,CAAC,OAA+C,EAAE,OAA6B;QACrH,OAAO,CAAC,QAAQ,EAAE,CAAC;QACnB,IAAI,KAAK,GAAG,EAAG,CAAC;QAChB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;YACrC,KAAK,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;QACzC,CAAC;QAED,IAAI,GAAG,GAAG,IAAI,2BAAY,CAAC,cAAc,CAAC;YACxC,KAAK,EAAE,0BAAW,CAAC,KAAK,CAAC,KAAK,CAAC;SAChC,CAAC,CAAC;QACH,IAAI,MAAM,GAAG,IAAI,2BAAY,CAAC,MAAM,CAAC;YACnC,MAAM,EAAE,yBAAyB;YACjC,OAAO,EAAE,YAAY;YACrB,QAAQ,EAAE,OAAO;YACjB,QAAQ,EAAE,GAAG;YACb,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,MAAM;SACjB,CAAC,CAAC;QACH,OAAO,KAAK,CAAC,IAAI,CAA0C,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,IAAI,OAAO,CAAC,+BAA+B,CAAC,EAAE,CAAC,CAAC,CAAC;IACxJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,uBAAuB,CAAC,OAA+C;QAC3E,IAAI,OAAO,GAAG,IAAI,KAAK,CAAC,cAAc,CAAC,EAAG,CAAC,CAAC;QAC5C,OAAO,MAAM,IAAI,CAAC,kCAAkC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CAEF;AAhED,yBAgEC"}
@@ -0,0 +1,21 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class CreateAirflowLoginTokenRequest extends $dara.Model {
3
+ /**
4
+ * @remarks
5
+ * This parameter is required.
6
+ *
7
+ * @example
8
+ * af-b3a7f110a6vmvn7xxxxxx
9
+ */
10
+ airflowId?: string;
11
+ static names(): {
12
+ [key: string]: string;
13
+ };
14
+ static types(): {
15
+ [key: string]: any;
16
+ };
17
+ validate(): void;
18
+ constructor(map?: {
19
+ [key: string]: any;
20
+ });
21
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.CreateAirflowLoginTokenRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class CreateAirflowLoginTokenRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ airflowId: 'AirflowId',
43
+ };
44
+ }
45
+ static types() {
46
+ return {
47
+ airflowId: 'string',
48
+ };
49
+ }
50
+ validate() {
51
+ super.validate();
52
+ }
53
+ constructor(map) {
54
+ super(map);
55
+ }
56
+ }
57
+ exports.CreateAirflowLoginTokenRequest = CreateAirflowLoginTokenRequest;
58
+ //# sourceMappingURL=CreateAirflowLoginTokenRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateAirflowLoginTokenRequest.js","sourceRoot":"","sources":["../../src/models/CreateAirflowLoginTokenRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,8BAA+B,SAAQ,KAAK,CAAC,KAAK;IAS7D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;SACpB,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;AA5BD,wEA4BC"}
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { CreateAirflowLoginTokenResponseBody } from "./CreateAirflowLoginTokenResponseBody";
3
+ export declare class CreateAirflowLoginTokenResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: CreateAirflowLoginTokenResponseBody;
9
+ static names(): {
10
+ [key: string]: string;
11
+ };
12
+ static types(): {
13
+ [key: string]: any;
14
+ };
15
+ validate(): void;
16
+ constructor(map?: {
17
+ [key: string]: any;
18
+ });
19
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.CreateAirflowLoginTokenResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const CreateAirflowLoginTokenResponseBody_1 = require("./CreateAirflowLoginTokenResponseBody");
40
+ class CreateAirflowLoginTokenResponse extends $dara.Model {
41
+ static names() {
42
+ return {
43
+ headers: 'headers',
44
+ statusCode: 'statusCode',
45
+ body: 'body',
46
+ };
47
+ }
48
+ static types() {
49
+ return {
50
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
51
+ statusCode: 'number',
52
+ body: CreateAirflowLoginTokenResponseBody_1.CreateAirflowLoginTokenResponseBody,
53
+ };
54
+ }
55
+ validate() {
56
+ if (this.headers) {
57
+ $dara.Model.validateMap(this.headers);
58
+ }
59
+ if (this.body && typeof this.body.validate === 'function') {
60
+ this.body.validate();
61
+ }
62
+ super.validate();
63
+ }
64
+ constructor(map) {
65
+ super(map);
66
+ }
67
+ }
68
+ exports.CreateAirflowLoginTokenResponse = CreateAirflowLoginTokenResponse;
69
+ //# sourceMappingURL=CreateAirflowLoginTokenResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateAirflowLoginTokenResponse.js","sourceRoot":"","sources":["../../src/models/CreateAirflowLoginTokenResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+FAA4F;AAG5F,MAAa,+BAAgC,SAAQ,KAAK,CAAC,KAAK;IAI9D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,yEAAmC;SAC1C,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,0EAiCC"}
@@ -0,0 +1,48 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { CreateAirflowLoginTokenResponseBodyData } from "./CreateAirflowLoginTokenResponseBodyData";
3
+ export declare class CreateAirflowLoginTokenResponseBody extends $dara.Model {
4
+ /**
5
+ * @example
6
+ * 200
7
+ */
8
+ code?: string;
9
+ data?: CreateAirflowLoginTokenResponseBodyData;
10
+ /**
11
+ * @example
12
+ * Success
13
+ */
14
+ errorCode?: string;
15
+ /**
16
+ * @example
17
+ * 200
18
+ */
19
+ httpStatusCode?: number;
20
+ /**
21
+ * @example
22
+ * Successful
23
+ */
24
+ message?: string;
25
+ /**
26
+ * @remarks
27
+ * Id of the request
28
+ *
29
+ * @example
30
+ * 4284D079-30F4-5B23-ADC4-28F291622C9A
31
+ */
32
+ requestId?: string;
33
+ /**
34
+ * @example
35
+ * True
36
+ */
37
+ success?: boolean;
38
+ static names(): {
39
+ [key: string]: string;
40
+ };
41
+ static types(): {
42
+ [key: string]: any;
43
+ };
44
+ validate(): void;
45
+ constructor(map?: {
46
+ [key: string]: any;
47
+ });
48
+ }
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.CreateAirflowLoginTokenResponseBody = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const CreateAirflowLoginTokenResponseBodyData_1 = require("./CreateAirflowLoginTokenResponseBodyData");
40
+ class CreateAirflowLoginTokenResponseBody extends $dara.Model {
41
+ static names() {
42
+ return {
43
+ code: 'Code',
44
+ data: 'Data',
45
+ errorCode: 'ErrorCode',
46
+ httpStatusCode: 'HttpStatusCode',
47
+ message: 'Message',
48
+ requestId: 'RequestId',
49
+ success: 'Success',
50
+ };
51
+ }
52
+ static types() {
53
+ return {
54
+ code: 'string',
55
+ data: CreateAirflowLoginTokenResponseBodyData_1.CreateAirflowLoginTokenResponseBodyData,
56
+ errorCode: 'string',
57
+ httpStatusCode: 'number',
58
+ message: 'string',
59
+ requestId: 'string',
60
+ success: 'boolean',
61
+ };
62
+ }
63
+ validate() {
64
+ if (this.data && typeof this.data.validate === 'function') {
65
+ this.data.validate();
66
+ }
67
+ super.validate();
68
+ }
69
+ constructor(map) {
70
+ super(map);
71
+ }
72
+ }
73
+ exports.CreateAirflowLoginTokenResponseBody = CreateAirflowLoginTokenResponseBody;
74
+ //# sourceMappingURL=CreateAirflowLoginTokenResponseBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateAirflowLoginTokenResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateAirflowLoginTokenResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,uGAAoG;AAGpG,MAAa,mCAAoC,SAAQ,KAAK,CAAC,KAAK;IAmClE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,SAAS,EAAE,WAAW;YACtB,cAAc,EAAE,gBAAgB;YAChC,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,iFAAuC;YAC7C,SAAS,EAAE,QAAQ;YACnB,cAAc,EAAE,QAAQ;YACxB,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AArED,kFAqEC"}
@@ -0,0 +1,25 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ /**
3
+ */
4
+ export declare class CreateAirflowLoginTokenResponseBodyData extends $dara.Model {
5
+ /**
6
+ * @example
7
+ * https://data-dms.aliyuncs.com/airflow/x/xxxx/af-ehrmszbxxxxxxx
8
+ */
9
+ host?: string;
10
+ /**
11
+ * @example
12
+ * f432d77de03b6b95fc24f91414e29c
13
+ */
14
+ token?: string;
15
+ static names(): {
16
+ [key: string]: string;
17
+ };
18
+ static types(): {
19
+ [key: string]: any;
20
+ };
21
+ validate(): void;
22
+ constructor(map?: {
23
+ [key: string]: any;
24
+ });
25
+ }
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.CreateAirflowLoginTokenResponseBodyData = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ /**
40
+ */
41
+ class CreateAirflowLoginTokenResponseBodyData extends $dara.Model {
42
+ static names() {
43
+ return {
44
+ host: 'Host',
45
+ token: 'Token',
46
+ };
47
+ }
48
+ static types() {
49
+ return {
50
+ host: 'string',
51
+ token: 'string',
52
+ };
53
+ }
54
+ validate() {
55
+ super.validate();
56
+ }
57
+ constructor(map) {
58
+ super(map);
59
+ }
60
+ }
61
+ exports.CreateAirflowLoginTokenResponseBodyData = CreateAirflowLoginTokenResponseBodyData;
62
+ //# sourceMappingURL=CreateAirflowLoginTokenResponseBodyData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateAirflowLoginTokenResponseBodyData.js","sourceRoot":"","sources":["../../src/models/CreateAirflowLoginTokenResponseBodyData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C;GACG;AACH,MAAa,uCAAwC,SAAQ,KAAK,CAAC,KAAK;IAWtE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,OAAO;SACf,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;SAChB,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;AAhCD,0FAgCC"}
@@ -0,0 +1,4 @@
1
+ export { CreateAirflowLoginTokenResponseBodyData } from './CreateAirflowLoginTokenResponseBodyData';
2
+ export { CreateAirflowLoginTokenRequest } from './CreateAirflowLoginTokenRequest';
3
+ export { CreateAirflowLoginTokenResponseBody } from './CreateAirflowLoginTokenResponseBody';
4
+ export { CreateAirflowLoginTokenResponse } from './CreateAirflowLoginTokenResponse';
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateAirflowLoginTokenResponse = exports.CreateAirflowLoginTokenResponseBody = exports.CreateAirflowLoginTokenRequest = exports.CreateAirflowLoginTokenResponseBodyData = void 0;
4
+ var CreateAirflowLoginTokenResponseBodyData_1 = require("./CreateAirflowLoginTokenResponseBodyData");
5
+ Object.defineProperty(exports, "CreateAirflowLoginTokenResponseBodyData", { enumerable: true, get: function () { return CreateAirflowLoginTokenResponseBodyData_1.CreateAirflowLoginTokenResponseBodyData; } });
6
+ var CreateAirflowLoginTokenRequest_1 = require("./CreateAirflowLoginTokenRequest");
7
+ Object.defineProperty(exports, "CreateAirflowLoginTokenRequest", { enumerable: true, get: function () { return CreateAirflowLoginTokenRequest_1.CreateAirflowLoginTokenRequest; } });
8
+ var CreateAirflowLoginTokenResponseBody_1 = require("./CreateAirflowLoginTokenResponseBody");
9
+ Object.defineProperty(exports, "CreateAirflowLoginTokenResponseBody", { enumerable: true, get: function () { return CreateAirflowLoginTokenResponseBody_1.CreateAirflowLoginTokenResponseBody; } });
10
+ var CreateAirflowLoginTokenResponse_1 = require("./CreateAirflowLoginTokenResponse");
11
+ Object.defineProperty(exports, "CreateAirflowLoginTokenResponse", { enumerable: true, get: function () { return CreateAirflowLoginTokenResponse_1.CreateAirflowLoginTokenResponse; } });
12
+ //# sourceMappingURL=model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/models/model.ts"],"names":[],"mappings":";;;AAAA,qGAAoG;AAA3F,kKAAA,uCAAuC,OAAA;AAChD,mFAAkF;AAAzE,gJAAA,8BAA8B,OAAA;AACvC,6FAA4F;AAAnF,0JAAA,mCAAmC,OAAA;AAC5C,qFAAoF;AAA3E,kJAAA,+BAA+B,OAAA"}
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@alicloud/dms20250414",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "dist/client.js",
6
+ "scripts": {
7
+ "test": "mocha --reporter spec --timeout 3000 test/*.test.js",
8
+ "test-cov": "nyc -e .ts -r=html -r=text -r=lcov npm run test",
9
+ "build": "tsc",
10
+ "prepublishOnly": "tsc"
11
+ },
12
+ "author": "Alibaba Cloud SDK",
13
+ "license": "Apache-2.0",
14
+ "devDependencies": {
15
+ "@types/node": "^16.0.0",
16
+ "nyc": "^15.0.0",
17
+ "source-map-support": "^0.5.16",
18
+ "ts-node": "^10.0.0",
19
+ "typescript": "^5"
20
+ },
21
+ "dependencies": {
22
+ "@darabonba/typescript": "^1.0.0",
23
+ "@alicloud/openapi-core": "^1.0.0"
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "src"
28
+ ]
29
+ }
package/src/client.ts ADDED
@@ -0,0 +1,74 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import OpenApi from '@alicloud/openapi-core';
4
+ import { OpenApiUtil, $OpenApiUtil }from '@alicloud/openapi-core';
5
+
6
+
7
+ import * as $_model from './models/model';
8
+ export * from './models/model';
9
+
10
+ export default class Client extends OpenApi {
11
+
12
+ constructor(config: $OpenApiUtil.Config) {
13
+ super(config);
14
+ this._endpointRule = "";
15
+ this.checkConfig(config);
16
+ this._endpoint = this.getEndpoint("dms", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
17
+ }
18
+
19
+
20
+ getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
21
+ if (!$dara.isNull(endpoint)) {
22
+ return endpoint;
23
+ }
24
+
25
+ if (!$dara.isNull(endpointMap) && !$dara.isNull(endpointMap[regionId])) {
26
+ return endpointMap[regionId];
27
+ }
28
+
29
+ return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
30
+ }
31
+
32
+ /**
33
+ * 获取airflow登录凭证
34
+ *
35
+ * @param request - CreateAirflowLoginTokenRequest
36
+ * @param runtime - runtime options for this request RuntimeOptions
37
+ * @returns CreateAirflowLoginTokenResponse
38
+ */
39
+ async createAirflowLoginTokenWithOptions(request: $_model.CreateAirflowLoginTokenRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateAirflowLoginTokenResponse> {
40
+ request.validate();
41
+ let query = { };
42
+ if (!$dara.isNull(request.airflowId)) {
43
+ query["AirflowId"] = request.airflowId;
44
+ }
45
+
46
+ let req = new $OpenApiUtil.OpenApiRequest({
47
+ query: OpenApiUtil.query(query),
48
+ });
49
+ let params = new $OpenApiUtil.Params({
50
+ action: "CreateAirflowLoginToken",
51
+ version: "2025-04-14",
52
+ protocol: "HTTPS",
53
+ pathname: "/",
54
+ method: "POST",
55
+ authType: "AK",
56
+ style: "RPC",
57
+ reqBodyType: "formData",
58
+ bodyType: "json",
59
+ });
60
+ return $dara.cast<$_model.CreateAirflowLoginTokenResponse>(await this.callApi(params, req, runtime), new $_model.CreateAirflowLoginTokenResponse({}));
61
+ }
62
+
63
+ /**
64
+ * 获取airflow登录凭证
65
+ *
66
+ * @param request - CreateAirflowLoginTokenRequest
67
+ * @returns CreateAirflowLoginTokenResponse
68
+ */
69
+ async createAirflowLoginToken(request: $_model.CreateAirflowLoginTokenRequest): Promise<$_model.CreateAirflowLoginTokenResponse> {
70
+ let runtime = new $dara.RuntimeOptions({ });
71
+ return await this.createAirflowLoginTokenWithOptions(request, runtime);
72
+ }
73
+
74
+ }
@@ -0,0 +1,34 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateAirflowLoginTokenRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ *
10
+ * @example
11
+ * af-b3a7f110a6vmvn7xxxxxx
12
+ */
13
+ airflowId?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ airflowId: 'AirflowId',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ airflowId: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CreateAirflowLoginTokenResponseBody } from "./CreateAirflowLoginTokenResponseBody";
4
+
5
+
6
+ export class CreateAirflowLoginTokenResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CreateAirflowLoginTokenResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: CreateAirflowLoginTokenResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,76 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CreateAirflowLoginTokenResponseBodyData } from "./CreateAirflowLoginTokenResponseBodyData";
4
+
5
+
6
+ export class CreateAirflowLoginTokenResponseBody extends $dara.Model {
7
+ /**
8
+ * @example
9
+ * 200
10
+ */
11
+ code?: string;
12
+ data?: CreateAirflowLoginTokenResponseBodyData;
13
+ /**
14
+ * @example
15
+ * Success
16
+ */
17
+ errorCode?: string;
18
+ /**
19
+ * @example
20
+ * 200
21
+ */
22
+ httpStatusCode?: number;
23
+ /**
24
+ * @example
25
+ * Successful
26
+ */
27
+ message?: string;
28
+ /**
29
+ * @remarks
30
+ * Id of the request
31
+ *
32
+ * @example
33
+ * 4284D079-30F4-5B23-ADC4-28F291622C9A
34
+ */
35
+ requestId?: string;
36
+ /**
37
+ * @example
38
+ * True
39
+ */
40
+ success?: boolean;
41
+ static names(): { [key: string]: string } {
42
+ return {
43
+ code: 'Code',
44
+ data: 'Data',
45
+ errorCode: 'ErrorCode',
46
+ httpStatusCode: 'HttpStatusCode',
47
+ message: 'Message',
48
+ requestId: 'RequestId',
49
+ success: 'Success',
50
+ };
51
+ }
52
+
53
+ static types(): { [key: string]: any } {
54
+ return {
55
+ code: 'string',
56
+ data: CreateAirflowLoginTokenResponseBodyData,
57
+ errorCode: 'string',
58
+ httpStatusCode: 'number',
59
+ message: 'string',
60
+ requestId: 'string',
61
+ success: 'boolean',
62
+ };
63
+ }
64
+
65
+ validate() {
66
+ if(this.data && typeof (this.data as any).validate === 'function') {
67
+ (this.data as any).validate();
68
+ }
69
+ super.validate();
70
+ }
71
+
72
+ constructor(map?: { [key: string]: any }) {
73
+ super(map);
74
+ }
75
+ }
76
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ /**
6
+ */
7
+ export class CreateAirflowLoginTokenResponseBodyData extends $dara.Model {
8
+ /**
9
+ * @example
10
+ * https://data-dms.aliyuncs.com/airflow/x/xxxx/af-ehrmszbxxxxxxx
11
+ */
12
+ host?: string;
13
+ /**
14
+ * @example
15
+ * f432d77de03b6b95fc24f91414e29c
16
+ */
17
+ token?: string;
18
+ static names(): { [key: string]: string } {
19
+ return {
20
+ host: 'Host',
21
+ token: 'Token',
22
+ };
23
+ }
24
+
25
+ static types(): { [key: string]: any } {
26
+ return {
27
+ host: 'string',
28
+ token: 'string',
29
+ };
30
+ }
31
+
32
+ validate() {
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,4 @@
1
+ export { CreateAirflowLoginTokenResponseBodyData } from './CreateAirflowLoginTokenResponseBodyData';
2
+ export { CreateAirflowLoginTokenRequest } from './CreateAirflowLoginTokenRequest';
3
+ export { CreateAirflowLoginTokenResponseBody } from './CreateAirflowLoginTokenResponseBody';
4
+ export { CreateAirflowLoginTokenResponse } from './CreateAirflowLoginTokenResponse';