@alicloud/cs20151215 4.9.8 → 6.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 (128) hide show
  1. package/dist/client.d.ts +0 -169
  2. package/dist/client.js +0 -452
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateClusterNodePoolRequest.d.ts +19 -0
  5. package/dist/models/CreateClusterNodePoolRequest.js +30 -1
  6. package/dist/models/CreateClusterNodePoolRequest.js.map +1 -1
  7. package/dist/models/DescribeClusterNodePoolDetailResponseBody.d.ts +34 -0
  8. package/dist/models/DescribeClusterNodePoolDetailResponseBody.js +58 -1
  9. package/dist/models/DescribeClusterNodePoolDetailResponseBody.js.map +1 -1
  10. package/dist/models/DescribeClusterNodePoolsResponseBody.d.ts +34 -0
  11. package/dist/models/DescribeClusterNodePoolsResponseBody.js +58 -1
  12. package/dist/models/DescribeClusterNodePoolsResponseBody.js.map +1 -1
  13. package/dist/models/DescribePolicyGovernanceInClusterResponseBody.d.ts +79 -209
  14. package/dist/models/DescribePolicyGovernanceInClusterResponseBody.js +130 -86
  15. package/dist/models/DescribePolicyGovernanceInClusterResponseBody.js.map +1 -1
  16. package/dist/models/Hugepage.d.ts +19 -0
  17. package/dist/models/{DeleteEdgeMachineResponse.js → Hugepage.js} +16 -11
  18. package/dist/models/Hugepage.js.map +1 -0
  19. package/dist/models/ModifyClusterNodePoolRequest.d.ts +19 -0
  20. package/dist/models/ModifyClusterNodePoolRequest.js +30 -1
  21. package/dist/models/ModifyClusterNodePoolRequest.js.map +1 -1
  22. package/dist/models/ModifyNodePoolNodeConfigRequest.d.ts +2 -0
  23. package/dist/models/ModifyNodePoolNodeConfigRequest.js +6 -0
  24. package/dist/models/ModifyNodePoolNodeConfigRequest.js.map +1 -1
  25. package/dist/models/Nodepool.d.ts +19 -0
  26. package/dist/models/Nodepool.js +30 -1
  27. package/dist/models/Nodepool.js.map +1 -1
  28. package/dist/models/model.d.ts +16 -37
  29. package/dist/models/model.js +76 -119
  30. package/dist/models/model.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/client.ts +0 -503
  33. package/src/models/CreateClusterNodePoolRequest.ts +39 -0
  34. package/src/models/DescribeClusterNodePoolDetailResponseBody.ts +72 -0
  35. package/src/models/DescribeClusterNodePoolsResponseBody.ts +72 -0
  36. package/src/models/DescribePolicyGovernanceInClusterResponseBody.ts +183 -278
  37. package/src/models/Hugepage.ts +42 -0
  38. package/src/models/ModifyClusterNodePoolRequest.ts +39 -0
  39. package/src/models/ModifyNodePoolNodeConfigRequest.ts +7 -0
  40. package/src/models/Nodepool.ts +39 -0
  41. package/src/models/model.ts +16 -37
  42. package/dist/models/CreateEdgeMachineRequest.d.ts +0 -45
  43. package/dist/models/CreateEdgeMachineRequest.js +0 -62
  44. package/dist/models/CreateEdgeMachineRequest.js.map +0 -1
  45. package/dist/models/CreateEdgeMachineResponse.d.ts +0 -19
  46. package/dist/models/CreateEdgeMachineResponse.js +0 -69
  47. package/dist/models/CreateEdgeMachineResponse.js.map +0 -1
  48. package/dist/models/CreateEdgeMachineResponseBody.d.ts +0 -29
  49. package/dist/models/CreateEdgeMachineResponseBody.js +0 -60
  50. package/dist/models/CreateEdgeMachineResponseBody.js.map +0 -1
  51. package/dist/models/DeleteEdgeMachineRequest.d.ts +0 -26
  52. package/dist/models/DeleteEdgeMachineRequest.js +0 -58
  53. package/dist/models/DeleteEdgeMachineRequest.js.map +0 -1
  54. package/dist/models/DeleteEdgeMachineResponse.d.ts +0 -17
  55. package/dist/models/DeleteEdgeMachineResponse.js.map +0 -1
  56. package/dist/models/DescribeEdgeMachineActiveProcessResponse.d.ts +0 -19
  57. package/dist/models/DescribeEdgeMachineActiveProcessResponse.js +0 -69
  58. package/dist/models/DescribeEdgeMachineActiveProcessResponse.js.map +0 -1
  59. package/dist/models/DescribeEdgeMachineActiveProcessResponseBody.d.ts +0 -53
  60. package/dist/models/DescribeEdgeMachineActiveProcessResponseBody.js +0 -66
  61. package/dist/models/DescribeEdgeMachineActiveProcessResponseBody.js.map +0 -1
  62. package/dist/models/DescribeEdgeMachineModelsResponse.d.ts +0 -19
  63. package/dist/models/DescribeEdgeMachineModelsResponse.js +0 -69
  64. package/dist/models/DescribeEdgeMachineModelsResponse.js.map +0 -1
  65. package/dist/models/DescribeEdgeMachineModelsResponseBody.d.ts +0 -94
  66. package/dist/models/DescribeEdgeMachineModelsResponseBody.js +0 -94
  67. package/dist/models/DescribeEdgeMachineModelsResponseBody.js.map +0 -1
  68. package/dist/models/DescribeEdgeMachineTunnelConfigDetailResponse.d.ts +0 -19
  69. package/dist/models/DescribeEdgeMachineTunnelConfigDetailResponse.js +0 -69
  70. package/dist/models/DescribeEdgeMachineTunnelConfigDetailResponse.js.map +0 -1
  71. package/dist/models/DescribeEdgeMachineTunnelConfigDetailResponseBody.d.ts +0 -69
  72. package/dist/models/DescribeEdgeMachineTunnelConfigDetailResponseBody.js +0 -70
  73. package/dist/models/DescribeEdgeMachineTunnelConfigDetailResponseBody.js.map +0 -1
  74. package/dist/models/DescribeEdgeMachinesRequest.d.ts +0 -64
  75. package/dist/models/DescribeEdgeMachinesRequest.js +0 -68
  76. package/dist/models/DescribeEdgeMachinesRequest.js.map +0 -1
  77. package/dist/models/DescribeEdgeMachinesResponse.d.ts +0 -19
  78. package/dist/models/DescribeEdgeMachinesResponse.js +0 -69
  79. package/dist/models/DescribeEdgeMachinesResponse.js.map +0 -1
  80. package/dist/models/DescribeEdgeMachinesResponseBody.d.ts +0 -155
  81. package/dist/models/DescribeEdgeMachinesResponseBody.js +0 -126
  82. package/dist/models/DescribeEdgeMachinesResponseBody.js.map +0 -1
  83. package/dist/models/EdgeClusterAddEdgeMachineRequest.d.ts +0 -39
  84. package/dist/models/EdgeClusterAddEdgeMachineRequest.js +0 -62
  85. package/dist/models/EdgeClusterAddEdgeMachineRequest.js.map +0 -1
  86. package/dist/models/EdgeClusterAddEdgeMachineResponse.d.ts +0 -19
  87. package/dist/models/EdgeClusterAddEdgeMachineResponse.js +0 -69
  88. package/dist/models/EdgeClusterAddEdgeMachineResponse.js.map +0 -1
  89. package/dist/models/EdgeClusterAddEdgeMachineResponseBody.d.ts +0 -29
  90. package/dist/models/EdgeClusterAddEdgeMachineResponseBody.js +0 -60
  91. package/dist/models/EdgeClusterAddEdgeMachineResponseBody.js.map +0 -1
  92. package/dist/models/ModifyClusterConfigurationRequest.d.ts +0 -71
  93. package/dist/models/ModifyClusterConfigurationRequest.js +0 -106
  94. package/dist/models/ModifyClusterConfigurationRequest.js.map +0 -1
  95. package/dist/models/ModifyClusterConfigurationResponse.d.ts +0 -17
  96. package/dist/models/ModifyClusterConfigurationResponse.js +0 -63
  97. package/dist/models/ModifyClusterConfigurationResponse.js.map +0 -1
  98. package/dist/models/ScaleClusterRequest.d.ts +0 -75
  99. package/dist/models/ScaleClusterRequest.js +0 -174
  100. package/dist/models/ScaleClusterRequest.js.map +0 -1
  101. package/dist/models/ScaleClusterResponse.d.ts +0 -19
  102. package/dist/models/ScaleClusterResponse.js +0 -69
  103. package/dist/models/ScaleClusterResponse.js.map +0 -1
  104. package/dist/models/ScaleClusterResponseBody.d.ts +0 -16
  105. package/dist/models/ScaleClusterResponseBody.js +0 -62
  106. package/dist/models/ScaleClusterResponseBody.js.map +0 -1
  107. package/src/models/CreateEdgeMachineRequest.ts +0 -62
  108. package/src/models/CreateEdgeMachineResponse.ts +0 -40
  109. package/src/models/CreateEdgeMachineResponseBody.ts +0 -44
  110. package/src/models/DeleteEdgeMachineRequest.ts +0 -39
  111. package/src/models/DeleteEdgeMachineResponse.ts +0 -33
  112. package/src/models/DescribeEdgeMachineActiveProcessResponse.ts +0 -40
  113. package/src/models/DescribeEdgeMachineActiveProcessResponseBody.ts +0 -74
  114. package/src/models/DescribeEdgeMachineModelsResponse.ts +0 -40
  115. package/src/models/DescribeEdgeMachineModelsResponseBody.ts +0 -134
  116. package/src/models/DescribeEdgeMachineTunnelConfigDetailResponse.ts +0 -40
  117. package/src/models/DescribeEdgeMachineTunnelConfigDetailResponseBody.ts +0 -94
  118. package/src/models/DescribeEdgeMachinesRequest.ts +0 -87
  119. package/src/models/DescribeEdgeMachinesResponse.ts +0 -40
  120. package/src/models/DescribeEdgeMachinesResponseBody.ts +0 -218
  121. package/src/models/EdgeClusterAddEdgeMachineRequest.ts +0 -56
  122. package/src/models/EdgeClusterAddEdgeMachineResponse.ts +0 -40
  123. package/src/models/EdgeClusterAddEdgeMachineResponseBody.ts +0 -44
  124. package/src/models/ModifyClusterConfigurationRequest.ts +0 -114
  125. package/src/models/ModifyClusterConfigurationResponse.ts +0 -33
  126. package/src/models/ScaleClusterRequest.ts +0 -177
  127. package/src/models/ScaleClusterResponse.ts +0 -40
  128. package/src/models/ScaleClusterResponseBody.ts +0 -33
@@ -2,74 +2,20 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
- export class DescribePolicyGovernanceInClusterResponseBodyAdmitLogLog extends $dara.Model {
6
- /**
7
- * @remarks
8
- * The cluster ID.
9
- *
10
- * @example
11
- * c8155823d057948c69a****
12
- */
13
- clusterId?: string;
14
- /**
15
- * @remarks
16
- * The policy type.
17
- *
18
- * @example
19
- * ACKAllowedRepos
20
- */
21
- constraintKind?: string;
22
- /**
23
- * @remarks
24
- * The message that appears when an event is generated by a policy.
25
- *
26
- * @example
27
- * d4hdhs*****
28
- */
29
- msg?: string;
30
- /**
31
- * @remarks
32
- * The resource type.
33
- *
34
- * @example
35
- * Pod
36
- */
37
- resourceKind?: string;
38
- /**
39
- * @remarks
40
- * The resource name.
41
- *
42
- * @example
43
- * nginx-deployment-basic2-84ccb74bfc-df22p
44
- */
45
- resourceName?: string;
46
- /**
47
- * @remarks
48
- * The namespace to which the resource belongs.
49
- *
50
- * @example
51
- * default
52
- */
53
- resourceNamespace?: string;
5
+ export class DescribePolicyGovernanceInClusterResponseBodyViolationTotalViolationsDeny extends $dara.Model {
6
+ severity?: string;
7
+ violations?: string;
54
8
  static names(): { [key: string]: string } {
55
9
  return {
56
- clusterId: 'cluster_id',
57
- constraintKind: 'constraint_kind',
58
- msg: 'msg',
59
- resourceKind: 'resource_kind',
60
- resourceName: 'resource_name',
61
- resourceNamespace: 'resource_namespace',
10
+ severity: 'severity',
11
+ violations: 'violations',
62
12
  };
63
13
  }
64
14
 
65
15
  static types(): { [key: string]: any } {
66
16
  return {
67
- clusterId: 'string',
68
- constraintKind: 'string',
69
- msg: 'string',
70
- resourceKind: 'string',
71
- resourceName: 'string',
72
- resourceNamespace: 'string',
17
+ severity: 'string',
18
+ violations: 'string',
73
19
  };
74
20
  }
75
21
 
@@ -82,51 +28,24 @@ export class DescribePolicyGovernanceInClusterResponseBodyAdmitLogLog extends $d
82
28
  }
83
29
  }
84
30
 
85
- export class DescribePolicyGovernanceInClusterResponseBodyAdmitLog extends $dara.Model {
86
- /**
87
- * @remarks
88
- * The number of audit log entries.
89
- *
90
- * @example
91
- * 100
92
- */
93
- count?: number;
94
- /**
95
- * @remarks
96
- * The audit log content.
97
- */
98
- log?: DescribePolicyGovernanceInClusterResponseBodyAdmitLogLog;
99
- /**
100
- * @remarks
101
- * The status of the query. Valid values:
102
- *
103
- * * `Complete`: The query succeeded and the complete query result is returned.
104
- * * `Incomplete`: The query succeeded but the query result is incomplete. To obtain the complete query result, you must repeat the request.
105
- *
106
- * @example
107
- * Complete
108
- */
109
- progress?: string;
31
+ export class DescribePolicyGovernanceInClusterResponseBodyViolationTotalViolationsWarn extends $dara.Model {
32
+ severity?: string;
33
+ violations?: number;
110
34
  static names(): { [key: string]: string } {
111
35
  return {
112
- count: 'count',
113
- log: 'log',
114
- progress: 'progress',
36
+ severity: 'severity',
37
+ violations: 'violations',
115
38
  };
116
39
  }
117
40
 
118
41
  static types(): { [key: string]: any } {
119
42
  return {
120
- count: 'number',
121
- log: DescribePolicyGovernanceInClusterResponseBodyAdmitLogLog,
122
- progress: 'string',
43
+ severity: 'string',
44
+ violations: 'number',
123
45
  };
124
46
  }
125
47
 
126
48
  validate() {
127
- if(this.log && typeof (this.log as any).validate === 'function') {
128
- (this.log as any).validate();
129
- }
130
49
  super.validate();
131
50
  }
132
51
 
@@ -135,48 +54,30 @@ export class DescribePolicyGovernanceInClusterResponseBodyAdmitLog extends $dara
135
54
  }
136
55
  }
137
56
 
138
- export class DescribePolicyGovernanceInClusterResponseBodyOnState extends $dara.Model {
139
- /**
140
- * @remarks
141
- * The number of policies that are enabled.
142
- *
143
- * @example
144
- * 3
145
- */
146
- enabledCount?: number;
147
- /**
148
- * @remarks
149
- * The severity level of the policy.
150
- *
151
- * @example
152
- * high
153
- */
154
- severity?: string;
155
- /**
156
- * @remarks
157
- * The total number of policies of the severity level.
158
- *
159
- * @example
160
- * 8
161
- */
162
- total?: number;
57
+ export class DescribePolicyGovernanceInClusterResponseBodyViolationTotalViolations extends $dara.Model {
58
+ deny?: DescribePolicyGovernanceInClusterResponseBodyViolationTotalViolationsDeny[];
59
+ warn?: DescribePolicyGovernanceInClusterResponseBodyViolationTotalViolationsWarn[];
163
60
  static names(): { [key: string]: string } {
164
61
  return {
165
- enabledCount: 'enabled_count',
166
- severity: 'severity',
167
- total: 'total',
62
+ deny: 'deny',
63
+ warn: 'warn',
168
64
  };
169
65
  }
170
66
 
171
67
  static types(): { [key: string]: any } {
172
68
  return {
173
- enabledCount: 'number',
174
- severity: 'string',
175
- total: 'number',
69
+ deny: { 'type': 'array', 'itemType': DescribePolicyGovernanceInClusterResponseBodyViolationTotalViolationsDeny },
70
+ warn: { 'type': 'array', 'itemType': DescribePolicyGovernanceInClusterResponseBodyViolationTotalViolationsWarn },
176
71
  };
177
72
  }
178
73
 
179
74
  validate() {
75
+ if(Array.isArray(this.deny)) {
76
+ $dara.Model.validateArray(this.deny);
77
+ }
78
+ if(Array.isArray(this.warn)) {
79
+ $dara.Model.validateArray(this.warn);
80
+ }
180
81
  super.validate();
181
82
  }
182
83
 
@@ -185,25 +86,15 @@ export class DescribePolicyGovernanceInClusterResponseBodyOnState extends $dara.
185
86
  }
186
87
  }
187
88
 
188
- export class DescribePolicyGovernanceInClusterResponseBodyTotalViolationsDeny extends $dara.Model {
189
- /**
190
- * @remarks
191
- * The severity level of the policy.
192
- *
193
- * @example
194
- * high
195
- */
89
+ export class DescribePolicyGovernanceInClusterResponseBodyViolationViolationsDeny extends $dara.Model {
90
+ policyDescription?: string;
91
+ policyName?: string;
196
92
  severity?: string;
197
- /**
198
- * @remarks
199
- * The number of blocking events that are triggered.
200
- *
201
- * @example
202
- * 0
203
- */
204
93
  violations?: number;
205
94
  static names(): { [key: string]: string } {
206
95
  return {
96
+ policyDescription: 'policyDescription',
97
+ policyName: 'policyName',
207
98
  severity: 'severity',
208
99
  violations: 'violations',
209
100
  };
@@ -211,6 +102,8 @@ export class DescribePolicyGovernanceInClusterResponseBodyTotalViolationsDeny ex
211
102
 
212
103
  static types(): { [key: string]: any } {
213
104
  return {
105
+ policyDescription: 'string',
106
+ policyName: 'string',
214
107
  severity: 'string',
215
108
  violations: 'number',
216
109
  };
@@ -225,25 +118,15 @@ export class DescribePolicyGovernanceInClusterResponseBodyTotalViolationsDeny ex
225
118
  }
226
119
  }
227
120
 
228
- export class DescribePolicyGovernanceInClusterResponseBodyTotalViolationsWarn extends $dara.Model {
229
- /**
230
- * @remarks
231
- * The severity level of the policy.
232
- *
233
- * @example
234
- * low
235
- */
121
+ export class DescribePolicyGovernanceInClusterResponseBodyViolationViolationsWarn extends $dara.Model {
122
+ policyDescription?: string;
123
+ policyName?: string;
236
124
  severity?: string;
237
- /**
238
- * @remarks
239
- * The number of alerting events that are triggered.
240
- *
241
- * @example
242
- * 5
243
- */
244
125
  violations?: number;
245
126
  static names(): { [key: string]: string } {
246
127
  return {
128
+ policyDescription: 'policyDescription',
129
+ policyName: 'policyName',
247
130
  severity: 'severity',
248
131
  violations: 'violations',
249
132
  };
@@ -251,6 +134,8 @@ export class DescribePolicyGovernanceInClusterResponseBodyTotalViolationsWarn ex
251
134
 
252
135
  static types(): { [key: string]: any } {
253
136
  return {
137
+ policyDescription: 'string',
138
+ policyName: 'string',
254
139
  severity: 'string',
255
140
  violations: 'number',
256
141
  };
@@ -265,17 +150,9 @@ export class DescribePolicyGovernanceInClusterResponseBodyTotalViolationsWarn ex
265
150
  }
266
151
  }
267
152
 
268
- export class DescribePolicyGovernanceInClusterResponseBodyTotalViolations extends $dara.Model {
269
- /**
270
- * @remarks
271
- * Details about the blocking events that are triggered by the policies of each severity level.
272
- */
273
- deny?: DescribePolicyGovernanceInClusterResponseBodyTotalViolationsDeny;
274
- /**
275
- * @remarks
276
- * Details about the alerting events that are triggered by the policies of each severity level.
277
- */
278
- warn?: DescribePolicyGovernanceInClusterResponseBodyTotalViolationsWarn;
153
+ export class DescribePolicyGovernanceInClusterResponseBodyViolationViolations extends $dara.Model {
154
+ deny?: DescribePolicyGovernanceInClusterResponseBodyViolationViolationsDeny[];
155
+ warn?: DescribePolicyGovernanceInClusterResponseBodyViolationViolationsWarn[];
279
156
  static names(): { [key: string]: string } {
280
157
  return {
281
158
  deny: 'deny',
@@ -285,17 +162,17 @@ export class DescribePolicyGovernanceInClusterResponseBodyTotalViolations extend
285
162
 
286
163
  static types(): { [key: string]: any } {
287
164
  return {
288
- deny: DescribePolicyGovernanceInClusterResponseBodyTotalViolationsDeny,
289
- warn: DescribePolicyGovernanceInClusterResponseBodyTotalViolationsWarn,
165
+ deny: { 'type': 'array', 'itemType': DescribePolicyGovernanceInClusterResponseBodyViolationViolationsDeny },
166
+ warn: { 'type': 'array', 'itemType': DescribePolicyGovernanceInClusterResponseBodyViolationViolationsWarn },
290
167
  };
291
168
  }
292
169
 
293
170
  validate() {
294
- if(this.deny && typeof (this.deny as any).validate === 'function') {
295
- (this.deny as any).validate();
171
+ if(Array.isArray(this.deny)) {
172
+ $dara.Model.validateArray(this.deny);
296
173
  }
297
- if(this.warn && typeof (this.warn as any).validate === 'function') {
298
- (this.warn as any).validate();
174
+ if(Array.isArray(this.warn)) {
175
+ $dara.Model.validateArray(this.warn);
299
176
  }
300
177
  super.validate();
301
178
  }
@@ -305,58 +182,30 @@ export class DescribePolicyGovernanceInClusterResponseBodyTotalViolations extend
305
182
  }
306
183
  }
307
184
 
308
- export class DescribePolicyGovernanceInClusterResponseBodyViolationsDeny extends $dara.Model {
309
- /**
310
- * @remarks
311
- * The policy description.
312
- *
313
- * @example
314
- * Requires container images to begin with a repo string from a specified list.
315
- */
316
- policyDescription?: string;
317
- /**
318
- * @remarks
319
- * The policy name.
320
- *
321
- * @example
322
- * policy-gatekeeper-ackallowedrepos
323
- */
324
- policyName?: string;
325
- /**
326
- * @remarks
327
- * The severity level of the policy.
328
- *
329
- * @example
330
- * high
331
- */
332
- severity?: string;
333
- /**
334
- * @remarks
335
- * The total number of blocking events that are triggered by the policy.
336
- *
337
- * @example
338
- * 11
339
- */
340
- violations?: number;
185
+ export class DescribePolicyGovernanceInClusterResponseBodyViolation extends $dara.Model {
186
+ totalViolations?: DescribePolicyGovernanceInClusterResponseBodyViolationTotalViolations;
187
+ violations?: DescribePolicyGovernanceInClusterResponseBodyViolationViolations;
341
188
  static names(): { [key: string]: string } {
342
189
  return {
343
- policyDescription: 'policyDescription',
344
- policyName: 'policyName',
345
- severity: 'severity',
190
+ totalViolations: 'totalViolations',
346
191
  violations: 'violations',
347
192
  };
348
193
  }
349
194
 
350
195
  static types(): { [key: string]: any } {
351
196
  return {
352
- policyDescription: 'string',
353
- policyName: 'string',
354
- severity: 'string',
355
- violations: 'number',
197
+ totalViolations: DescribePolicyGovernanceInClusterResponseBodyViolationTotalViolations,
198
+ violations: DescribePolicyGovernanceInClusterResponseBodyViolationViolations,
356
199
  };
357
200
  }
358
201
 
359
202
  validate() {
203
+ if(this.totalViolations && typeof (this.totalViolations as any).validate === 'function') {
204
+ (this.totalViolations as any).validate();
205
+ }
206
+ if(this.violations && typeof (this.violations as any).validate === 'function') {
207
+ (this.violations as any).validate();
208
+ }
360
209
  super.validate();
361
210
  }
362
211
 
@@ -365,58 +214,118 @@ export class DescribePolicyGovernanceInClusterResponseBodyViolationsDeny extends
365
214
  }
366
215
  }
367
216
 
368
- export class DescribePolicyGovernanceInClusterResponseBodyViolationsWarn extends $dara.Model {
369
- /**
370
- * @remarks
371
- * The policy description.
372
- *
373
- * @example
374
- * Controls Linux capabilities.
375
- */
376
- policyDescription?: string;
217
+ export class DescribePolicyGovernanceInClusterResponseBodyAdmitLogLogs extends $dara.Model {
218
+ clusterId?: string;
219
+ constraintAction?: string;
220
+ constraintApiVersion?: string;
221
+ constraintCategory?: string;
222
+ constraintGroup?: string;
223
+ constraintKind?: string;
224
+ constraintName?: string;
225
+ eventMsg?: string;
226
+ eventType?: string;
227
+ requestUid?: string;
228
+ requestUserinfo?: string;
229
+ requestUsername?: string;
230
+ resourceKind?: string;
231
+ resourceName?: string;
232
+ time?: string;
233
+ static names(): { [key: string]: string } {
234
+ return {
235
+ clusterId: 'cluster_id',
236
+ constraintAction: 'constraint_action',
237
+ constraintApiVersion: 'constraint_api_version',
238
+ constraintCategory: 'constraint_category',
239
+ constraintGroup: 'constraint_group',
240
+ constraintKind: 'constraint_kind',
241
+ constraintName: 'constraint_name',
242
+ eventMsg: 'event_msg',
243
+ eventType: 'event_type',
244
+ requestUid: 'request_uid',
245
+ requestUserinfo: 'request_userinfo',
246
+ requestUsername: 'request_username',
247
+ resourceKind: 'resource_kind',
248
+ resourceName: 'resource_name',
249
+ time: 'time',
250
+ };
251
+ }
252
+
253
+ static types(): { [key: string]: any } {
254
+ return {
255
+ clusterId: 'string',
256
+ constraintAction: 'string',
257
+ constraintApiVersion: 'string',
258
+ constraintCategory: 'string',
259
+ constraintGroup: 'string',
260
+ constraintKind: 'string',
261
+ constraintName: 'string',
262
+ eventMsg: 'string',
263
+ eventType: 'string',
264
+ requestUid: 'string',
265
+ requestUserinfo: 'string',
266
+ requestUsername: 'string',
267
+ resourceKind: 'string',
268
+ resourceName: 'string',
269
+ time: 'string',
270
+ };
271
+ }
272
+
273
+ validate() {
274
+ super.validate();
275
+ }
276
+
277
+ constructor(map?: { [key: string]: any }) {
278
+ super(map);
279
+ }
280
+ }
281
+
282
+ export class DescribePolicyGovernanceInClusterResponseBodyAdmitLog extends $dara.Model {
377
283
  /**
378
284
  * @remarks
379
- * The policy name.
285
+ * The number of audit log entries.
380
286
  *
381
287
  * @example
382
- * policy-gatekeeper-ackpspcapabilities
288
+ * 100
383
289
  */
384
- policyName?: string;
290
+ count?: number;
291
+ logProject?: string;
292
+ logStore?: string;
293
+ logs?: DescribePolicyGovernanceInClusterResponseBodyAdmitLogLogs[];
385
294
  /**
386
295
  * @remarks
387
- * The severity level of the policy.
296
+ * The status of the query. Valid values:
388
297
  *
389
- * @example
390
- * high
391
- */
392
- severity?: string;
393
- /**
394
- * @remarks
395
- * The total number of alerting events that are triggered by the policy.
298
+ * * `Complete`: The query succeeded and the complete query result is returned.
299
+ * * `Incomplete`: The query succeeded but the query result is incomplete. To obtain the complete query result, you must repeat the request.
396
300
  *
397
301
  * @example
398
- * 81
302
+ * Complete
399
303
  */
400
- violations?: number;
304
+ progress?: string;
401
305
  static names(): { [key: string]: string } {
402
306
  return {
403
- policyDescription: 'policyDescription',
404
- policyName: 'policyName',
405
- severity: 'severity',
406
- violations: 'violations',
307
+ count: 'count',
308
+ logProject: 'log_project',
309
+ logStore: 'log_store',
310
+ logs: 'logs',
311
+ progress: 'progress',
407
312
  };
408
313
  }
409
314
 
410
315
  static types(): { [key: string]: any } {
411
316
  return {
412
- policyDescription: 'string',
413
- policyName: 'string',
414
- severity: 'string',
415
- violations: 'number',
317
+ count: 'number',
318
+ logProject: 'string',
319
+ logStore: 'string',
320
+ logs: { 'type': 'array', 'itemType': DescribePolicyGovernanceInClusterResponseBodyAdmitLogLogs },
321
+ progress: 'string',
416
322
  };
417
323
  }
418
324
 
419
325
  validate() {
326
+ if(Array.isArray(this.logs)) {
327
+ $dara.Model.validateArray(this.logs);
328
+ }
420
329
  super.validate();
421
330
  }
422
331
 
@@ -425,38 +334,48 @@ export class DescribePolicyGovernanceInClusterResponseBodyViolationsWarn extends
425
334
  }
426
335
  }
427
336
 
428
- export class DescribePolicyGovernanceInClusterResponseBodyViolations extends $dara.Model {
337
+ export class DescribePolicyGovernanceInClusterResponseBodyOnState extends $dara.Model {
429
338
  /**
430
339
  * @remarks
431
- * Details about the blocking events that are triggered by each policy.
340
+ * The number of policies that are enabled.
341
+ *
342
+ * @example
343
+ * 3
432
344
  */
433
- deny?: DescribePolicyGovernanceInClusterResponseBodyViolationsDeny;
345
+ enabledCount?: number;
434
346
  /**
435
347
  * @remarks
436
- * Details about the alerting events that are triggered by the policies of each severity level.
348
+ * The severity level of the policy.
349
+ *
350
+ * @example
351
+ * high
437
352
  */
438
- warn?: DescribePolicyGovernanceInClusterResponseBodyViolationsWarn;
353
+ severity?: string;
354
+ /**
355
+ * @remarks
356
+ * The total number of policies of the severity level.
357
+ *
358
+ * @example
359
+ * 8
360
+ */
361
+ total?: number;
439
362
  static names(): { [key: string]: string } {
440
363
  return {
441
- deny: 'deny',
442
- warn: 'warn',
364
+ enabledCount: 'enabled_count',
365
+ severity: 'severity',
366
+ total: 'total',
443
367
  };
444
368
  }
445
369
 
446
370
  static types(): { [key: string]: any } {
447
371
  return {
448
- deny: DescribePolicyGovernanceInClusterResponseBodyViolationsDeny,
449
- warn: DescribePolicyGovernanceInClusterResponseBodyViolationsWarn,
372
+ enabledCount: 'number',
373
+ severity: 'string',
374
+ total: 'number',
450
375
  };
451
376
  }
452
377
 
453
378
  validate() {
454
- if(this.deny && typeof (this.deny as any).validate === 'function') {
455
- (this.deny as any).validate();
456
- }
457
- if(this.warn && typeof (this.warn as any).validate === 'function') {
458
- (this.warn as any).validate();
459
- }
460
379
  super.validate();
461
380
  }
462
381
 
@@ -466,6 +385,7 @@ export class DescribePolicyGovernanceInClusterResponseBodyViolations extends $da
466
385
  }
467
386
 
468
387
  export class DescribePolicyGovernanceInClusterResponseBody extends $dara.Model {
388
+ violation?: DescribePolicyGovernanceInClusterResponseBodyViolation;
469
389
  /**
470
390
  * @remarks
471
391
  * The audit logs of the policies in the cluster.
@@ -476,47 +396,32 @@ export class DescribePolicyGovernanceInClusterResponseBody extends $dara.Model {
476
396
  * Details about the policies of different severity levels that are enabled for the cluster.
477
397
  */
478
398
  onState?: DescribePolicyGovernanceInClusterResponseBodyOnState[];
479
- /**
480
- * @remarks
481
- * Details about the blocking and alerting events that are triggered by policies of different severity levels.
482
- */
483
- totalViolations?: DescribePolicyGovernanceInClusterResponseBodyTotalViolations;
484
- /**
485
- * @remarks
486
- * Details about the blocking and alerting events that are triggered by different policies.
487
- */
488
- violations?: DescribePolicyGovernanceInClusterResponseBodyViolations;
489
399
  static names(): { [key: string]: string } {
490
400
  return {
401
+ violation: 'Violation',
491
402
  admitLog: 'admit_log',
492
403
  onState: 'on_state',
493
- totalViolations: 'totalViolations',
494
- violations: 'violations',
495
404
  };
496
405
  }
497
406
 
498
407
  static types(): { [key: string]: any } {
499
408
  return {
409
+ violation: DescribePolicyGovernanceInClusterResponseBodyViolation,
500
410
  admitLog: DescribePolicyGovernanceInClusterResponseBodyAdmitLog,
501
411
  onState: { 'type': 'array', 'itemType': DescribePolicyGovernanceInClusterResponseBodyOnState },
502
- totalViolations: DescribePolicyGovernanceInClusterResponseBodyTotalViolations,
503
- violations: DescribePolicyGovernanceInClusterResponseBodyViolations,
504
412
  };
505
413
  }
506
414
 
507
415
  validate() {
416
+ if(this.violation && typeof (this.violation as any).validate === 'function') {
417
+ (this.violation as any).validate();
418
+ }
508
419
  if(this.admitLog && typeof (this.admitLog as any).validate === 'function') {
509
420
  (this.admitLog as any).validate();
510
421
  }
511
422
  if(Array.isArray(this.onState)) {
512
423
  $dara.Model.validateArray(this.onState);
513
424
  }
514
- if(this.totalViolations && typeof (this.totalViolations as any).validate === 'function') {
515
- (this.totalViolations as any).validate();
516
- }
517
- if(this.violations && typeof (this.violations as any).validate === 'function') {
518
- (this.violations as any).validate();
519
- }
520
425
  super.validate();
521
426
  }
522
427