@alicloud/apig20240327 7.1.0 → 7.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 +22 -4
- package/dist/client.js +49 -4
- package/dist/client.js.map +1 -1
- package/dist/models/CreateConsumerAuthorizationRulesRequest.d.ts +10 -10
- package/dist/models/CreateConsumerAuthorizationRulesResponseBody.d.ts +4 -4
- package/dist/models/DescribeRegionsRequest.d.ts +18 -0
- package/dist/models/DescribeRegionsRequest.js +58 -0
- package/dist/models/DescribeRegionsRequest.js.map +1 -0
- package/dist/models/DescribeRegionsResponse.d.ts +19 -0
- package/dist/models/DescribeRegionsResponse.js +69 -0
- package/dist/models/DescribeRegionsResponse.js.map +1 -0
- package/dist/models/DescribeRegionsResponseBody.d.ts +95 -0
- package/dist/models/DescribeRegionsResponseBody.js +158 -0
- package/dist/models/DescribeRegionsResponseBody.js.map +1 -0
- package/dist/models/ImportHttpApiRequest.d.ts +17 -17
- package/dist/models/ImportHttpApiRequest.js +2 -0
- package/dist/models/ImportHttpApiRequest.js.map +1 -1
- package/dist/models/ImportHttpApiResponseBody.d.ts +47 -21
- package/dist/models/ImportHttpApiResponseBody.js +53 -1
- package/dist/models/ImportHttpApiResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +9 -0
- package/dist/models/model.js +36 -18
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +53 -4
- package/src/models/CreateConsumerAuthorizationRulesRequest.ts +10 -10
- package/src/models/CreateConsumerAuthorizationRulesResponseBody.ts +4 -4
- package/src/models/DescribeRegionsRequest.ts +31 -0
- package/src/models/DescribeRegionsResponse.ts +40 -0
- package/src/models/DescribeRegionsResponseBody.ts +172 -0
- package/src/models/ImportHttpApiRequest.ts +19 -17
- package/src/models/ImportHttpApiResponseBody.ts +81 -21
- package/src/models/model.ts +9 -0
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class CreateConsumerAuthorizationRulesRequestAuthorizationRulesResourceIdentifier extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
*
|
|
5
|
+
* Environment ID.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* env-******
|
|
@@ -10,7 +10,7 @@ export declare class CreateConsumerAuthorizationRulesRequestAuthorizationRulesRe
|
|
|
10
10
|
environmentId?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* Parent resource ID
|
|
13
|
+
* Parent resource ID.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* api-******
|
|
@@ -18,7 +18,7 @@ export declare class CreateConsumerAuthorizationRulesRequestAuthorizationRulesRe
|
|
|
18
18
|
parentResourceId?: string;
|
|
19
19
|
/**
|
|
20
20
|
* @remarks
|
|
21
|
-
*
|
|
21
|
+
* Resource ID.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* ha-cn-li942gy8p03
|
|
@@ -26,7 +26,7 @@ export declare class CreateConsumerAuthorizationRulesRequestAuthorizationRulesRe
|
|
|
26
26
|
resourceId?: string;
|
|
27
27
|
/**
|
|
28
28
|
* @remarks
|
|
29
|
-
*
|
|
29
|
+
* Resource information.
|
|
30
30
|
*/
|
|
31
31
|
resources?: string[];
|
|
32
32
|
static names(): {
|
|
@@ -43,7 +43,7 @@ export declare class CreateConsumerAuthorizationRulesRequestAuthorizationRulesRe
|
|
|
43
43
|
export declare class CreateConsumerAuthorizationRulesRequestAuthorizationRules extends $dara.Model {
|
|
44
44
|
/**
|
|
45
45
|
* @remarks
|
|
46
|
-
*
|
|
46
|
+
* Consumer ID.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* cs-******
|
|
@@ -51,7 +51,7 @@ export declare class CreateConsumerAuthorizationRulesRequestAuthorizationRules e
|
|
|
51
51
|
consumerId?: string;
|
|
52
52
|
/**
|
|
53
53
|
* @remarks
|
|
54
|
-
*
|
|
54
|
+
* Expiration mode. Currently only LongTerm is supported.
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
57
|
* LongTerm
|
|
@@ -59,7 +59,7 @@ export declare class CreateConsumerAuthorizationRulesRequestAuthorizationRules e
|
|
|
59
59
|
expireMode?: string;
|
|
60
60
|
/**
|
|
61
61
|
* @remarks
|
|
62
|
-
*
|
|
62
|
+
* Expiration time.
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* 174116222x
|
|
@@ -67,12 +67,12 @@ export declare class CreateConsumerAuthorizationRulesRequestAuthorizationRules e
|
|
|
67
67
|
expireTimestamp?: number;
|
|
68
68
|
/**
|
|
69
69
|
* @remarks
|
|
70
|
-
*
|
|
70
|
+
* Resource identifier, provided to non-standard code sources as a unique identifier for space reuse
|
|
71
71
|
*/
|
|
72
72
|
resourceIdentifier?: CreateConsumerAuthorizationRulesRequestAuthorizationRulesResourceIdentifier;
|
|
73
73
|
/**
|
|
74
74
|
* @remarks
|
|
75
|
-
*
|
|
75
|
+
* Resource type.
|
|
76
76
|
*
|
|
77
77
|
* @example
|
|
78
78
|
* HttpApiRoute
|
|
@@ -92,7 +92,7 @@ export declare class CreateConsumerAuthorizationRulesRequestAuthorizationRules e
|
|
|
92
92
|
export declare class CreateConsumerAuthorizationRulesRequest extends $dara.Model {
|
|
93
93
|
/**
|
|
94
94
|
* @remarks
|
|
95
|
-
*
|
|
95
|
+
* Consumer authorization rules.
|
|
96
96
|
*/
|
|
97
97
|
authorizationRules?: CreateConsumerAuthorizationRulesRequestAuthorizationRules[];
|
|
98
98
|
static names(): {
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class CreateConsumerAuthorizationRulesResponseBodyData extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
*
|
|
5
|
+
* List of consumer authorization rule IDs.
|
|
6
6
|
*/
|
|
7
7
|
consumerAuthorizationRuleIds?: string[];
|
|
8
8
|
static names(): {
|
|
@@ -19,7 +19,7 @@ export declare class CreateConsumerAuthorizationRulesResponseBodyData extends $d
|
|
|
19
19
|
export declare class CreateConsumerAuthorizationRulesResponseBody extends $dara.Model {
|
|
20
20
|
/**
|
|
21
21
|
* @remarks
|
|
22
|
-
*
|
|
22
|
+
* Response status code.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* Ok
|
|
@@ -27,12 +27,12 @@ export declare class CreateConsumerAuthorizationRulesResponseBody extends $dara.
|
|
|
27
27
|
code?: string;
|
|
28
28
|
/**
|
|
29
29
|
* @remarks
|
|
30
|
-
*
|
|
30
|
+
* Response data.
|
|
31
31
|
*/
|
|
32
32
|
data?: CreateConsumerAuthorizationRulesResponseBodyData;
|
|
33
33
|
/**
|
|
34
34
|
* @remarks
|
|
35
|
-
*
|
|
35
|
+
* Response message.
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
38
|
* success
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class DescribeRegionsRequest extends $dara.Model {
|
|
3
|
+
/**
|
|
4
|
+
* @example
|
|
5
|
+
* zh
|
|
6
|
+
*/
|
|
7
|
+
language?: string;
|
|
8
|
+
static names(): {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
static types(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
validate(): void;
|
|
15
|
+
constructor(map?: {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -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.DescribeRegionsRequest = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class DescribeRegionsRequest extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
language: 'language',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static types() {
|
|
46
|
+
return {
|
|
47
|
+
language: 'string',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
validate() {
|
|
51
|
+
super.validate();
|
|
52
|
+
}
|
|
53
|
+
constructor(map) {
|
|
54
|
+
super(map);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.DescribeRegionsRequest = DescribeRegionsRequest;
|
|
58
|
+
//# sourceMappingURL=DescribeRegionsRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescribeRegionsRequest.js","sourceRoot":"","sources":["../../src/models/DescribeRegionsRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sBAAuB,SAAQ,KAAK,CAAC,KAAK;IAMrD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;SACnB,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;AAzBD,wDAyBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
import { DescribeRegionsResponseBody } from "./DescribeRegionsResponseBody";
|
|
3
|
+
export declare class DescribeRegionsResponse extends $dara.Model {
|
|
4
|
+
headers?: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
statusCode?: number;
|
|
8
|
+
body?: DescribeRegionsResponseBody;
|
|
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.DescribeRegionsResponse = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
const DescribeRegionsResponseBody_1 = require("./DescribeRegionsResponseBody");
|
|
40
|
+
class DescribeRegionsResponse 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: DescribeRegionsResponseBody_1.DescribeRegionsResponseBody,
|
|
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.DescribeRegionsResponse = DescribeRegionsResponse;
|
|
69
|
+
//# sourceMappingURL=DescribeRegionsResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescribeRegionsResponse.js","sourceRoot":"","sources":["../../src/models/DescribeRegionsResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,+EAA4E;AAG5E,MAAa,uBAAwB,SAAQ,KAAK,CAAC,KAAK;IAItD,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,yDAA2B;SAClC,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,0DAiCC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as $dara from '@darabonba/typescript';
|
|
2
|
+
export declare class DescribeRegionsResponseBodyDataRegions extends $dara.Model {
|
|
3
|
+
localName?: string;
|
|
4
|
+
regionId?: string;
|
|
5
|
+
static names(): {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
static types(): {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
validate(): void;
|
|
12
|
+
constructor(map?: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export declare class DescribeRegionsResponseBodyData extends $dara.Model {
|
|
17
|
+
regions?: DescribeRegionsResponseBodyDataRegions[];
|
|
18
|
+
static names(): {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
};
|
|
21
|
+
static types(): {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
};
|
|
24
|
+
validate(): void;
|
|
25
|
+
constructor(map?: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
export declare class DescribeRegionsResponseBodyRegionsRegion extends $dara.Model {
|
|
30
|
+
/**
|
|
31
|
+
* @example
|
|
32
|
+
* 华东1(杭州)
|
|
33
|
+
*/
|
|
34
|
+
localName?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @example
|
|
37
|
+
* cn-hangzhou
|
|
38
|
+
*/
|
|
39
|
+
regionId?: string;
|
|
40
|
+
static names(): {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
43
|
+
static types(): {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
};
|
|
46
|
+
validate(): void;
|
|
47
|
+
constructor(map?: {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
export declare class DescribeRegionsResponseBodyRegions extends $dara.Model {
|
|
52
|
+
region?: DescribeRegionsResponseBodyRegionsRegion[];
|
|
53
|
+
static names(): {
|
|
54
|
+
[key: string]: string;
|
|
55
|
+
};
|
|
56
|
+
static types(): {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
};
|
|
59
|
+
validate(): void;
|
|
60
|
+
constructor(map?: {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
export declare class DescribeRegionsResponseBody extends $dara.Model {
|
|
65
|
+
/**
|
|
66
|
+
* @example
|
|
67
|
+
* 200
|
|
68
|
+
*/
|
|
69
|
+
code?: string;
|
|
70
|
+
data?: DescribeRegionsResponseBodyData;
|
|
71
|
+
/**
|
|
72
|
+
* @example
|
|
73
|
+
* success
|
|
74
|
+
*/
|
|
75
|
+
message?: string;
|
|
76
|
+
/**
|
|
77
|
+
* @deprecated
|
|
78
|
+
*/
|
|
79
|
+
regions?: DescribeRegionsResponseBodyRegions;
|
|
80
|
+
/**
|
|
81
|
+
* @example
|
|
82
|
+
* E6BD6C79-32B1-5D7E-A89A-93C5A6B7xxxx
|
|
83
|
+
*/
|
|
84
|
+
requestId?: string;
|
|
85
|
+
static names(): {
|
|
86
|
+
[key: string]: string;
|
|
87
|
+
};
|
|
88
|
+
static types(): {
|
|
89
|
+
[key: string]: any;
|
|
90
|
+
};
|
|
91
|
+
validate(): void;
|
|
92
|
+
constructor(map?: {
|
|
93
|
+
[key: string]: any;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
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.DescribeRegionsResponseBody = exports.DescribeRegionsResponseBodyRegions = exports.DescribeRegionsResponseBodyRegionsRegion = exports.DescribeRegionsResponseBodyData = exports.DescribeRegionsResponseBodyDataRegions = void 0;
|
|
37
|
+
// This file is auto-generated, don't edit it
|
|
38
|
+
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
|
+
class DescribeRegionsResponseBodyDataRegions extends $dara.Model {
|
|
40
|
+
static names() {
|
|
41
|
+
return {
|
|
42
|
+
localName: 'localName',
|
|
43
|
+
regionId: 'regionId',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
static types() {
|
|
47
|
+
return {
|
|
48
|
+
localName: 'string',
|
|
49
|
+
regionId: 'string',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
validate() {
|
|
53
|
+
super.validate();
|
|
54
|
+
}
|
|
55
|
+
constructor(map) {
|
|
56
|
+
super(map);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.DescribeRegionsResponseBodyDataRegions = DescribeRegionsResponseBodyDataRegions;
|
|
60
|
+
class DescribeRegionsResponseBodyData extends $dara.Model {
|
|
61
|
+
static names() {
|
|
62
|
+
return {
|
|
63
|
+
regions: 'regions',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
static types() {
|
|
67
|
+
return {
|
|
68
|
+
regions: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyDataRegions },
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
validate() {
|
|
72
|
+
if (Array.isArray(this.regions)) {
|
|
73
|
+
$dara.Model.validateArray(this.regions);
|
|
74
|
+
}
|
|
75
|
+
super.validate();
|
|
76
|
+
}
|
|
77
|
+
constructor(map) {
|
|
78
|
+
super(map);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.DescribeRegionsResponseBodyData = DescribeRegionsResponseBodyData;
|
|
82
|
+
class DescribeRegionsResponseBodyRegionsRegion extends $dara.Model {
|
|
83
|
+
static names() {
|
|
84
|
+
return {
|
|
85
|
+
localName: 'localName',
|
|
86
|
+
regionId: 'regionId',
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
static types() {
|
|
90
|
+
return {
|
|
91
|
+
localName: 'string',
|
|
92
|
+
regionId: 'string',
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
validate() {
|
|
96
|
+
super.validate();
|
|
97
|
+
}
|
|
98
|
+
constructor(map) {
|
|
99
|
+
super(map);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.DescribeRegionsResponseBodyRegionsRegion = DescribeRegionsResponseBodyRegionsRegion;
|
|
103
|
+
class DescribeRegionsResponseBodyRegions extends $dara.Model {
|
|
104
|
+
static names() {
|
|
105
|
+
return {
|
|
106
|
+
region: 'Region',
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
static types() {
|
|
110
|
+
return {
|
|
111
|
+
region: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyRegionsRegion },
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
validate() {
|
|
115
|
+
if (Array.isArray(this.region)) {
|
|
116
|
+
$dara.Model.validateArray(this.region);
|
|
117
|
+
}
|
|
118
|
+
super.validate();
|
|
119
|
+
}
|
|
120
|
+
constructor(map) {
|
|
121
|
+
super(map);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.DescribeRegionsResponseBodyRegions = DescribeRegionsResponseBodyRegions;
|
|
125
|
+
class DescribeRegionsResponseBody extends $dara.Model {
|
|
126
|
+
static names() {
|
|
127
|
+
return {
|
|
128
|
+
code: 'code',
|
|
129
|
+
data: 'data',
|
|
130
|
+
message: 'message',
|
|
131
|
+
regions: 'regions',
|
|
132
|
+
requestId: 'requestId',
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
static types() {
|
|
136
|
+
return {
|
|
137
|
+
code: 'string',
|
|
138
|
+
data: DescribeRegionsResponseBodyData,
|
|
139
|
+
message: 'string',
|
|
140
|
+
regions: DescribeRegionsResponseBodyRegions,
|
|
141
|
+
requestId: 'string',
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
validate() {
|
|
145
|
+
if (this.data && typeof this.data.validate === 'function') {
|
|
146
|
+
this.data.validate();
|
|
147
|
+
}
|
|
148
|
+
if (this.regions && typeof this.regions.validate === 'function') {
|
|
149
|
+
this.regions.validate();
|
|
150
|
+
}
|
|
151
|
+
super.validate();
|
|
152
|
+
}
|
|
153
|
+
constructor(map) {
|
|
154
|
+
super(map);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
exports.DescribeRegionsResponseBody = DescribeRegionsResponseBody;
|
|
158
|
+
//# sourceMappingURL=DescribeRegionsResponseBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescribeRegionsResponseBody.js","sourceRoot":"","sources":["../../src/models/DescribeRegionsResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,sCAAuC,SAAQ,KAAK,CAAC,KAAK;IAGrE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,WAAW;YACtB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,QAAQ;SACnB,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;AAxBD,wFAwBC;AAED,MAAa,+BAAgC,SAAQ,KAAK,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equestSpecOssConfig extends $dara.Model {
|
|
5
5
|
/**
|
|
6
6
|
* @remarks
|
|
7
|
-
* The
|
|
7
|
+
* The bucket name.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
10
|
* gms-service-prod
|
|
@@ -12,7 +12,7 @@ export declare class ImportHttpApiRequestSpecOssConfig extends $dara.Model {
|
|
|
12
12
|
bucketName?: string;
|
|
13
13
|
/**
|
|
14
14
|
* @remarks
|
|
15
|
-
* The
|
|
15
|
+
* The full path of the file.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* /test/swagger.json
|
|
@@ -20,7 +20,7 @@ export declare class ImportHttpApiRequestSpecOssConfig extends $dara.Model {
|
|
|
20
20
|
objectKey?: string;
|
|
21
21
|
/**
|
|
22
22
|
* @remarks
|
|
23
|
-
* The
|
|
23
|
+
* The region ID.
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* cn-shanghai
|
|
@@ -45,7 +45,7 @@ export declare class ImportHttpApiRequest extends $dara.Model {
|
|
|
45
45
|
deployConfigs?: HttpApiDeployConfig[];
|
|
46
46
|
/**
|
|
47
47
|
* @remarks
|
|
48
|
-
* The description of the API
|
|
48
|
+
* The description of the imported API. If this parameter is not specified, the description is extracted from the API definition. Maximum length: 255 bytes.
|
|
49
49
|
*
|
|
50
50
|
* @example
|
|
51
51
|
* 测试专用API
|
|
@@ -53,7 +53,7 @@ export declare class ImportHttpApiRequest extends $dara.Model {
|
|
|
53
53
|
description?: string;
|
|
54
54
|
/**
|
|
55
55
|
* @remarks
|
|
56
|
-
*
|
|
56
|
+
* Specifies whether to perform a dry run. If this parameter is enabled, only validation is performed without the actual import.
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
59
|
* false
|
|
@@ -77,7 +77,7 @@ export declare class ImportHttpApiRequest extends $dara.Model {
|
|
|
77
77
|
mcpRouteId?: string;
|
|
78
78
|
/**
|
|
79
79
|
* @remarks
|
|
80
|
-
* The name of the API
|
|
80
|
+
* The name of the imported API. If this parameter is not specified, the name is extracted from the API definition file. If an API with the same name and version configuration already exists, this import updates the existing API definition based on the strategy parameter.
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
83
|
* import-test
|
|
@@ -93,7 +93,7 @@ export declare class ImportHttpApiRequest extends $dara.Model {
|
|
|
93
93
|
resourceGroupId?: string;
|
|
94
94
|
/**
|
|
95
95
|
* @remarks
|
|
96
|
-
* The Base64-encoded API definition.
|
|
96
|
+
* The Base64-encoded API definition. OAS 2.0 and OAS 3.0 specifications are supported in YAML or JSON format. This parameter takes priority over the specFileUrl parameter. If the file size exceeds 10 MB, use the specFileUrl parameter instead.
|
|
97
97
|
*
|
|
98
98
|
* @example
|
|
99
99
|
* b3BlbmFwaTogMy4wLjAKaW5mbzoKICAgIHRpdGxlOiBkZW1vCiAgICBkZXNjcmlwdGlvbjogdGhpc2lzZGVtbwogICAgdmVyc2lvbjogIiIKcGF0aHM6CiAgICAvdXNlci97dXNlcklkfToKICAgICAgICBnZXQ6CiAgICAgICAgICAgIHN1bW1hcnk6IOiOt+WPlueUqOaIt+S/oeaBrwogICAgICAgICAgICBkZXNjcmlwdGlvbjog6I635Y+W55So5oi35L+h5oGvCiAgICAgICAgICAgIG9wZXJhdGlvbklkOiBHZXRVc2VySW5mbwogICAgICAgICAgICByZXNwb25zZXM6CiAgICAgICAgICAgICAgICAiMjAwIjoKICAgICAgICAgICAgICAgICAgICBkZXNjcmlwdGlvbjog5oiQ5YqfCiAgICAgICAgICAgICAgICAgICAgY29udGVudDoKICAgICAgICAgICAgICAgICAgICAgICAgYXBwbGljYXRpb24vanNvbjtjaGFyc2V0PXV0Zi04OgogICAgICAgICAgICAgICAgICAgICAgICAgICAgc2NoZW1hOiBudWxsCnNlcnZlcnM6CiAgICAtIHVybDogaHR0cDovL2FwaS5leGFtcGxlLmNvbS92MQo=
|
|
@@ -101,23 +101,22 @@ export declare class ImportHttpApiRequest extends $dara.Model {
|
|
|
101
101
|
specContentBase64?: string;
|
|
102
102
|
/**
|
|
103
103
|
* @remarks
|
|
104
|
-
* The URL of the API definition file
|
|
104
|
+
* The download URL of the API definition file. The URL must be accessible over the public network or be an internal network OSS download URL in the same region. The URL must have download permissions. For OSS files that are not publicly readable, refer to References [Download objects using presigned URLs](https://help.aliyun.com/document_detail/39607.html) and provide a URL with download permissions. Only API definition files stored in OSS are supported.
|
|
105
105
|
*/
|
|
106
106
|
specFileUrl?: string;
|
|
107
107
|
/**
|
|
108
108
|
* @remarks
|
|
109
|
-
*
|
|
109
|
+
* The OSS configuration.
|
|
110
110
|
*/
|
|
111
111
|
specOssConfig?: ImportHttpApiRequestSpecOssConfig;
|
|
112
112
|
/**
|
|
113
113
|
* @remarks
|
|
114
|
-
* The update strategy to
|
|
114
|
+
* The update strategy to use when the imported API has the same name and version management configuration as an existing API. Valid values:
|
|
115
|
+
* - SpecOnly: uses the imported file as the single source of truth.
|
|
116
|
+
* - SpecFirst: prioritizes the imported file. New operations are added and existing operations are updated. Operations not mentioned in the file remain unchanged.
|
|
117
|
+
* - ExistFirst: prioritizes the existing API. Only new operations are added. Existing operations are not updated.
|
|
115
118
|
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* - `SpecFirst`: Updates existing APIs and creates new ones based on the imported definition. Existing APIs not included in the import file are unaffected.
|
|
119
|
-
*
|
|
120
|
-
* - `ExistFirst`: Creates new APIs from the imported definition but does not modify any existing APIs. This is the default strategy.
|
|
119
|
+
* Default value: ExistFirst.
|
|
121
120
|
*
|
|
122
121
|
* @example
|
|
123
122
|
* ExistFirst
|
|
@@ -125,7 +124,7 @@ export declare class ImportHttpApiRequest extends $dara.Model {
|
|
|
125
124
|
strategy?: string;
|
|
126
125
|
/**
|
|
127
126
|
* @remarks
|
|
128
|
-
*
|
|
127
|
+
* The ID of the target HTTP API. If this parameter is specified, this import updates the specified API instead of creating a new one or searching for an existing API by name and version management configuration. The target API must be of the REST type.
|
|
129
128
|
*
|
|
130
129
|
* @example
|
|
131
130
|
* api-xxxx
|
|
@@ -133,9 +132,10 @@ export declare class ImportHttpApiRequest extends $dara.Model {
|
|
|
133
132
|
targetHttpApiId?: string;
|
|
134
133
|
/**
|
|
135
134
|
* @remarks
|
|
136
|
-
* The
|
|
135
|
+
* The API version configuration. If version configuration is enabled and an API with the same version number and name already exists, this import is treated as an update. If version configuration is not enabled and an API with the same name already exists, this import is treated as an update.
|
|
137
136
|
*/
|
|
138
137
|
versionConfig?: HttpApiVersionConfig;
|
|
138
|
+
withGatewayExtension?: boolean;
|
|
139
139
|
static names(): {
|
|
140
140
|
[key: string]: string;
|
|
141
141
|
};
|