@alicloud/apig20240327 7.2.2 → 9.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.
Files changed (47) hide show
  1. package/dist/client.js +9 -0
  2. package/dist/client.js.map +1 -1
  3. package/dist/models/AddGatewayQuotaRuleRequest.d.ts +7 -0
  4. package/dist/models/AddGatewayQuotaRuleRequest.js +2 -0
  5. package/dist/models/AddGatewayQuotaRuleRequest.js.map +1 -1
  6. package/dist/models/AddGatewayQuotaRuleResponseBody.d.ts +3 -1
  7. package/dist/models/AddGatewayQuotaRuleResponseBody.js +5 -1
  8. package/dist/models/AddGatewayQuotaRuleResponseBody.js.map +1 -1
  9. package/dist/models/DeleteDomainResponseBody.d.ts +3 -3
  10. package/dist/models/DescribeRegionsResponseBody.d.ts +1 -53
  11. package/dist/models/DescribeRegionsResponseBody.js +5 -75
  12. package/dist/models/DescribeRegionsResponseBody.js.map +1 -1
  13. package/dist/models/GetDomainResponseBody.d.ts +5 -4
  14. package/dist/models/GetDomainResponseBody.js.map +1 -1
  15. package/dist/models/GetGatewayQuotaRuleRequest.d.ts +4 -0
  16. package/dist/models/GetGatewayQuotaRuleRequest.js.map +1 -1
  17. package/dist/models/GetGatewayQuotaRuleResponseBody.d.ts +15 -0
  18. package/dist/models/GetGatewayQuotaRuleResponseBody.js +27 -1
  19. package/dist/models/GetGatewayQuotaRuleResponseBody.js.map +1 -1
  20. package/dist/models/ResetGatewayQuotaRuleRequest.d.ts +2 -3
  21. package/dist/models/ResetGatewayQuotaRuleRequest.js +4 -0
  22. package/dist/models/ResetGatewayQuotaRuleRequest.js.map +1 -1
  23. package/dist/models/ResetGatewayQuotaRuleResponseBody.d.ts +2 -0
  24. package/dist/models/ResetGatewayQuotaRuleResponseBody.js +4 -0
  25. package/dist/models/ResetGatewayQuotaRuleResponseBody.js.map +1 -1
  26. package/dist/models/UpdateGatewayQuotaRuleRequest.d.ts +2 -6
  27. package/dist/models/UpdateGatewayQuotaRuleRequest.js.map +1 -1
  28. package/dist/models/UpdateGatewayQuotaRuleResponseBody.d.ts +2 -0
  29. package/dist/models/UpdateGatewayQuotaRuleResponseBody.js +4 -0
  30. package/dist/models/UpdateGatewayQuotaRuleResponseBody.js.map +1 -1
  31. package/dist/models/model.d.ts +1 -3
  32. package/dist/models/model.js +20 -24
  33. package/dist/models/model.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/client.ts +12 -0
  36. package/src/models/AddGatewayQuotaRuleRequest.ts +9 -0
  37. package/src/models/AddGatewayQuotaRuleResponseBody.ts +8 -2
  38. package/src/models/DeleteDomainResponseBody.ts +3 -3
  39. package/src/models/DescribeRegionsResponseBody.ts +4 -99
  40. package/src/models/GetDomainResponseBody.ts +5 -4
  41. package/src/models/GetGatewayQuotaRuleRequest.ts +4 -0
  42. package/src/models/GetGatewayQuotaRuleResponseBody.ts +32 -0
  43. package/src/models/ResetGatewayQuotaRuleRequest.ts +6 -3
  44. package/src/models/ResetGatewayQuotaRuleResponseBody.ts +6 -0
  45. package/src/models/UpdateGatewayQuotaRuleRequest.ts +2 -6
  46. package/src/models/UpdateGatewayQuotaRuleResponseBody.ts +6 -0
  47. package/src/models/model.ts +1 -3
@@ -2,68 +2,8 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
- export class DescribeRegionsResponseBodyDataRegions extends $dara.Model {
6
- localName?: string;
7
- regionId?: string;
8
- static names(): { [key: string]: string } {
9
- return {
10
- localName: 'localName',
11
- regionId: 'regionId',
12
- };
13
- }
14
-
15
- static types(): { [key: string]: any } {
16
- return {
17
- localName: 'string',
18
- regionId: 'string',
19
- };
20
- }
21
-
22
- validate() {
23
- super.validate();
24
- }
25
-
26
- constructor(map?: { [key: string]: any }) {
27
- super(map);
28
- }
29
- }
30
-
31
5
  export class DescribeRegionsResponseBodyData extends $dara.Model {
32
- regions?: DescribeRegionsResponseBodyDataRegions[];
33
- static names(): { [key: string]: string } {
34
- return {
35
- regions: 'regions',
36
- };
37
- }
38
-
39
- static types(): { [key: string]: any } {
40
- return {
41
- regions: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyDataRegions },
42
- };
43
- }
44
-
45
- validate() {
46
- if(Array.isArray(this.regions)) {
47
- $dara.Model.validateArray(this.regions);
48
- }
49
- super.validate();
50
- }
51
-
52
- constructor(map?: { [key: string]: any }) {
53
- super(map);
54
- }
55
- }
56
-
57
- export class DescribeRegionsResponseBodyRegionsRegion extends $dara.Model {
58
- /**
59
- * @example
60
- * 华东1(杭州)
61
- */
62
6
  localName?: string;
63
- /**
64
- * @example
65
- * cn-hangzhou
66
- */
67
7
  regionId?: string;
68
8
  static names(): { [key: string]: string } {
69
9
  return {
@@ -88,48 +28,18 @@ export class DescribeRegionsResponseBodyRegionsRegion extends $dara.Model {
88
28
  }
89
29
  }
90
30
 
91
- export class DescribeRegionsResponseBodyRegions extends $dara.Model {
92
- region?: DescribeRegionsResponseBodyRegionsRegion[];
93
- static names(): { [key: string]: string } {
94
- return {
95
- region: 'Region',
96
- };
97
- }
98
-
99
- static types(): { [key: string]: any } {
100
- return {
101
- region: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyRegionsRegion },
102
- };
103
- }
104
-
105
- validate() {
106
- if(Array.isArray(this.region)) {
107
- $dara.Model.validateArray(this.region);
108
- }
109
- super.validate();
110
- }
111
-
112
- constructor(map?: { [key: string]: any }) {
113
- super(map);
114
- }
115
- }
116
-
117
31
  export class DescribeRegionsResponseBody extends $dara.Model {
118
32
  /**
119
33
  * @example
120
34
  * 200
121
35
  */
122
36
  code?: string;
123
- data?: DescribeRegionsResponseBodyData;
37
+ data?: DescribeRegionsResponseBodyData[];
124
38
  /**
125
39
  * @example
126
40
  * success
127
41
  */
128
42
  message?: string;
129
- /**
130
- * @deprecated
131
- */
132
- regions?: DescribeRegionsResponseBodyRegions;
133
43
  /**
134
44
  * @example
135
45
  * E6BD6C79-32B1-5D7E-A89A-93C5A6B7xxxx
@@ -140,7 +50,6 @@ export class DescribeRegionsResponseBody extends $dara.Model {
140
50
  code: 'code',
141
51
  data: 'data',
142
52
  message: 'message',
143
- regions: 'regions',
144
53
  requestId: 'requestId',
145
54
  };
146
55
  }
@@ -148,19 +57,15 @@ export class DescribeRegionsResponseBody extends $dara.Model {
148
57
  static types(): { [key: string]: any } {
149
58
  return {
150
59
  code: 'string',
151
- data: DescribeRegionsResponseBodyData,
60
+ data: { 'type': 'array', 'itemType': DescribeRegionsResponseBodyData },
152
61
  message: 'string',
153
- regions: DescribeRegionsResponseBodyRegions,
154
62
  requestId: 'string',
155
63
  };
156
64
  }
157
65
 
158
66
  validate() {
159
- if(this.data && typeof (this.data as any).validate === 'function') {
160
- (this.data as any).validate();
161
- }
162
- if(this.regions && typeof (this.regions as any).validate === 'function') {
163
- (this.regions as any).validate();
67
+ if(Array.isArray(this.data)) {
68
+ $dara.Model.validateArray(this.data);
164
69
  }
165
70
  super.validate();
166
71
  }
@@ -155,7 +155,7 @@ export class GetDomainResponseBodyData extends $dara.Model {
155
155
  issuer?: string;
156
156
  /**
157
157
  * @remarks
158
- * Indicates whether mutual TLS (mTLS) authentication is enabled.
158
+ * Indicates whether mTLS mutual authentication is enabled.
159
159
  *
160
160
  * @example
161
161
  * false
@@ -187,10 +187,11 @@ export class GetDomainResponseBodyData extends $dara.Model {
187
187
  notBeforeTimestamp?: number;
188
188
  /**
189
189
  * @remarks
190
- * The protocol type supported by the domain name. Valid values:
190
+ * The protocol type supported by the domain name.
191
191
  *
192
- * - HTTP: only HTTP is supported.
193
- * - HTTPS: only HTTPS is supported.
192
+ * Valid values:
193
+ * - HTTP: Only the HTTP protocol is supported.
194
+ * - HTTPS: Only the HTTPS protocol is supported.
194
195
  *
195
196
  * @example
196
197
  * HTTP
@@ -6,11 +6,15 @@ export class GetGatewayQuotaRuleRequest extends $dara.Model {
6
6
  /**
7
7
  * @example
8
8
  * 1
9
+ *
10
+ * @deprecated
9
11
  */
10
12
  consumerPageNumber?: string;
11
13
  /**
12
14
  * @example
13
15
  * 10
16
+ *
17
+ * @deprecated
14
18
  */
15
19
  consumerPageSize?: string;
16
20
  withConsumers?: boolean;
@@ -2,6 +2,32 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class GetGatewayQuotaRuleResponseBodyDataConsumers extends $dara.Model {
6
+ id?: string;
7
+ name?: string;
8
+ static names(): { [key: string]: string } {
9
+ return {
10
+ id: 'id',
11
+ name: 'name',
12
+ };
13
+ }
14
+
15
+ static types(): { [key: string]: any } {
16
+ return {
17
+ id: 'string',
18
+ name: 'string',
19
+ };
20
+ }
21
+
22
+ validate() {
23
+ super.validate();
24
+ }
25
+
26
+ constructor(map?: { [key: string]: any }) {
27
+ super(map);
28
+ }
29
+ }
30
+
5
31
  export class GetGatewayQuotaRuleResponseBodyData extends $dara.Model {
6
32
  /**
7
33
  * @example
@@ -13,6 +39,7 @@ export class GetGatewayQuotaRuleResponseBodyData extends $dara.Model {
13
39
  * 20
14
40
  */
15
41
  consumerCount?: number;
42
+ consumers?: GetGatewayQuotaRuleResponseBodyDataConsumers[];
16
43
  /**
17
44
  * @example
18
45
  * day
@@ -57,6 +84,7 @@ export class GetGatewayQuotaRuleResponseBodyData extends $dara.Model {
57
84
  return {
58
85
  baseTimestamp: 'baseTimestamp',
59
86
  consumerCount: 'consumerCount',
87
+ consumers: 'consumers',
60
88
  periodType: 'periodType',
61
89
  quotaDimension: 'quotaDimension',
62
90
  quotaLimit: 'quotaLimit',
@@ -72,6 +100,7 @@ export class GetGatewayQuotaRuleResponseBodyData extends $dara.Model {
72
100
  return {
73
101
  baseTimestamp: 'number',
74
102
  consumerCount: 'number',
103
+ consumers: { 'type': 'array', 'itemType': GetGatewayQuotaRuleResponseBodyDataConsumers },
75
104
  periodType: 'string',
76
105
  quotaDimension: 'string',
77
106
  quotaLimit: 'number',
@@ -84,6 +113,9 @@ export class GetGatewayQuotaRuleResponseBodyData extends $dara.Model {
84
113
  }
85
114
 
86
115
  validate() {
116
+ if(Array.isArray(this.consumers)) {
117
+ $dara.Model.validateArray(this.consumers);
118
+ }
87
119
  super.validate();
88
120
  }
89
121
 
@@ -14,15 +14,13 @@ export class ResetGatewayQuotaRuleRequest extends $dara.Model {
14
14
  */
15
15
  dryRun?: boolean;
16
16
  overwrite?: boolean;
17
+ periodMultiplier?: number;
17
18
  /**
18
19
  * @example
19
20
  * week
20
21
  */
21
22
  periodType?: string;
22
23
  /**
23
- * @remarks
24
- * This parameter is required.
25
- *
26
24
  * @example
27
25
  * 1000
28
26
  */
@@ -32,14 +30,17 @@ export class ResetGatewayQuotaRuleRequest extends $dara.Model {
32
30
  * UTC+8
33
31
  */
34
32
  timezone?: string;
33
+ windowAlignment?: string;
35
34
  static names(): { [key: string]: string } {
36
35
  return {
37
36
  conflictHash: 'conflictHash',
38
37
  dryRun: 'dryRun',
39
38
  overwrite: 'overwrite',
39
+ periodMultiplier: 'periodMultiplier',
40
40
  periodType: 'periodType',
41
41
  quotaLimit: 'quotaLimit',
42
42
  timezone: 'timezone',
43
+ windowAlignment: 'windowAlignment',
43
44
  };
44
45
  }
45
46
 
@@ -48,9 +49,11 @@ export class ResetGatewayQuotaRuleRequest extends $dara.Model {
48
49
  conflictHash: 'string',
49
50
  dryRun: 'boolean',
50
51
  overwrite: 'boolean',
52
+ periodMultiplier: 'number',
51
53
  periodType: 'string',
52
54
  quotaLimit: 'number',
53
55
  timezone: 'string',
56
+ windowAlignment: 'string',
54
57
  };
55
58
  }
56
59
 
@@ -3,6 +3,8 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ResetGatewayQuotaRuleResponseBodyDataConflictPreviewItems extends $dara.Model {
6
+ conflictPeriodType?: string;
7
+ conflictType?: string;
6
8
  /**
7
9
  * @example
8
10
  * cs-d82n1g6m1hkm3xxxxxxx
@@ -15,6 +17,8 @@ export class ResetGatewayQuotaRuleResponseBodyDataConflictPreviewItems extends $
15
17
  consumerName?: string;
16
18
  static names(): { [key: string]: string } {
17
19
  return {
20
+ conflictPeriodType: 'conflictPeriodType',
21
+ conflictType: 'conflictType',
18
22
  consumerId: 'consumerId',
19
23
  consumerName: 'consumerName',
20
24
  };
@@ -22,6 +26,8 @@ export class ResetGatewayQuotaRuleResponseBodyDataConflictPreviewItems extends $
22
26
 
23
27
  static types(): { [key: string]: any } {
24
28
  return {
29
+ conflictPeriodType: 'string',
30
+ conflictType: 'string',
25
31
  consumerId: 'string',
26
32
  consumerName: 'string',
27
33
  };
@@ -16,6 +16,8 @@ export class UpdateGatewayQuotaRuleRequest extends $dara.Model {
16
16
  /**
17
17
  * @example
18
18
  * group1,group2
19
+ *
20
+ * @deprecated
19
21
  */
20
22
  consumerGroupIds?: string[];
21
23
  /**
@@ -25,9 +27,6 @@ export class UpdateGatewayQuotaRuleRequest extends $dara.Model {
25
27
  dryRun?: boolean;
26
28
  overwrite?: boolean;
27
29
  /**
28
- * @remarks
29
- * This parameter is required.
30
- *
31
30
  * @example
32
31
  * 1000
33
32
  */
@@ -38,9 +37,6 @@ export class UpdateGatewayQuotaRuleRequest extends $dara.Model {
38
37
  */
39
38
  removeIds?: string[];
40
39
  /**
41
- * @remarks
42
- * This parameter is required.
43
- *
44
40
  * @example
45
41
  * team-rule
46
42
  */
@@ -3,6 +3,8 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class UpdateGatewayQuotaRuleResponseBodyDataConflictPreviewItems extends $dara.Model {
6
+ conflictPeriodType?: string;
7
+ conflictType?: string;
6
8
  /**
7
9
  * @example
8
10
  * cs-d82n1g6m1hkm375xxxxx
@@ -15,6 +17,8 @@ export class UpdateGatewayQuotaRuleResponseBodyDataConflictPreviewItems extends
15
17
  consumerName?: string;
16
18
  static names(): { [key: string]: string } {
17
19
  return {
20
+ conflictPeriodType: 'conflictPeriodType',
21
+ conflictType: 'conflictType',
18
22
  consumerId: 'consumerId',
19
23
  consumerName: 'consumerName',
20
24
  };
@@ -22,6 +26,8 @@ export class UpdateGatewayQuotaRuleResponseBodyDataConflictPreviewItems extends
22
26
 
23
27
  static types(): { [key: string]: any } {
24
28
  return {
29
+ conflictPeriodType: 'string',
30
+ conflictType: 'string',
25
31
  consumerId: 'string',
26
32
  consumerName: 'string',
27
33
  };
@@ -147,10 +147,7 @@ export { DeployHttpApiRequestRestApiConfigEnvironment } from './DeployHttpApiReq
147
147
  export { DeployHttpApiRequestRestApiConfigOperationDeployments } from './DeployHttpApiRequest';
148
148
  export { DeployHttpApiRequestRestApiConfig } from './DeployHttpApiRequest';
149
149
  export { DeployHttpApiResponseBodyData } from './DeployHttpApiResponseBody';
150
- export { DescribeRegionsResponseBodyDataRegions } from './DescribeRegionsResponseBody';
151
150
  export { DescribeRegionsResponseBodyData } from './DescribeRegionsResponseBody';
152
- export { DescribeRegionsResponseBodyRegionsRegion } from './DescribeRegionsResponseBody';
153
- export { DescribeRegionsResponseBodyRegions } from './DescribeRegionsResponseBody';
154
151
  export { ExportHttpApiRequestExtensionConfig } from './ExportHttpApiRequest';
155
152
  export { ExportHttpApiResponseBodyData } from './ExportHttpApiResponseBody';
156
153
  export { GetConsumerResponseBodyData } from './GetConsumerResponseBody';
@@ -171,6 +168,7 @@ export { GetGatewayResponseBodyDataVpc } from './GetGatewayResponseBody';
171
168
  export { GetGatewayResponseBodyDataZonesVSwitch } from './GetGatewayResponseBody';
172
169
  export { GetGatewayResponseBodyDataZones } from './GetGatewayResponseBody';
173
170
  export { GetGatewayResponseBodyData } from './GetGatewayResponseBody';
171
+ export { GetGatewayQuotaRuleResponseBodyDataConsumers } from './GetGatewayQuotaRuleResponseBody';
174
172
  export { GetGatewayQuotaRuleResponseBodyData } from './GetGatewayQuotaRuleResponseBody';
175
173
  export { GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetailsItems } from './GetGatewayQuotaRuleSubjectUsageResponseBody';
176
174
  export { GetGatewayQuotaRuleSubjectUsageResponseBodyDataDetails } from './GetGatewayQuotaRuleSubjectUsageResponseBody';