@alicloud/apig20240327 4.2.2 → 4.3.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 (169) hide show
  1. package/dist/client.d.ts +237 -0
  2. package/dist/client.js +654 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/BatchDeleteConsumerAuthorizationRuleRequest.d.ts +21 -0
  5. package/dist/models/BatchDeleteConsumerAuthorizationRuleRequest.js +58 -0
  6. package/dist/models/BatchDeleteConsumerAuthorizationRuleRequest.js.map +1 -0
  7. package/dist/models/BatchDeleteConsumerAuthorizationRuleResponse.d.ts +19 -0
  8. package/dist/models/BatchDeleteConsumerAuthorizationRuleResponse.js +69 -0
  9. package/dist/models/BatchDeleteConsumerAuthorizationRuleResponse.js.map +1 -0
  10. package/dist/models/BatchDeleteConsumerAuthorizationRuleResponseBody.d.ts +37 -0
  11. package/dist/models/BatchDeleteConsumerAuthorizationRuleResponseBody.js +62 -0
  12. package/dist/models/BatchDeleteConsumerAuthorizationRuleResponseBody.js.map +1 -0
  13. package/dist/models/CreateConsumerAuthorizationRuleRequest.d.ts +35 -0
  14. package/dist/models/CreateConsumerAuthorizationRuleRequest.js +70 -0
  15. package/dist/models/CreateConsumerAuthorizationRuleRequest.js.map +1 -0
  16. package/dist/models/CreateConsumerAuthorizationRuleResponse.d.ts +19 -0
  17. package/dist/models/CreateConsumerAuthorizationRuleResponse.js +69 -0
  18. package/dist/models/CreateConsumerAuthorizationRuleResponse.js.map +1 -0
  19. package/dist/models/CreateConsumerAuthorizationRuleResponseBody.d.ts +46 -0
  20. package/dist/models/CreateConsumerAuthorizationRuleResponseBody.js +86 -0
  21. package/dist/models/CreateConsumerAuthorizationRuleResponseBody.js.map +1 -0
  22. package/dist/models/CreateConsumerAuthorizationRulesRequest.d.ts +95 -0
  23. package/dist/models/CreateConsumerAuthorizationRulesRequest.js +112 -0
  24. package/dist/models/CreateConsumerAuthorizationRulesRequest.js.map +1 -0
  25. package/dist/models/CreateConsumerAuthorizationRulesResponse.d.ts +19 -0
  26. package/dist/models/CreateConsumerAuthorizationRulesResponse.js +69 -0
  27. package/dist/models/CreateConsumerAuthorizationRulesResponse.js.map +1 -0
  28. package/dist/models/CreateConsumerAuthorizationRulesResponseBody.d.ts +59 -0
  29. package/dist/models/CreateConsumerAuthorizationRulesResponseBody.js +89 -0
  30. package/dist/models/CreateConsumerAuthorizationRulesResponseBody.js.map +1 -0
  31. package/dist/models/CreateConsumerRequest.d.ts +39 -0
  32. package/dist/models/CreateConsumerRequest.js +82 -0
  33. package/dist/models/CreateConsumerRequest.js.map +1 -0
  34. package/dist/models/CreateConsumerResponse.d.ts +19 -0
  35. package/dist/models/CreateConsumerResponse.js +69 -0
  36. package/dist/models/CreateConsumerResponse.js.map +1 -0
  37. package/dist/models/CreateConsumerResponseBody.d.ts +49 -0
  38. package/dist/models/CreateConsumerResponseBody.js +86 -0
  39. package/dist/models/CreateConsumerResponseBody.js.map +1 -0
  40. package/dist/models/CreateGatewayRequest.d.ts +161 -0
  41. package/dist/models/CreateGatewayRequest.js +216 -0
  42. package/dist/models/CreateGatewayRequest.js.map +1 -0
  43. package/dist/models/CreateGatewayResponse.d.ts +19 -0
  44. package/dist/models/CreateGatewayResponse.js +69 -0
  45. package/dist/models/CreateGatewayResponse.js.map +1 -0
  46. package/dist/models/CreateGatewayResponseBody.d.ts +49 -0
  47. package/dist/models/CreateGatewayResponseBody.js +86 -0
  48. package/dist/models/CreateGatewayResponseBody.js.map +1 -0
  49. package/dist/models/DeleteConsumerAuthorizationRuleResponse.d.ts +19 -0
  50. package/dist/models/DeleteConsumerAuthorizationRuleResponse.js +69 -0
  51. package/dist/models/DeleteConsumerAuthorizationRuleResponse.js.map +1 -0
  52. package/dist/models/DeleteConsumerAuthorizationRuleResponseBody.d.ts +31 -0
  53. package/dist/models/DeleteConsumerAuthorizationRuleResponseBody.js +62 -0
  54. package/dist/models/DeleteConsumerAuthorizationRuleResponseBody.js.map +1 -0
  55. package/dist/models/DeleteConsumerResponse.d.ts +19 -0
  56. package/dist/models/DeleteConsumerResponse.js +69 -0
  57. package/dist/models/DeleteConsumerResponse.js.map +1 -0
  58. package/dist/models/DeleteConsumerResponseBody.d.ts +31 -0
  59. package/dist/models/DeleteConsumerResponseBody.js +62 -0
  60. package/dist/models/DeleteConsumerResponseBody.js.map +1 -0
  61. package/dist/models/GetConsumerAuthorizationRuleResponse.d.ts +19 -0
  62. package/dist/models/GetConsumerAuthorizationRuleResponse.js +69 -0
  63. package/dist/models/GetConsumerAuthorizationRuleResponse.js.map +1 -0
  64. package/dist/models/GetConsumerAuthorizationRuleResponseBody.d.ts +72 -0
  65. package/dist/models/GetConsumerAuthorizationRuleResponseBody.js +94 -0
  66. package/dist/models/GetConsumerAuthorizationRuleResponseBody.js.map +1 -0
  67. package/dist/models/GetConsumerResponse.d.ts +19 -0
  68. package/dist/models/GetConsumerResponse.js +69 -0
  69. package/dist/models/GetConsumerResponse.js.map +1 -0
  70. package/dist/models/GetConsumerResponseBody.d.ts +81 -0
  71. package/dist/models/GetConsumerResponseBody.js +116 -0
  72. package/dist/models/GetConsumerResponseBody.js.map +1 -0
  73. package/dist/models/GetGatewayResponseBody.d.ts +1 -0
  74. package/dist/models/GetGatewayResponseBody.js +2 -0
  75. package/dist/models/GetGatewayResponseBody.js.map +1 -1
  76. package/dist/models/LabelDetail.d.ts +15 -0
  77. package/dist/models/LabelDetail.js +63 -0
  78. package/dist/models/LabelDetail.js.map +1 -0
  79. package/dist/models/ListConsumersRequest.d.ts +33 -0
  80. package/dist/models/ListConsumersRequest.js +64 -0
  81. package/dist/models/ListConsumersRequest.js.map +1 -0
  82. package/dist/models/ListConsumersResponse.d.ts +19 -0
  83. package/dist/models/ListConsumersResponse.js +69 -0
  84. package/dist/models/ListConsumersResponse.js.map +1 -0
  85. package/dist/models/ListConsumersResponseBody.d.ts +103 -0
  86. package/dist/models/ListConsumersResponseBody.js +126 -0
  87. package/dist/models/ListConsumersResponseBody.js.map +1 -0
  88. package/dist/models/QueryConsumerAuthorizationRulesRequest.d.ts +93 -0
  89. package/dist/models/QueryConsumerAuthorizationRulesRequest.js +76 -0
  90. package/dist/models/QueryConsumerAuthorizationRulesRequest.js.map +1 -0
  91. package/dist/models/QueryConsumerAuthorizationRulesResponse.d.ts +19 -0
  92. package/dist/models/QueryConsumerAuthorizationRulesResponse.js +69 -0
  93. package/dist/models/QueryConsumerAuthorizationRulesResponse.js.map +1 -0
  94. package/dist/models/QueryConsumerAuthorizationRulesResponseBody.d.ts +228 -0
  95. package/dist/models/QueryConsumerAuthorizationRulesResponseBody.js +190 -0
  96. package/dist/models/QueryConsumerAuthorizationRulesResponseBody.js.map +1 -0
  97. package/dist/models/RemoveConsumerAuthorizationRuleResponse.d.ts +19 -0
  98. package/dist/models/RemoveConsumerAuthorizationRuleResponse.js +69 -0
  99. package/dist/models/RemoveConsumerAuthorizationRuleResponse.js.map +1 -0
  100. package/dist/models/RemoveConsumerAuthorizationRuleResponseBody.d.ts +37 -0
  101. package/dist/models/RemoveConsumerAuthorizationRuleResponseBody.js +62 -0
  102. package/dist/models/RemoveConsumerAuthorizationRuleResponseBody.js.map +1 -0
  103. package/dist/models/Service.d.ts +7 -0
  104. package/dist/models/Service.js +8 -0
  105. package/dist/models/Service.js.map +1 -1
  106. package/dist/models/UpdateConsumerAuthorizationRuleRequest.d.ts +25 -0
  107. package/dist/models/UpdateConsumerAuthorizationRuleRequest.js +66 -0
  108. package/dist/models/UpdateConsumerAuthorizationRuleRequest.js.map +1 -0
  109. package/dist/models/UpdateConsumerAuthorizationRuleResponse.d.ts +19 -0
  110. package/dist/models/UpdateConsumerAuthorizationRuleResponse.js +69 -0
  111. package/dist/models/UpdateConsumerAuthorizationRuleResponse.js.map +1 -0
  112. package/dist/models/UpdateConsumerAuthorizationRuleResponseBody.d.ts +31 -0
  113. package/dist/models/UpdateConsumerAuthorizationRuleResponseBody.js +62 -0
  114. package/dist/models/UpdateConsumerAuthorizationRuleResponseBody.js.map +1 -0
  115. package/dist/models/UpdateConsumerRequest.d.ts +25 -0
  116. package/dist/models/UpdateConsumerRequest.js +78 -0
  117. package/dist/models/UpdateConsumerRequest.js.map +1 -0
  118. package/dist/models/UpdateConsumerResponse.d.ts +19 -0
  119. package/dist/models/UpdateConsumerResponse.js +69 -0
  120. package/dist/models/UpdateConsumerResponse.js.map +1 -0
  121. package/dist/models/UpdateConsumerResponseBody.d.ts +31 -0
  122. package/dist/models/UpdateConsumerResponseBody.js +62 -0
  123. package/dist/models/UpdateConsumerResponseBody.js.map +1 -0
  124. package/dist/models/model.d.ts +56 -0
  125. package/dist/models/model.js +120 -7
  126. package/dist/models/model.js.map +1 -1
  127. package/package.json +1 -1
  128. package/src/client.ts +729 -1
  129. package/src/models/BatchDeleteConsumerAuthorizationRuleRequest.ts +34 -0
  130. package/src/models/BatchDeleteConsumerAuthorizationRuleResponse.ts +40 -0
  131. package/src/models/BatchDeleteConsumerAuthorizationRuleResponseBody.ts +54 -0
  132. package/src/models/CreateConsumerAuthorizationRuleRequest.ts +59 -0
  133. package/src/models/CreateConsumerAuthorizationRuleResponse.ts +40 -0
  134. package/src/models/CreateConsumerAuthorizationRuleResponseBody.ts +78 -0
  135. package/src/models/CreateConsumerAuthorizationRulesRequest.ts +144 -0
  136. package/src/models/CreateConsumerAuthorizationRulesResponse.ts +40 -0
  137. package/src/models/CreateConsumerAuthorizationRulesResponseBody.ts +94 -0
  138. package/src/models/CreateConsumerRequest.ts +73 -0
  139. package/src/models/CreateConsumerResponse.ts +40 -0
  140. package/src/models/CreateConsumerResponseBody.ts +81 -0
  141. package/src/models/CreateGatewayRequest.ts +278 -0
  142. package/src/models/CreateGatewayResponse.ts +40 -0
  143. package/src/models/CreateGatewayResponseBody.ts +81 -0
  144. package/src/models/DeleteConsumerAuthorizationRuleResponse.ts +40 -0
  145. package/src/models/DeleteConsumerAuthorizationRuleResponseBody.ts +48 -0
  146. package/src/models/DeleteConsumerResponse.ts +40 -0
  147. package/src/models/DeleteConsumerResponseBody.ts +48 -0
  148. package/src/models/GetConsumerAuthorizationRuleResponse.ts +40 -0
  149. package/src/models/GetConsumerAuthorizationRuleResponseBody.ts +118 -0
  150. package/src/models/GetConsumerResponse.ts +40 -0
  151. package/src/models/GetConsumerResponseBody.ts +140 -0
  152. package/src/models/GetGatewayResponseBody.ts +3 -0
  153. package/src/models/LabelDetail.ts +33 -0
  154. package/src/models/ListConsumersRequest.ts +52 -0
  155. package/src/models/ListConsumersResponse.ts +40 -0
  156. package/src/models/ListConsumersResponseBody.ts +166 -0
  157. package/src/models/QueryConsumerAuthorizationRulesRequest.ts +124 -0
  158. package/src/models/QueryConsumerAuthorizationRulesResponse.ts +40 -0
  159. package/src/models/QueryConsumerAuthorizationRulesResponseBody.ts +340 -0
  160. package/src/models/RemoveConsumerAuthorizationRuleResponse.ts +40 -0
  161. package/src/models/RemoveConsumerAuthorizationRuleResponseBody.ts +54 -0
  162. package/src/models/Service.ts +14 -0
  163. package/src/models/UpdateConsumerAuthorizationRuleRequest.ts +45 -0
  164. package/src/models/UpdateConsumerAuthorizationRuleResponse.ts +40 -0
  165. package/src/models/UpdateConsumerAuthorizationRuleResponseBody.ts +48 -0
  166. package/src/models/UpdateConsumerRequest.ts +55 -0
  167. package/src/models/UpdateConsumerResponse.ts +40 -0
  168. package/src/models/UpdateConsumerResponseBody.ts +48 -0
  169. package/src/models/model.ts +56 -0
@@ -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 BatchDeleteConsumerAuthorizationRuleRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The rule IDs.
9
+ *
10
+ * @example
11
+ * car-cus2d1em1hkg7732kuk0
12
+ */
13
+ consumerAuthorizationRuleIds?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ consumerAuthorizationRuleIds: 'consumerAuthorizationRuleIds',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ consumerAuthorizationRuleIds: '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 { BatchDeleteConsumerAuthorizationRuleResponseBody } from "./BatchDeleteConsumerAuthorizationRuleResponseBody";
4
+
5
+
6
+ export class BatchDeleteConsumerAuthorizationRuleResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: BatchDeleteConsumerAuthorizationRuleResponseBody;
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: BatchDeleteConsumerAuthorizationRuleResponseBody,
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,54 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class BatchDeleteConsumerAuthorizationRuleResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The status code.
9
+ *
10
+ * @example
11
+ * Ok
12
+ */
13
+ code?: string;
14
+ /**
15
+ * @remarks
16
+ * The returned message.
17
+ *
18
+ * @example
19
+ * success
20
+ */
21
+ message?: string;
22
+ /**
23
+ * @remarks
24
+ * Id of the request
25
+ *
26
+ * @example
27
+ * 464F9EA0-1052-51BD-8187-D292AA2D8D24
28
+ */
29
+ requestId?: string;
30
+ static names(): { [key: string]: string } {
31
+ return {
32
+ code: 'code',
33
+ message: 'message',
34
+ requestId: 'requestId',
35
+ };
36
+ }
37
+
38
+ static types(): { [key: string]: any } {
39
+ return {
40
+ code: 'string',
41
+ message: 'string',
42
+ requestId: 'string',
43
+ };
44
+ }
45
+
46
+ validate() {
47
+ super.validate();
48
+ }
49
+
50
+ constructor(map?: { [key: string]: any }) {
51
+ super(map);
52
+ }
53
+ }
54
+
@@ -0,0 +1,59 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { AuthorizationResourceInfo } from "./AuthorizationResourceInfo";
4
+
5
+
6
+ export class CreateConsumerAuthorizationRuleRequest extends $dara.Model {
7
+ authorizationResourceInfos?: AuthorizationResourceInfo[];
8
+ /**
9
+ * @example
10
+ * LongTerm
11
+ */
12
+ expireMode?: string;
13
+ /**
14
+ * @example
15
+ * 1750852089975
16
+ */
17
+ expireTimestamp?: number;
18
+ /**
19
+ * @example
20
+ * API
21
+ */
22
+ parentResourceType?: string;
23
+ /**
24
+ * @example
25
+ * API
26
+ */
27
+ resourceType?: string;
28
+ static names(): { [key: string]: string } {
29
+ return {
30
+ authorizationResourceInfos: 'authorizationResourceInfos',
31
+ expireMode: 'expireMode',
32
+ expireTimestamp: 'expireTimestamp',
33
+ parentResourceType: 'parentResourceType',
34
+ resourceType: 'resourceType',
35
+ };
36
+ }
37
+
38
+ static types(): { [key: string]: any } {
39
+ return {
40
+ authorizationResourceInfos: { 'type': 'array', 'itemType': AuthorizationResourceInfo },
41
+ expireMode: 'string',
42
+ expireTimestamp: 'number',
43
+ parentResourceType: 'string',
44
+ resourceType: 'string',
45
+ };
46
+ }
47
+
48
+ validate() {
49
+ if(Array.isArray(this.authorizationResourceInfos)) {
50
+ $dara.Model.validateArray(this.authorizationResourceInfos);
51
+ }
52
+ super.validate();
53
+ }
54
+
55
+ constructor(map?: { [key: string]: any }) {
56
+ super(map);
57
+ }
58
+ }
59
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CreateConsumerAuthorizationRuleResponseBody } from "./CreateConsumerAuthorizationRuleResponseBody";
4
+
5
+
6
+ export class CreateConsumerAuthorizationRuleResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CreateConsumerAuthorizationRuleResponseBody;
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: CreateConsumerAuthorizationRuleResponseBody,
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,78 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateConsumerAuthorizationRuleResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * car-d06p196m1hkg9ukum5pg
9
+ */
10
+ consumerAuthorizationRuleId?: string;
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ consumerAuthorizationRuleId: 'consumerAuthorizationRuleId',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ consumerAuthorizationRuleId: 'string',
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ super.validate();
25
+ }
26
+
27
+ constructor(map?: { [key: string]: any }) {
28
+ super(map);
29
+ }
30
+ }
31
+
32
+ export class CreateConsumerAuthorizationRuleResponseBody extends $dara.Model {
33
+ /**
34
+ * @example
35
+ * Ok
36
+ */
37
+ code?: string;
38
+ data?: CreateConsumerAuthorizationRuleResponseBodyData;
39
+ /**
40
+ * @example
41
+ * success
42
+ */
43
+ message?: string;
44
+ /**
45
+ * @example
46
+ * 6CC83C32-3B5A-57EE-9AFE-D0D51822C7BA
47
+ */
48
+ requestId?: string;
49
+ static names(): { [key: string]: string } {
50
+ return {
51
+ code: 'code',
52
+ data: 'data',
53
+ message: 'message',
54
+ requestId: 'requestId',
55
+ };
56
+ }
57
+
58
+ static types(): { [key: string]: any } {
59
+ return {
60
+ code: 'string',
61
+ data: CreateConsumerAuthorizationRuleResponseBodyData,
62
+ message: 'string',
63
+ requestId: 'string',
64
+ };
65
+ }
66
+
67
+ validate() {
68
+ if(this.data && typeof (this.data as any).validate === 'function') {
69
+ (this.data as any).validate();
70
+ }
71
+ super.validate();
72
+ }
73
+
74
+ constructor(map?: { [key: string]: any }) {
75
+ super(map);
76
+ }
77
+ }
78
+
@@ -0,0 +1,144 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateConsumerAuthorizationRulesRequestAuthorizationRulesResourceIdentifier extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The environment ID.
9
+ *
10
+ * @example
11
+ * env-cti17hem1hktoruj98ug
12
+ */
13
+ environmentId?: string;
14
+ /**
15
+ * @remarks
16
+ * The resource ID.
17
+ *
18
+ * @example
19
+ * ha-cn-li942gy8p03
20
+ */
21
+ resourceId?: string;
22
+ static names(): { [key: string]: string } {
23
+ return {
24
+ environmentId: 'environmentId',
25
+ resourceId: 'resourceId',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ environmentId: 'string',
32
+ resourceId: 'string',
33
+ };
34
+ }
35
+
36
+ validate() {
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
45
+ export class CreateConsumerAuthorizationRulesRequestAuthorizationRules extends $dara.Model {
46
+ /**
47
+ * @remarks
48
+ * The consumer ID.
49
+ *
50
+ * @example
51
+ * cs-cu08olem1hkokaut34i0
52
+ */
53
+ consumerId?: string;
54
+ /**
55
+ * @remarks
56
+ * The expiration mode. Valid values: LongTerm and ShortTerm.
57
+ *
58
+ * @example
59
+ * LongTerm
60
+ */
61
+ expireMode?: string;
62
+ /**
63
+ * @remarks
64
+ * The expiration timestamp.
65
+ *
66
+ * @example
67
+ * 174116222x
68
+ */
69
+ expireTimestamp?: number;
70
+ /**
71
+ * @remarks
72
+ * The resource identifier, which is provided to non-standard code sources for space reuse.
73
+ */
74
+ resourceIdentifier?: CreateConsumerAuthorizationRulesRequestAuthorizationRulesResourceIdentifier;
75
+ /**
76
+ * @remarks
77
+ * The resource type.
78
+ *
79
+ * @example
80
+ * HttpApiRoute
81
+ */
82
+ resourceType?: string;
83
+ static names(): { [key: string]: string } {
84
+ return {
85
+ consumerId: 'consumerId',
86
+ expireMode: 'expireMode',
87
+ expireTimestamp: 'expireTimestamp',
88
+ resourceIdentifier: 'resourceIdentifier',
89
+ resourceType: 'resourceType',
90
+ };
91
+ }
92
+
93
+ static types(): { [key: string]: any } {
94
+ return {
95
+ consumerId: 'string',
96
+ expireMode: 'string',
97
+ expireTimestamp: 'number',
98
+ resourceIdentifier: CreateConsumerAuthorizationRulesRequestAuthorizationRulesResourceIdentifier,
99
+ resourceType: 'string',
100
+ };
101
+ }
102
+
103
+ validate() {
104
+ if(this.resourceIdentifier && typeof (this.resourceIdentifier as any).validate === 'function') {
105
+ (this.resourceIdentifier as any).validate();
106
+ }
107
+ super.validate();
108
+ }
109
+
110
+ constructor(map?: { [key: string]: any }) {
111
+ super(map);
112
+ }
113
+ }
114
+
115
+ export class CreateConsumerAuthorizationRulesRequest extends $dara.Model {
116
+ /**
117
+ * @remarks
118
+ * The consumer authentication rules to be created.
119
+ */
120
+ authorizationRules?: CreateConsumerAuthorizationRulesRequestAuthorizationRules[];
121
+ static names(): { [key: string]: string } {
122
+ return {
123
+ authorizationRules: 'authorizationRules',
124
+ };
125
+ }
126
+
127
+ static types(): { [key: string]: any } {
128
+ return {
129
+ authorizationRules: { 'type': 'array', 'itemType': CreateConsumerAuthorizationRulesRequestAuthorizationRules },
130
+ };
131
+ }
132
+
133
+ validate() {
134
+ if(Array.isArray(this.authorizationRules)) {
135
+ $dara.Model.validateArray(this.authorizationRules);
136
+ }
137
+ super.validate();
138
+ }
139
+
140
+ constructor(map?: { [key: string]: any }) {
141
+ super(map);
142
+ }
143
+ }
144
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CreateConsumerAuthorizationRulesResponseBody } from "./CreateConsumerAuthorizationRulesResponseBody";
4
+
5
+
6
+ export class CreateConsumerAuthorizationRulesResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CreateConsumerAuthorizationRulesResponseBody;
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: CreateConsumerAuthorizationRulesResponseBody,
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,94 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateConsumerAuthorizationRulesResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The authentication rule IDs.
9
+ */
10
+ consumerAuthorizationRuleIds?: string[];
11
+ static names(): { [key: string]: string } {
12
+ return {
13
+ consumerAuthorizationRuleIds: 'consumerAuthorizationRuleIds',
14
+ };
15
+ }
16
+
17
+ static types(): { [key: string]: any } {
18
+ return {
19
+ consumerAuthorizationRuleIds: { 'type': 'array', 'itemType': 'string' },
20
+ };
21
+ }
22
+
23
+ validate() {
24
+ if(Array.isArray(this.consumerAuthorizationRuleIds)) {
25
+ $dara.Model.validateArray(this.consumerAuthorizationRuleIds);
26
+ }
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
35
+ export class CreateConsumerAuthorizationRulesResponseBody extends $dara.Model {
36
+ /**
37
+ * @remarks
38
+ * The status code.
39
+ *
40
+ * @example
41
+ * Ok
42
+ */
43
+ code?: string;
44
+ /**
45
+ * @remarks
46
+ * The response parameters.
47
+ */
48
+ data?: CreateConsumerAuthorizationRulesResponseBodyData;
49
+ /**
50
+ * @remarks
51
+ * The returned message.
52
+ *
53
+ * @example
54
+ * success
55
+ */
56
+ message?: string;
57
+ /**
58
+ * @remarks
59
+ * Id of the request
60
+ *
61
+ * @example
62
+ * 3ACFC7A7-45A9-58CF-B2D5-765B60254695
63
+ */
64
+ requestId?: string;
65
+ static names(): { [key: string]: string } {
66
+ return {
67
+ code: 'code',
68
+ data: 'data',
69
+ message: 'message',
70
+ requestId: 'requestId',
71
+ };
72
+ }
73
+
74
+ static types(): { [key: string]: any } {
75
+ return {
76
+ code: 'string',
77
+ data: CreateConsumerAuthorizationRulesResponseBodyData,
78
+ message: 'string',
79
+ requestId: 'string',
80
+ };
81
+ }
82
+
83
+ validate() {
84
+ if(this.data && typeof (this.data as any).validate === 'function') {
85
+ (this.data as any).validate();
86
+ }
87
+ super.validate();
88
+ }
89
+
90
+ constructor(map?: { [key: string]: any }) {
91
+ super(map);
92
+ }
93
+ }
94
+
@@ -0,0 +1,73 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { AkSkIdentityConfig } from "./AkSkIdentityConfig";
4
+ import { ApiKeyIdentityConfig } from "./ApiKeyIdentityConfig";
5
+ import { JwtIdentityConfig } from "./JwtIdentityConfig";
6
+
7
+
8
+ export class CreateConsumerRequest extends $dara.Model {
9
+ akSkIdentityConfigs?: AkSkIdentityConfig[];
10
+ apikeyIdentityConfig?: ApiKeyIdentityConfig;
11
+ /**
12
+ * @example
13
+ * consumer for test
14
+ */
15
+ description?: string;
16
+ /**
17
+ * @example
18
+ * false
19
+ */
20
+ enable?: boolean;
21
+ /**
22
+ * @example
23
+ * API
24
+ */
25
+ gatewayType?: string;
26
+ jwtIdentityConfig?: JwtIdentityConfig;
27
+ /**
28
+ * @example
29
+ * test
30
+ */
31
+ name?: string;
32
+ static names(): { [key: string]: string } {
33
+ return {
34
+ akSkIdentityConfigs: 'akSkIdentityConfigs',
35
+ apikeyIdentityConfig: 'apikeyIdentityConfig',
36
+ description: 'description',
37
+ enable: 'enable',
38
+ gatewayType: 'gatewayType',
39
+ jwtIdentityConfig: 'jwtIdentityConfig',
40
+ name: 'name',
41
+ };
42
+ }
43
+
44
+ static types(): { [key: string]: any } {
45
+ return {
46
+ akSkIdentityConfigs: { 'type': 'array', 'itemType': AkSkIdentityConfig },
47
+ apikeyIdentityConfig: ApiKeyIdentityConfig,
48
+ description: 'string',
49
+ enable: 'boolean',
50
+ gatewayType: 'string',
51
+ jwtIdentityConfig: JwtIdentityConfig,
52
+ name: 'string',
53
+ };
54
+ }
55
+
56
+ validate() {
57
+ if(Array.isArray(this.akSkIdentityConfigs)) {
58
+ $dara.Model.validateArray(this.akSkIdentityConfigs);
59
+ }
60
+ if(this.apikeyIdentityConfig && typeof (this.apikeyIdentityConfig as any).validate === 'function') {
61
+ (this.apikeyIdentityConfig as any).validate();
62
+ }
63
+ if(this.jwtIdentityConfig && typeof (this.jwtIdentityConfig as any).validate === 'function') {
64
+ (this.jwtIdentityConfig as any).validate();
65
+ }
66
+ super.validate();
67
+ }
68
+
69
+ constructor(map?: { [key: string]: any }) {
70
+ super(map);
71
+ }
72
+ }
73
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CreateConsumerResponseBody } from "./CreateConsumerResponseBody";
4
+
5
+
6
+ export class CreateConsumerResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CreateConsumerResponseBody;
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: CreateConsumerResponseBody,
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
+