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
@@ -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": {
@@ -2055,6 +2055,26 @@
2055
2055
  "description": "Basic Site configuration information",
2056
2056
  "enumValues": null,
2057
2057
  "fields": {
2058
+ "address": {
2059
+ "args": {},
2060
+ "deprecationReason": null,
2061
+ "description": "Address of the physical site location",
2062
+ "id_str": "sites___info___address",
2063
+ "isDeprecated": false,
2064
+ "name": "address",
2065
+ "path": "sites.info.address",
2066
+ "requestStr": "$address:String ",
2067
+ "required": false,
2068
+ "responseStr": "address:$address ",
2069
+ "type": {
2070
+ "kind": [
2071
+ "SCALAR"
2072
+ ],
2073
+ "name": "String",
2074
+ "non_null": false
2075
+ },
2076
+ "varName": "address"
2077
+ },
2058
2078
  "cityName": {
2059
2079
  "args": {},
2060
2080
  "deprecationReason": null,
@@ -2138,6 +2158,24 @@
2138
2158
  "isDeprecated": false,
2139
2159
  "name": "SOCKET_AWS1500"
2140
2160
  },
2161
+ {
2162
+ "deprecationReason": null,
2163
+ "description": null,
2164
+ "isDeprecated": false,
2165
+ "name": "VSOCKET_VGX_AWS"
2166
+ },
2167
+ {
2168
+ "deprecationReason": null,
2169
+ "description": null,
2170
+ "isDeprecated": false,
2171
+ "name": "VSOCKET_VGX_ESX"
2172
+ },
2173
+ {
2174
+ "deprecationReason": null,
2175
+ "description": null,
2176
+ "isDeprecated": false,
2177
+ "name": "VSOCKET_VGX_AZURE"
2178
+ },
2141
2179
  {
2142
2180
  "deprecationReason": null,
2143
2181
  "description": null,
@@ -2161,6 +2199,12 @@
2161
2199
  "description": null,
2162
2200
  "isDeprecated": false,
2163
2201
  "name": "SOCKET_X1600_LTE"
2202
+ },
2203
+ {
2204
+ "deprecationReason": null,
2205
+ "description": null,
2206
+ "isDeprecated": false,
2207
+ "name": "SOCKET_GCP1500"
2164
2208
  }
2165
2209
  ],
2166
2210
  "fields": null,
@@ -2822,6 +2866,12 @@
2822
2866
  "description": null,
2823
2867
  "isDeprecated": false,
2824
2868
  "name": "X1600_LTE"
2869
+ },
2870
+ {
2871
+ "deprecationReason": null,
2872
+ "description": null,
2873
+ "isDeprecated": false,
2874
+ "name": "GCP1500"
2825
2875
  }
2826
2876
  ],
2827
2877
  "fields": null,
@@ -4502,6 +4552,12 @@
4502
4552
  "description": null,
4503
4553
  "isDeprecated": false,
4504
4554
  "name": "X1600_LTE"
4555
+ },
4556
+ {
4557
+ "deprecationReason": null,
4558
+ "description": null,
4559
+ "isDeprecated": false,
4560
+ "name": "GCP1500"
4505
4561
  }
4506
4562
  ],
4507
4563
  "fields": null,
@@ -7948,6 +8004,26 @@
7948
8004
  "description": "Basic Site configuration information",
7949
8005
  "enumValues": null,
7950
8006
  "fields": {
8007
+ "address": {
8008
+ "args": {},
8009
+ "deprecationReason": null,
8010
+ "description": "Address of the physical site location",
8011
+ "id_str": "users___info___address",
8012
+ "isDeprecated": false,
8013
+ "name": "address",
8014
+ "path": "users.info.address",
8015
+ "requestStr": "$address:String ",
8016
+ "required": false,
8017
+ "responseStr": "address:$address ",
8018
+ "type": {
8019
+ "kind": [
8020
+ "SCALAR"
8021
+ ],
8022
+ "name": "String",
8023
+ "non_null": false
8024
+ },
8025
+ "varName": "address"
8026
+ },
7951
8027
  "cityName": {
7952
8028
  "args": {},
7953
8029
  "deprecationReason": null,
@@ -8031,6 +8107,24 @@
8031
8107
  "isDeprecated": false,
8032
8108
  "name": "SOCKET_AWS1500"
8033
8109
  },
8110
+ {
8111
+ "deprecationReason": null,
8112
+ "description": null,
8113
+ "isDeprecated": false,
8114
+ "name": "VSOCKET_VGX_AWS"
8115
+ },
8116
+ {
8117
+ "deprecationReason": null,
8118
+ "description": null,
8119
+ "isDeprecated": false,
8120
+ "name": "VSOCKET_VGX_ESX"
8121
+ },
8122
+ {
8123
+ "deprecationReason": null,
8124
+ "description": null,
8125
+ "isDeprecated": false,
8126
+ "name": "VSOCKET_VGX_AZURE"
8127
+ },
8034
8128
  {
8035
8129
  "deprecationReason": null,
8036
8130
  "description": null,
@@ -8054,6 +8148,12 @@
8054
8148
  "description": null,
8055
8149
  "isDeprecated": false,
8056
8150
  "name": "SOCKET_X1600_LTE"
8151
+ },
8152
+ {
8153
+ "deprecationReason": null,
8154
+ "description": null,
8155
+ "isDeprecated": false,
8156
+ "name": "SOCKET_GCP1500"
8057
8157
  }
8058
8158
  ],
8059
8159
  "fields": null,
@@ -8715,6 +8815,12 @@
8715
8815
  "description": null,
8716
8816
  "isDeprecated": false,
8717
8817
  "name": "X1600_LTE"
8818
+ },
8819
+ {
8820
+ "deprecationReason": null,
8821
+ "description": null,
8822
+ "isDeprecated": false,
8823
+ "name": "GCP1500"
8718
8824
  }
8719
8825
  ],
8720
8826
  "fields": null,
@@ -10395,6 +10501,12 @@
10395
10501
  "description": null,
10396
10502
  "isDeprecated": false,
10397
10503
  "name": "X1600_LTE"
10504
+ },
10505
+ {
10506
+ "deprecationReason": null,
10507
+ "description": null,
10508
+ "isDeprecated": false,
10509
+ "name": "GCP1500"
10398
10510
  }
10399
10511
  ],
10400
10512
  "fields": null,
@@ -2472,6 +2472,12 @@
2472
2472
  "description": null,
2473
2473
  "isDeprecated": false,
2474
2474
  "name": "X1600_LTE"
2475
+ },
2476
+ {
2477
+ "deprecationReason": null,
2478
+ "description": null,
2479
+ "isDeprecated": false,
2480
+ "name": "GCP1500"
2475
2481
  }
2476
2482
  ],
2477
2483
  "fields": null,
@@ -2910,6 +2916,26 @@
2910
2916
  "description": "Basic Site configuration information",
2911
2917
  "enumValues": null,
2912
2918
  "fields": {
2919
+ "address": {
2920
+ "args": {},
2921
+ "deprecationReason": null,
2922
+ "description": "Address of the physical site location",
2923
+ "id_str": "sites___info___address",
2924
+ "isDeprecated": false,
2925
+ "name": "address",
2926
+ "path": "sites.info.address",
2927
+ "requestStr": "$address:String ",
2928
+ "required": false,
2929
+ "responseStr": "address:$address ",
2930
+ "type": {
2931
+ "kind": [
2932
+ "SCALAR"
2933
+ ],
2934
+ "name": "String",
2935
+ "non_null": false
2936
+ },
2937
+ "varName": "address"
2938
+ },
2913
2939
  "cityName": {
2914
2940
  "args": {},
2915
2941
  "deprecationReason": null,
@@ -2993,6 +3019,24 @@
2993
3019
  "isDeprecated": false,
2994
3020
  "name": "SOCKET_AWS1500"
2995
3021
  },
3022
+ {
3023
+ "deprecationReason": null,
3024
+ "description": null,
3025
+ "isDeprecated": false,
3026
+ "name": "VSOCKET_VGX_AWS"
3027
+ },
3028
+ {
3029
+ "deprecationReason": null,
3030
+ "description": null,
3031
+ "isDeprecated": false,
3032
+ "name": "VSOCKET_VGX_ESX"
3033
+ },
3034
+ {
3035
+ "deprecationReason": null,
3036
+ "description": null,
3037
+ "isDeprecated": false,
3038
+ "name": "VSOCKET_VGX_AZURE"
3039
+ },
2996
3040
  {
2997
3041
  "deprecationReason": null,
2998
3042
  "description": null,
@@ -3016,6 +3060,12 @@
3016
3060
  "description": null,
3017
3061
  "isDeprecated": false,
3018
3062
  "name": "SOCKET_X1600_LTE"
3063
+ },
3064
+ {
3065
+ "deprecationReason": null,
3066
+ "description": null,
3067
+ "isDeprecated": false,
3068
+ "name": "SOCKET_GCP1500"
3019
3069
  }
3020
3070
  ],
3021
3071
  "fields": null,
@@ -3677,6 +3727,12 @@
3677
3727
  "description": null,
3678
3728
  "isDeprecated": false,
3679
3729
  "name": "X1600_LTE"
3730
+ },
3731
+ {
3732
+ "deprecationReason": null,
3733
+ "description": null,
3734
+ "isDeprecated": false,
3735
+ "name": "GCP1500"
3680
3736
  }
3681
3737
  ],
3682
3738
  "fields": null,
@@ -6353,6 +6409,12 @@
6353
6409
  "description": null,
6354
6410
  "isDeprecated": false,
6355
6411
  "name": "X1600_LTE"
6412
+ },
6413
+ {
6414
+ "deprecationReason": null,
6415
+ "description": null,
6416
+ "isDeprecated": false,
6417
+ "name": "GCP1500"
6356
6418
  }
6357
6419
  ],
6358
6420
  "fields": null,
models/query.admin.json CHANGED
@@ -43,6 +43,7 @@
43
43
  "description": null,
44
44
  "fieldTypes": {
45
45
  "AdminRole": true,
46
+ "AdminType": true,
46
47
  "Entity": true,
47
48
  "EntityType": true,
48
49
  "RBACRole": true
@@ -95,6 +96,51 @@
95
96
  "description": null,
96
97
  "enumValues": null,
97
98
  "fields": {
99
+ "adminType": {
100
+ "args": {},
101
+ "deprecationReason": null,
102
+ "description": null,
103
+ "id_str": "adminType",
104
+ "isDeprecated": false,
105
+ "name": "adminType",
106
+ "path": "adminType",
107
+ "requestStr": "$adminType:AdminType! ",
108
+ "required": true,
109
+ "responseStr": "adminType:$adminType ",
110
+ "type": {
111
+ "definition": {
112
+ "description": null,
113
+ "enumValues": [
114
+ {
115
+ "deprecationReason": null,
116
+ "description": null,
117
+ "isDeprecated": false,
118
+ "name": "LOGIN"
119
+ },
120
+ {
121
+ "deprecationReason": null,
122
+ "description": null,
123
+ "isDeprecated": false,
124
+ "name": "SERVICE_PRINCIPLE"
125
+ }
126
+ ],
127
+ "fields": null,
128
+ "inputFields": null,
129
+ "interfaces": null,
130
+ "kind": "ENUM",
131
+ "name": "AdminType",
132
+ "possibleTypes": null
133
+ },
134
+ "indexType": "enum",
135
+ "kind": [
136
+ "NON_NULL",
137
+ "ENUM"
138
+ ],
139
+ "name": "AdminType",
140
+ "non_null": false
141
+ },
142
+ "varName": "adminType"
143
+ },
98
144
  "creationDate": {
99
145
  "args": {},
100
146
  "deprecationReason": null,
models/query.admins.json CHANGED
@@ -190,6 +190,7 @@
190
190
  "fieldTypes": {
191
191
  "Admin": true,
192
192
  "AdminRole": true,
193
+ "AdminType": true,
193
194
  "Entity": true,
194
195
  "EntityType": true,
195
196
  "OperationalStatus": true,
@@ -406,6 +407,51 @@
406
407
  "description": "A CC2 administrator",
407
408
  "enumValues": null,
408
409
  "fields": {
410
+ "adminType": {
411
+ "alias": "adminTypeAdminType: adminType",
412
+ "args": {},
413
+ "deprecationReason": null,
414
+ "description": null,
415
+ "id_str": "items___adminType",
416
+ "isDeprecated": false,
417
+ "name": "adminType",
418
+ "path": "items.adminType",
419
+ "requestStr": "$adminType:AdminType ",
420
+ "required": false,
421
+ "responseStr": "adminType:$adminType ",
422
+ "type": {
423
+ "definition": {
424
+ "description": null,
425
+ "enumValues": [
426
+ {
427
+ "deprecationReason": null,
428
+ "description": null,
429
+ "isDeprecated": false,
430
+ "name": "LOGIN"
431
+ },
432
+ {
433
+ "deprecationReason": null,
434
+ "description": null,
435
+ "isDeprecated": false,
436
+ "name": "SERVICE_PRINCIPLE"
437
+ }
438
+ ],
439
+ "fields": null,
440
+ "inputFields": null,
441
+ "interfaces": null,
442
+ "kind": "ENUM",
443
+ "name": "AdminType",
444
+ "possibleTypes": null
445
+ },
446
+ "indexType": "enum",
447
+ "kind": [
448
+ "ENUM"
449
+ ],
450
+ "name": "AdminType",
451
+ "non_null": false
452
+ },
453
+ "varName": "adminType"
454
+ },
409
455
  "allowedItems": {
410
456
  "alias": "entityAllowedItems: allowedItems",
411
457
  "args": {},