@rork8s/ror-resources 1.2.0-rc11 → 1.2.0-rc13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/resources.ts CHANGED
@@ -14,205 +14,15 @@ export enum VulnerabilityDismissalReason {
14
14
  export enum ResourceTagProperties {
15
15
  color = 'color',
16
16
  }
17
- export interface ResourceBackupJobSpec {
18
- name: string;
19
- status: string;
20
- policyId: string;
21
- schedules: ResourceBackupSchedule[];
22
- activeTargets: ResourceBackupTarget[];
23
- indirectBackupTargets: ResourceIndirectBackupTarget[];
24
- backupDestinations: ResourceBackupDestination[];
25
- }
26
- export interface ResourceBackupStorage {
27
- unit: string;
28
- sourceSize: number;
29
- logicalSize: number;
30
- physicalSize: number;
31
- }
32
- export interface ResourceBackupRunDestination {
33
- name: string;
34
- id: string;
35
- type: string;
36
- status: string;
37
- expiryTime: Time;
38
- }
39
- export interface ResourceBackupRun {
40
- id: string;
41
- backupTargets: ResourceBackupTarget[];
42
- backupDestinations: ResourceBackupRunDestination[];
43
- startTime: Time;
44
- endTime: Time;
45
- expiryTime: Time;
46
- backupStorage: ResourceBackupStorage;
47
- }
48
- export interface ResourceBackupDestination {
49
- name: string;
50
- id: string;
51
- type: string;
52
- status: string;
53
- }
54
- export interface ResourceIndirectBackupTarget {
55
- type: string;
56
- ids: string[];
57
- keyValues: { [key: string]: string[] };
58
- }
59
- export interface ResourceBackupSource {
60
- name: string;
61
- id: string;
62
- uuid: string;
63
- type: string;
64
- }
65
- export interface ResourceBackupTarget {
66
- name: string;
67
- id: string;
68
- externalId: string;
69
- source?: ResourceBackupSource;
70
- }
71
- export interface ResourceBackupRetention {
72
- unit: string;
73
- duration: number;
74
- }
75
- export interface ResourceBackupSchedule {
76
- startTime: string;
77
- endTime: string;
78
- frequency: number;
79
- unit: string;
80
- retention: ResourceBackupRetention;
81
- }
82
- export interface ResourceBackupJobStatus {
83
- name: string;
84
- status: string;
85
- policyId: string;
86
- schedules: ResourceBackupSchedule[];
87
- activeTargets: ResourceBackupTarget[];
88
- indirectBackupTargets: ResourceIndirectBackupTarget[];
89
- backupDestinations: ResourceBackupDestination[];
90
- location: string;
91
- lastUpdated: Time;
92
- policyName: string;
93
- runs: ResourceBackupRun[];
94
- }
95
- export interface ResourceBackupJob {
96
- id: string;
97
- provider: string;
98
- source: string;
99
- status: ResourceBackupJobStatus;
100
- spec: ResourceBackupJobSpec;
101
- }
102
- export interface DatacenterLocation {
103
- id: string;
104
- region: string;
105
- country: string;
106
- }
107
- export interface Datacenter {
108
- id: string;
109
- name: string;
110
- provider: string;
111
- location: DatacenterLocation;
112
- apiEndpoint: string;
113
- }
114
- export interface ResourceDatacenter {
115
- spec: ResourceDaemonSetStatus;
116
- legacy: Datacenter;
17
+ export interface ResourceVulnerabilityReport {
18
+ report: ResourceVulnerabilityReportReport;
117
19
  }
118
- export interface ResourceNetworkPolicyCondition {
119
- lastTransitionTime: string;
20
+ export interface ResourceVulnerabilityEventSpec {
21
+ owner: RorResourceOwnerReference;
120
22
  message: string;
121
- observedGeneration: number;
122
- reason: string;
123
- status: string;
124
- type: string;
125
- }
126
- export interface ResourceNetworkPolicyStatus {
127
- conditions: ResourceNetworkPolicyCondition[];
128
- }
129
- export interface ResourceNetworkPolicyPodSelector {
130
- matchLabels: { [key: string]: string };
131
- }
132
- export interface ResourceNetworkPolicyIngressRule {
133
- from: ResourceNetworkPolicyPeer[];
134
- ports: ResourceNetworkPolicyPort[];
135
- }
136
- export interface ResourceNetworkPolicySelectorExpression {
137
- key: string;
138
- operator: string;
139
- values: string[];
140
- }
141
- export interface ResourceNetworkPolicySelector {
142
- matchExpressions: ResourceNetworkPolicySelectorExpression[];
143
- matchLabels: { [key: string]: string };
144
- }
145
- export interface ResourceNetworkPolicyIpBlock {
146
- cidr: string;
147
- except: string[];
148
- }
149
- export interface ResourceNetworkPolicyPeer {
150
- ipBlock?: ResourceNetworkPolicyIpBlock;
151
- namespaceSelector?: ResourceNetworkPolicySelector;
152
- podSelector?: ResourceNetworkPolicySelector;
153
- }
154
- export interface ResourceNetworkPolicyPort {
155
- endPort: number;
156
- port: IntOrString;
157
- protocol: string;
158
- }
159
- export interface ResourceNetworkPolicyEgressRule {
160
- ports: ResourceNetworkPolicyPort[];
161
- to: ResourceNetworkPolicyPeer[];
162
- }
163
- export interface ResourceNetworkPolicySpec {
164
- egress: ResourceNetworkPolicyEgressRule[];
165
- ingress: ResourceNetworkPolicyIngressRule[];
166
- podSelector: ResourceNetworkPolicyPodSelector;
167
- policyTypes: string[];
168
- }
169
- export interface ResourceNetworkPolicy {
170
- spec: ResourceNetworkPolicySpec;
171
- status: ResourceNetworkPolicyStatus;
172
- }
173
- export interface ResourceEndpointSpecSubsetsPorts {
174
- appProtocol?: string;
175
- name?: string;
176
- port?: number;
177
- protocol?: string;
178
- }
179
- export interface ResourceEndpointSpecSubsetsNotReadyAddressesTargetRef {
180
- apiVersion?: string;
181
- fieldPath?: string;
182
- kind?: string;
183
- name?: string;
184
- namespace?: string;
185
- resourceVersion?: string;
186
- uid?: string;
187
- }
188
- export interface ResourceEndpointSpecSubsetsNotReadyAddresses {
189
- hostname?: string;
190
- ip?: string;
191
- nodeName?: string;
192
- targetRef?: ResourceEndpointSpecSubsetsNotReadyAddressesTargetRef;
193
- }
194
- export interface ResourceEndpointSpecSubsetsAddressesTargetRef {
195
- apiVersion?: string;
196
- fieldPath?: string;
197
- kind?: string;
198
- name?: string;
199
- namespace?: string;
200
- resourceVersion?: string;
201
- uid?: string;
202
- }
203
- export interface ResourceEndpointSpecSubsetsAddresses {
204
- hostname?: string;
205
- ip?: string;
206
- nodeName?: string;
207
- targetRef?: ResourceEndpointSpecSubsetsAddressesTargetRef;
208
- }
209
- export interface ResourceEndpointSpecSubsets {
210
- addresses?: ResourceEndpointSpecSubsetsAddresses[];
211
- notReadyAddresses?: ResourceEndpointSpecSubsetsNotReadyAddresses[];
212
- ports?: ResourceEndpointSpecSubsetsPorts[];
213
23
  }
214
- export interface ResourceEndpoints {
215
- subsets?: ResourceEndpointSpecSubsets[];
24
+ export interface ResourceVulnerabilityEvent {
25
+ spec: ResourceVulnerabilityEventSpec;
216
26
  }
217
27
  export interface ResourceVirtualMachineOperatingSystemStatus {
218
28
  id: string;
@@ -298,293 +108,43 @@ export interface ResourceVirtualMachine {
298
108
  status: ResourceVirtualMachineStatus;
299
109
  provider: string;
300
110
  }
301
- export interface ResourceVulnerabilityEventSpec {
302
- owner: RorResourceOwnerReference;
303
- message: string;
304
- }
305
- export interface ResourceVulnerabilityEvent {
306
- spec: ResourceVulnerabilityEventSpec;
111
+ export interface ResourceVirtualMachineClassSpecHardwareInstanceStorage {
112
+ storageClass: string;
307
113
  }
308
- export interface ResourceSlackMessageStatus {
309
- result: number;
310
- timestamp: Time;
311
- error: any;
114
+ export interface ResourceVirtualMachineClassSpecHardware {
115
+ cpus: number;
116
+ instanceStorage: ResourceVirtualMachineClassSpecHardwareInstanceStorage;
312
117
  }
313
- export interface ResourceSlackMessageSpec {
314
- channelId: string;
315
- message: string;
118
+ export interface ResourceVirtualMachineClassSpec {
119
+ description: string;
120
+ hardware: ResourceVirtualMachineClassSpecHardware;
316
121
  }
317
- export interface ResourceSlackMessage {
318
- spec: ResourceSlackMessageSpec;
319
- status: ResourceSlackMessageStatus[];
122
+ export interface ResourceVirtualMachineClass {
123
+ spec: ResourceVirtualMachineClassSpec;
124
+ status: { [key: string]: string };
320
125
  }
321
- export interface ResourceRouteSlackReceiver {
322
- channelId: string;
126
+ export interface ResourceTanzuKubernetesReleaseStatusCondition {
127
+ lastTransitionTime: string;
128
+ message: string;
129
+ reason: string;
130
+ severity: string;
131
+ status: string;
132
+ type: string;
323
133
  }
324
- export interface ResourceRouteReceiver {
325
- slack: ResourceRouteSlackReceiver[];
134
+ export interface ResourceTanzuKubernetesReleaseStatus {
135
+ conditions: ResourceTanzuKubernetesReleaseStatusCondition[];
326
136
  }
327
- export interface ResourceRouteMessageType {
137
+ export interface ResourceTanzuKubernetesReleaseSpecNodeImageRef {
328
138
  apiVersion: string;
139
+ fieldPath: string;
329
140
  kind: string;
141
+ namespace: string;
142
+ uid: string;
330
143
  }
331
- export interface ResourceRouteSpec {
332
- messageType: ResourceRouteMessageType;
333
- receivers: ResourceRouteReceiver;
334
- }
335
- export interface ResourceRoute {
336
- spec: ResourceRouteSpec;
337
- }
338
- export interface ResourceClusterVulnerabilityReportReportStatus {
339
- status: VulnerabilityStatus;
340
- until?: Time;
341
- reason?: VulnerabilityDismissalReason;
342
- comment?: string;
343
- riskAssessment?: string;
344
- }
345
- export interface ResourceClusterVulnerabilityReportReportOwner {
346
- digest: string;
347
- repository: string;
348
- tag: string;
349
- resource: string;
350
- installedVersion: string;
351
- fixedVersion: string;
352
- namespace: string;
353
- ownerReferences: OwnerReference[];
354
- }
355
- export interface ResourceClusterVulnerabilityReportReport {
356
- severity: string;
357
- score: number;
358
- title: string;
359
- primaryLink: string;
360
- firstObserved: Time;
361
- lastObserved: Time;
362
- owners: ResourceClusterVulnerabilityReportReportOwner[];
363
- status: ResourceClusterVulnerabilityReportReportStatus;
364
- }
365
- export interface ResourceClusterVulnerabilityReportSummary {
366
- critical: number;
367
- high: number;
368
- medium: number;
369
- low: number;
370
- unknown: number;
371
- }
372
- export interface ResourceClusterVulnerabilityReport {
373
- summary: ResourceClusterVulnerabilityReportSummary;
374
- report: { [key: string]: ResourceClusterVulnerabilityReportReport };
375
- }
376
- export interface ResourceClusterComplianceReport {}
377
- export interface ResourceConfigurationSpec {
378
- type: string;
379
- b64enc: boolean;
380
- data: string;
381
- }
382
- export interface ResourceConfiguration {
383
- spec: ResourceConfigurationSpec;
384
- }
385
- export interface ResourceProjectSpecRole {
386
- upn: string;
387
- name: string;
388
- role: string;
389
- email: string;
390
- phone: string;
391
- }
392
- export interface ResourceProjectSpec {
393
- projectName: string;
394
- description: string;
395
- active: boolean;
396
- createdTime: string;
397
- updatedTime: string;
398
- roles: ResourceProjectSpecRole[];
399
- workorder: string;
400
- serviceTag: string;
401
- tags: string[];
402
- }
403
- export interface ResourceProject {
404
- spec: ResourceProjectSpec;
405
- }
406
- export interface ResourceKubernetesClusterOrderStatusCondition {
407
- type: string;
408
- status: string;
409
- lastTransitionTime: string;
410
- reason: string;
411
- message: string;
412
- }
413
- export interface ResourceClusterOrderStatus {
414
- status: string;
415
- phase: string;
416
- conditions: ResourceKubernetesClusterOrderStatusCondition[];
417
- createdTime: string;
418
- updatedTime: string;
419
- lastObservedTime: string;
420
- }
421
- export interface ResourceClusterOrderSpecNodePool {
422
- name: string;
423
- machineClass: string;
424
- count: number;
425
- }
426
- export interface ResourceClusterOrderSpec {
427
- provider: string;
428
- clusterName: string;
429
- projectId: string;
430
- orderBy: string;
431
- environment: number;
432
- criticality: number;
433
- sensitivity: number;
434
- highAvailability: boolean;
435
- nodePools: ResourceClusterOrderSpecNodePool[];
436
- serviceTags?: { [key: string]: string };
437
- providerConfig?: { [key: string]: any };
438
- ownerGroup: string;
439
- }
440
- export interface ResourceClusterOrder {
441
- spec: ResourceClusterOrderSpec;
442
- status: ResourceClusterOrderStatus;
443
- }
444
- export interface Condition {
445
- type: string;
446
- status: string;
447
- lastTransitionTime: string;
448
- reason: string;
449
- message: string;
450
- }
451
- export interface Time {}
452
- export interface Version {
453
- name: string;
454
- version: string;
455
- branch: string;
456
- }
457
- export interface NodePoolStatus {
458
- name: string;
459
- status: string;
460
- message: string;
461
- }
462
- export interface WorkerStatus {
463
- nodepools: NodePoolStatus[];
464
- }
465
- export interface ControlPlaneStatus {
466
- status: string;
467
- message: string;
468
- }
469
- export interface Resource {
470
- name: string;
471
- allocated: string;
472
- usage: string;
473
- }
474
- export interface ClusterDetails {
475
- externalId: string;
476
- resources: Resource[];
477
- controlplane: ControlPlaneStatus;
478
- workers: WorkerStatus;
479
- }
480
- export interface ClusterState {
481
- cluster: ClusterDetails;
482
- versions: Version[];
483
- controlplaneendpoint: string;
484
- egressIP: string;
485
- lastUpdated: Time;
486
- lastUpdatedBy: string;
487
- created: Time;
488
- }
489
- export interface KubernetesClusterStatus {
490
- state: ClusterState;
491
- phase: string;
492
- conditions: Condition[];
493
- }
494
- export interface Autoscaling {
495
- enabled: boolean;
496
- minReplicas: number;
497
- maxReplicas: number;
498
- scalingRules: string[];
499
- }
500
- export interface NodePool {
501
- machineClass: string;
502
- provider: string;
503
- name: string;
504
- replicas: number;
505
- autoscaling: Autoscaling;
506
- metadata: MetadataDetails;
507
- }
508
- export interface Workers {
509
- nodePools: NodePool[];
510
- }
511
- export interface Storage {
512
- class: string;
513
- path: string;
514
- size: string;
515
- }
516
- export interface MetadataDetails {
517
- labels: { [key: string]: string };
518
- annotations: { [key: string]: string };
519
- }
520
- export interface ControlPlane {
521
- replicas: number;
522
- provider: string;
523
- machineClass: string;
524
- metadata: MetadataDetails;
525
- storage: Storage[];
526
- }
527
- export interface KubernetesClusterSpecTopology {
528
- version: string;
529
- controlplane: ControlPlane;
530
- workers: Workers;
531
- }
532
- export interface KubernetesClusterSpecData {
533
- clusterId: string;
534
- provider: string;
535
- datacenter: string;
536
- region: string;
537
- zone: string;
538
- project: string;
539
- workspace: string;
540
- workorder: string;
541
- environment: string;
542
- }
543
- export interface KubernetesClusterSpec {
544
- data?: KubernetesClusterSpecData;
545
- topology?: KubernetesClusterSpecTopology;
546
- }
547
- export interface ResourceKubernetesCluster {
548
- spec: KubernetesClusterSpec;
549
- status?: KubernetesClusterStatus;
550
- }
551
- export interface ResourceVirtualMachineClassSpecHardwareInstanceStorage {
552
- storageClass: string;
553
- }
554
- export interface ResourceVirtualMachineClassSpecHardware {
555
- cpus: number;
556
- instanceStorage: ResourceVirtualMachineClassSpecHardwareInstanceStorage;
557
- }
558
- export interface ResourceVirtualMachineClassSpec {
559
- description: string;
560
- hardware: ResourceVirtualMachineClassSpecHardware;
561
- }
562
- export interface ResourceVirtualMachineClass {
563
- spec: ResourceVirtualMachineClassSpec;
564
- status: { [key: string]: string };
565
- }
566
- export interface ResourceTanzuKubernetesReleaseStatusCondition {
567
- lastTransitionTime: string;
568
- message: string;
569
- reason: string;
570
- severity: string;
571
- status: string;
572
- type: string;
573
- }
574
- export interface ResourceTanzuKubernetesReleaseStatus {
575
- conditions: ResourceTanzuKubernetesReleaseStatusCondition[];
576
- }
577
- export interface ResourceTanzuKubernetesReleaseSpecNodeImageRef {
578
- apiVersion: string;
579
- fieldPath: string;
580
- kind: string;
581
- namespace: string;
582
- uid: string;
583
- }
584
- export interface ResourceTanzuKubernetesReleaseSpecImage {
585
- name: string;
586
- repository: string;
587
- tag: string;
144
+ export interface ResourceTanzuKubernetesReleaseSpecImage {
145
+ name: string;
146
+ repository: string;
147
+ tag: string;
588
148
  }
589
149
  export interface ResourceTanzuKubernetesReleaseSpec {
590
150
  images: ResourceTanzuKubernetesReleaseSpecImage[];
@@ -720,65 +280,432 @@ export interface ResourceTanzuKubernetesCluster {
720
280
  spec: ResourceTanuzKuberntesClusterSpec;
721
281
  status?: ResourceTanzuKubernetesClusterStatus;
722
282
  }
723
- export interface ResourceRbacAssessmentReport {
724
- report: ResourceVulnerabilityReportReport;
283
+ export interface ResourceStorageClass {
284
+ allowVolumeExpansion: boolean;
285
+ provisioner: string;
286
+ reclaimPolicy: string;
287
+ volumeBindingMode: string;
725
288
  }
726
- export interface ResourceConfigAuditReport {
727
- report: ResourceVulnerabilityReportReport;
289
+ export interface ResourceStatefulSetStatus {
290
+ replicas: number;
291
+ availableReplicas: number;
292
+ currentReplicas: number;
293
+ readyReplicas: number;
294
+ updatedReplicas: number;
728
295
  }
729
- export interface ResourceExposedSecretReport {
730
- report: ResourceVulnerabilityReportReport;
296
+ export interface ResourceStatefulSet {
297
+ status: ResourceStatefulSetStatus;
731
298
  }
732
- export interface ResourceVulnerabilityReportReportVulnerability {
733
- vulnerabilityID: string;
734
- severity: string;
735
- score: number;
736
- title: string;
737
- resource: string;
738
- primaryLink: string;
739
- installedVersion: string;
740
- fixedVersion: string;
299
+ export interface ResourceSlackMessageStatus {
300
+ result: number;
301
+ timestamp: Time;
302
+ error: any;
741
303
  }
742
- export interface ResourceVulnerabilityReportReportArtifact {
743
- digest: string;
744
- repository: string;
745
- tag: string;
304
+ export interface ResourceSlackMessageSpec {
305
+ channelId: string;
306
+ message: string;
746
307
  }
747
- export interface AquaReportScanner {
308
+ export interface ResourceSlackMessage {
309
+ spec: ResourceSlackMessageSpec;
310
+ status: ResourceSlackMessageStatus[];
311
+ }
312
+ export interface ResourceServicePorts {
313
+ appProtocol: string;
748
314
  name: string;
749
- vendor: string;
750
- version: string;
315
+ port: number;
316
+ protocol: string;
317
+ targetPort: IntOrString;
751
318
  }
752
- export interface AquaReportSummary {
753
- criticalCount: number;
754
- highCount: number;
755
- lowCount: number;
756
- mediumCount: number;
757
- total?: number;
319
+ export interface ResourceServiceSpec {
320
+ type: string;
321
+ selector: { [key: string]: string };
322
+ ports: ResourceServicePorts[];
323
+ clusterIP: string;
324
+ clusterIPs: string[];
325
+ externalIPs?: string[];
326
+ externalName?: string;
327
+ ipFamilies: string[];
328
+ ipFamilyPolicy: string;
329
+ internalTrafficPolicy: string;
330
+ externalTrafficPolicy: string;
758
331
  }
759
- export interface ResourceVulnerabilityReportReport {
760
- summary: AquaReportSummary;
761
- scanner: AquaReportScanner;
762
- artifact: ResourceVulnerabilityReportReportArtifact;
763
- updateTimestamp: string;
764
- vulnerabilities: ResourceVulnerabilityReportReportVulnerability[];
332
+ export interface ResourceService {
333
+ spec: ResourceServiceSpec;
765
334
  }
766
- export interface ResourceVulnerabilityReport {
335
+ export interface ResourceRouteSlackReceiver {
336
+ channelId: string;
337
+ }
338
+ export interface ResourceRouteReceiver {
339
+ slack: ResourceRouteSlackReceiver[];
340
+ }
341
+ export interface ResourceRouteMessageType {
342
+ apiVersion: string;
343
+ kind: string;
344
+ }
345
+ export interface ResourceRouteSpec {
346
+ messageType: ResourceRouteMessageType;
347
+ receivers: ResourceRouteReceiver;
348
+ }
349
+ export interface ResourceRoute {
350
+ spec: ResourceRouteSpec;
351
+ }
352
+ export interface ResourceReplicaSetStatus {
353
+ availableReplicas: number;
354
+ readyReplicas: number;
355
+ replicas: number;
356
+ }
357
+ export interface ResourceReplicaSetSpecSelectorMatchExpressions {
358
+ key: string;
359
+ operator: string;
360
+ values: string[];
361
+ }
362
+ export interface ResourceReplicaSetSpecSelector {
363
+ matchExpressions: ResourceReplicaSetSpecSelectorMatchExpressions[];
364
+ matchLabels: { [key: string]: string };
365
+ }
366
+ export interface ResourceReplicaSetSpec {
367
+ replicas: number;
368
+ selector: ResourceReplicaSetSpecSelector;
369
+ }
370
+ export interface ResourceReplicaSet {
371
+ spec: ResourceReplicaSetSpec;
372
+ status: ResourceReplicaSetStatus;
373
+ }
374
+ export interface ResourceRbacAssessmentReport {
767
375
  report: ResourceVulnerabilityReportReport;
768
376
  }
769
- export interface ResourceIngressClassSpecParameters {
770
- apiGroup: string;
377
+ export interface ResourceProjectSpecRole {
378
+ upn: string;
379
+ name: string;
380
+ role: string;
381
+ email: string;
382
+ phone: string;
383
+ }
384
+ export interface ResourceProjectSpec {
385
+ projectName: string;
386
+ description: string;
387
+ active: boolean;
388
+ createdTime: string;
389
+ updatedTime: string;
390
+ roles: ResourceProjectSpecRole[];
391
+ workorder: string;
392
+ serviceTag: string;
393
+ tags: string[];
394
+ }
395
+ export interface ResourceProject {
396
+ spec: ResourceProjectSpec;
397
+ }
398
+ export interface ResourcePolicyReportSummary {
399
+ error: number;
400
+ fail: number;
401
+ pass: number;
402
+ skip: number;
403
+ warn: number;
404
+ }
405
+ export interface ResourcePolicyReportResultsResources {
406
+ uid: string;
407
+ apiVersion: string;
771
408
  kind: string;
772
409
  name: string;
773
- namespace: string;
774
- scope: string;
775
410
  }
776
- export interface ResourceIngressClassSpec {
777
- controller: string;
778
- parameters: ResourceIngressClassSpecParameters;
411
+ export interface ResourcePolicyReportResults {
412
+ policy: string;
413
+ message: string;
414
+ category: string;
415
+ properties: { [key: string]: string };
416
+ severity: string;
417
+ result: string;
418
+ resources: ResourcePolicyReportResultsResources[];
779
419
  }
780
- export interface ResourceIngressClass {
781
- spec: ResourceIngressClassSpec;
420
+ export interface ResourcePolicyReport {
421
+ results: ResourcePolicyReportResults[];
422
+ summary: ResourcePolicyReportSummary;
423
+ lastReported?: string;
424
+ }
425
+ export interface ResourcePodStatus {
426
+ message?: string;
427
+ phase?: string;
428
+ reason?: string;
429
+ startTime?: string;
430
+ }
431
+ export interface ResourcePodSpecContainersPorts {
432
+ name?: string;
433
+ containerPort?: number;
434
+ protocol?: string;
435
+ }
436
+ export interface ResourcePodSpecContainers {
437
+ name?: string;
438
+ image?: string;
439
+ ports?: ResourcePodSpecContainersPorts[];
440
+ }
441
+ export interface ResourcePodSpec {
442
+ containers?: ResourcePodSpecContainers[];
443
+ serviceAccountName?: string;
444
+ nodeName?: string;
445
+ }
446
+ export interface ResourcePod {
447
+ spec?: ResourcePodSpec;
448
+ status?: ResourcePodStatus;
449
+ }
450
+ export interface ResourcePersistentVolumeClaimStatus {
451
+ accessModes: string[];
452
+ capacity: { [key: string]: string };
453
+ phase: string;
454
+ }
455
+ export interface ResourcePersistentVolumeClaimSpecResources {
456
+ limits?: { [key: string]: string };
457
+ requests: { [key: string]: string };
458
+ }
459
+ export interface ResourcePersistentVolumeClaimSpec {
460
+ accessModes: string[];
461
+ resources: ResourcePersistentVolumeClaimSpecResources;
462
+ storageClassName: string;
463
+ volumeMode: string;
464
+ volumeName: string;
465
+ }
466
+ export interface ResourcePersistentVolumeClaim {
467
+ spec: ResourcePersistentVolumeClaimSpec;
468
+ status: ResourcePersistentVolumeClaimStatus;
469
+ }
470
+ export interface ResourceNodeStatusNodeinfo {
471
+ architecture: string;
472
+ bootID: string;
473
+ containerRuntimeVersion: string;
474
+ kernelVersion: string;
475
+ kubeProxyVersion: string;
476
+ kubeletVersion: string;
477
+ machineID: string;
478
+ operatingSystem: string;
479
+ osImage: string;
480
+ systemUUID: string;
481
+ }
482
+ export interface ResourceNodeStatusConditions {
483
+ lastHeartbeatTime: string;
484
+ lastTransitionTime: string;
485
+ message: string;
486
+ reason: string;
487
+ status: string;
488
+ type: string;
489
+ }
490
+ export interface ResourceNodeStatusCapacity {
491
+ cpu: string;
492
+ ephemeralStorage: string;
493
+ memory: string;
494
+ pods: string;
495
+ }
496
+ export interface ResourceNodeStatusAddresses {
497
+ address: string;
498
+ type: string;
499
+ }
500
+ export interface ResourceNodeStatus {
501
+ addresses: ResourceNodeStatusAddresses[];
502
+ capacity: ResourceNodeStatusCapacity;
503
+ conditions: ResourceNodeStatusConditions[];
504
+ nodeInfo: ResourceNodeStatusNodeinfo;
505
+ }
506
+ export interface ResourceNodeSpecTaints {
507
+ effect: string;
508
+ key: string;
509
+ }
510
+ export interface ResourceNodeSpec {
511
+ podCIDR?: string;
512
+ podCIDRs?: string[];
513
+ providerID?: string;
514
+ taints?: ResourceNodeSpecTaints[];
515
+ }
516
+ export interface ResourceNode {
517
+ spec: ResourceNodeSpec;
518
+ status: ResourceNodeStatus;
519
+ }
520
+ export interface ResourceNetworkPolicyCondition {
521
+ lastTransitionTime: string;
522
+ message: string;
523
+ observedGeneration: number;
524
+ reason: string;
525
+ status: string;
526
+ type: string;
527
+ }
528
+ export interface ResourceNetworkPolicyStatus {
529
+ conditions: ResourceNetworkPolicyCondition[];
530
+ }
531
+ export interface ResourceNetworkPolicyPodSelector {
532
+ matchLabels: { [key: string]: string };
533
+ }
534
+ export interface ResourceNetworkPolicyIngressRule {
535
+ from: ResourceNetworkPolicyPeer[];
536
+ ports: ResourceNetworkPolicyPort[];
537
+ }
538
+ export interface ResourceNetworkPolicySelectorExpression {
539
+ key: string;
540
+ operator: string;
541
+ values: string[];
542
+ }
543
+ export interface ResourceNetworkPolicySelector {
544
+ matchExpressions: ResourceNetworkPolicySelectorExpression[];
545
+ matchLabels: { [key: string]: string };
546
+ }
547
+ export interface ResourceNetworkPolicyIpBlock {
548
+ cidr: string;
549
+ except: string[];
550
+ }
551
+ export interface ResourceNetworkPolicyPeer {
552
+ ipBlock?: ResourceNetworkPolicyIpBlock;
553
+ namespaceSelector?: ResourceNetworkPolicySelector;
554
+ podSelector?: ResourceNetworkPolicySelector;
555
+ }
556
+ export interface IntOrString {
557
+ Type: number;
558
+ IntVal: number;
559
+ StrVal: string;
560
+ }
561
+ export interface ResourceNetworkPolicyPort {
562
+ endPort: number;
563
+ port: IntOrString;
564
+ protocol: string;
565
+ }
566
+ export interface ResourceNetworkPolicyEgressRule {
567
+ ports: ResourceNetworkPolicyPort[];
568
+ to: ResourceNetworkPolicyPeer[];
569
+ }
570
+ export interface ResourceNetworkPolicySpec {
571
+ egress: ResourceNetworkPolicyEgressRule[];
572
+ ingress: ResourceNetworkPolicyIngressRule[];
573
+ podSelector: ResourceNetworkPolicyPodSelector;
574
+ policyTypes: string[];
575
+ }
576
+ export interface ResourceNetworkPolicy {
577
+ spec: ResourceNetworkPolicySpec;
578
+ status: ResourceNetworkPolicyStatus;
579
+ }
580
+ export interface ResourceNamespace {}
581
+ export interface KubernetesClusterCondition {
582
+ type: string;
583
+ status: string;
584
+ lastTransitionTime: string;
585
+ reason: string;
586
+ message: string;
587
+ }
588
+ export interface KubernetesClusterVersion {
589
+ name: string;
590
+ version: string;
591
+ branch: string;
592
+ }
593
+ export interface KubernetesClusterAutoscalingConfig {
594
+ enabled: boolean;
595
+ minReplicas: number;
596
+ maxReplicas: number;
597
+ }
598
+ export interface KubernetesClusterNodePoolStatus {
599
+ name: string;
600
+ status: string;
601
+ message: string;
602
+ scale: number;
603
+ machineClass: string;
604
+ autoscaling: KubernetesClusterAutoscalingConfig;
605
+ resources: KubernetesClusterStatusClusterStatusResources;
606
+ }
607
+ export interface KubernetesClusterControlPlaneStatus {
608
+ status: string;
609
+ message: string;
610
+ scale: number;
611
+ machineClass: string;
612
+ resources: KubernetesClusterStatusClusterStatusResources;
613
+ }
614
+ export interface KubernetesClusterStatusPrice {
615
+ monthly: number;
616
+ yearly: number;
617
+ }
618
+ export interface Quantity {
619
+ Format: string;
620
+ }
621
+ export interface KubernetesClusterStatusClusterStatusResource {
622
+ capacity: Quantity;
623
+ used: Quantity;
624
+ percentage: number;
625
+ }
626
+ export interface KubernetesClusterStatusClusterStatusResources {
627
+ cpu: KubernetesClusterStatusClusterStatusResource;
628
+ memory: KubernetesClusterStatusClusterStatusResource;
629
+ gpu: KubernetesClusterStatusClusterStatusResource;
630
+ disk: KubernetesClusterStatusClusterStatusResource;
631
+ }
632
+ export interface KubernetesClusterClusterDetails {
633
+ externalId: string;
634
+ resources: KubernetesClusterStatusClusterStatusResources;
635
+ price: KubernetesClusterStatusPrice;
636
+ controlplane: KubernetesClusterControlPlaneStatus;
637
+ nodepools: KubernetesClusterNodePoolStatus[];
638
+ }
639
+ export interface KubernetesClusterClusterState {
640
+ cluster: KubernetesClusterClusterDetails;
641
+ versions: KubernetesClusterVersion[];
642
+ controlplaneendpoint: string;
643
+ egressIP: string;
644
+ lastUpdated: Time;
645
+ lastUpdatedBy: string;
646
+ created: Time;
647
+ }
648
+ export interface KubernetesClusterStatus {
649
+ state: KubernetesClusterClusterState;
650
+ phase: string;
651
+ conditions: KubernetesClusterCondition[];
652
+ }
653
+ export interface KubernetesClusterAutoscalingSpec {
654
+ enabled: boolean;
655
+ minReplicas: number;
656
+ maxReplicas: number;
657
+ scalingRules: string[];
658
+ }
659
+ export interface KubernetesClusterNodePool {
660
+ machineClass: string;
661
+ provider: string;
662
+ name: string;
663
+ replicas: number;
664
+ autoscaling: KubernetesClusterAutoscalingSpec;
665
+ metadata: KubernetesClusterSpecMetadataDetails;
666
+ }
667
+ export interface KubernetesClusterWorkers {
668
+ nodePools: KubernetesClusterNodePool[];
669
+ }
670
+ export interface KubernetesClusterStorage {
671
+ class: string;
672
+ path: string;
673
+ size: string;
674
+ }
675
+ export interface KubernetesClusterSpecMetadataDetails {
676
+ labels: { [key: string]: string };
677
+ annotations: { [key: string]: string };
678
+ }
679
+ export interface KubernetesClusterSpecControlPlane {
680
+ replicas: number;
681
+ provider: string;
682
+ machineClass: string;
683
+ metadata: KubernetesClusterSpecMetadataDetails;
684
+ storage: KubernetesClusterStorage[];
685
+ }
686
+ export interface KubernetesClusterSpecTopology {
687
+ version: string;
688
+ controlplane: KubernetesClusterSpecControlPlane;
689
+ workers: KubernetesClusterWorkers;
690
+ }
691
+ export interface KubernetesClusterSpecData {
692
+ clusterId: string;
693
+ provider: string;
694
+ datacenter: string;
695
+ region: string;
696
+ zone: string;
697
+ project: string;
698
+ workspace: string;
699
+ workorder: string;
700
+ environment: string;
701
+ }
702
+ export interface KubernetesClusterSpec {
703
+ data?: KubernetesClusterSpecData;
704
+ topology?: KubernetesClusterSpecTopology;
705
+ }
706
+ export interface ResourceKubernetesCluster {
707
+ spec: KubernetesClusterSpec;
708
+ status?: KubernetesClusterStatus;
782
709
  }
783
710
  export interface ResourceIngressStatusLoadBalancerIngress {
784
711
  hostname: string;
@@ -833,6 +760,92 @@ export interface ResourceIngress {
833
760
  spec: ResourceIngressSpec;
834
761
  status: ResourceIngressStatus;
835
762
  }
763
+ export interface ResourceIngressClassSpecParameters {
764
+ apiGroup: string;
765
+ kind: string;
766
+ name: string;
767
+ namespace: string;
768
+ scope: string;
769
+ }
770
+ export interface ResourceIngressClassSpec {
771
+ controller: string;
772
+ parameters: ResourceIngressClassSpecParameters;
773
+ }
774
+ export interface ResourceIngressClass {
775
+ spec: ResourceIngressClassSpec;
776
+ }
777
+ export interface ResourceExposedSecretReport {
778
+ report: ResourceVulnerabilityReportReport;
779
+ }
780
+ export interface ResourceEndpointSpecSubsetsPorts {
781
+ appProtocol?: string;
782
+ name?: string;
783
+ port?: number;
784
+ protocol?: string;
785
+ }
786
+ export interface ResourceEndpointSpecSubsetsNotReadyAddressesTargetRef {
787
+ apiVersion?: string;
788
+ fieldPath?: string;
789
+ kind?: string;
790
+ name?: string;
791
+ namespace?: string;
792
+ resourceVersion?: string;
793
+ uid?: string;
794
+ }
795
+ export interface ResourceEndpointSpecSubsetsNotReadyAddresses {
796
+ hostname?: string;
797
+ ip?: string;
798
+ nodeName?: string;
799
+ targetRef?: ResourceEndpointSpecSubsetsNotReadyAddressesTargetRef;
800
+ }
801
+ export interface ResourceEndpointSpecSubsetsAddressesTargetRef {
802
+ apiVersion?: string;
803
+ fieldPath?: string;
804
+ kind?: string;
805
+ name?: string;
806
+ namespace?: string;
807
+ resourceVersion?: string;
808
+ uid?: string;
809
+ }
810
+ export interface ResourceEndpointSpecSubsetsAddresses {
811
+ hostname?: string;
812
+ ip?: string;
813
+ nodeName?: string;
814
+ targetRef?: ResourceEndpointSpecSubsetsAddressesTargetRef;
815
+ }
816
+ export interface ResourceEndpointSpecSubsets {
817
+ addresses?: ResourceEndpointSpecSubsetsAddresses[];
818
+ notReadyAddresses?: ResourceEndpointSpecSubsetsNotReadyAddresses[];
819
+ ports?: ResourceEndpointSpecSubsetsPorts[];
820
+ }
821
+ export interface ResourceEndpoints {
822
+ subsets?: ResourceEndpointSpecSubsets[];
823
+ }
824
+ export interface ResourceDeploymentStatus {
825
+ replicas: number;
826
+ availableReplicas: number;
827
+ readyReplicas: number;
828
+ updatedReplicas: number;
829
+ }
830
+ export interface ResourceDeployment {
831
+ status: ResourceDeploymentStatus;
832
+ }
833
+ export interface DatacenterLocation {
834
+ id: string;
835
+ region: string;
836
+ country: string;
837
+ }
838
+ export interface Datacenter {
839
+ id: string;
840
+ name: string;
841
+ provider: string;
842
+ location: DatacenterLocation;
843
+ apiEndpoint: string;
844
+ }
845
+ export interface ResourceDatacenter {
846
+ spec: ResourceDaemonSetStatus;
847
+ legacy: Datacenter;
848
+ }
836
849
  export interface ResourceDaemonSetStatus {
837
850
  numberReady: number;
838
851
  numberUnavailable: number;
@@ -845,91 +858,128 @@ export interface ResourceDaemonSetStatus {
845
858
  export interface ResourceDaemonSet {
846
859
  status: ResourceDaemonSetStatus;
847
860
  }
848
- export interface ResourceStatefulSetStatus {
849
- replicas: number;
850
- availableReplicas: number;
851
- currentReplicas: number;
852
- readyReplicas: number;
853
- updatedReplicas: number;
861
+ export interface ResourceConfigurationSpec {
862
+ type: string;
863
+ b64enc: boolean;
864
+ data: string;
854
865
  }
855
- export interface ResourceStatefulSet {
856
- status: ResourceStatefulSetStatus;
866
+ export interface ResourceConfiguration {
867
+ spec: ResourceConfigurationSpec;
857
868
  }
858
- export interface ResourceReplicaSetStatus {
859
- availableReplicas: number;
860
- readyReplicas: number;
861
- replicas: number;
869
+ export interface ResourceVulnerabilityReportReportVulnerability {
870
+ vulnerabilityID: string;
871
+ severity: string;
872
+ score: number;
873
+ title: string;
874
+ resource: string;
875
+ primaryLink: string;
876
+ installedVersion: string;
877
+ fixedVersion: string;
862
878
  }
863
- export interface ResourceReplicaSetSpecSelectorMatchExpressions {
864
- key: string;
865
- operator: string;
866
- values: string[];
879
+ export interface ResourceVulnerabilityReportReportArtifact {
880
+ digest: string;
881
+ repository: string;
882
+ tag: string;
867
883
  }
868
- export interface ResourceReplicaSetSpecSelector {
869
- matchExpressions: ResourceReplicaSetSpecSelectorMatchExpressions[];
870
- matchLabels: { [key: string]: string };
884
+ export interface AquaReportScanner {
885
+ name: string;
886
+ vendor: string;
887
+ version: string;
871
888
  }
872
- export interface ResourceReplicaSetSpec {
873
- replicas: number;
874
- selector: ResourceReplicaSetSpecSelector;
889
+ export interface AquaReportSummary {
890
+ criticalCount: number;
891
+ highCount: number;
892
+ lowCount: number;
893
+ mediumCount: number;
894
+ total?: number;
875
895
  }
876
- export interface ResourceReplicaSet {
877
- spec: ResourceReplicaSetSpec;
878
- status: ResourceReplicaSetStatus;
896
+ export interface ResourceVulnerabilityReportReport {
897
+ summary: AquaReportSummary;
898
+ scanner: AquaReportScanner;
899
+ artifact: ResourceVulnerabilityReportReportArtifact;
900
+ updateTimestamp: string;
901
+ vulnerabilities: ResourceVulnerabilityReportReportVulnerability[];
879
902
  }
880
- export interface ResourcePodStatus {
881
- message?: string;
882
- phase?: string;
883
- reason?: string;
884
- startTime?: string;
903
+ export interface ResourceConfigAuditReport {
904
+ report: ResourceVulnerabilityReportReport;
885
905
  }
886
- export interface ResourcePodSpecContainersPorts {
887
- name?: string;
888
- containerPort?: number;
889
- protocol?: string;
906
+ export interface ResourceClusterVulnerabilityReportReportStatus {
907
+ status: VulnerabilityStatus;
908
+ until?: Time;
909
+ reason?: VulnerabilityDismissalReason;
910
+ comment?: string;
911
+ riskAssessment?: string;
890
912
  }
891
- export interface ResourcePodSpecContainers {
892
- name?: string;
893
- image?: string;
894
- ports?: ResourcePodSpecContainersPorts[];
913
+ export interface ResourceClusterVulnerabilityReportReportOwner {
914
+ digest: string;
915
+ repository: string;
916
+ tag: string;
917
+ resource: string;
918
+ installedVersion: string;
919
+ fixedVersion: string;
920
+ namespace: string;
921
+ ownerReferences: OwnerReference[];
895
922
  }
896
- export interface ResourcePodSpec {
897
- containers?: ResourcePodSpecContainers[];
898
- serviceAccountName?: string;
899
- nodeName?: string;
923
+ export interface ResourceClusterVulnerabilityReportReport {
924
+ severity: string;
925
+ score: number;
926
+ title: string;
927
+ primaryLink: string;
928
+ firstObserved: Time;
929
+ lastObserved: Time;
930
+ owners: ResourceClusterVulnerabilityReportReportOwner[];
931
+ status: ResourceClusterVulnerabilityReportReportStatus;
900
932
  }
901
- export interface ResourcePod {
902
- spec?: ResourcePodSpec;
903
- status?: ResourcePodStatus;
933
+ export interface ResourceClusterVulnerabilityReportSummary {
934
+ critical: number;
935
+ high: number;
936
+ medium: number;
937
+ low: number;
938
+ unknown: number;
904
939
  }
905
- export interface IntOrString {
906
- Type: number;
907
- IntVal: number;
908
- StrVal: string;
940
+ export interface ResourceClusterVulnerabilityReport {
941
+ summary: ResourceClusterVulnerabilityReportSummary;
942
+ report: { [key: string]: ResourceClusterVulnerabilityReportReport };
909
943
  }
910
- export interface ResourceServicePorts {
911
- appProtocol: string;
944
+ export interface ResourceKubernetesClusterOrderStatusCondition {
945
+ type: string;
946
+ status: string;
947
+ lastTransitionTime: string;
948
+ reason: string;
949
+ message: string;
950
+ }
951
+ export interface ResourceClusterOrderStatus {
952
+ status: string;
953
+ phase: string;
954
+ conditions: ResourceKubernetesClusterOrderStatusCondition[];
955
+ createdTime: string;
956
+ updatedTime: string;
957
+ lastObservedTime: string;
958
+ }
959
+ export interface ResourceClusterOrderSpecNodePool {
912
960
  name: string;
913
- port: number;
914
- protocol: string;
915
- targetPort: IntOrString;
961
+ machineClass: string;
962
+ count: number;
916
963
  }
917
- export interface ResourceServiceSpec {
918
- type: string;
919
- selector: { [key: string]: string };
920
- ports: ResourceServicePorts[];
921
- clusterIP: string;
922
- clusterIPs: string[];
923
- externalIPs?: string[];
924
- externalName?: string;
925
- ipFamilies: string[];
926
- ipFamilyPolicy: string;
927
- internalTrafficPolicy: string;
928
- externalTrafficPolicy: string;
964
+ export interface ResourceClusterOrderSpec {
965
+ provider: string;
966
+ clusterName: string;
967
+ projectId: string;
968
+ orderBy: string;
969
+ environment: number;
970
+ criticality: number;
971
+ sensitivity: number;
972
+ highAvailability: boolean;
973
+ nodePools: ResourceClusterOrderSpecNodePool[];
974
+ serviceTags?: { [key: string]: string };
975
+ providerConfig?: { [key: string]: any };
976
+ ownerGroup: string;
929
977
  }
930
- export interface ResourceService {
931
- spec: ResourceServiceSpec;
978
+ export interface ResourceClusterOrder {
979
+ spec: ResourceClusterOrderSpec;
980
+ status: ResourceClusterOrderStatus;
932
981
  }
982
+ export interface ResourceClusterComplianceReport {}
933
983
  export interface ResourceCertificateStatusCondition {
934
984
  lastTransitionTime: string;
935
985
  observedGeneration: number;
@@ -959,6 +1009,91 @@ export interface ResourceCertificate {
959
1009
  spec: ResourceCertificateSpec;
960
1010
  status: ResourceCertificateStatus;
961
1011
  }
1012
+ export interface ResourceBackupJobSpec {
1013
+ name: string;
1014
+ status: string;
1015
+ policyId: string;
1016
+ schedules: ResourceBackupSchedule[];
1017
+ activeTargets: ResourceBackupTarget[];
1018
+ indirectBackupTargets: ResourceIndirectBackupTarget[];
1019
+ backupDestinations: ResourceBackupDestination[];
1020
+ }
1021
+ export interface ResourceBackupStorage {
1022
+ unit: string;
1023
+ sourceSize: number;
1024
+ logicalSize: number;
1025
+ physicalSize: number;
1026
+ }
1027
+ export interface ResourceBackupRunDestination {
1028
+ name: string;
1029
+ id: string;
1030
+ type: string;
1031
+ status: string;
1032
+ expiryTime: Time;
1033
+ }
1034
+ export interface ResourceBackupRun {
1035
+ id: string;
1036
+ backupTargets: ResourceBackupTarget[];
1037
+ backupDestinations: ResourceBackupRunDestination[];
1038
+ startTime: Time;
1039
+ endTime: Time;
1040
+ expiryTime: Time;
1041
+ backupStorage: ResourceBackupStorage;
1042
+ }
1043
+ export interface ResourceBackupDestination {
1044
+ name: string;
1045
+ id: string;
1046
+ type: string;
1047
+ status: string;
1048
+ }
1049
+ export interface ResourceIndirectBackupTarget {
1050
+ type: string;
1051
+ ids: string[];
1052
+ keyValues: { [key: string]: string[] };
1053
+ }
1054
+ export interface ResourceBackupSource {
1055
+ name: string;
1056
+ id: string;
1057
+ uuid: string;
1058
+ type: string;
1059
+ }
1060
+ export interface ResourceBackupTarget {
1061
+ name: string;
1062
+ id: string;
1063
+ externalId: string;
1064
+ source?: ResourceBackupSource;
1065
+ }
1066
+ export interface ResourceBackupRetention {
1067
+ unit: string;
1068
+ duration: number;
1069
+ }
1070
+ export interface ResourceBackupSchedule {
1071
+ startTime: string;
1072
+ endTime: string;
1073
+ frequency: number;
1074
+ unit: string;
1075
+ retention: ResourceBackupRetention;
1076
+ }
1077
+ export interface ResourceBackupJobStatus {
1078
+ name: string;
1079
+ status: string;
1080
+ policyId: string;
1081
+ schedules: ResourceBackupSchedule[];
1082
+ activeTargets: ResourceBackupTarget[];
1083
+ indirectBackupTargets: ResourceIndirectBackupTarget[];
1084
+ backupDestinations: ResourceBackupDestination[];
1085
+ location: string;
1086
+ lastUpdated: Time;
1087
+ policyName: string;
1088
+ runs: ResourceBackupRun[];
1089
+ }
1090
+ export interface ResourceBackupJob {
1091
+ id: string;
1092
+ provider: string;
1093
+ source: string;
1094
+ status: ResourceBackupJobStatus;
1095
+ spec: ResourceBackupJobSpec;
1096
+ }
962
1097
  export interface ResourceAppProjectSpec {
963
1098
  description: string;
964
1099
  sourceRepos: string[];
@@ -1029,119 +1164,6 @@ export interface ResourceApplication {
1029
1164
  spec: ResourceApplicationSpec;
1030
1165
  status: ResourceApplicationStatus;
1031
1166
  }
1032
- export interface ResourcePolicyReportSummary {
1033
- error: number;
1034
- fail: number;
1035
- pass: number;
1036
- skip: number;
1037
- warn: number;
1038
- }
1039
- export interface ResourcePolicyReportResultsResources {
1040
- uid: string;
1041
- apiVersion: string;
1042
- kind: string;
1043
- name: string;
1044
- }
1045
- export interface ResourcePolicyReportResults {
1046
- policy: string;
1047
- message: string;
1048
- category: string;
1049
- properties: { [key: string]: string };
1050
- severity: string;
1051
- result: string;
1052
- resources: ResourcePolicyReportResultsResources[];
1053
- }
1054
- export interface ResourcePolicyReport {
1055
- results: ResourcePolicyReportResults[];
1056
- summary: ResourcePolicyReportSummary;
1057
- lastReported?: string;
1058
- }
1059
- export interface ResourceStorageClass {
1060
- allowVolumeExpansion: boolean;
1061
- provisioner: string;
1062
- reclaimPolicy: string;
1063
- volumeBindingMode: string;
1064
- }
1065
- export interface ResourceDeploymentStatus {
1066
- replicas: number;
1067
- availableReplicas: number;
1068
- readyReplicas: number;
1069
- updatedReplicas: number;
1070
- }
1071
- export interface ResourceDeployment {
1072
- status: ResourceDeploymentStatus;
1073
- }
1074
- export interface ResourcePersistentVolumeClaimStatus {
1075
- accessModes: string[];
1076
- capacity: { [key: string]: string };
1077
- phase: string;
1078
- }
1079
- export interface ResourcePersistentVolumeClaimSpecResources {
1080
- limits?: { [key: string]: string };
1081
- requests: { [key: string]: string };
1082
- }
1083
- export interface ResourcePersistentVolumeClaimSpec {
1084
- accessModes: string[];
1085
- resources: ResourcePersistentVolumeClaimSpecResources;
1086
- storageClassName: string;
1087
- volumeMode: string;
1088
- volumeName: string;
1089
- }
1090
- export interface ResourcePersistentVolumeClaim {
1091
- spec: ResourcePersistentVolumeClaimSpec;
1092
- status: ResourcePersistentVolumeClaimStatus;
1093
- }
1094
- export interface ResourceNodeStatusNodeinfo {
1095
- architecture: string;
1096
- bootID: string;
1097
- containerRuntimeVersion: string;
1098
- kernelVersion: string;
1099
- kubeProxyVersion: string;
1100
- kubeletVersion: string;
1101
- machineID: string;
1102
- operatingSystem: string;
1103
- osImage: string;
1104
- systemUUID: string;
1105
- }
1106
- export interface ResourceNodeStatusConditions {
1107
- lastHeartbeatTime: string;
1108
- lastTransitionTime: string;
1109
- message: string;
1110
- reason: string;
1111
- status: string;
1112
- type: string;
1113
- }
1114
- export interface ResourceNodeStatusCapacity {
1115
- cpu: string;
1116
- ephemeralStorage: string;
1117
- memory: string;
1118
- pods: string;
1119
- }
1120
- export interface ResourceNodeStatusAddresses {
1121
- address: string;
1122
- type: string;
1123
- }
1124
- export interface ResourceNodeStatus {
1125
- addresses: ResourceNodeStatusAddresses[];
1126
- capacity: ResourceNodeStatusCapacity;
1127
- conditions: ResourceNodeStatusConditions[];
1128
- nodeInfo: ResourceNodeStatusNodeinfo;
1129
- }
1130
- export interface ResourceNodeSpecTaints {
1131
- effect: string;
1132
- key: string;
1133
- }
1134
- export interface ResourceNodeSpec {
1135
- podCIDR?: string;
1136
- podCIDRs?: string[];
1137
- providerID?: string;
1138
- taints?: ResourceNodeSpecTaints[];
1139
- }
1140
- export interface ResourceNode {
1141
- spec: ResourceNodeSpec;
1142
- status: ResourceNodeStatus;
1143
- }
1144
- export interface ResourceNamespace {}
1145
1167
  export interface ResourceTag {
1146
1168
  key: string;
1147
1169
  value: string;
@@ -1201,43 +1223,43 @@ export interface Resource {
1201
1223
  apiVersion?: string;
1202
1224
  metadata?: ObjectMeta;
1203
1225
  rormeta: ResourceRorMeta;
1204
- namespace?: ResourceNamespace;
1205
- node?: ResourceNode;
1206
- persistentvolumeclaim?: ResourcePersistentVolumeClaim;
1207
- deployment?: ResourceDeployment;
1208
- storageclass?: ResourceStorageClass;
1209
- policyreport?: ResourcePolicyReport;
1210
1226
  application?: ResourceApplication;
1211
1227
  appproject?: ResourceAppProject;
1228
+ backupjob?: ResourceBackupJob;
1212
1229
  certificate?: ResourceCertificate;
1213
- service?: ResourceService;
1214
- pod?: ResourcePod;
1215
- replicaset?: ResourceReplicaSet;
1216
- statefulset?: ResourceStatefulSet;
1230
+ clustercompliancereport?: ResourceClusterComplianceReport;
1231
+ clusterorder?: ResourceClusterOrder;
1232
+ clustervulnerabilityreport?: ResourceClusterVulnerabilityReport;
1233
+ configauditreport?: ResourceConfigAuditReport;
1234
+ configuration?: ResourceConfiguration;
1217
1235
  daemonset?: ResourceDaemonSet;
1218
- ingress?: ResourceIngress;
1219
- ingressclass?: ResourceIngressClass;
1220
- vulnerabilityreport?: ResourceVulnerabilityReport;
1236
+ datacenter?: ResourceDatacenter;
1237
+ deployment?: ResourceDeployment;
1238
+ endpoints?: ResourceEndpoints;
1221
1239
  exposedsecretreport?: ResourceExposedSecretReport;
1222
- configauditreport?: ResourceConfigAuditReport;
1223
- rbacassessmentreport?: ResourceRbacAssessmentReport;
1224
- tanzukubernetescluster?: ResourceTanzuKubernetesCluster;
1225
- tanzukubernetesrelease?: ResourceTanzuKubernetesRelease;
1226
- virtualmachineclass?: ResourceVirtualMachineClass;
1240
+ ingressclass?: ResourceIngressClass;
1241
+ ingress?: ResourceIngress;
1227
1242
  kubernetescluster?: ResourceKubernetesCluster;
1228
- clusterorder?: ResourceClusterOrder;
1243
+ namespace?: ResourceNamespace;
1244
+ networkpolicy?: ResourceNetworkPolicy;
1245
+ node?: ResourceNode;
1246
+ persistentvolumeclaim?: ResourcePersistentVolumeClaim;
1247
+ pod?: ResourcePod;
1248
+ policyreport?: ResourcePolicyReport;
1229
1249
  project?: ResourceProject;
1230
- configuration?: ResourceConfiguration;
1231
- clustercompliancereport?: ResourceClusterComplianceReport;
1232
- clustervulnerabilityreport?: ResourceClusterVulnerabilityReport;
1250
+ rbacassessmentreport?: ResourceRbacAssessmentReport;
1251
+ replicaset?: ResourceReplicaSet;
1233
1252
  route?: ResourceRoute;
1253
+ service?: ResourceService;
1234
1254
  slackmessage?: ResourceSlackMessage;
1235
- vulnerabilityevent?: ResourceVulnerabilityEvent;
1255
+ statefulset?: ResourceStatefulSet;
1256
+ storageclass?: ResourceStorageClass;
1257
+ tanzukubernetescluster?: ResourceTanzuKubernetesCluster;
1258
+ tanzukubernetesrelease?: ResourceTanzuKubernetesRelease;
1259
+ virtualmachineclass?: ResourceVirtualMachineClass;
1236
1260
  virtualmachine?: ResourceVirtualMachine;
1237
- endpoints?: ResourceEndpoints;
1238
- networkpolicy?: ResourceNetworkPolicy;
1239
- datacenter?: ResourceDatacenter;
1240
- backupjob?: ResourceBackupJob;
1261
+ vulnerabilityevent?: ResourceVulnerabilityEvent;
1262
+ vulnerabilityreport?: ResourceVulnerabilityReport;
1241
1263
  }
1242
1264
  export interface ResourceSet {
1243
1265
  resources?: Resource[];