@rork8s/ror-resources 0.0.3 → 0.0.4

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.
@@ -0,0 +1,1013 @@
1
+ /* Do not change, this code is generated from Golang structs */
2
+
3
+ export enum VulnerabilityStatus {
4
+ NOT_ASSESSED = 0,
5
+ NEEDS_TRIAGE = 1,
6
+ CONFIRMED = 2,
7
+ DISMISSED = 3,
8
+ }
9
+ export enum VulnerabilityDismissalReason {
10
+ ACCEPTABLE_RISK = 0,
11
+ FALSE_POSITIVE = 1,
12
+ NOT_APPLICABLE = 2,
13
+ }
14
+ export interface ResourceVirtualMachineOperatingSystemStatus {
15
+ id: string;
16
+ name: string;
17
+ version: string;
18
+ hostName: string;
19
+ powerState: string;
20
+ toolVersion: string;
21
+ architecture: string;
22
+ }
23
+ export interface ResourceVirtualMachineNetworkStatus {
24
+ id: string;
25
+ }
26
+ export interface ResourceVirtualMachineMemoryStatus {
27
+ id: string;
28
+ usage: string;
29
+ }
30
+ export interface ResourceVirtualMachineDiskStatus {
31
+ id: string;
32
+ usage: string;
33
+ }
34
+ export interface ResourceVirtualMachineCpuStatus {
35
+ id: string;
36
+ usage: string;
37
+ }
38
+ export interface ResourceVirtualMachineStatus {
39
+ cpu: ResourceVirtualMachineCpuStatus;
40
+ disks: ResourceVirtualMachineDiskStatus[];
41
+ memory: ResourceVirtualMachineMemoryStatus;
42
+ networks: ResourceVirtualMachineNetworkStatus[];
43
+ operatingSystem: ResourceVirtualMachineOperatingSystemStatus;
44
+ }
45
+ export interface ResourceVirtualMachineOperatingSystemSpec {
46
+ id: string;
47
+ }
48
+ export interface ResourceVirtualMachineNetworkSpec {
49
+ id: string;
50
+ dns: string;
51
+ ipv4: string;
52
+ ipv6: string;
53
+ mask: string;
54
+ gateway: string;
55
+ }
56
+ export interface ResourceVirtualMachineMemorySpec {
57
+ id: string;
58
+ size: number;
59
+ }
60
+ export interface ResourceVirtualMachineDiskSpec {
61
+ id: string;
62
+ size: number;
63
+ name: string;
64
+ type: string;
65
+ }
66
+ export interface ResourceVirtualMachineTagSpec {
67
+ key: string;
68
+ value: string;
69
+ description: string;
70
+ }
71
+ export interface ResourceVirtualMachineCpuSpec {
72
+ id: string;
73
+ count: number;
74
+ }
75
+ export interface ResourceVirtualMachineSpec {
76
+ cpu: ResourceVirtualMachineCpuSpec;
77
+ tags: ResourceVirtualMachineTagSpec[];
78
+ disks: ResourceVirtualMachineDiskSpec[];
79
+ memory: ResourceVirtualMachineMemorySpec;
80
+ networks: ResourceVirtualMachineNetworkSpec[];
81
+ operatingSystem: ResourceVirtualMachineOperatingSystemSpec;
82
+ }
83
+ export interface ResourceVirtualMachine {
84
+ id: string;
85
+ name: string;
86
+ spec: ResourceVirtualMachineSpec;
87
+ status: ResourceVirtualMachineStatus;
88
+ }
89
+ export interface ResourceVulnerabilityEventSpec {
90
+ owner: RorResourceOwnerReference;
91
+ message: string;
92
+ }
93
+ export interface ResourceVulnerabilityEvent {
94
+ spec: ResourceVulnerabilityEventSpec;
95
+ }
96
+ export interface ResourceSlackMessageStatus {
97
+ result: number;
98
+ timestamp: Time;
99
+ error: any;
100
+ }
101
+ export interface ResourceSlackMessageSpec {
102
+ channelId: string;
103
+ message: string;
104
+ }
105
+ export interface ResourceSlackMessage {
106
+ spec: ResourceSlackMessageSpec;
107
+ status: ResourceSlackMessageStatus[];
108
+ }
109
+ export interface ResourceRouteSlackReceiver {
110
+ channelId: string;
111
+ }
112
+ export interface ResourceRouteReceiver {
113
+ slack: ResourceRouteSlackReceiver[];
114
+ }
115
+ export interface ResourceRouteMessageType {
116
+ apiVersion: string;
117
+ kind: string;
118
+ }
119
+ export interface ResourceRouteSpec {
120
+ messageType: ResourceRouteMessageType;
121
+ receivers: ResourceRouteReceiver;
122
+ }
123
+ export interface ResourceRoute {
124
+ spec: ResourceRouteSpec;
125
+ }
126
+ export interface ResourceClusterVulnerabilityReportReportStatus {
127
+ status: VulnerabilityStatus;
128
+ until?: Time;
129
+ reason?: VulnerabilityDismissalReason;
130
+ comment?: string;
131
+ riskAssessment?: string;
132
+ }
133
+ export interface ResourceClusterVulnerabilityReportReportOwner {
134
+ digest: string;
135
+ repository: string;
136
+ tag: string;
137
+ resource: string;
138
+ installedVersion: string;
139
+ fixedVersion: string;
140
+ namespace: string;
141
+ ownerReferences: OwnerReference[];
142
+ }
143
+ export interface Time {}
144
+ export interface ResourceClusterVulnerabilityReportReport {
145
+ severity: string;
146
+ score: number;
147
+ title: string;
148
+ primaryLink: string;
149
+ firstObserved: Time;
150
+ lastObserved: Time;
151
+ owners: ResourceClusterVulnerabilityReportReportOwner[];
152
+ status: ResourceClusterVulnerabilityReportReportStatus;
153
+ }
154
+ export interface ResourceClusterVulnerabilityReportSummary {
155
+ critical: number;
156
+ high: number;
157
+ medium: number;
158
+ low: number;
159
+ unknown: number;
160
+ }
161
+ export interface ResourceClusterVulnerabilityReport {
162
+ summary: ResourceClusterVulnerabilityReportSummary;
163
+ report: { [key: string]: ResourceClusterVulnerabilityReportReport };
164
+ }
165
+ export interface ResourceClusterComplianceReport {}
166
+ export interface ResourceConfigurationSpec {
167
+ type: string;
168
+ b64enc: boolean;
169
+ data: string;
170
+ }
171
+ export interface ResourceConfiguration {
172
+ spec: ResourceConfigurationSpec;
173
+ }
174
+ export interface ResourceProjectSpecRole {
175
+ upn: string;
176
+ name: string;
177
+ role: string;
178
+ email: string;
179
+ phone: string;
180
+ }
181
+ export interface ResourceProjectSpec {
182
+ projectName: string;
183
+ description: string;
184
+ active: boolean;
185
+ createdTime: string;
186
+ updatedTime: string;
187
+ roles: ResourceProjectSpecRole[];
188
+ workorder: string;
189
+ serviceTag: string;
190
+ tags: string[];
191
+ }
192
+ export interface ResourceProject {
193
+ spec: ResourceProjectSpec;
194
+ }
195
+ export interface ResourceClusterOrderStatus {
196
+ status: string;
197
+ phase: string;
198
+ conditions: ResourceKubernetesClusterStatusCondition[];
199
+ createdTime: string;
200
+ updatedTime: string;
201
+ lastObservedTime: string;
202
+ }
203
+ export interface ResourceClusterOrderSpecNodePool {
204
+ name: string;
205
+ machineClass: string;
206
+ count: number;
207
+ }
208
+ export interface ResourceClusterOrderSpec {
209
+ provider: string;
210
+ clusterName: string;
211
+ projectId: string;
212
+ orderBy: string;
213
+ environment: number;
214
+ criticality: number;
215
+ sensitivity: number;
216
+ highAvailability: boolean;
217
+ nodePools: ResourceClusterOrderSpecNodePool[];
218
+ serviceTags?: { [key: string]: string };
219
+ providerConfig?: { [key: string]: any };
220
+ ownerGroup: string;
221
+ }
222
+ export interface ResourceClusterOrder {
223
+ spec: ResourceClusterOrderSpec;
224
+ status: ResourceClusterOrderStatus;
225
+ }
226
+ export interface ResourceKubernetesClusterStatusCondition {
227
+ type: string;
228
+ status: string;
229
+ lastTransitionTime: string;
230
+ reason: string;
231
+ message: string;
232
+ }
233
+ export interface ResourceKubernetesClusterStatus {
234
+ status: string;
235
+ phase: string;
236
+ conditions: ResourceKubernetesClusterStatusCondition[];
237
+ kubernetesVersion: string;
238
+ providerStatus: { [key: string]: any };
239
+ createdTime: string;
240
+ updatedTime: string;
241
+ lastObservedTime: string;
242
+ }
243
+ export interface ResourceKubernetesClusterSpecEndpoint {
244
+ type: string;
245
+ address: string;
246
+ }
247
+ export interface ResourceKubernetesClusterSpecTopologyWorkers {
248
+ name: string;
249
+ replicas: number;
250
+ version: string;
251
+ machineClass: string;
252
+ }
253
+ export interface ResourceKubernetesClusterSpecTopologyControlPlane {
254
+ replicas: number;
255
+ version: string;
256
+ machineClass: string;
257
+ }
258
+ export interface ResourceKubernetesClusterSpecTopology {
259
+ controlPlane: ResourceKubernetesClusterSpecTopologyControlPlane;
260
+ workers: ResourceKubernetesClusterSpecTopologyWorkers[];
261
+ }
262
+ export interface ResourceKubernetesClusterSpecProviderSpecAzureSpec {
263
+ subscriptionId: string;
264
+ resourceGroup: string;
265
+ }
266
+ export interface ResourceKubernetesClusterSpecProviderSpecTanzuSpec {
267
+ supervisorClusterName: string;
268
+ namespace: string;
269
+ }
270
+ export interface ResourceKubernetesClusterSpecProviderSpec {
271
+ tanzuSpec: ResourceKubernetesClusterSpecProviderSpecTanzuSpec;
272
+ azureSpec: ResourceKubernetesClusterSpecProviderSpecAzureSpec;
273
+ }
274
+ export interface ResourceKubernetesClusterSpecToolingConfig {
275
+ splunkIndex: string;
276
+ }
277
+ export interface ResourceKubernetesClusterSpec {
278
+ clusterId: string;
279
+ clusterName: string;
280
+ description: string;
281
+ project: string;
282
+ provider: string;
283
+ createdBy: string;
284
+ toolingConfig: ResourceKubernetesClusterSpecToolingConfig;
285
+ environment: string;
286
+ providerSpec: ResourceKubernetesClusterSpecProviderSpec;
287
+ topology: ResourceKubernetesClusterSpecTopology;
288
+ endpoints: ResourceKubernetesClusterSpecEndpoint[];
289
+ }
290
+ export interface ResourceKubernetesCluster {
291
+ spec: ResourceKubernetesClusterSpec;
292
+ status: ResourceKubernetesClusterStatus;
293
+ }
294
+ export interface ResourceVirtualMachineClassBindingClassRef {
295
+ apiVersion: string;
296
+ kind: string;
297
+ name: string;
298
+ }
299
+ export interface ResourceVirtualMachineClassBinding {
300
+ classRef: ResourceVirtualMachineClassBindingClassRef;
301
+ }
302
+ export interface ResourceVirtualMachineClassSpecHardwareInstanceStorage {
303
+ storageClass: string;
304
+ }
305
+ export interface ResourceVirtualMachineClassSpecHardware {
306
+ cpus: number;
307
+ instanceStorage: ResourceVirtualMachineClassSpecHardwareInstanceStorage;
308
+ }
309
+ export interface ResourceVirtualMachineClassSpec {
310
+ description: string;
311
+ hardware: ResourceVirtualMachineClassSpecHardware;
312
+ }
313
+ export interface ResourceVirtualMachineClass {
314
+ spec: ResourceVirtualMachineClassSpec;
315
+ status: { [key: string]: string };
316
+ }
317
+ export interface ResourceTanzuKubernetesReleaseStatusCondition {
318
+ lastTransitionTime: string;
319
+ message: string;
320
+ reason: string;
321
+ severity: string;
322
+ status: string;
323
+ type: string;
324
+ }
325
+ export interface ResourceTanzuKubernetesReleaseStatus {
326
+ conditions: ResourceTanzuKubernetesReleaseStatusCondition[];
327
+ }
328
+ export interface ResourceTanzuKubernetesReleaseSpecNodeImageRef {
329
+ apiVersion: string;
330
+ fieldPath: string;
331
+ kind: string;
332
+ namespace: string;
333
+ uid: string;
334
+ }
335
+ export interface ResourceTanzuKubernetesReleaseSpecImage {
336
+ name: string;
337
+ repository: string;
338
+ tag: string;
339
+ }
340
+ export interface ResourceTanzuKubernetesReleaseSpec {
341
+ images: ResourceTanzuKubernetesReleaseSpecImage[];
342
+ kubernetesVersion: string;
343
+ nodeImageRef: ResourceTanzuKubernetesReleaseSpecNodeImageRef;
344
+ repository: string;
345
+ version: string;
346
+ }
347
+ export interface ResourceTanzuKubernetesRelease {
348
+ spec: ResourceTanzuKubernetesReleaseSpec;
349
+ status: ResourceTanzuKubernetesReleaseStatus;
350
+ }
351
+ export interface ResourceTanzuKubernetesClusterStatusConditions {
352
+ lastTransitionTime: string;
353
+ message: string;
354
+ reason: string;
355
+ severity: string;
356
+ status: string;
357
+ type: string;
358
+ }
359
+ export interface ResourceTanzuKubernetesClusterStatusAPIEndpoints {
360
+ host: string;
361
+ port: number;
362
+ }
363
+ export interface ResourceTanzuKubernetesClusterStatus {
364
+ apiEndpoints: ResourceTanzuKubernetesClusterStatusAPIEndpoints[];
365
+ conditions: ResourceTanzuKubernetesClusterStatusConditions[];
366
+ phase: string;
367
+ totalWorkerReplicas: number;
368
+ version: string;
369
+ }
370
+ export interface ResourceTanzuKubernetesClusterSpecTopologyNodePoolsVolumes {
371
+ capasity: { [key: string]: string };
372
+ mountPath: string;
373
+ name: string;
374
+ storageClass: string;
375
+ }
376
+ export interface ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTkrReference {
377
+ fieldPath: string;
378
+ kind: string;
379
+ name: string;
380
+ namespace: string;
381
+ uid: string;
382
+ }
383
+ export interface ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTkr {
384
+ reference: ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTkrReference;
385
+ }
386
+ export interface ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTaints {
387
+ effect: string;
388
+ key: string;
389
+ timeAdded: string;
390
+ value: string;
391
+ }
392
+ export interface ResourceTanzuKubernetesClusterSpecTopologyNodePools {
393
+ failureDomain: string;
394
+ labels: { [key: string]: string };
395
+ name: string;
396
+ nodeDrainTimeout: string;
397
+ replicas: number;
398
+ storageClass: string;
399
+ taints: ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTaints[];
400
+ tkr: ResourceTanzuKubernetesClusterSpecTopologyNodePoolsTkr;
401
+ vmClass: string;
402
+ volumes: ResourceTanzuKubernetesClusterSpecTopologyNodePoolsVolumes[];
403
+ }
404
+ export interface ResourceTanzuKubernetesClusterSpecTopologyControlPlaneTkrReference {
405
+ name: string;
406
+ kind: string;
407
+ namespace: string;
408
+ uid: string;
409
+ }
410
+ export interface ResourceTanzuKubernetesClusterSpecTopologyControlPlaneTkr {
411
+ reference: ResourceTanzuKubernetesClusterSpecTopologyControlPlaneTkrReference;
412
+ }
413
+ export interface ResourceTanzuKubernetesClusterSpecTopologyControlPlane {
414
+ nodeDrainTimeout: string;
415
+ replicas: number;
416
+ storageClass: string;
417
+ tkr: ResourceTanzuKubernetesClusterSpecTopologyControlPlaneTkr;
418
+ vmClass: string;
419
+ }
420
+ export interface ResourceTanzuKubernetesClusterSpecTopology {
421
+ controlPlane: ResourceTanzuKubernetesClusterSpecTopologyControlPlane;
422
+ nodePools: ResourceTanzuKubernetesClusterSpecTopologyNodePools[];
423
+ }
424
+ export interface ResourceTanzuKubernetesClusterSpecSettingsStorage {
425
+ classes: string[];
426
+ defaultClass: string;
427
+ }
428
+ export interface ResourceTanzuKubernetesClusterSpecSettingsNetworkTrustAdditionalTrustedCA {
429
+ data: string;
430
+ name: string;
431
+ }
432
+ export interface ResourceTanzuKubernetesClusterSpecSettingsNetworkTrust {
433
+ additionalTrustedCAs: ResourceTanzuKubernetesClusterSpecSettingsNetworkTrustAdditionalTrustedCA[];
434
+ }
435
+ export interface ResourceTanzuKubernetesClusterSpecSettingsNetworkServices {
436
+ cidrBlocks: string[];
437
+ }
438
+ export interface ResourceTanzuKubernetesClusterSpecSettingsNetworkProxy {
439
+ httpProxy: string;
440
+ httpsProxy: string;
441
+ noProxy: string;
442
+ }
443
+ export interface ResourceTanzuKubernetesClusterSpecSettingsNetworkPods {
444
+ cidrBlocks: string[];
445
+ }
446
+ export interface ResourceTanzuKubernetesClusterSpecSettingsNetworkCni {
447
+ name: string;
448
+ }
449
+ export interface ResourceTanzuKubernetesClusterSpecSettingsNetwork {
450
+ cni: ResourceTanzuKubernetesClusterSpecSettingsNetworkCni;
451
+ pods: ResourceTanzuKubernetesClusterSpecSettingsNetworkPods;
452
+ proxy: ResourceTanzuKubernetesClusterSpecSettingsNetworkProxy;
453
+ serviceDomain: string;
454
+ services: ResourceTanzuKubernetesClusterSpecSettingsNetworkServices;
455
+ trust: ResourceTanzuKubernetesClusterSpecSettingsNetworkTrust;
456
+ }
457
+ export interface ResourceTanzuKubernetesClusterSpecSettings {
458
+ network: ResourceTanzuKubernetesClusterSpecSettingsNetwork;
459
+ storage: ResourceTanzuKubernetesClusterSpecSettingsStorage;
460
+ }
461
+ export interface ResourceTanzuKubernetesClusterSpecDistribution {
462
+ fullVersion: string;
463
+ version: string;
464
+ }
465
+ export interface ResourceTanuzKuberntesClusterSpec {
466
+ distribution: ResourceTanzuKubernetesClusterSpecDistribution;
467
+ settings: ResourceTanzuKubernetesClusterSpecSettings;
468
+ topology: ResourceTanzuKubernetesClusterSpecTopology;
469
+ }
470
+ export interface ResourceTanzuKubernetesCluster {
471
+ spec: ResourceTanuzKuberntesClusterSpec;
472
+ status?: ResourceTanzuKubernetesClusterStatus;
473
+ }
474
+ export interface ResourceRbacAssessmentReport {
475
+ report: ResourceVulnerabilityReportReport;
476
+ }
477
+ export interface ResourceConfigAuditReport {
478
+ report: ResourceVulnerabilityReportReport;
479
+ }
480
+ export interface ResourceExposedSecretReport {
481
+ report: ResourceVulnerabilityReportReport;
482
+ }
483
+ export interface ResourceVulnerabilityReportReportVulnerability {
484
+ vulnerabilityID: string;
485
+ severity: string;
486
+ score: number;
487
+ title: string;
488
+ resource: string;
489
+ primaryLink: string;
490
+ installedVersion: string;
491
+ fixedVersion: string;
492
+ }
493
+ export interface ResourceVulnerabilityReportReportArtifact {
494
+ digest: string;
495
+ repository: string;
496
+ tag: string;
497
+ }
498
+ export interface AquaReportScanner {
499
+ name: string;
500
+ vendor: string;
501
+ version: string;
502
+ }
503
+ export interface AquaReportSummary {
504
+ criticalCount: number;
505
+ highCount: number;
506
+ lowCount: number;
507
+ mediumCount: number;
508
+ total?: number;
509
+ }
510
+ export interface ResourceVulnerabilityReportReport {
511
+ summary: AquaReportSummary;
512
+ scanner: AquaReportScanner;
513
+ artifact: ResourceVulnerabilityReportReportArtifact;
514
+ updateTimestamp: string;
515
+ vulnerabilities: ResourceVulnerabilityReportReportVulnerability[];
516
+ }
517
+ export interface ResourceVulnerabilityReport {
518
+ report: ResourceVulnerabilityReportReport;
519
+ }
520
+ export interface ResourceIngressClassSpecParameters {
521
+ apiGroup: string;
522
+ kind: string;
523
+ name: string;
524
+ namespace: string;
525
+ scope: string;
526
+ }
527
+ export interface ResourceIngressClassSpec {
528
+ controller: string;
529
+ parameters: ResourceIngressClassSpecParameters;
530
+ }
531
+ export interface ResourceIngressClass {
532
+ spec: ResourceIngressClassSpec;
533
+ }
534
+ export interface ResourceIngressStatusLoadBalancerIngress {
535
+ hostname: string;
536
+ ip: string;
537
+ }
538
+ export interface ResourceIngressStatusLoadBalancer {
539
+ ingress: ResourceIngressStatusLoadBalancerIngress[];
540
+ }
541
+ export interface ResourceIngressStatus {
542
+ loadBalancer: ResourceIngressStatusLoadBalancer;
543
+ }
544
+ export interface ResourceIngressSpecTls {
545
+ hosts: string[];
546
+ secretName: string;
547
+ }
548
+ export interface ResourceIngressSpecRulesHttpPaths {
549
+ backend: ResourceIngressSpecRulesHttpPathsBackend;
550
+ path: string;
551
+ pathType: string;
552
+ }
553
+ export interface ResourceIngressSpecRulesHttp {
554
+ paths: ResourceIngressSpecRulesHttpPaths[];
555
+ }
556
+ export interface ResourceIngressSpecRules {
557
+ apiGroup: string;
558
+ http: ResourceIngressSpecRulesHttp;
559
+ }
560
+ export interface ResourceIngressSpecBackendServicePort {
561
+ name?: string;
562
+ number?: number;
563
+ }
564
+ export interface ResourceIngressSpecBackendService {
565
+ name?: string;
566
+ port?: ResourceIngressSpecBackendServicePort;
567
+ }
568
+ export interface ResourceIngressSpecBackendResource {
569
+ apiGroup?: string;
570
+ kind?: string;
571
+ name?: string;
572
+ }
573
+ export interface ResourceIngressSpecRulesHttpPathsBackend {
574
+ resource?: ResourceIngressSpecBackendResource;
575
+ service?: ResourceIngressSpecBackendService;
576
+ }
577
+ export interface ResourceIngressSpec {
578
+ defaultBackend?: ResourceIngressSpecRulesHttpPathsBackend;
579
+ ingressClassName: string;
580
+ rules: ResourceIngressSpecRules[];
581
+ tls: ResourceIngressSpecTls[];
582
+ }
583
+ export interface ResourceIngress {
584
+ spec: ResourceIngressSpec;
585
+ status: ResourceIngressStatus;
586
+ }
587
+ export interface ResourceDaemonSetStatus {
588
+ numberReady: number;
589
+ numberUnavailable: number;
590
+ currentReplicas: number;
591
+ numberAvailable: number;
592
+ updatedNumberScheduled: number;
593
+ desiredNumberScheduled: number;
594
+ currentNumberScheduled: number;
595
+ }
596
+ export interface ResourceDaemonSet {
597
+ status: ResourceDaemonSetStatus;
598
+ }
599
+ export interface ResourceStatefulSetStatus {
600
+ replicas: number;
601
+ availableReplicas: number;
602
+ currentReplicas: number;
603
+ readyReplicas: number;
604
+ updatedReplicas: number;
605
+ }
606
+ export interface ResourceStatefulSet {
607
+ status: ResourceStatefulSetStatus;
608
+ }
609
+ export interface ResourceReplicaSetStatus {
610
+ availableReplicas: number;
611
+ readyReplicas: number;
612
+ replicas: number;
613
+ }
614
+ export interface ResourceReplicaSetSpecSelectorMatchExpressions {
615
+ key: string;
616
+ operator: string;
617
+ values: string[];
618
+ }
619
+ export interface ResourceReplicaSetSpecSelector {
620
+ matchExpressions: ResourceReplicaSetSpecSelectorMatchExpressions[];
621
+ matchLabels: { [key: string]: string };
622
+ }
623
+ export interface ResourceReplicaSetSpec {
624
+ replicas: number;
625
+ selector: ResourceReplicaSetSpecSelector;
626
+ }
627
+ export interface ResourceReplicaSet {
628
+ spec: ResourceReplicaSetSpec;
629
+ status: ResourceReplicaSetStatus;
630
+ }
631
+ export interface ResourcePodStatus {
632
+ message?: string;
633
+ phase?: string;
634
+ reason?: string;
635
+ startTime?: string;
636
+ }
637
+ export interface ResourcePodSpecContainersPorts {
638
+ name?: string;
639
+ containerPort?: number;
640
+ protocol?: string;
641
+ }
642
+ export interface ResourcePodSpecContainers {
643
+ name?: string;
644
+ image?: string;
645
+ ports?: ResourcePodSpecContainersPorts[];
646
+ }
647
+ export interface ResourcePodSpec {
648
+ containers?: ResourcePodSpecContainers[];
649
+ serviceAccountName?: string;
650
+ nodeName?: string;
651
+ }
652
+ export interface ResourcePod {
653
+ spec?: ResourcePodSpec;
654
+ status?: ResourcePodStatus;
655
+ }
656
+ export interface IntOrString {
657
+ Type: number;
658
+ IntVal: number;
659
+ StrVal: string;
660
+ }
661
+ export interface ResourceServicePorts {
662
+ appProtocol: string;
663
+ name: string;
664
+ port: number;
665
+ protocol: string;
666
+ targetPort: IntOrString;
667
+ }
668
+ export interface ResourceServiceSpec {
669
+ type: string;
670
+ selector: { [key: string]: string };
671
+ ports: ResourceServicePorts[];
672
+ clusterIP: string;
673
+ clusterIPs: string[];
674
+ externalIPs?: string[];
675
+ externalName?: string;
676
+ ipFamilies: string[];
677
+ ipFamilyPolicy: string;
678
+ internalTrafficPolicy: string;
679
+ externalTrafficPolicy: string;
680
+ }
681
+ export interface ResourceService {
682
+ spec: ResourceServiceSpec;
683
+ }
684
+ export interface ResourceCertificateStatusCondition {
685
+ lastTransitionTime: string;
686
+ observedGeneration: number;
687
+ message: string;
688
+ reason: string;
689
+ status: string;
690
+ type: string;
691
+ }
692
+ export interface ResourceCertificateStatus {
693
+ notBefore: string;
694
+ notAfter: string;
695
+ renewalTime: string;
696
+ conditions: ResourceCertificateStatusCondition[];
697
+ }
698
+ export interface ResourceCertificateSpecIssuerref {
699
+ group: string;
700
+ kind: string;
701
+ name: string;
702
+ }
703
+ export interface ResourceCertificateSpec {
704
+ dnsNames: string[];
705
+ secretName: string;
706
+ issuerRef: ResourceCertificateSpecIssuerref;
707
+ usages?: string[];
708
+ }
709
+ export interface ResourceCertificate {
710
+ spec: ResourceCertificateSpec;
711
+ status: ResourceCertificateStatus;
712
+ }
713
+ export interface ResourceAppProjectSpec {
714
+ description: string;
715
+ sourceRepos: string[];
716
+ destinations: ResourceApplicationSpecDestination[];
717
+ }
718
+ export interface ResourceAppProject {
719
+ spec: ResourceAppProjectSpec;
720
+ }
721
+ export interface ResourceApplicationStatusSync {
722
+ revision: string;
723
+ status: string;
724
+ }
725
+ export interface ResourceApplicationStatusHealth {
726
+ message: string;
727
+ status: string;
728
+ }
729
+ export interface ResourceApplicationStatusOperationstate {
730
+ startedAt: string;
731
+ finishedAt: string;
732
+ phase: string;
733
+ status: string;
734
+ message: string;
735
+ }
736
+ export interface ResourceApplicationStatus {
737
+ sourceType: string;
738
+ reconciledAt: string;
739
+ operationState: ResourceApplicationStatusOperationstate;
740
+ health: ResourceApplicationStatusHealth;
741
+ sync: ResourceApplicationStatusSync;
742
+ }
743
+ export interface ResourceApplicationSpecSyncpolicyRetryBackoff {
744
+ duration: string;
745
+ factor: number;
746
+ maxDuration: string;
747
+ }
748
+ export interface ResourceApplicationSpecSyncpolicyRetry {
749
+ backoff?: ResourceApplicationSpecSyncpolicyRetryBackoff;
750
+ limit: number;
751
+ }
752
+ export interface ResourceApplicationSpecSyncpolicyAutomated {
753
+ allowEmpty: boolean;
754
+ prune: boolean;
755
+ selfHeal: boolean;
756
+ }
757
+ export interface ResourceApplicationSpecSyncpolicy {
758
+ automated?: ResourceApplicationSpecSyncpolicyAutomated;
759
+ retry?: ResourceApplicationSpecSyncpolicyRetry;
760
+ syncOptions: string[];
761
+ }
762
+ export interface ResourceApplicationSpecSource {
763
+ chart?: string;
764
+ path?: string;
765
+ repoURL: string;
766
+ targetRevision: string;
767
+ }
768
+ export interface ResourceApplicationSpecDestination {
769
+ name: string;
770
+ namespace: string;
771
+ server: string;
772
+ }
773
+ export interface ResourceApplicationSpec {
774
+ destination: ResourceApplicationSpecDestination;
775
+ project: string;
776
+ source: ResourceApplicationSpecSource;
777
+ syncPolicy: ResourceApplicationSpecSyncpolicy;
778
+ }
779
+ export interface ResourceApplication {
780
+ spec: ResourceApplicationSpec;
781
+ status: ResourceApplicationStatus;
782
+ }
783
+ export interface ResourcePolicyReportSummary {
784
+ error: number;
785
+ fail: number;
786
+ pass: number;
787
+ skip: number;
788
+ warn: number;
789
+ }
790
+ export interface ResourcePolicyReportResultsResources {
791
+ uid: string;
792
+ apiVersion: string;
793
+ kind: string;
794
+ name: string;
795
+ }
796
+ export interface ResourcePolicyReportResults {
797
+ policy: string;
798
+ message: string;
799
+ category: string;
800
+ properties: { [key: string]: string };
801
+ severity: string;
802
+ result: string;
803
+ resources: ResourcePolicyReportResultsResources[];
804
+ }
805
+ export interface ResourcePolicyReport {
806
+ results: ResourcePolicyReportResults[];
807
+ summary: ResourcePolicyReportSummary;
808
+ lastReported?: string;
809
+ }
810
+ export interface ResourceStorageClass {
811
+ allowVolumeExpansion: boolean;
812
+ provisioner: string;
813
+ reclaimPolicy: string;
814
+ volumeBindingMode: string;
815
+ }
816
+ export interface ResourceDeploymentStatus {
817
+ replicas: number;
818
+ availableReplicas: number;
819
+ readyReplicas: number;
820
+ updatedReplicas: number;
821
+ }
822
+ export interface ResourceDeployment {
823
+ status: ResourceDeploymentStatus;
824
+ }
825
+ export interface ResourcePersistentVolumeClaimStatus {
826
+ accessModes: string[];
827
+ capacity: { [key: string]: string };
828
+ phase: string;
829
+ }
830
+ export interface ResourcePersistentVolumeClaimSpecResources {
831
+ limits?: { [key: string]: string };
832
+ requests: { [key: string]: string };
833
+ }
834
+ export interface ResourcePersistentVolumeClaimSpec {
835
+ accessModes: string[];
836
+ resources: ResourcePersistentVolumeClaimSpecResources;
837
+ storageClassName: string;
838
+ volumeMode: string;
839
+ volumeName: string;
840
+ }
841
+ export interface ResourcePersistentVolumeClaim {
842
+ spec: ResourcePersistentVolumeClaimSpec;
843
+ status: ResourcePersistentVolumeClaimStatus;
844
+ }
845
+ export interface ResourceNodeStatusNodeinfo {
846
+ architecture: string;
847
+ bootID: string;
848
+ containerRuntimeVersion: string;
849
+ kernelVersion: string;
850
+ kubeProxyVersion: string;
851
+ kubeletVersion: string;
852
+ machineID: string;
853
+ operatingSystem: string;
854
+ osImage: string;
855
+ systemUUID: string;
856
+ }
857
+ export interface ResourceNodeStatusConditions {
858
+ lastHeartbeatTime: string;
859
+ lastTransitionTime: string;
860
+ message: string;
861
+ reason: string;
862
+ status: string;
863
+ type: string;
864
+ }
865
+ export interface ResourceNodeStatusCapacity {
866
+ cpu: string;
867
+ ephemeralStorage: string;
868
+ memory: string;
869
+ pods: string;
870
+ }
871
+ export interface ResourceNodeStatusAddresses {
872
+ address: string;
873
+ type: string;
874
+ }
875
+ export interface ResourceNodeStatus {
876
+ addresses: ResourceNodeStatusAddresses[];
877
+ capacity: ResourceNodeStatusCapacity;
878
+ conditions: ResourceNodeStatusConditions[];
879
+ nodeInfo: ResourceNodeStatusNodeinfo;
880
+ }
881
+ export interface ResourceNodeSpecTaints {
882
+ effect: string;
883
+ key: string;
884
+ }
885
+ export interface ResourceNodeSpec {
886
+ podCIDR?: string;
887
+ podCIDRs?: string[];
888
+ providerID?: string;
889
+ taints?: ResourceNodeSpecTaints[];
890
+ }
891
+ export interface ResourceNode {
892
+ spec: ResourceNodeSpec;
893
+ status: ResourceNodeStatus;
894
+ }
895
+ export interface ResourceNamespace {}
896
+ export interface RorResourceOwnerReference {
897
+ scope: string;
898
+ subject: string;
899
+ }
900
+ export interface ResourceRorMeta {
901
+ version?: string;
902
+ lastReported?: string;
903
+ internal?: boolean;
904
+ hash?: string;
905
+ ownerref?: RorResourceOwnerReference;
906
+ action?: string;
907
+ }
908
+ export interface FieldsV1 {}
909
+ export interface ManagedFieldsEntry {
910
+ manager?: string;
911
+ operation?: string;
912
+ apiVersion?: string;
913
+ time?: Time;
914
+ fieldsType?: string;
915
+ fieldsV1?: FieldsV1;
916
+ subresource?: string;
917
+ }
918
+ export interface OwnerReference {
919
+ apiVersion: string;
920
+ kind: string;
921
+ name: string;
922
+ uid: string;
923
+ controller?: boolean;
924
+ blockOwnerDeletion?: boolean;
925
+ }
926
+ export interface Time {}
927
+ export interface ObjectMeta {
928
+ name?: string;
929
+ generateName?: string;
930
+ namespace?: string;
931
+ selfLink?: string;
932
+ uid?: string;
933
+ resourceVersion?: string;
934
+ generation?: number;
935
+ creationTimestamp?: Time;
936
+ deletionTimestamp?: Time;
937
+ deletionGracePeriodSeconds?: number;
938
+ labels?: { [key: string]: string };
939
+ annotations?: { [key: string]: string };
940
+ ownerReferences?: OwnerReference[];
941
+ finalizers?: string[];
942
+ managedFields?: ManagedFieldsEntry[];
943
+ }
944
+ export interface Resource {
945
+ kind?: string;
946
+ apiVersion?: string;
947
+ metadata?: ObjectMeta;
948
+ rormeta: ResourceRorMeta;
949
+ namespace?: ResourceNamespace;
950
+ node?: ResourceNode;
951
+ persistentvolumeclaim?: ResourcePersistentVolumeClaim;
952
+ deployment?: ResourceDeployment;
953
+ storageclass?: ResourceStorageClass;
954
+ policyreport?: ResourcePolicyReport;
955
+ application?: ResourceApplication;
956
+ appproject?: ResourceAppProject;
957
+ certificate?: ResourceCertificate;
958
+ service?: ResourceService;
959
+ pod?: ResourcePod;
960
+ replicaset?: ResourceReplicaSet;
961
+ statefulset?: ResourceStatefulSet;
962
+ daemonset?: ResourceDaemonSet;
963
+ ingress?: ResourceIngress;
964
+ ingressclass?: ResourceIngressClass;
965
+ vulnerabilityreport?: ResourceVulnerabilityReport;
966
+ exposedsecretreport?: ResourceExposedSecretReport;
967
+ configauditreport?: ResourceConfigAuditReport;
968
+ rbacassessmentreport?: ResourceRbacAssessmentReport;
969
+ tanzukubernetescluster?: ResourceTanzuKubernetesCluster;
970
+ tanzukubernetesrelease?: ResourceTanzuKubernetesRelease;
971
+ virtualmachineclass?: ResourceVirtualMachineClass;
972
+ virtualmachineclassbinding?: ResourceVirtualMachineClassBinding;
973
+ kubernetescluster?: ResourceKubernetesCluster;
974
+ clusterorder?: ResourceClusterOrder;
975
+ project?: ResourceProject;
976
+ configuration?: ResourceConfiguration;
977
+ clustercompliancereport?: ResourceClusterComplianceReport;
978
+ clustervulnerabilityreport?: ResourceClusterVulnerabilityReport;
979
+ route?: ResourceRoute;
980
+ slackmessage?: ResourceSlackMessage;
981
+ vulnerabilityevent?: ResourceVulnerabilityEvent;
982
+ virtualmachine?: ResourceVirtualMachine;
983
+ }
984
+ export interface ResourceSet {
985
+ resources?: Resource[];
986
+ }
987
+ export interface ResourceQueryFilter {
988
+ field?: string;
989
+ value?: string;
990
+ type?: string;
991
+ operator?: string;
992
+ }
993
+ export interface ResourceQueryOrder {
994
+ field?: string;
995
+ descending?: boolean;
996
+ index?: number;
997
+ }
998
+ export interface GroupVersionKind {
999
+ Group: string;
1000
+ Version: string;
1001
+ Kind: string;
1002
+ }
1003
+ export interface ResourceQuery {
1004
+ versionkind?: GroupVersionKind;
1005
+ uids?: string[];
1006
+ ownerrefs?: RorResourceOwnerReference[];
1007
+ fields?: string[];
1008
+ order?: ResourceQueryOrder[];
1009
+ filters?: ResourceQueryFilter[];
1010
+ offset?: number;
1011
+ limit?: number;
1012
+ relatedresources?: ResourceQuery[];
1013
+ }