catocli 1.0.21__py3-none-any.whl → 2.0.1__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.
- catocli/Utils/clidriver.py +112 -25
- catocli/Utils/profile_manager.py +188 -0
- catocli/Utils/version_checker.py +192 -0
- catocli/__init__.py +1 -1
- catocli/parsers/configure/__init__.py +115 -0
- catocli/parsers/configure/configure.py +307 -0
- catocli/parsers/custom/__init__.py +8 -0
- catocli/parsers/custom/export_rules/__init__.py +36 -0
- catocli/parsers/custom/export_rules/export_rules.py +361 -0
- catocli/parsers/custom/import_rules_to_tf/__init__.py +58 -0
- catocli/parsers/custom/import_rules_to_tf/import_rules_to_tf.py +577 -0
- catocli/parsers/mutation_admin_addAdmin/README.md +1 -1
- catocli/parsers/mutation_hardware/README.md +7 -0
- catocli/parsers/mutation_hardware/__init__.py +23 -0
- catocli/parsers/mutation_hardware_updateHardwareShipping/README.md +17 -0
- catocli/parsers/mutation_site_addBgpPeer/README.md +1 -1
- catocli/parsers/mutation_site_addNetworkRange/README.md +1 -1
- catocli/parsers/mutation_site_updateBgpPeer/README.md +1 -1
- catocli/parsers/mutation_site_updateNetworkRange/README.md +1 -1
- catocli/parsers/mutation_sites_addBgpPeer/README.md +1 -1
- catocli/parsers/mutation_sites_addNetworkRange/README.md +1 -1
- catocli/parsers/mutation_sites_updateBgpPeer/README.md +1 -1
- catocli/parsers/mutation_sites_updateNetworkRange/README.md +1 -1
- catocli/parsers/query_auditFeed/README.md +1 -1
- catocli/parsers/query_catalogs/README.md +19 -0
- catocli/parsers/query_catalogs/__init__.py +17 -0
- catocli/parsers/query_devices/README.md +19 -0
- catocli/parsers/query_devices/__init__.py +17 -0
- catocli/parsers/query_eventsFeed/README.md +1 -1
- catocli/parsers/query_hardware/README.md +17 -0
- catocli/parsers/query_hardware/__init__.py +17 -0
- catocli/parsers/query_sandbox/README.md +1 -1
- {catocli-1.0.21.dist-info → catocli-2.0.1.dist-info}/METADATA +1 -1
- {catocli-1.0.21.dist-info → catocli-2.0.1.dist-info}/RECORD +139 -114
- {catocli-1.0.21.dist-info → catocli-2.0.1.dist-info}/top_level.txt +1 -0
- graphql_client/api/call_api.py +4 -0
- graphql_client/api_client_types.py +4 -3
- graphql_client/configuration.py +2 -0
- models/mutation.admin.addAdmin.json +130 -0
- models/mutation.hardware.updateHardwareShipping.json +2506 -0
- models/mutation.policy.appTenantRestriction.addRule.json +11 -11
- models/mutation.policy.appTenantRestriction.createPolicyRevision.json +11 -11
- models/mutation.policy.appTenantRestriction.discardPolicyRevision.json +11 -11
- models/mutation.policy.appTenantRestriction.moveRule.json +11 -11
- models/mutation.policy.appTenantRestriction.publishPolicyRevision.json +11 -11
- models/mutation.policy.appTenantRestriction.removeRule.json +11 -11
- models/mutation.policy.appTenantRestriction.updatePolicy.json +11 -11
- models/mutation.policy.appTenantRestriction.updateRule.json +11 -11
- models/mutation.policy.dynamicIpAllocation.addRule.json +4 -4
- models/mutation.policy.dynamicIpAllocation.createPolicyRevision.json +4 -4
- models/mutation.policy.dynamicIpAllocation.discardPolicyRevision.json +4 -4
- models/mutation.policy.dynamicIpAllocation.moveRule.json +4 -4
- models/mutation.policy.dynamicIpAllocation.publishPolicyRevision.json +4 -4
- models/mutation.policy.dynamicIpAllocation.removeRule.json +4 -4
- models/mutation.policy.dynamicIpAllocation.updatePolicy.json +4 -4
- models/mutation.policy.dynamicIpAllocation.updateRule.json +4 -4
- models/mutation.policy.internetFirewall.addRule.json +63 -63
- models/mutation.policy.internetFirewall.createPolicyRevision.json +45 -45
- models/mutation.policy.internetFirewall.discardPolicyRevision.json +45 -45
- models/mutation.policy.internetFirewall.moveRule.json +45 -45
- models/mutation.policy.internetFirewall.publishPolicyRevision.json +45 -45
- models/mutation.policy.internetFirewall.removeRule.json +45 -45
- models/mutation.policy.internetFirewall.updatePolicy.json +45 -45
- models/mutation.policy.internetFirewall.updateRule.json +63 -63
- models/mutation.policy.remotePortFwd.addRule.json +5 -5
- models/mutation.policy.remotePortFwd.createPolicyRevision.json +5 -5
- models/mutation.policy.remotePortFwd.discardPolicyRevision.json +5 -5
- models/mutation.policy.remotePortFwd.moveRule.json +5 -5
- models/mutation.policy.remotePortFwd.publishPolicyRevision.json +5 -5
- models/mutation.policy.remotePortFwd.removeRule.json +5 -5
- models/mutation.policy.remotePortFwd.updatePolicy.json +5 -5
- models/mutation.policy.remotePortFwd.updateRule.json +5 -5
- models/mutation.policy.socketLan.addRule.json +3580 -125
- models/mutation.policy.socketLan.createPolicyRevision.json +3580 -125
- models/mutation.policy.socketLan.discardPolicyRevision.json +3580 -125
- models/mutation.policy.socketLan.moveRule.json +3580 -125
- models/mutation.policy.socketLan.publishPolicyRevision.json +3580 -125
- models/mutation.policy.socketLan.removeRule.json +3580 -125
- models/mutation.policy.socketLan.updatePolicy.json +3580 -125
- models/mutation.policy.socketLan.updateRule.json +3580 -125
- models/mutation.policy.wanFirewall.addRule.json +77 -77
- models/mutation.policy.wanFirewall.createPolicyRevision.json +59 -59
- models/mutation.policy.wanFirewall.discardPolicyRevision.json +59 -59
- models/mutation.policy.wanFirewall.moveRule.json +59 -59
- models/mutation.policy.wanFirewall.publishPolicyRevision.json +59 -59
- models/mutation.policy.wanFirewall.removeRule.json +59 -59
- models/mutation.policy.wanFirewall.updatePolicy.json +59 -59
- models/mutation.policy.wanFirewall.updateRule.json +77 -77
- models/mutation.policy.wanNetwork.addRule.json +49 -49
- models/mutation.policy.wanNetwork.createPolicyRevision.json +49 -49
- models/mutation.policy.wanNetwork.discardPolicyRevision.json +49 -49
- models/mutation.policy.wanNetwork.moveRule.json +49 -49
- models/mutation.policy.wanNetwork.publishPolicyRevision.json +49 -49
- models/mutation.policy.wanNetwork.removeRule.json +49 -49
- models/mutation.policy.wanNetwork.updatePolicy.json +49 -49
- models/mutation.policy.wanNetwork.updateRule.json +49 -49
- models/mutation.site.addBgpPeer.json +2812 -217
- models/mutation.site.addNetworkRange.json +114 -0
- models/mutation.site.addSocketSite.json +18 -0
- models/mutation.site.removeBgpPeer.json +667 -1
- models/mutation.site.updateBgpPeer.json +3152 -559
- models/mutation.site.updateNetworkRange.json +114 -0
- models/mutation.sites.addBgpPeer.json +2812 -217
- models/mutation.sites.addNetworkRange.json +114 -0
- models/mutation.sites.addSocketSite.json +18 -0
- models/mutation.sites.removeBgpPeer.json +667 -1
- models/mutation.sites.updateBgpPeer.json +3152 -559
- models/mutation.sites.updateNetworkRange.json +114 -0
- models/mutation.xdr.addStoryComment.json +2 -2
- models/mutation.xdr.analystFeedback.json +182 -42
- models/mutation.xdr.deleteStoryComment.json +2 -2
- models/query.accountMetrics.json +112 -0
- models/query.accountSnapshot.json +62 -0
- models/query.admin.json +46 -0
- models/query.admins.json +46 -0
- models/query.appStats.json +528 -0
- models/query.appStatsTimeSeries.json +396 -0
- models/query.auditFeed.json +273 -3336
- models/query.catalogs.json +9840 -0
- models/query.devices.json +15469 -0
- models/query.events.json +4606 -4318
- models/query.eventsFeed.json +1167 -1095
- models/query.eventsTimeSeries.json +3459 -3243
- models/query.hardware.json +5730 -0
- models/query.hardwareManagement.json +8 -2
- models/query.licensing.json +3 -3
- models/query.policy.json +3743 -298
- models/query.sandbox.json +6 -4
- models/query.site.json +1329 -4
- models/query.xdr.stories.json +182 -42
- models/query.xdr.story.json +182 -42
- schema/catolib.py +105 -28
- scripts/catolib.py +62 -0
- scripts/export_if_rules_to_json.py +188 -0
- scripts/export_wf_rules_to_json.py +111 -0
- scripts/import_wf_rules_to_tfstate.py +331 -0
- {catocli-1.0.21.dist-info → catocli-2.0.1.dist-info}/LICENSE +0 -0
- {catocli-1.0.21.dist-info → catocli-2.0.1.dist-info}/WHEEL +0 -0
- {catocli-1.0.21.dist-info → catocli-2.0.1.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": "addNetworkRange___input___dhcpSettings___dhcpMicrosegmentation",
|
|
78
|
+
"name": "dhcpMicrosegmentation",
|
|
79
|
+
"path": "addNetworkRange.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": "addNetworkRange___input___internetOnly",
|
|
220
|
+
"name": "internetOnly",
|
|
221
|
+
"path": "addNetworkRange.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",
|
|
@@ -491,6 +527,24 @@
|
|
|
491
527
|
"enumValues": null,
|
|
492
528
|
"fields": null,
|
|
493
529
|
"inputFields": {
|
|
530
|
+
"dhcpMicrosegmentation": {
|
|
531
|
+
"defaultValue": null,
|
|
532
|
+
"description": "Only relevant for DHCP range",
|
|
533
|
+
"id_str": "addNetworkRange___input___dhcpSettings___dhcpMicrosegmentation",
|
|
534
|
+
"name": "dhcpMicrosegmentation",
|
|
535
|
+
"path": "addNetworkRange.input.dhcpSettings.dhcpMicrosegmentation",
|
|
536
|
+
"requestStr": "$dhcpMicrosegmentation:Boolean ",
|
|
537
|
+
"required": false,
|
|
538
|
+
"responseStr": "dhcpMicrosegmentation:$dhcpMicrosegmentation ",
|
|
539
|
+
"type": {
|
|
540
|
+
"kind": [
|
|
541
|
+
"SCALAR"
|
|
542
|
+
],
|
|
543
|
+
"name": "Boolean",
|
|
544
|
+
"non_null": false
|
|
545
|
+
},
|
|
546
|
+
"varName": "dhcpMicrosegmentation"
|
|
547
|
+
},
|
|
494
548
|
"dhcpType": {
|
|
495
549
|
"defaultValue": null,
|
|
496
550
|
"description": null,
|
|
@@ -615,6 +669,24 @@
|
|
|
615
669
|
},
|
|
616
670
|
"varName": "gateway"
|
|
617
671
|
},
|
|
672
|
+
"internetOnly": {
|
|
673
|
+
"defaultValue": null,
|
|
674
|
+
"description": null,
|
|
675
|
+
"id_str": "addNetworkRange___input___internetOnly",
|
|
676
|
+
"name": "internetOnly",
|
|
677
|
+
"path": "addNetworkRange.input.internetOnly",
|
|
678
|
+
"requestStr": "$internetOnly:Boolean ",
|
|
679
|
+
"required": false,
|
|
680
|
+
"responseStr": "internetOnly:$internetOnly ",
|
|
681
|
+
"type": {
|
|
682
|
+
"kind": [
|
|
683
|
+
"SCALAR"
|
|
684
|
+
],
|
|
685
|
+
"name": "Boolean",
|
|
686
|
+
"non_null": false
|
|
687
|
+
},
|
|
688
|
+
"varName": "internetOnly"
|
|
689
|
+
},
|
|
618
690
|
"localIp": {
|
|
619
691
|
"defaultValue": null,
|
|
620
692
|
"description": "Only relevant for NATIVE, SECONDARY_NATIVE, DIRECT_ROUTE, VLAN rangeType",
|
|
@@ -878,6 +950,24 @@
|
|
|
878
950
|
"enumValues": null,
|
|
879
951
|
"fields": null,
|
|
880
952
|
"inputFields": {
|
|
953
|
+
"dhcpMicrosegmentation": {
|
|
954
|
+
"defaultValue": null,
|
|
955
|
+
"description": "Only relevant for DHCP range",
|
|
956
|
+
"id_str": "addNetworkRange___input___dhcpSettings___dhcpMicrosegmentation",
|
|
957
|
+
"name": "dhcpMicrosegmentation",
|
|
958
|
+
"path": "addNetworkRange.input.dhcpSettings.dhcpMicrosegmentation",
|
|
959
|
+
"requestStr": "$dhcpMicrosegmentation:Boolean ",
|
|
960
|
+
"required": false,
|
|
961
|
+
"responseStr": "dhcpMicrosegmentation:$dhcpMicrosegmentation ",
|
|
962
|
+
"type": {
|
|
963
|
+
"kind": [
|
|
964
|
+
"SCALAR"
|
|
965
|
+
],
|
|
966
|
+
"name": "Boolean",
|
|
967
|
+
"non_null": false
|
|
968
|
+
},
|
|
969
|
+
"varName": "dhcpMicrosegmentation"
|
|
970
|
+
},
|
|
881
971
|
"dhcpType": {
|
|
882
972
|
"defaultValue": null,
|
|
883
973
|
"description": null,
|
|
@@ -1002,6 +1092,24 @@
|
|
|
1002
1092
|
},
|
|
1003
1093
|
"varName": "gateway"
|
|
1004
1094
|
},
|
|
1095
|
+
"internetOnly": {
|
|
1096
|
+
"defaultValue": null,
|
|
1097
|
+
"description": null,
|
|
1098
|
+
"id_str": "addNetworkRange___input___internetOnly",
|
|
1099
|
+
"name": "internetOnly",
|
|
1100
|
+
"path": "addNetworkRange.input.internetOnly",
|
|
1101
|
+
"requestStr": "$internetOnly:Boolean ",
|
|
1102
|
+
"required": false,
|
|
1103
|
+
"responseStr": "internetOnly:$internetOnly ",
|
|
1104
|
+
"type": {
|
|
1105
|
+
"kind": [
|
|
1106
|
+
"SCALAR"
|
|
1107
|
+
],
|
|
1108
|
+
"name": "Boolean",
|
|
1109
|
+
"non_null": false
|
|
1110
|
+
},
|
|
1111
|
+
"varName": "internetOnly"
|
|
1112
|
+
},
|
|
1005
1113
|
"localIp": {
|
|
1006
1114
|
"defaultValue": null,
|
|
1007
1115
|
"description": "Only relevant for NATIVE, SECONDARY_NATIVE, DIRECT_ROUTE, VLAN rangeType",
|
|
@@ -1283,6 +1391,9 @@
|
|
|
1283
1391
|
"gateway": {
|
|
1284
1392
|
"gateway": "IPAddress"
|
|
1285
1393
|
},
|
|
1394
|
+
"internetOnly": {
|
|
1395
|
+
"internetOnly": "Boolean"
|
|
1396
|
+
},
|
|
1286
1397
|
"localIp": {
|
|
1287
1398
|
"localIp": "IPAddress"
|
|
1288
1399
|
},
|
|
@@ -1293,6 +1404,9 @@
|
|
|
1293
1404
|
"name": "String"
|
|
1294
1405
|
},
|
|
1295
1406
|
"networkDhcpSettingsInput": {
|
|
1407
|
+
"dhcpMicrosegmentation": {
|
|
1408
|
+
"dhcpMicrosegmentation": "Boolean"
|
|
1409
|
+
},
|
|
1296
1410
|
"dhcpType": {
|
|
1297
1411
|
"dhcpType": "enum(DhcpType)"
|
|
1298
1412
|
},
|
|
@@ -92,6 +92,12 @@
|
|
|
92
92
|
"description": null,
|
|
93
93
|
"isDeprecated": false,
|
|
94
94
|
"name": "SOCKET_X1600_LTE"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"deprecationReason": null,
|
|
98
|
+
"description": null,
|
|
99
|
+
"isDeprecated": false,
|
|
100
|
+
"name": "SOCKET_GCP1500"
|
|
95
101
|
}
|
|
96
102
|
],
|
|
97
103
|
"fields": null,
|
|
@@ -508,6 +514,12 @@
|
|
|
508
514
|
"description": null,
|
|
509
515
|
"isDeprecated": false,
|
|
510
516
|
"name": "SOCKET_X1600_LTE"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"deprecationReason": null,
|
|
520
|
+
"description": null,
|
|
521
|
+
"isDeprecated": false,
|
|
522
|
+
"name": "SOCKET_GCP1500"
|
|
511
523
|
}
|
|
512
524
|
],
|
|
513
525
|
"fields": null,
|
|
@@ -891,6 +903,12 @@
|
|
|
891
903
|
"description": null,
|
|
892
904
|
"isDeprecated": false,
|
|
893
905
|
"name": "SOCKET_X1600_LTE"
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"deprecationReason": null,
|
|
909
|
+
"description": null,
|
|
910
|
+
"isDeprecated": false,
|
|
911
|
+
"name": "SOCKET_GCP1500"
|
|
894
912
|
}
|
|
895
913
|
],
|
|
896
914
|
"fields": null,
|