@alicloud/apig20240327 4.3.2 → 4.4.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.
Files changed (45) hide show
  1. package/dist/client.d.ts +54 -0
  2. package/dist/client.js +180 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateAndAttachPolicyRequest.d.ts +58 -0
  5. package/dist/models/CreateAndAttachPolicyRequest.js +75 -0
  6. package/dist/models/CreateAndAttachPolicyRequest.js.map +1 -0
  7. package/dist/models/CreateAndAttachPolicyResponse.d.ts +19 -0
  8. package/dist/models/CreateAndAttachPolicyResponse.js +69 -0
  9. package/dist/models/CreateAndAttachPolicyResponse.js.map +1 -0
  10. package/dist/models/CreateAndAttachPolicyResponseBody.d.ts +48 -0
  11. package/dist/models/CreateAndAttachPolicyResponseBody.js +92 -0
  12. package/dist/models/CreateAndAttachPolicyResponseBody.js.map +1 -0
  13. package/dist/models/ListPoliciesRequest.d.ts +39 -0
  14. package/dist/models/ListPoliciesRequest.js +68 -0
  15. package/dist/models/ListPoliciesRequest.js.map +1 -0
  16. package/dist/models/ListPoliciesResponse.d.ts +19 -0
  17. package/dist/models/ListPoliciesResponse.js +69 -0
  18. package/dist/models/ListPoliciesResponse.js.map +1 -0
  19. package/dist/models/ListPoliciesResponseBody.d.ts +58 -0
  20. package/dist/models/ListPoliciesResponseBody.js +96 -0
  21. package/dist/models/ListPoliciesResponseBody.js.map +1 -0
  22. package/dist/models/UpdateAndAttachPolicyRequest.d.ts +50 -0
  23. package/dist/models/UpdateAndAttachPolicyRequest.js +73 -0
  24. package/dist/models/UpdateAndAttachPolicyRequest.js.map +1 -0
  25. package/dist/models/UpdateAndAttachPolicyResponse.d.ts +19 -0
  26. package/dist/models/UpdateAndAttachPolicyResponse.js +69 -0
  27. package/dist/models/UpdateAndAttachPolicyResponse.js.map +1 -0
  28. package/dist/models/UpdateAndAttachPolicyResponseBody.d.ts +28 -0
  29. package/dist/models/UpdateAndAttachPolicyResponseBody.js +62 -0
  30. package/dist/models/UpdateAndAttachPolicyResponseBody.js.map +1 -0
  31. package/dist/models/model.d.ts +11 -0
  32. package/dist/models/model.js +30 -8
  33. package/dist/models/model.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/client.ts +207 -0
  36. package/src/models/CreateAndAttachPolicyRequest.ts +88 -0
  37. package/src/models/CreateAndAttachPolicyResponse.ts +40 -0
  38. package/src/models/CreateAndAttachPolicyResponseBody.ts +85 -0
  39. package/src/models/ListPoliciesRequest.ts +62 -0
  40. package/src/models/ListPoliciesResponse.ts +40 -0
  41. package/src/models/ListPoliciesResponseBody.ts +99 -0
  42. package/src/models/UpdateAndAttachPolicyRequest.ts +78 -0
  43. package/src/models/UpdateAndAttachPolicyResponse.ts +40 -0
  44. package/src/models/UpdateAndAttachPolicyResponseBody.ts +45 -0
  45. package/src/models/model.ts +11 -0
@@ -0,0 +1,75 @@
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.CreateAndAttachPolicyRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class CreateAndAttachPolicyRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ attachResourceIds: 'attachResourceIds',
43
+ attachResourceType: 'attachResourceType',
44
+ className: 'className',
45
+ config: 'config',
46
+ description: 'description',
47
+ environmentId: 'environmentId',
48
+ gatewayId: 'gatewayId',
49
+ name: 'name',
50
+ };
51
+ }
52
+ static types() {
53
+ return {
54
+ attachResourceIds: { 'type': 'array', 'itemType': 'string' },
55
+ attachResourceType: 'string',
56
+ className: 'string',
57
+ config: 'string',
58
+ description: 'string',
59
+ environmentId: 'string',
60
+ gatewayId: 'string',
61
+ name: 'string',
62
+ };
63
+ }
64
+ validate() {
65
+ if (Array.isArray(this.attachResourceIds)) {
66
+ $dara.Model.validateArray(this.attachResourceIds);
67
+ }
68
+ super.validate();
69
+ }
70
+ constructor(map) {
71
+ super(map);
72
+ }
73
+ }
74
+ exports.CreateAndAttachPolicyRequest = CreateAndAttachPolicyRequest;
75
+ //# sourceMappingURL=CreateAndAttachPolicyRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateAndAttachPolicyRequest.js","sourceRoot":"","sources":["../../src/models/CreateAndAttachPolicyRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IA8C3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,iBAAiB,EAAE,mBAAmB;YACtC,kBAAkB,EAAE,oBAAoB;YACxC,SAAS,EAAE,WAAW;YACtB,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,aAAa;YAC1B,aAAa,EAAE,eAAe;YAC9B,SAAS,EAAE,WAAW;YACtB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,iBAAiB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC5D,kBAAkB,EAAE,QAAQ;YAC5B,SAAS,EAAE,QAAQ;YACnB,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,QAAQ;YACrB,aAAa,EAAE,QAAQ;YACvB,SAAS,EAAE,QAAQ;YACnB,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC;YACzC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACpD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAlFD,oEAkFC"}
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { CreateAndAttachPolicyResponseBody } from "./CreateAndAttachPolicyResponseBody";
3
+ export declare class CreateAndAttachPolicyResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: CreateAndAttachPolicyResponseBody;
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.CreateAndAttachPolicyResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const CreateAndAttachPolicyResponseBody_1 = require("./CreateAndAttachPolicyResponseBody");
40
+ class CreateAndAttachPolicyResponse 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: CreateAndAttachPolicyResponseBody_1.CreateAndAttachPolicyResponseBody,
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.CreateAndAttachPolicyResponse = CreateAndAttachPolicyResponse;
69
+ //# sourceMappingURL=CreateAndAttachPolicyResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateAndAttachPolicyResponse.js","sourceRoot":"","sources":["../../src/models/CreateAndAttachPolicyResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,2FAAwF;AAGxF,MAAa,6BAA8B,SAAQ,KAAK,CAAC,KAAK;IAI5D,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,qEAAiC;SACxC,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,sEAiCC"}
@@ -0,0 +1,48 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { Attachment } from "./Attachment";
3
+ export declare class CreateAndAttachPolicyResponseBodyData extends $dara.Model {
4
+ attachment?: Attachment;
5
+ /**
6
+ * @example
7
+ * p-cq7l5s5lhtgi6qasrdc0
8
+ */
9
+ policyId?: string;
10
+ static names(): {
11
+ [key: string]: string;
12
+ };
13
+ static types(): {
14
+ [key: string]: any;
15
+ };
16
+ validate(): void;
17
+ constructor(map?: {
18
+ [key: string]: any;
19
+ });
20
+ }
21
+ export declare class CreateAndAttachPolicyResponseBody extends $dara.Model {
22
+ /**
23
+ * @example
24
+ * Ok
25
+ */
26
+ code?: string;
27
+ data?: CreateAndAttachPolicyResponseBodyData;
28
+ /**
29
+ * @example
30
+ * success
31
+ */
32
+ message?: string;
33
+ /**
34
+ * @example
35
+ * 585657D2-1C20-5B8A-AF17-D727C6490BE4
36
+ */
37
+ requestId?: string;
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,92 @@
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.CreateAndAttachPolicyResponseBody = exports.CreateAndAttachPolicyResponseBodyData = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const Attachment_1 = require("./Attachment");
40
+ class CreateAndAttachPolicyResponseBodyData extends $dara.Model {
41
+ static names() {
42
+ return {
43
+ attachment: 'attachment',
44
+ policyId: 'policyId',
45
+ };
46
+ }
47
+ static types() {
48
+ return {
49
+ attachment: Attachment_1.Attachment,
50
+ policyId: 'string',
51
+ };
52
+ }
53
+ validate() {
54
+ if (this.attachment && typeof this.attachment.validate === 'function') {
55
+ this.attachment.validate();
56
+ }
57
+ super.validate();
58
+ }
59
+ constructor(map) {
60
+ super(map);
61
+ }
62
+ }
63
+ exports.CreateAndAttachPolicyResponseBodyData = CreateAndAttachPolicyResponseBodyData;
64
+ class CreateAndAttachPolicyResponseBody extends $dara.Model {
65
+ static names() {
66
+ return {
67
+ code: 'code',
68
+ data: 'data',
69
+ message: 'message',
70
+ requestId: 'requestId',
71
+ };
72
+ }
73
+ static types() {
74
+ return {
75
+ code: 'string',
76
+ data: CreateAndAttachPolicyResponseBodyData,
77
+ message: 'string',
78
+ requestId: 'string',
79
+ };
80
+ }
81
+ validate() {
82
+ if (this.data && typeof this.data.validate === 'function') {
83
+ this.data.validate();
84
+ }
85
+ super.validate();
86
+ }
87
+ constructor(map) {
88
+ super(map);
89
+ }
90
+ }
91
+ exports.CreateAndAttachPolicyResponseBody = CreateAndAttachPolicyResponseBody;
92
+ //# sourceMappingURL=CreateAndAttachPolicyResponseBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateAndAttachPolicyResponseBody.js","sourceRoot":"","sources":["../../src/models/CreateAndAttachPolicyResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,6CAA0C;AAG1C,MAAa,qCAAsC,SAAQ,KAAK,CAAC,KAAK;IAOpE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,QAAQ,EAAE,UAAU;SACrB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,uBAAU;YACtB,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,UAAU,IAAI,OAAQ,IAAI,CAAC,UAAkB,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YAC7E,IAAI,CAAC,UAAkB,CAAC,QAAQ,EAAE,CAAC;QACtC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA/BD,sFA+BC;AAED,MAAa,iCAAkC,SAAQ,KAAK,CAAC,KAAK;IAiBhE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,qCAAqC;YAC3C,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;SACpB,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;AA7CD,8EA6CC"}
@@ -0,0 +1,39 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class ListPoliciesRequest extends $dara.Model {
3
+ /**
4
+ * @example
5
+ * api-cq7l5s5lhtgi6qasrdc0
6
+ */
7
+ attachResourceId?: string;
8
+ /**
9
+ * @example
10
+ * HttpApi
11
+ */
12
+ attachResourceType?: string;
13
+ /**
14
+ * @example
15
+ * env-cq7l5s5lhtgi6qasrdc0
16
+ */
17
+ environmentId?: string;
18
+ /**
19
+ * @example
20
+ * gw-cq2fm65lhtgm9nrrl7ag
21
+ */
22
+ gatewayId?: string;
23
+ /**
24
+ * @example
25
+ * false
26
+ */
27
+ withAttachments?: boolean;
28
+ withSystemPolicy?: boolean;
29
+ static names(): {
30
+ [key: string]: string;
31
+ };
32
+ static types(): {
33
+ [key: string]: any;
34
+ };
35
+ validate(): void;
36
+ constructor(map?: {
37
+ [key: string]: any;
38
+ });
39
+ }
@@ -0,0 +1,68 @@
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.ListPoliciesRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class ListPoliciesRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ attachResourceId: 'attachResourceId',
43
+ attachResourceType: 'attachResourceType',
44
+ environmentId: 'environmentId',
45
+ gatewayId: 'gatewayId',
46
+ withAttachments: 'withAttachments',
47
+ withSystemPolicy: 'withSystemPolicy',
48
+ };
49
+ }
50
+ static types() {
51
+ return {
52
+ attachResourceId: 'string',
53
+ attachResourceType: 'string',
54
+ environmentId: 'string',
55
+ gatewayId: 'string',
56
+ withAttachments: 'boolean',
57
+ withSystemPolicy: 'boolean',
58
+ };
59
+ }
60
+ validate() {
61
+ super.validate();
62
+ }
63
+ constructor(map) {
64
+ super(map);
65
+ }
66
+ }
67
+ exports.ListPoliciesRequest = ListPoliciesRequest;
68
+ //# sourceMappingURL=ListPoliciesRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListPoliciesRequest.js","sourceRoot":"","sources":["../../src/models/ListPoliciesRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,mBAAoB,SAAQ,KAAK,CAAC,KAAK;IA2BlD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,kBAAkB;YACpC,kBAAkB,EAAE,oBAAoB;YACxC,aAAa,EAAE,eAAe;YAC9B,SAAS,EAAE,WAAW;YACtB,eAAe,EAAE,iBAAiB;YAClC,gBAAgB,EAAE,kBAAkB;SACrC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,gBAAgB,EAAE,QAAQ;YAC1B,kBAAkB,EAAE,QAAQ;YAC5B,aAAa,EAAE,QAAQ;YACvB,SAAS,EAAE,QAAQ;YACnB,eAAe,EAAE,SAAS;YAC1B,gBAAgB,EAAE,SAAS;SAC5B,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;AAxDD,kDAwDC"}
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { ListPoliciesResponseBody } from "./ListPoliciesResponseBody";
3
+ export declare class ListPoliciesResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: ListPoliciesResponseBody;
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.ListPoliciesResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const ListPoliciesResponseBody_1 = require("./ListPoliciesResponseBody");
40
+ class ListPoliciesResponse 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: ListPoliciesResponseBody_1.ListPoliciesResponseBody,
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.ListPoliciesResponse = ListPoliciesResponse;
69
+ //# sourceMappingURL=ListPoliciesResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListPoliciesResponse.js","sourceRoot":"","sources":["../../src/models/ListPoliciesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yEAAsE;AAGtE,MAAa,oBAAqB,SAAQ,KAAK,CAAC,KAAK;IAInD,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,mDAAwB;SAC/B,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,oDAiCC"}
@@ -0,0 +1,58 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { PolicyInfo } from "./PolicyInfo";
3
+ export declare class ListPoliciesResponseBodyData extends $dara.Model {
4
+ items?: PolicyInfo[];
5
+ /**
6
+ * @example
7
+ * 1
8
+ */
9
+ pageNumber?: number;
10
+ /**
11
+ * @example
12
+ * 10
13
+ */
14
+ pageSize?: number;
15
+ /**
16
+ * @example
17
+ * 18
18
+ */
19
+ totalSize?: number;
20
+ static names(): {
21
+ [key: string]: string;
22
+ };
23
+ static types(): {
24
+ [key: string]: any;
25
+ };
26
+ validate(): void;
27
+ constructor(map?: {
28
+ [key: string]: any;
29
+ });
30
+ }
31
+ export declare class ListPoliciesResponseBody extends $dara.Model {
32
+ /**
33
+ * @example
34
+ * Ok
35
+ */
36
+ code?: string;
37
+ data?: ListPoliciesResponseBodyData;
38
+ /**
39
+ * @example
40
+ * success
41
+ */
42
+ message?: string;
43
+ /**
44
+ * @example
45
+ * 393E2630-DBE7-5221-AB35-9E740675491A
46
+ */
47
+ requestId?: string;
48
+ static names(): {
49
+ [key: string]: string;
50
+ };
51
+ static types(): {
52
+ [key: string]: any;
53
+ };
54
+ validate(): void;
55
+ constructor(map?: {
56
+ [key: string]: any;
57
+ });
58
+ }
@@ -0,0 +1,96 @@
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.ListPoliciesResponseBody = exports.ListPoliciesResponseBodyData = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const PolicyInfo_1 = require("./PolicyInfo");
40
+ class ListPoliciesResponseBodyData extends $dara.Model {
41
+ static names() {
42
+ return {
43
+ items: 'items',
44
+ pageNumber: 'pageNumber',
45
+ pageSize: 'pageSize',
46
+ totalSize: 'totalSize',
47
+ };
48
+ }
49
+ static types() {
50
+ return {
51
+ items: { 'type': 'array', 'itemType': PolicyInfo_1.PolicyInfo },
52
+ pageNumber: 'number',
53
+ pageSize: 'number',
54
+ totalSize: 'number',
55
+ };
56
+ }
57
+ validate() {
58
+ if (Array.isArray(this.items)) {
59
+ $dara.Model.validateArray(this.items);
60
+ }
61
+ super.validate();
62
+ }
63
+ constructor(map) {
64
+ super(map);
65
+ }
66
+ }
67
+ exports.ListPoliciesResponseBodyData = ListPoliciesResponseBodyData;
68
+ class ListPoliciesResponseBody extends $dara.Model {
69
+ static names() {
70
+ return {
71
+ code: 'code',
72
+ data: 'data',
73
+ message: 'message',
74
+ requestId: 'requestId',
75
+ };
76
+ }
77
+ static types() {
78
+ return {
79
+ code: 'string',
80
+ data: ListPoliciesResponseBodyData,
81
+ message: 'string',
82
+ requestId: 'string',
83
+ };
84
+ }
85
+ validate() {
86
+ if (this.data && typeof this.data.validate === 'function') {
87
+ this.data.validate();
88
+ }
89
+ super.validate();
90
+ }
91
+ constructor(map) {
92
+ super(map);
93
+ }
94
+ }
95
+ exports.ListPoliciesResponseBody = ListPoliciesResponseBody;
96
+ //# sourceMappingURL=ListPoliciesResponseBody.js.map