catocli 1.0.21__py3-none-any.whl → 2.0.0__py3-none-any.whl

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.

Potentially problematic release.


This version of catocli might be problematic. Click here for more details.

Files changed (139) hide show
  1. catocli/Utils/clidriver.py +112 -25
  2. catocli/Utils/profile_manager.py +188 -0
  3. catocli/Utils/version_checker.py +192 -0
  4. catocli/__init__.py +1 -1
  5. catocli/parsers/configure/__init__.py +115 -0
  6. catocli/parsers/configure/configure.py +307 -0
  7. catocli/parsers/custom/__init__.py +8 -0
  8. catocli/parsers/custom/export_rules/__init__.py +36 -0
  9. catocli/parsers/custom/export_rules/export_rules.py +361 -0
  10. catocli/parsers/custom/import_rules_to_tf/__init__.py +58 -0
  11. catocli/parsers/custom/import_rules_to_tf/import_rules_to_tf.py +577 -0
  12. catocli/parsers/mutation_admin_addAdmin/README.md +1 -1
  13. catocli/parsers/mutation_hardware/README.md +7 -0
  14. catocli/parsers/mutation_hardware/__init__.py +23 -0
  15. catocli/parsers/mutation_hardware_updateHardwareShipping/README.md +17 -0
  16. catocli/parsers/mutation_site_addBgpPeer/README.md +1 -1
  17. catocli/parsers/mutation_site_addNetworkRange/README.md +1 -1
  18. catocli/parsers/mutation_site_updateBgpPeer/README.md +1 -1
  19. catocli/parsers/mutation_site_updateNetworkRange/README.md +1 -1
  20. catocli/parsers/mutation_sites_addBgpPeer/README.md +1 -1
  21. catocli/parsers/mutation_sites_addNetworkRange/README.md +1 -1
  22. catocli/parsers/mutation_sites_updateBgpPeer/README.md +1 -1
  23. catocli/parsers/mutation_sites_updateNetworkRange/README.md +1 -1
  24. catocli/parsers/query_auditFeed/README.md +1 -1
  25. catocli/parsers/query_catalogs/README.md +19 -0
  26. catocli/parsers/query_catalogs/__init__.py +17 -0
  27. catocli/parsers/query_devices/README.md +19 -0
  28. catocli/parsers/query_devices/__init__.py +17 -0
  29. catocli/parsers/query_eventsFeed/README.md +1 -1
  30. catocli/parsers/query_hardware/README.md +17 -0
  31. catocli/parsers/query_hardware/__init__.py +17 -0
  32. catocli/parsers/query_sandbox/README.md +1 -1
  33. {catocli-1.0.21.dist-info → catocli-2.0.0.dist-info}/METADATA +1 -1
  34. {catocli-1.0.21.dist-info → catocli-2.0.0.dist-info}/RECORD +139 -114
  35. {catocli-1.0.21.dist-info → catocli-2.0.0.dist-info}/top_level.txt +1 -0
  36. graphql_client/api/call_api.py +4 -0
  37. graphql_client/api_client_types.py +4 -3
  38. graphql_client/configuration.py +2 -0
  39. models/mutation.admin.addAdmin.json +130 -0
  40. models/mutation.hardware.updateHardwareShipping.json +2506 -0
  41. models/mutation.policy.appTenantRestriction.addRule.json +11 -11
  42. models/mutation.policy.appTenantRestriction.createPolicyRevision.json +11 -11
  43. models/mutation.policy.appTenantRestriction.discardPolicyRevision.json +11 -11
  44. models/mutation.policy.appTenantRestriction.moveRule.json +11 -11
  45. models/mutation.policy.appTenantRestriction.publishPolicyRevision.json +11 -11
  46. models/mutation.policy.appTenantRestriction.removeRule.json +11 -11
  47. models/mutation.policy.appTenantRestriction.updatePolicy.json +11 -11
  48. models/mutation.policy.appTenantRestriction.updateRule.json +11 -11
  49. models/mutation.policy.dynamicIpAllocation.addRule.json +4 -4
  50. models/mutation.policy.dynamicIpAllocation.createPolicyRevision.json +4 -4
  51. models/mutation.policy.dynamicIpAllocation.discardPolicyRevision.json +4 -4
  52. models/mutation.policy.dynamicIpAllocation.moveRule.json +4 -4
  53. models/mutation.policy.dynamicIpAllocation.publishPolicyRevision.json +4 -4
  54. models/mutation.policy.dynamicIpAllocation.removeRule.json +4 -4
  55. models/mutation.policy.dynamicIpAllocation.updatePolicy.json +4 -4
  56. models/mutation.policy.dynamicIpAllocation.updateRule.json +4 -4
  57. models/mutation.policy.internetFirewall.addRule.json +63 -63
  58. models/mutation.policy.internetFirewall.createPolicyRevision.json +45 -45
  59. models/mutation.policy.internetFirewall.discardPolicyRevision.json +45 -45
  60. models/mutation.policy.internetFirewall.moveRule.json +45 -45
  61. models/mutation.policy.internetFirewall.publishPolicyRevision.json +45 -45
  62. models/mutation.policy.internetFirewall.removeRule.json +45 -45
  63. models/mutation.policy.internetFirewall.updatePolicy.json +45 -45
  64. models/mutation.policy.internetFirewall.updateRule.json +63 -63
  65. models/mutation.policy.remotePortFwd.addRule.json +5 -5
  66. models/mutation.policy.remotePortFwd.createPolicyRevision.json +5 -5
  67. models/mutation.policy.remotePortFwd.discardPolicyRevision.json +5 -5
  68. models/mutation.policy.remotePortFwd.moveRule.json +5 -5
  69. models/mutation.policy.remotePortFwd.publishPolicyRevision.json +5 -5
  70. models/mutation.policy.remotePortFwd.removeRule.json +5 -5
  71. models/mutation.policy.remotePortFwd.updatePolicy.json +5 -5
  72. models/mutation.policy.remotePortFwd.updateRule.json +5 -5
  73. models/mutation.policy.socketLan.addRule.json +3580 -125
  74. models/mutation.policy.socketLan.createPolicyRevision.json +3580 -125
  75. models/mutation.policy.socketLan.discardPolicyRevision.json +3580 -125
  76. models/mutation.policy.socketLan.moveRule.json +3580 -125
  77. models/mutation.policy.socketLan.publishPolicyRevision.json +3580 -125
  78. models/mutation.policy.socketLan.removeRule.json +3580 -125
  79. models/mutation.policy.socketLan.updatePolicy.json +3580 -125
  80. models/mutation.policy.socketLan.updateRule.json +3580 -125
  81. models/mutation.policy.wanFirewall.addRule.json +77 -77
  82. models/mutation.policy.wanFirewall.createPolicyRevision.json +59 -59
  83. models/mutation.policy.wanFirewall.discardPolicyRevision.json +59 -59
  84. models/mutation.policy.wanFirewall.moveRule.json +59 -59
  85. models/mutation.policy.wanFirewall.publishPolicyRevision.json +59 -59
  86. models/mutation.policy.wanFirewall.removeRule.json +59 -59
  87. models/mutation.policy.wanFirewall.updatePolicy.json +59 -59
  88. models/mutation.policy.wanFirewall.updateRule.json +77 -77
  89. models/mutation.policy.wanNetwork.addRule.json +49 -49
  90. models/mutation.policy.wanNetwork.createPolicyRevision.json +49 -49
  91. models/mutation.policy.wanNetwork.discardPolicyRevision.json +49 -49
  92. models/mutation.policy.wanNetwork.moveRule.json +49 -49
  93. models/mutation.policy.wanNetwork.publishPolicyRevision.json +49 -49
  94. models/mutation.policy.wanNetwork.removeRule.json +49 -49
  95. models/mutation.policy.wanNetwork.updatePolicy.json +49 -49
  96. models/mutation.policy.wanNetwork.updateRule.json +49 -49
  97. models/mutation.site.addBgpPeer.json +2812 -217
  98. models/mutation.site.addNetworkRange.json +114 -0
  99. models/mutation.site.addSocketSite.json +18 -0
  100. models/mutation.site.removeBgpPeer.json +667 -1
  101. models/mutation.site.updateBgpPeer.json +3152 -559
  102. models/mutation.site.updateNetworkRange.json +114 -0
  103. models/mutation.sites.addBgpPeer.json +2812 -217
  104. models/mutation.sites.addNetworkRange.json +114 -0
  105. models/mutation.sites.addSocketSite.json +18 -0
  106. models/mutation.sites.removeBgpPeer.json +667 -1
  107. models/mutation.sites.updateBgpPeer.json +3152 -559
  108. models/mutation.sites.updateNetworkRange.json +114 -0
  109. models/mutation.xdr.addStoryComment.json +2 -2
  110. models/mutation.xdr.analystFeedback.json +182 -42
  111. models/mutation.xdr.deleteStoryComment.json +2 -2
  112. models/query.accountMetrics.json +112 -0
  113. models/query.accountSnapshot.json +62 -0
  114. models/query.admin.json +46 -0
  115. models/query.admins.json +46 -0
  116. models/query.appStats.json +528 -0
  117. models/query.appStatsTimeSeries.json +396 -0
  118. models/query.auditFeed.json +273 -3336
  119. models/query.catalogs.json +9840 -0
  120. models/query.devices.json +15469 -0
  121. models/query.events.json +4606 -4318
  122. models/query.eventsFeed.json +1167 -1095
  123. models/query.eventsTimeSeries.json +3459 -3243
  124. models/query.hardware.json +5730 -0
  125. models/query.hardwareManagement.json +8 -2
  126. models/query.licensing.json +3 -3
  127. models/query.policy.json +3743 -298
  128. models/query.sandbox.json +6 -4
  129. models/query.site.json +1329 -4
  130. models/query.xdr.stories.json +182 -42
  131. models/query.xdr.story.json +182 -42
  132. schema/catolib.py +105 -28
  133. scripts/catolib.py +62 -0
  134. scripts/export_if_rules_to_json.py +188 -0
  135. scripts/export_wf_rules_to_json.py +111 -0
  136. scripts/import_wf_rules_to_tfstate.py +331 -0
  137. {catocli-1.0.21.dist-info → catocli-2.0.0.dist-info}/LICENSE +0 -0
  138. {catocli-1.0.21.dist-info → catocli-2.0.0.dist-info}/WHEEL +0 -0
  139. {catocli-1.0.21.dist-info → catocli-2.0.0.dist-info}/entry_points.txt +0 -0
@@ -71,6 +71,24 @@
71
71
  "enumValues": null,
72
72
  "fields": null,
73
73
  "inputFields": {
74
+ "dhcpMicrosegmentation": {
75
+ "defaultValue": null,
76
+ "description": "Only relevant for DHCP range",
77
+ "id_str": "updateNetworkRange___input___dhcpSettings___dhcpMicrosegmentation",
78
+ "name": "dhcpMicrosegmentation",
79
+ "path": "updateNetworkRange.input.dhcpSettings.dhcpMicrosegmentation",
80
+ "requestStr": "$dhcpMicrosegmentation:Boolean ",
81
+ "required": false,
82
+ "responseStr": "dhcpMicrosegmentation:$dhcpMicrosegmentation ",
83
+ "type": {
84
+ "kind": [
85
+ "SCALAR"
86
+ ],
87
+ "name": "Boolean",
88
+ "non_null": false
89
+ },
90
+ "varName": "dhcpMicrosegmentation"
91
+ },
74
92
  "dhcpType": {
75
93
  "defaultValue": null,
76
94
  "description": null,
@@ -195,6 +213,24 @@
195
213
  },
196
214
  "varName": "gateway"
197
215
  },
216
+ "internetOnly": {
217
+ "defaultValue": null,
218
+ "description": null,
219
+ "id_str": "updateNetworkRange___input___internetOnly",
220
+ "name": "internetOnly",
221
+ "path": "updateNetworkRange.input.internetOnly",
222
+ "requestStr": "$internetOnly:Boolean ",
223
+ "required": false,
224
+ "responseStr": "internetOnly:$internetOnly ",
225
+ "type": {
226
+ "kind": [
227
+ "SCALAR"
228
+ ],
229
+ "name": "Boolean",
230
+ "non_null": false
231
+ },
232
+ "varName": "internetOnly"
233
+ },
198
234
  "localIp": {
199
235
  "defaultValue": null,
200
236
  "description": "Only relevant for NATIVE, SECONDARY_NATIVE, DIRECT_ROUTE, VLAN rangeType",
@@ -507,6 +543,24 @@
507
543
  "enumValues": null,
508
544
  "fields": null,
509
545
  "inputFields": {
546
+ "dhcpMicrosegmentation": {
547
+ "defaultValue": null,
548
+ "description": "Only relevant for DHCP range",
549
+ "id_str": "updateNetworkRange___input___dhcpSettings___dhcpMicrosegmentation",
550
+ "name": "dhcpMicrosegmentation",
551
+ "path": "updateNetworkRange.input.dhcpSettings.dhcpMicrosegmentation",
552
+ "requestStr": "$dhcpMicrosegmentation:Boolean ",
553
+ "required": false,
554
+ "responseStr": "dhcpMicrosegmentation:$dhcpMicrosegmentation ",
555
+ "type": {
556
+ "kind": [
557
+ "SCALAR"
558
+ ],
559
+ "name": "Boolean",
560
+ "non_null": false
561
+ },
562
+ "varName": "dhcpMicrosegmentation"
563
+ },
510
564
  "dhcpType": {
511
565
  "defaultValue": null,
512
566
  "description": null,
@@ -631,6 +685,24 @@
631
685
  },
632
686
  "varName": "gateway"
633
687
  },
688
+ "internetOnly": {
689
+ "defaultValue": null,
690
+ "description": null,
691
+ "id_str": "updateNetworkRange___input___internetOnly",
692
+ "name": "internetOnly",
693
+ "path": "updateNetworkRange.input.internetOnly",
694
+ "requestStr": "$internetOnly:Boolean ",
695
+ "required": false,
696
+ "responseStr": "internetOnly:$internetOnly ",
697
+ "type": {
698
+ "kind": [
699
+ "SCALAR"
700
+ ],
701
+ "name": "Boolean",
702
+ "non_null": false
703
+ },
704
+ "varName": "internetOnly"
705
+ },
634
706
  "localIp": {
635
707
  "defaultValue": null,
636
708
  "description": "Only relevant for NATIVE, SECONDARY_NATIVE, DIRECT_ROUTE, VLAN rangeType",
@@ -872,6 +944,24 @@
872
944
  "enumValues": null,
873
945
  "fields": null,
874
946
  "inputFields": {
947
+ "dhcpMicrosegmentation": {
948
+ "defaultValue": null,
949
+ "description": "Only relevant for DHCP range",
950
+ "id_str": "updateNetworkRange___input___dhcpSettings___dhcpMicrosegmentation",
951
+ "name": "dhcpMicrosegmentation",
952
+ "path": "updateNetworkRange.input.dhcpSettings.dhcpMicrosegmentation",
953
+ "requestStr": "$dhcpMicrosegmentation:Boolean ",
954
+ "required": false,
955
+ "responseStr": "dhcpMicrosegmentation:$dhcpMicrosegmentation ",
956
+ "type": {
957
+ "kind": [
958
+ "SCALAR"
959
+ ],
960
+ "name": "Boolean",
961
+ "non_null": false
962
+ },
963
+ "varName": "dhcpMicrosegmentation"
964
+ },
875
965
  "dhcpType": {
876
966
  "defaultValue": null,
877
967
  "description": null,
@@ -996,6 +1086,24 @@
996
1086
  },
997
1087
  "varName": "gateway"
998
1088
  },
1089
+ "internetOnly": {
1090
+ "defaultValue": null,
1091
+ "description": null,
1092
+ "id_str": "updateNetworkRange___input___internetOnly",
1093
+ "name": "internetOnly",
1094
+ "path": "updateNetworkRange.input.internetOnly",
1095
+ "requestStr": "$internetOnly:Boolean ",
1096
+ "required": false,
1097
+ "responseStr": "internetOnly:$internetOnly ",
1098
+ "type": {
1099
+ "kind": [
1100
+ "SCALAR"
1101
+ ],
1102
+ "name": "Boolean",
1103
+ "non_null": false
1104
+ },
1105
+ "varName": "internetOnly"
1106
+ },
999
1107
  "localIp": {
1000
1108
  "defaultValue": null,
1001
1109
  "description": "Only relevant for NATIVE, SECONDARY_NATIVE, DIRECT_ROUTE, VLAN rangeType",
@@ -1275,6 +1383,9 @@
1275
1383
  "gateway": {
1276
1384
  "gateway": "IPAddress"
1277
1385
  },
1386
+ "internetOnly": {
1387
+ "internetOnly": "Boolean"
1388
+ },
1278
1389
  "localIp": {
1279
1390
  "localIp": "IPAddress"
1280
1391
  },
@@ -1285,6 +1396,9 @@
1285
1396
  "name": "String"
1286
1397
  },
1287
1398
  "networkDhcpSettingsInput": {
1399
+ "dhcpMicrosegmentation": {
1400
+ "dhcpMicrosegmentation": "Boolean"
1401
+ },
1288
1402
  "dhcpType": {
1289
1403
  "dhcpType": "enum(DhcpType)"
1290
1404
  },
@@ -377,7 +377,7 @@
377
377
  "name": "ActorRef",
378
378
  "possibleTypes": {
379
379
  "AdminRef": {
380
- "description": null,
380
+ "description": "A reference identifying the Admin object. ID: Unique Admin Identifier, Name: The Admin Name",
381
381
  "enumValues": null,
382
382
  "fields": {
383
383
  "id": {
@@ -432,7 +432,7 @@
432
432
  "possibleTypes": null
433
433
  },
434
434
  "ApiKeyRef": {
435
- "description": null,
435
+ "description": "A reference identifying the ApiKey object. ID: Unique ApiKey Identifier, Name: The ApiKey Name",
436
436
  "enumValues": null,
437
437
  "fields": {
438
438
  "id": {