/
hip_object.go
11287 lines (9479 loc) · 490 KB
/
hip_object.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package provider
// Note: This file is automatically generated. Manually made changes
// will be overwritten when the provider is generated.
import (
"context"
"regexp"
"strconv"
"strings"
"github.com/paloaltonetworks/scm-go"
suxdMuj "github.com/paloaltonetworks/scm-go/netsec/schemas/hip/objects"
sdhSKaQ "github.com/paloaltonetworks/scm-go/netsec/services/hipobjects"
"github.com/hashicorp/terraform-plugin-framework-validators/boolvalidator"
"github.com/hashicorp/terraform-plugin-framework-validators/int64validator"
"github.com/hashicorp/terraform-plugin-framework-validators/listvalidator"
"github.com/hashicorp/terraform-plugin-framework-validators/objectvalidator"
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/datasource"
dsschema "github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
rsschema "github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/int64default"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-log/tflog"
)
// Data source (listing).
var (
_ datasource.DataSource = &hipObjectListDataSource{}
_ datasource.DataSourceWithConfigure = &hipObjectListDataSource{}
)
func NewHipObjectListDataSource() datasource.DataSource {
return &hipObjectListDataSource{}
}
type hipObjectListDataSource struct {
client *scm.Client
}
// hipObjectListDsModel is the model.
type hipObjectListDsModel struct {
Tfid types.String `tfsdk:"tfid"`
// Input.
Device types.String `tfsdk:"device"`
Folder types.String `tfsdk:"folder"`
Limit types.Int64 `tfsdk:"limit"`
Name types.String `tfsdk:"name"`
Offset types.Int64 `tfsdk:"offset"`
Snippet types.String `tfsdk:"snippet"`
// Output.
Data []hipObjectListDsModel_suxdMuj_Config `tfsdk:"data"`
// omit input: limit
// omit input: offset
Total types.Int64 `tfsdk:"total"`
}
type hipObjectListDsModel_suxdMuj_Config struct {
AntiMalware *hipObjectListDsModel_suxdMuj_AntiMalwareObject `tfsdk:"anti_malware"`
Certificate *hipObjectListDsModel_suxdMuj_CertificateObject `tfsdk:"certificate"`
CustomChecks *hipObjectListDsModel_suxdMuj_CustomChecksObject `tfsdk:"custom_checks"`
DataLossPrevention *hipObjectListDsModel_suxdMuj_DataLossPreventionObject `tfsdk:"data_loss_prevention"`
Description types.String `tfsdk:"description"`
DiskBackup *hipObjectListDsModel_suxdMuj_DiskBackupObject `tfsdk:"disk_backup"`
DiskEncryption *hipObjectListDsModel_suxdMuj_DiskEncryptionObject `tfsdk:"disk_encryption"`
Firewall *hipObjectListDsModel_suxdMuj_FirewallObject `tfsdk:"firewall"`
HostInfo *hipObjectListDsModel_suxdMuj_HostInfoObject `tfsdk:"host_info"`
Id types.String `tfsdk:"id"`
MobileDevice *hipObjectListDsModel_suxdMuj_MobileDeviceObject `tfsdk:"mobile_device"`
Name types.String `tfsdk:"name"`
NetworkInfo *hipObjectListDsModel_suxdMuj_NetworkInfoObject `tfsdk:"network_info"`
PatchManagement *hipObjectListDsModel_suxdMuj_PatchManagementObject `tfsdk:"patch_management"`
}
type hipObjectListDsModel_suxdMuj_AntiMalwareObject struct {
Criteria *hipObjectListDsModel_suxdMuj_AntiMalwareCriteriaObject `tfsdk:"criteria"`
ExcludeVendor types.Bool `tfsdk:"exclude_vendor"`
Vendors []hipObjectListDsModel_suxdMuj_AntiMalwareVendorObject `tfsdk:"vendors"`
}
type hipObjectListDsModel_suxdMuj_AntiMalwareCriteriaObject struct {
IsInstalled types.Bool `tfsdk:"is_installed"`
LastScanTime *hipObjectListDsModel_suxdMuj_LastScanTimeObject `tfsdk:"last_scan_time"`
ProductVersion *hipObjectListDsModel_suxdMuj_ProductVersionObject `tfsdk:"product_version"`
RealTimeProtection types.String `tfsdk:"real_time_protection"`
VirdefVersion *hipObjectListDsModel_suxdMuj_VirdefVersionObject `tfsdk:"virdef_version"`
}
type hipObjectListDsModel_suxdMuj_LastScanTimeObject struct {
NotAvailable types.Bool `tfsdk:"not_available"`
NotWithin *hipObjectListDsModel_suxdMuj_LastScanTimeNotWithinObject `tfsdk:"not_within"`
Within *hipObjectListDsModel_suxdMuj_LastScanTimeWithinObject `tfsdk:"within"`
}
type hipObjectListDsModel_suxdMuj_LastScanTimeNotWithinObject struct {
Days types.Int64 `tfsdk:"days"`
Hours types.Int64 `tfsdk:"hours"`
}
type hipObjectListDsModel_suxdMuj_LastScanTimeWithinObject struct {
Days types.Int64 `tfsdk:"days"`
Hours types.Int64 `tfsdk:"hours"`
}
type hipObjectListDsModel_suxdMuj_ProductVersionObject struct {
Contains types.String `tfsdk:"contains"`
GreaterEqual types.String `tfsdk:"greater_equal"`
GreaterThan types.String `tfsdk:"greater_than"`
Is types.String `tfsdk:"is"`
IsNot types.String `tfsdk:"is_not"`
LessEqual types.String `tfsdk:"less_equal"`
LessThan types.String `tfsdk:"less_than"`
NotWithin *hipObjectListDsModel_suxdMuj_ProductVersionNotWithinObject `tfsdk:"not_within"`
Within *hipObjectListDsModel_suxdMuj_ProductVersionWithinObject `tfsdk:"within"`
}
type hipObjectListDsModel_suxdMuj_ProductVersionNotWithinObject struct {
Versions types.Int64 `tfsdk:"versions"`
}
type hipObjectListDsModel_suxdMuj_ProductVersionWithinObject struct {
Versions types.Int64 `tfsdk:"versions"`
}
type hipObjectListDsModel_suxdMuj_VirdefVersionObject struct {
NotWithin *hipObjectListDsModel_suxdMuj_VirdefVersionNotWithinObject `tfsdk:"not_within"`
Within *hipObjectListDsModel_suxdMuj_VirdefVersionWithinObject `tfsdk:"within"`
}
type hipObjectListDsModel_suxdMuj_VirdefVersionNotWithinObject struct {
Days types.Int64 `tfsdk:"days"`
Versions types.Int64 `tfsdk:"versions"`
}
type hipObjectListDsModel_suxdMuj_VirdefVersionWithinObject struct {
Days types.Int64 `tfsdk:"days"`
Versions types.Int64 `tfsdk:"versions"`
}
type hipObjectListDsModel_suxdMuj_AntiMalwareVendorObject struct {
Name types.String `tfsdk:"name"`
Products types.List `tfsdk:"products"`
}
type hipObjectListDsModel_suxdMuj_CertificateObject struct {
Criteria *hipObjectListDsModel_suxdMuj_CertificateCriteriaObject `tfsdk:"criteria"`
}
type hipObjectListDsModel_suxdMuj_CertificateCriteriaObject struct {
CertificateAttributes []hipObjectListDsModel_suxdMuj_CertificateAttributeObject `tfsdk:"certificate_attributes"`
CertificateProfile types.String `tfsdk:"certificate_profile"`
}
type hipObjectListDsModel_suxdMuj_CertificateAttributeObject struct {
Name types.String `tfsdk:"name"`
Value types.String `tfsdk:"value"`
}
type hipObjectListDsModel_suxdMuj_CustomChecksObject struct {
Criteria hipObjectListDsModel_suxdMuj_CustomChecksCriteriaObject `tfsdk:"criteria"`
}
type hipObjectListDsModel_suxdMuj_CustomChecksCriteriaObject struct {
Plist []hipObjectListDsModel_suxdMuj_PlistObject `tfsdk:"plist"`
ProcessList []hipObjectListDsModel_suxdMuj_ProcessListObject `tfsdk:"process_list"`
RegistryKeys []hipObjectListDsModel_suxdMuj_RegistryKeyObject `tfsdk:"registry_keys"`
}
type hipObjectListDsModel_suxdMuj_PlistObject struct {
Keys []hipObjectListDsModel_suxdMuj_KeyObject `tfsdk:"keys"`
Name types.String `tfsdk:"name"`
Negate types.Bool `tfsdk:"negate"`
}
type hipObjectListDsModel_suxdMuj_KeyObject struct {
Name types.String `tfsdk:"name"`
Negate types.Bool `tfsdk:"negate"`
Value types.String `tfsdk:"value"`
}
type hipObjectListDsModel_suxdMuj_ProcessListObject struct {
Name types.String `tfsdk:"name"`
Running types.Bool `tfsdk:"running"`
}
type hipObjectListDsModel_suxdMuj_RegistryKeyObject struct {
DefaultValueData types.String `tfsdk:"default_value_data"`
Name types.String `tfsdk:"name"`
Negate types.Bool `tfsdk:"negate"`
RegistryValues []hipObjectListDsModel_suxdMuj_RegistryValueObject `tfsdk:"registry_values"`
}
type hipObjectListDsModel_suxdMuj_RegistryValueObject struct {
Name types.String `tfsdk:"name"`
Negate types.Bool `tfsdk:"negate"`
ValueData types.String `tfsdk:"value_data"`
}
type hipObjectListDsModel_suxdMuj_DataLossPreventionObject struct {
Criteria *hipObjectListDsModel_suxdMuj_DataLossPreventionCriteriaObject `tfsdk:"criteria"`
ExcludeVendor types.Bool `tfsdk:"exclude_vendor"`
Vendors []hipObjectListDsModel_suxdMuj_DataLossPreventionVendorObject `tfsdk:"vendors"`
}
type hipObjectListDsModel_suxdMuj_DataLossPreventionCriteriaObject struct {
IsEnabled types.String `tfsdk:"is_enabled"`
IsInstalled types.Bool `tfsdk:"is_installed"`
}
type hipObjectListDsModel_suxdMuj_DataLossPreventionVendorObject struct {
Name types.String `tfsdk:"name"`
Products types.List `tfsdk:"products"`
}
type hipObjectListDsModel_suxdMuj_DiskBackupObject struct {
Criteria *hipObjectListDsModel_suxdMuj_DiskBackupCriteriaObject `tfsdk:"criteria"`
ExcludeVendor types.Bool `tfsdk:"exclude_vendor"`
Vendors []hipObjectListDsModel_suxdMuj_DiskBackupVendorObject `tfsdk:"vendors"`
}
type hipObjectListDsModel_suxdMuj_DiskBackupCriteriaObject struct {
IsInstalled types.Bool `tfsdk:"is_installed"`
LastBackupTime *hipObjectListDsModel_suxdMuj_LastBackupTimeObject `tfsdk:"last_backup_time"`
}
type hipObjectListDsModel_suxdMuj_LastBackupTimeObject struct {
NotAvailable types.Bool `tfsdk:"not_available"`
NotWithin *hipObjectListDsModel_suxdMuj_LastBackupTimeNotWithinObject `tfsdk:"not_within"`
Within *hipObjectListDsModel_suxdMuj_LastBackupTimeWithinObject `tfsdk:"within"`
}
type hipObjectListDsModel_suxdMuj_LastBackupTimeNotWithinObject struct {
Days types.Int64 `tfsdk:"days"`
Hours types.Int64 `tfsdk:"hours"`
}
type hipObjectListDsModel_suxdMuj_LastBackupTimeWithinObject struct {
Days types.Int64 `tfsdk:"days"`
Hours types.Int64 `tfsdk:"hours"`
}
type hipObjectListDsModel_suxdMuj_DiskBackupVendorObject struct {
Name types.String `tfsdk:"name"`
Products types.List `tfsdk:"products"`
}
type hipObjectListDsModel_suxdMuj_DiskEncryptionObject struct {
Criteria *hipObjectListDsModel_suxdMuj_DiskEncryptionCriteriaObject `tfsdk:"criteria"`
ExcludeVendor types.Bool `tfsdk:"exclude_vendor"`
Vendors []hipObjectListDsModel_suxdMuj_DiskEncryptionVendorObject `tfsdk:"vendors"`
}
type hipObjectListDsModel_suxdMuj_DiskEncryptionCriteriaObject struct {
EncryptedLocations []hipObjectListDsModel_suxdMuj_EncryptedLocationObject `tfsdk:"encrypted_locations"`
IsInstalled types.Bool `tfsdk:"is_installed"`
}
type hipObjectListDsModel_suxdMuj_EncryptedLocationObject struct {
EncryptionState *hipObjectListDsModel_suxdMuj_EncryptionStateObject `tfsdk:"encryption_state"`
Name types.String `tfsdk:"name"`
}
type hipObjectListDsModel_suxdMuj_EncryptionStateObject struct {
Is types.String `tfsdk:"is"`
IsNot types.String `tfsdk:"is_not"`
}
type hipObjectListDsModel_suxdMuj_DiskEncryptionVendorObject struct {
Name types.String `tfsdk:"name"`
Products types.List `tfsdk:"products"`
}
type hipObjectListDsModel_suxdMuj_FirewallObject struct {
Criteria *hipObjectListDsModel_suxdMuj_FirewallCriteriaObject `tfsdk:"criteria"`
ExcludeVendor types.Bool `tfsdk:"exclude_vendor"`
Vendors []hipObjectListDsModel_suxdMuj_FirewallVendorObject `tfsdk:"vendors"`
}
type hipObjectListDsModel_suxdMuj_FirewallCriteriaObject struct {
IsEnabled types.String `tfsdk:"is_enabled"`
IsInstalled types.Bool `tfsdk:"is_installed"`
}
type hipObjectListDsModel_suxdMuj_FirewallVendorObject struct {
Name types.String `tfsdk:"name"`
Products types.List `tfsdk:"products"`
}
type hipObjectListDsModel_suxdMuj_HostInfoObject struct {
Criteria hipObjectListDsModel_suxdMuj_HostInfoCriteriaObject `tfsdk:"criteria"`
}
type hipObjectListDsModel_suxdMuj_HostInfoCriteriaObject struct {
ClientVersion *hipObjectListDsModel_suxdMuj_ClientVersionObject `tfsdk:"client_version"`
Domain *hipObjectListDsModel_suxdMuj_DomainObject `tfsdk:"domain"`
HostId *hipObjectListDsModel_suxdMuj_HostIdObject `tfsdk:"host_id"`
HostName *hipObjectListDsModel_suxdMuj_HostNameObject `tfsdk:"host_name"`
Managed types.Bool `tfsdk:"managed"`
Os *hipObjectListDsModel_suxdMuj_OsObject `tfsdk:"os"`
SerialNumber *hipObjectListDsModel_suxdMuj_SerialNumberObject `tfsdk:"serial_number"`
}
type hipObjectListDsModel_suxdMuj_ClientVersionObject struct {
Contains types.String `tfsdk:"contains"`
Is types.String `tfsdk:"is"`
IsNot types.String `tfsdk:"is_not"`
}
type hipObjectListDsModel_suxdMuj_DomainObject struct {
Contains types.String `tfsdk:"contains"`
Is types.String `tfsdk:"is"`
IsNot types.String `tfsdk:"is_not"`
}
type hipObjectListDsModel_suxdMuj_HostIdObject struct {
Contains types.String `tfsdk:"contains"`
Is types.String `tfsdk:"is"`
IsNot types.String `tfsdk:"is_not"`
}
type hipObjectListDsModel_suxdMuj_HostNameObject struct {
Contains types.String `tfsdk:"contains"`
Is types.String `tfsdk:"is"`
IsNot types.String `tfsdk:"is_not"`
}
type hipObjectListDsModel_suxdMuj_OsObject struct {
Contains *hipObjectListDsModel_suxdMuj_ContainsObject `tfsdk:"contains"`
}
type hipObjectListDsModel_suxdMuj_ContainsObject struct {
Apple types.String `tfsdk:"apple"`
Google types.String `tfsdk:"google"`
Linux types.String `tfsdk:"linux"`
Microsoft types.String `tfsdk:"microsoft"`
Other types.String `tfsdk:"other"`
}
type hipObjectListDsModel_suxdMuj_SerialNumberObject struct {
Contains types.String `tfsdk:"contains"`
Is types.String `tfsdk:"is"`
IsNot types.String `tfsdk:"is_not"`
}
type hipObjectListDsModel_suxdMuj_MobileDeviceObject struct {
Criteria *hipObjectListDsModel_suxdMuj_MobileDeviceCriteriaObject `tfsdk:"criteria"`
}
type hipObjectListDsModel_suxdMuj_MobileDeviceCriteriaObject struct {
Applications *hipObjectListDsModel_suxdMuj_ApplicationsObject `tfsdk:"applications"`
DiskEncrypted types.Bool `tfsdk:"disk_encrypted"`
Imei *hipObjectListDsModel_suxdMuj_ImeiObject `tfsdk:"imei"`
Jailbroken types.Bool `tfsdk:"jailbroken"`
LastCheckinTime *hipObjectListDsModel_suxdMuj_LastCheckinTimeObject `tfsdk:"last_checkin_time"`
Model *hipObjectListDsModel_suxdMuj_ModelObject `tfsdk:"model"`
PasscodeSet types.Bool `tfsdk:"passcode_set"`
PhoneNumber *hipObjectListDsModel_suxdMuj_PhoneNumberObject `tfsdk:"phone_number"`
Tag *hipObjectListDsModel_suxdMuj_TagObject `tfsdk:"tag"`
}
type hipObjectListDsModel_suxdMuj_ApplicationsObject struct {
HasMalware *hipObjectListDsModel_suxdMuj_HasMalwareObject `tfsdk:"has_malware"`
HasUnmanagedApp types.Bool `tfsdk:"has_unmanaged_app"`
Includes []hipObjectListDsModel_suxdMuj_IncludeObject `tfsdk:"includes"`
}
type hipObjectListDsModel_suxdMuj_HasMalwareObject struct {
No types.Bool `tfsdk:"no"`
Yes *hipObjectListDsModel_suxdMuj_YesObject `tfsdk:"yes"`
}
type hipObjectListDsModel_suxdMuj_YesObject struct {
Excludes []hipObjectListDsModel_suxdMuj_ExcludeObject `tfsdk:"excludes"`
}
type hipObjectListDsModel_suxdMuj_ExcludeObject struct {
Hash types.String `tfsdk:"hash"`
Name types.String `tfsdk:"name"`
Package types.String `tfsdk:"package"`
}
type hipObjectListDsModel_suxdMuj_IncludeObject struct {
Hash types.String `tfsdk:"hash"`
Name types.String `tfsdk:"name"`
Package types.String `tfsdk:"package"`
}
type hipObjectListDsModel_suxdMuj_ImeiObject struct {
Contains types.String `tfsdk:"contains"`
Is types.String `tfsdk:"is"`
IsNot types.String `tfsdk:"is_not"`
}
type hipObjectListDsModel_suxdMuj_LastCheckinTimeObject struct {
NotWithin *hipObjectListDsModel_suxdMuj_LastCheckinTimeNotWithinObject `tfsdk:"not_within"`
Within *hipObjectListDsModel_suxdMuj_LastCheckinTimeWithinObject `tfsdk:"within"`
}
type hipObjectListDsModel_suxdMuj_LastCheckinTimeNotWithinObject struct {
Days types.Int64 `tfsdk:"days"`
}
type hipObjectListDsModel_suxdMuj_LastCheckinTimeWithinObject struct {
Days types.Int64 `tfsdk:"days"`
}
type hipObjectListDsModel_suxdMuj_ModelObject struct {
Contains types.String `tfsdk:"contains"`
Is types.String `tfsdk:"is"`
IsNot types.String `tfsdk:"is_not"`
}
type hipObjectListDsModel_suxdMuj_PhoneNumberObject struct {
Contains types.String `tfsdk:"contains"`
Is types.String `tfsdk:"is"`
IsNot types.String `tfsdk:"is_not"`
}
type hipObjectListDsModel_suxdMuj_TagObject struct {
Contains types.String `tfsdk:"contains"`
Is types.String `tfsdk:"is"`
IsNot types.String `tfsdk:"is_not"`
}
type hipObjectListDsModel_suxdMuj_NetworkInfoObject struct {
Criteria *hipObjectListDsModel_suxdMuj_NetworkInfoCriteriaObject `tfsdk:"criteria"`
}
type hipObjectListDsModel_suxdMuj_NetworkInfoCriteriaObject struct {
Network *hipObjectListDsModel_suxdMuj_NetworkObject `tfsdk:"network"`
}
type hipObjectListDsModel_suxdMuj_NetworkObject struct {
Is *hipObjectListDsModel_suxdMuj_IsObject `tfsdk:"is"`
IsNot *hipObjectListDsModel_suxdMuj_IsNotObject `tfsdk:"is_not"`
}
type hipObjectListDsModel_suxdMuj_IsObject struct {
Mobile *hipObjectListDsModel_suxdMuj_IsMobileObject `tfsdk:"mobile"`
Unknown types.Bool `tfsdk:"unknown"`
Wifi *hipObjectListDsModel_suxdMuj_IsWifiObject `tfsdk:"wifi"`
}
type hipObjectListDsModel_suxdMuj_IsMobileObject struct {
Carrier types.String `tfsdk:"carrier"`
}
type hipObjectListDsModel_suxdMuj_IsWifiObject struct {
Ssid types.String `tfsdk:"ssid"`
}
type hipObjectListDsModel_suxdMuj_IsNotObject struct {
Ethernet types.Bool `tfsdk:"ethernet"`
Mobile *hipObjectListDsModel_suxdMuj_IsNotMobileObject `tfsdk:"mobile"`
Unknown types.Bool `tfsdk:"unknown"`
Wifi *hipObjectListDsModel_suxdMuj_IsNotWifiObject `tfsdk:"wifi"`
}
type hipObjectListDsModel_suxdMuj_IsNotMobileObject struct {
Carrier types.String `tfsdk:"carrier"`
}
type hipObjectListDsModel_suxdMuj_IsNotWifiObject struct {
Ssid types.String `tfsdk:"ssid"`
}
type hipObjectListDsModel_suxdMuj_PatchManagementObject struct {
Criteria *hipObjectListDsModel_suxdMuj_CriteriaObject `tfsdk:"criteria"`
ExcludeVendor types.Bool `tfsdk:"exclude_vendor"`
Vendors []hipObjectListDsModel_suxdMuj_PatchManagementVendorObject `tfsdk:"vendors"`
}
type hipObjectListDsModel_suxdMuj_CriteriaObject struct {
IsEnabled types.String `tfsdk:"is_enabled"`
IsInstalled types.Bool `tfsdk:"is_installed"`
MissingPatches *hipObjectListDsModel_suxdMuj_MissingPatchesObject `tfsdk:"missing_patches"`
}
type hipObjectListDsModel_suxdMuj_MissingPatchesObject struct {
Check types.String `tfsdk:"check"`
Patches types.List `tfsdk:"patches"`
Severity *hipObjectListDsModel_suxdMuj_SeverityObject `tfsdk:"severity"`
}
type hipObjectListDsModel_suxdMuj_SeverityObject struct {
GreaterEqual types.Int64 `tfsdk:"greater_equal"`
GreaterThan types.Int64 `tfsdk:"greater_than"`
Is types.Int64 `tfsdk:"is"`
IsNot types.Int64 `tfsdk:"is_not"`
LessEqual types.Int64 `tfsdk:"less_equal"`
LessThan types.Int64 `tfsdk:"less_than"`
}
type hipObjectListDsModel_suxdMuj_PatchManagementVendorObject struct {
Name types.String `tfsdk:"name"`
Products types.List `tfsdk:"products"`
}
// Metadata returns the data source type name.
func (d *hipObjectListDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
resp.TypeName = req.ProviderTypeName + "_hip_object_list"
}
// Schema defines the schema for this listing data source.
func (d *hipObjectListDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
resp.Schema = dsschema.Schema{
Description: "Retrieves a listing of config items.",
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{"device":true, "folder":true, "limit":true, "name":true, "offset":true, "snippet":true} outputs:map[string]bool{"data":true, "limit":true, "offset":true, "tfid":true, "total":true} forceNew:map[string]bool{"device":true, "folder":true, "limit":true, "name":true, "offset":true, "snippet":true}
"data": dsschema.ListNestedAttribute{
Description: "The Data param.",
Computed: true,
NestedObject: dsschema.NestedAttributeObject{
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"anti_malware":true, "certificate":true, "custom_checks":true, "data_loss_prevention":true, "description":true, "disk_backup":true, "disk_encryption":true, "firewall":true, "host_info":true, "id":true, "mobile_device":true, "name":true, "network_info":true, "patch_management":true} forceNew:map[string]bool(nil)
"anti_malware": dsschema.SingleNestedAttribute{
Description: "The AntiMalware param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"criteria":true, "exclude_vendor":true, "vendor":true} forceNew:map[string]bool(nil)
"criteria": dsschema.SingleNestedAttribute{
Description: "The Criteria param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"is_installed":true, "last_scan_time":true, "product_version":true, "real_time_protection":true, "virdef_version":true} forceNew:map[string]bool(nil)
"is_installed": dsschema.BoolAttribute{
Description: "Is Installed. Default: `true`.",
Computed: true,
},
"last_scan_time": dsschema.SingleNestedAttribute{
Description: "The LastScanTime param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"not_available":true, "not_within":true, "within":true} forceNew:map[string]bool(nil)
"not_available": dsschema.BoolAttribute{
Description: "The NotAvailable param.",
Computed: true,
},
"not_within": dsschema.SingleNestedAttribute{
Description: "The NotWithin param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"days":true, "hours":true} forceNew:map[string]bool(nil)
"days": dsschema.Int64Attribute{
Description: "specify time in days. Value must be between 1 and 65535.",
Computed: true,
},
"hours": dsschema.Int64Attribute{
Description: "specify time in hours. Value must be between 1 and 65535.",
Computed: true,
},
},
},
"within": dsschema.SingleNestedAttribute{
Description: "The Within param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"days":true, "hours":true} forceNew:map[string]bool(nil)
"days": dsschema.Int64Attribute{
Description: "specify time in days. Value must be between 1 and 65535.",
Computed: true,
},
"hours": dsschema.Int64Attribute{
Description: "specify time in hours. Value must be between 1 and 65535.",
Computed: true,
},
},
},
},
},
"product_version": dsschema.SingleNestedAttribute{
Description: "The ProductVersion param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"contains":true, "greater_equal":true, "greater_than":true, "is":true, "is_not":true, "less_equal":true, "less_than":true, "not_within":true, "within":true} forceNew:map[string]bool(nil)
"contains": dsschema.StringAttribute{
Description: "The Contains param. String length must not exceed 255 characters.",
Computed: true,
},
"greater_equal": dsschema.StringAttribute{
Description: "The GreaterEqual param. String length must not exceed 255 characters.",
Computed: true,
},
"greater_than": dsschema.StringAttribute{
Description: "The GreaterThan param. String length must not exceed 255 characters.",
Computed: true,
},
"is": dsschema.StringAttribute{
Description: "The Is param. String length must not exceed 255 characters.",
Computed: true,
},
"is_not": dsschema.StringAttribute{
Description: "The IsNot param. String length must not exceed 255 characters.",
Computed: true,
},
"less_equal": dsschema.StringAttribute{
Description: "The LessEqual param. String length must not exceed 255 characters.",
Computed: true,
},
"less_than": dsschema.StringAttribute{
Description: "The LessThan param. String length must not exceed 255 characters.",
Computed: true,
},
"not_within": dsschema.SingleNestedAttribute{
Description: "The NotWithin param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"versions":true} forceNew:map[string]bool(nil)
"versions": dsschema.Int64Attribute{
Description: "versions range. Value must be between 1 and 65535. Default: `1`.",
Computed: true,
},
},
},
"within": dsschema.SingleNestedAttribute{
Description: "The Within param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"versions":true} forceNew:map[string]bool(nil)
"versions": dsschema.Int64Attribute{
Description: "versions range. Value must be between 1 and 65535. Default: `1`.",
Computed: true,
},
},
},
},
},
"real_time_protection": dsschema.StringAttribute{
Description: "real time protection. String must be one of these: `\"no\"`, `\"yes\"`, `\"not-available\"`.",
Computed: true,
},
"virdef_version": dsschema.SingleNestedAttribute{
Description: "The VirdefVersion param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"not_within":true, "within":true} forceNew:map[string]bool(nil)
"not_within": dsschema.SingleNestedAttribute{
Description: "The NotWithin param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"days":true, "versions":true} forceNew:map[string]bool(nil)
"days": dsschema.Int64Attribute{
Description: "specify time in days. Value must be between 1 and 65535.",
Computed: true,
},
"versions": dsschema.Int64Attribute{
Description: "specify versions range. Value must be between 1 and 65535.",
Computed: true,
},
},
},
"within": dsschema.SingleNestedAttribute{
Description: "The Within param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"days":true, "versions":true} forceNew:map[string]bool(nil)
"days": dsschema.Int64Attribute{
Description: "specify time in days. Value must be between 1 and 65535.",
Computed: true,
},
"versions": dsschema.Int64Attribute{
Description: "specify versions range. Value must be between 1 and 65535.",
Computed: true,
},
},
},
},
},
},
},
"exclude_vendor": dsschema.BoolAttribute{
Description: "The ExcludeVendor param. Default: `false`.",
Computed: true,
},
"vendors": dsschema.ListNestedAttribute{
Description: "Vendor name.",
Computed: true,
NestedObject: dsschema.NestedAttributeObject{
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"name":true, "product":true} forceNew:map[string]bool(nil)
"name": dsschema.StringAttribute{
Description: "The Name param. String length must not exceed 103 characters.",
Computed: true,
},
"products": dsschema.ListAttribute{
Description: "The Products param. Individual elements in this list are subject to additional validation. String length must not exceed 1023 characters. String validation regex: `.*`.",
Computed: true,
ElementType: types.StringType,
},
},
},
},
},
},
"certificate": dsschema.SingleNestedAttribute{
Description: "The Certificate param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"criteria":true} forceNew:map[string]bool(nil)
"criteria": dsschema.SingleNestedAttribute{
Description: "The Criteria param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"certificate_attributes":true, "certificate_profile":true} forceNew:map[string]bool(nil)
"certificate_attributes": dsschema.ListNestedAttribute{
Description: "The CertificateAttributes param.",
Computed: true,
NestedObject: dsschema.NestedAttributeObject{
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"name":true, "value":true} forceNew:map[string]bool(nil)
"name": dsschema.StringAttribute{
Description: "Attribute Name.",
Computed: true,
},
"value": dsschema.StringAttribute{
Description: "Key value. String length must not exceed 1024 characters. String validation regex: `.*`.",
Computed: true,
},
},
},
},
"certificate_profile": dsschema.StringAttribute{
Description: "Profile for authenticating client certificates.",
Computed: true,
},
},
},
},
},
"custom_checks": dsschema.SingleNestedAttribute{
Description: "The CustomChecks param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"criteria":true} forceNew:map[string]bool(nil)
"criteria": dsschema.SingleNestedAttribute{
Description: "The Criteria param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"plist":true, "process_list":true, "registry_key":true} forceNew:map[string]bool(nil)
"plist": dsschema.ListNestedAttribute{
Description: "The Plist param.",
Computed: true,
NestedObject: dsschema.NestedAttributeObject{
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"key":true, "name":true, "negate":true} forceNew:map[string]bool(nil)
"keys": dsschema.ListNestedAttribute{
Description: "The Keys param.",
Computed: true,
NestedObject: dsschema.NestedAttributeObject{
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"name":true, "negate":true, "value":true} forceNew:map[string]bool(nil)
"name": dsschema.StringAttribute{
Description: "Key name. String length must not exceed 1023 characters.",
Computed: true,
},
"negate": dsschema.BoolAttribute{
Description: "Value does not exist or match specified value data. Default: `false`.",
Computed: true,
},
"value": dsschema.StringAttribute{
Description: "Key value. String length must not exceed 1024 characters. String validation regex: `.*`.",
Computed: true,
},
},
},
},
"name": dsschema.StringAttribute{
Description: "Preference list. String length must not exceed 1023 characters.",
Computed: true,
},
"negate": dsschema.BoolAttribute{
Description: "Plist does not exist. Default: `false`.",
Computed: true,
},
},
},
},
"process_list": dsschema.ListNestedAttribute{
Description: "The ProcessList param.",
Computed: true,
NestedObject: dsschema.NestedAttributeObject{
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"name":true, "running":true} forceNew:map[string]bool(nil)
"name": dsschema.StringAttribute{
Description: "Process Name. String length must not exceed 1023 characters.",
Computed: true,
},
"running": dsschema.BoolAttribute{
Description: "The Running param. Default: `true`.",
Computed: true,
},
},
},
},
"registry_keys": dsschema.ListNestedAttribute{
Description: "The RegistryKeys param.",
Computed: true,
NestedObject: dsschema.NestedAttributeObject{
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"default_value_data":true, "name":true, "negate":true, "registry_value":true} forceNew:map[string]bool(nil)
"default_value_data": dsschema.StringAttribute{
Description: "Registry key default value data. String length must not exceed 1024 characters. String validation regex: `.*`.",
Computed: true,
},
"name": dsschema.StringAttribute{
Description: "Registry key. String length must not exceed 1023 characters.",
Computed: true,
},
"negate": dsschema.BoolAttribute{
Description: "Key does not exist or match specified value data. Default: `false`.",
Computed: true,
},
"registry_values": dsschema.ListNestedAttribute{
Description: "The RegistryValues param.",
Computed: true,
NestedObject: dsschema.NestedAttributeObject{
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"name":true, "negate":true, "value_data":true} forceNew:map[string]bool(nil)
"name": dsschema.StringAttribute{
Description: "Registry value name. String length must not exceed 1023 characters.",
Computed: true,
},
"negate": dsschema.BoolAttribute{
Description: "Value does not exist or match specified value data. Default: `false`.",
Computed: true,
},
"value_data": dsschema.StringAttribute{
Description: "Registry value data. String length must not exceed 1024 characters. String validation regex: `.*`.",
Computed: true,
},
},
},
},
},
},
},
},
},
},
},
"data_loss_prevention": dsschema.SingleNestedAttribute{
Description: "The DataLossPrevention param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"criteria":true, "exclude_vendor":true, "vendor":true} forceNew:map[string]bool(nil)
"criteria": dsschema.SingleNestedAttribute{
Description: "The Criteria param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"is_enabled":true, "is_installed":true} forceNew:map[string]bool(nil)
"is_enabled": dsschema.StringAttribute{
Description: "is enabled. String must be one of these: `\"no\"`, `\"yes\"`, `\"not-available\"`.",
Computed: true,
},
"is_installed": dsschema.BoolAttribute{
Description: "Is Installed. Default: `true`.",
Computed: true,
},
},
},
"exclude_vendor": dsschema.BoolAttribute{
Description: "The ExcludeVendor param. Default: `false`.",
Computed: true,
},
"vendors": dsschema.ListNestedAttribute{
Description: "Vendor name.",
Computed: true,
NestedObject: dsschema.NestedAttributeObject{
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"name":true, "product":true} forceNew:map[string]bool(nil)
"name": dsschema.StringAttribute{
Description: "The Name param. String length must not exceed 103 characters.",
Computed: true,
},
"products": dsschema.ListAttribute{
Description: "Product name. Individual elements in this list are subject to additional validation. String length must not exceed 1023 characters. String validation regex: `.*`.",
Computed: true,
ElementType: types.StringType,
},
},
},
},
},
},
"description": dsschema.StringAttribute{
Description: "The Description param. String length must not exceed 255 characters.",
Computed: true,
},
"disk_backup": dsschema.SingleNestedAttribute{
Description: "The DiskBackup param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"criteria":true, "exclude_vendor":true, "vendor":true} forceNew:map[string]bool(nil)
"criteria": dsschema.SingleNestedAttribute{
Description: "The Criteria param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"is_installed":true, "last_backup_time":true} forceNew:map[string]bool(nil)
"is_installed": dsschema.BoolAttribute{
Description: "Is Installed. Default: `true`.",
Computed: true,
},
"last_backup_time": dsschema.SingleNestedAttribute{
Description: "The LastBackupTime param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"not_available":true, "not_within":true, "within":true} forceNew:map[string]bool(nil)
"not_available": dsschema.BoolAttribute{
Description: "The NotAvailable param.",
Computed: true,
},
"not_within": dsschema.SingleNestedAttribute{
Description: "The NotWithin param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"days":true, "hours":true} forceNew:map[string]bool(nil)
"days": dsschema.Int64Attribute{
Description: "specify time in days. Value must be between 1 and 65535.",
Computed: true,
},
"hours": dsschema.Int64Attribute{
Description: "specify time in hours. Value must be between 1 and 65535.",
Computed: true,
},
},
},
"within": dsschema.SingleNestedAttribute{
Description: "The Within param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"days":true, "hours":true} forceNew:map[string]bool(nil)
"days": dsschema.Int64Attribute{
Description: "specify time in days. Value must be between 1 and 65535.",
Computed: true,
},
"hours": dsschema.Int64Attribute{
Description: "specify time in hours. Value must be between 1 and 65535.",
Computed: true,
},
},
},
},
},
},
},
"exclude_vendor": dsschema.BoolAttribute{
Description: "The ExcludeVendor param. Default: `false`.",
Computed: true,
},
"vendors": dsschema.ListNestedAttribute{
Description: "Vendor name.",
Computed: true,
NestedObject: dsschema.NestedAttributeObject{
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"name":true, "product":true} forceNew:map[string]bool(nil)
"name": dsschema.StringAttribute{
Description: "The Name param. String length must not exceed 103 characters.",
Computed: true,
},
"products": dsschema.ListAttribute{
Description: "The Products param. Individual elements in this list are subject to additional validation. String length must not exceed 1023 characters. String validation regex: `.*`.",
Computed: true,
ElementType: types.StringType,
},
},
},
},
},
},
"disk_encryption": dsschema.SingleNestedAttribute{
Description: "The DiskEncryption param.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"criteria":true, "exclude_vendor":true, "vendor":true} forceNew:map[string]bool(nil)
"criteria": dsschema.SingleNestedAttribute{
Description: "Encryption locations.",
Computed: true,
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"encrypted_locations":true, "is_installed":true} forceNew:map[string]bool(nil)
"encrypted_locations": dsschema.ListNestedAttribute{
Description: "The EncryptedLocations param.",
Computed: true,
NestedObject: dsschema.NestedAttributeObject{
Attributes: map[string]dsschema.Attribute{
// inputs:map[string]bool{} outputs:map[string]bool{"encryption_state":true, "name":true} forceNew:map[string]bool(nil)
"encryption_state": dsschema.SingleNestedAttribute{
Description: "The EncryptionState param.",
Computed: true,