catocli 1.0.13__py3-none-any.whl → 1.0.14__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 +11 -2
- catocli/__init__.py +1 -1
- catocli/parsers/custom/customLib.py +3 -1
- catocli/parsers/mutation_site/__init__.py +14 -0
- catocli/parsers/mutation_site_addIpsecIkeV2SiteTunnels/README.md +1 -1
- catocli/parsers/mutation_site_removeIpsecIkeV2SiteTunnels/README.md +18 -0
- catocli/parsers/mutation_sites/__init__.py +14 -0
- catocli/parsers/mutation_sites_addIpsecIkeV2SiteTunnels/README.md +1 -1
- catocli/parsers/mutation_sites_removeIpsecIkeV2SiteTunnels/README.md +18 -0
- {catocli-1.0.13.dist-info → catocli-1.0.14.dist-info}/METADATA +1 -1
- {catocli-1.0.13.dist-info → catocli-1.0.14.dist-info}/RECORD +23 -103
- {catocli-1.0.13.dist-info → catocli-1.0.14.dist-info}/top_level.txt +0 -2
- graphql_client/api_client_types.py +4 -0
- models/mutation.site.addIpsecIkeV2SiteTunnels.json +403 -0
- models/mutation.site.removeIpsecIkeV2SiteTunnels.json +861 -0
- models/mutation.sites.addIpsecIkeV2SiteTunnels.json +403 -0
- models/mutation.sites.removeIpsecIkeV2SiteTunnels.json +861 -0
- models/query.accountSnapshot.json +162 -2
- models/query.licensing.json +126 -0
- schema/catolib.py +11 -2
- build/lib/catocli/Utils/clidriver.py +0 -117
- build/lib/catocli/__init__.py +0 -2
- build/lib/catocli/__main__.py +0 -12
- build/lib/catocli/parsers/custom/__init__.py +0 -47
- build/lib/catocli/parsers/custom/customLib.py +0 -70
- build/lib/catocli/parsers/mutation_admin/__init__.py +0 -51
- build/lib/catocli/parsers/mutation_container/__init__.py +0 -23
- build/lib/catocli/parsers/mutation_policy/__init__.py +0 -357
- build/lib/catocli/parsers/mutation_site/__init__.py +0 -219
- build/lib/catocli/parsers/mutation_sites/__init__.py +0 -219
- build/lib/catocli/parsers/parserApiClient.py +0 -309
- build/lib/catocli/parsers/query_accountBySubdomain/__init__.py +0 -17
- build/lib/catocli/parsers/query_accountMetrics/__init__.py +0 -17
- build/lib/catocli/parsers/query_accountRoles/__init__.py +0 -17
- build/lib/catocli/parsers/query_accountSnapshot/__init__.py +0 -17
- build/lib/catocli/parsers/query_admin/__init__.py +0 -17
- build/lib/catocli/parsers/query_admins/__init__.py +0 -17
- build/lib/catocli/parsers/query_appStats/__init__.py +0 -17
- build/lib/catocli/parsers/query_appStatsTimeSeries/__init__.py +0 -17
- build/lib/catocli/parsers/query_auditFeed/__init__.py +0 -17
- build/lib/catocli/parsers/query_container/__init__.py +0 -17
- build/lib/catocli/parsers/query_entityLookup/__init__.py +0 -17
- build/lib/catocli/parsers/query_events/__init__.py +0 -17
- build/lib/catocli/parsers/query_eventsFeed/__init__.py +0 -17
- build/lib/catocli/parsers/query_eventsTimeSeries/__init__.py +0 -17
- build/lib/catocli/parsers/query_hardwareManagement/__init__.py +0 -17
- build/lib/catocli/parsers/query_licensing/__init__.py +0 -17
- build/lib/catocli/parsers/query_policy/__init__.py +0 -17
- build/lib/catocli/parsers/query_siteLocation/__init__.py +0 -17
- build/lib/catocli/parsers/query_subDomains/__init__.py +0 -17
- build/lib/catocli/parsers/query_xdr/__init__.py +0 -37
- build/lib/catocli/parsers/raw/__init__.py +0 -9
- build/lib/graphql_client/__init__.py +0 -11
- build/lib/graphql_client/api/__init__.py +0 -3
- build/lib/graphql_client/api/call_api.py +0 -73
- build/lib/graphql_client/api_client.py +0 -192
- build/lib/graphql_client/api_client_types.py +0 -404
- build/lib/graphql_client/configuration.py +0 -230
- build/lib/graphql_client/models/__init__.py +0 -13
- build/lib/graphql_client/models/no_schema.py +0 -71
- build/lib/schema/catolib.py +0 -1016
- build/lib/schema/importSchema.py +0 -60
- build/lib/vendor/certifi/__init__.py +0 -4
- build/lib/vendor/certifi/__main__.py +0 -12
- build/lib/vendor/certifi/core.py +0 -114
- build/lib/vendor/certifi/py.typed +0 -0
- build/lib/vendor/six.py +0 -998
- build/lib/vendor/urllib3/__init__.py +0 -211
- build/lib/vendor/urllib3/_base_connection.py +0 -172
- build/lib/vendor/urllib3/_collections.py +0 -483
- build/lib/vendor/urllib3/_request_methods.py +0 -278
- build/lib/vendor/urllib3/_version.py +0 -16
- build/lib/vendor/urllib3/connection.py +0 -1033
- build/lib/vendor/urllib3/connectionpool.py +0 -1182
- build/lib/vendor/urllib3/contrib/__init__.py +0 -0
- build/lib/vendor/urllib3/contrib/emscripten/__init__.py +0 -18
- build/lib/vendor/urllib3/contrib/emscripten/connection.py +0 -254
- build/lib/vendor/urllib3/contrib/emscripten/fetch.py +0 -418
- build/lib/vendor/urllib3/contrib/emscripten/request.py +0 -22
- build/lib/vendor/urllib3/contrib/emscripten/response.py +0 -285
- build/lib/vendor/urllib3/contrib/pyopenssl.py +0 -552
- build/lib/vendor/urllib3/contrib/socks.py +0 -228
- build/lib/vendor/urllib3/exceptions.py +0 -321
- build/lib/vendor/urllib3/fields.py +0 -341
- build/lib/vendor/urllib3/filepost.py +0 -89
- build/lib/vendor/urllib3/http2/__init__.py +0 -53
- build/lib/vendor/urllib3/http2/connection.py +0 -356
- build/lib/vendor/urllib3/http2/probe.py +0 -87
- build/lib/vendor/urllib3/poolmanager.py +0 -637
- build/lib/vendor/urllib3/py.typed +0 -2
- build/lib/vendor/urllib3/response.py +0 -1265
- build/lib/vendor/urllib3/util/__init__.py +0 -42
- build/lib/vendor/urllib3/util/connection.py +0 -137
- build/lib/vendor/urllib3/util/proxy.py +0 -43
- build/lib/vendor/urllib3/util/request.py +0 -256
- build/lib/vendor/urllib3/util/response.py +0 -101
- build/lib/vendor/urllib3/util/retry.py +0 -533
- build/lib/vendor/urllib3/util/ssl_.py +0 -513
- build/lib/vendor/urllib3/util/ssl_match_hostname.py +0 -159
- build/lib/vendor/urllib3/util/ssltransport.py +0 -276
- build/lib/vendor/urllib3/util/timeout.py +0 -275
- build/lib/vendor/urllib3/util/url.py +0 -471
- build/lib/vendor/urllib3/util/util.py +0 -42
- build/lib/vendor/urllib3/util/wait.py +0 -124
- {catocli-1.0.13.dist-info → catocli-1.0.14.dist-info}/LICENSE +0 -0
- {catocli-1.0.13.dist-info → catocli-1.0.14.dist-info}/WHEEL +0 -0
- {catocli-1.0.13.dist-info → catocli-1.0.14.dist-info}/entry_points.txt +0 -0
|
@@ -315,6 +315,26 @@
|
|
|
315
315
|
},
|
|
316
316
|
"varName": "connectedSince"
|
|
317
317
|
},
|
|
318
|
+
"deviceUptime": {
|
|
319
|
+
"args": {},
|
|
320
|
+
"deprecationReason": null,
|
|
321
|
+
"description": "Indicates the Socket uptime",
|
|
322
|
+
"id_str": "sites___devices___deviceUptime",
|
|
323
|
+
"isDeprecated": false,
|
|
324
|
+
"name": "deviceUptime",
|
|
325
|
+
"path": "sites.devices.deviceUptime",
|
|
326
|
+
"requestStr": "$deviceUptime:Int ",
|
|
327
|
+
"required": false,
|
|
328
|
+
"responseStr": "deviceUptime:$deviceUptime ",
|
|
329
|
+
"type": {
|
|
330
|
+
"kind": [
|
|
331
|
+
"SCALAR"
|
|
332
|
+
],
|
|
333
|
+
"name": "Int",
|
|
334
|
+
"non_null": false
|
|
335
|
+
},
|
|
336
|
+
"varName": "deviceUptime"
|
|
337
|
+
},
|
|
318
338
|
"haRole": {
|
|
319
339
|
"args": {},
|
|
320
340
|
"deprecationReason": null,
|
|
@@ -1492,6 +1512,66 @@
|
|
|
1492
1512
|
},
|
|
1493
1513
|
"varName": "duplex"
|
|
1494
1514
|
},
|
|
1515
|
+
"hasAddress": {
|
|
1516
|
+
"args": {},
|
|
1517
|
+
"deprecationReason": null,
|
|
1518
|
+
"description": "Indicates if the WAN interface has an IP address",
|
|
1519
|
+
"id_str": "sites___devices___interfacesLinkState___hasAddress",
|
|
1520
|
+
"isDeprecated": false,
|
|
1521
|
+
"name": "hasAddress",
|
|
1522
|
+
"path": "sites.devices.interfacesLinkState.hasAddress",
|
|
1523
|
+
"requestStr": "$hasAddress:Boolean ",
|
|
1524
|
+
"required": false,
|
|
1525
|
+
"responseStr": "hasAddress:$hasAddress ",
|
|
1526
|
+
"type": {
|
|
1527
|
+
"kind": [
|
|
1528
|
+
"SCALAR"
|
|
1529
|
+
],
|
|
1530
|
+
"name": "Boolean",
|
|
1531
|
+
"non_null": false
|
|
1532
|
+
},
|
|
1533
|
+
"varName": "hasAddress"
|
|
1534
|
+
},
|
|
1535
|
+
"hasInternet": {
|
|
1536
|
+
"args": {},
|
|
1537
|
+
"deprecationReason": null,
|
|
1538
|
+
"description": "Indicates if the interface is connected to the Internet",
|
|
1539
|
+
"id_str": "sites___devices___interfacesLinkState___hasInternet",
|
|
1540
|
+
"isDeprecated": false,
|
|
1541
|
+
"name": "hasInternet",
|
|
1542
|
+
"path": "sites.devices.interfacesLinkState.hasInternet",
|
|
1543
|
+
"requestStr": "$hasInternet:Boolean ",
|
|
1544
|
+
"required": false,
|
|
1545
|
+
"responseStr": "hasInternet:$hasInternet ",
|
|
1546
|
+
"type": {
|
|
1547
|
+
"kind": [
|
|
1548
|
+
"SCALAR"
|
|
1549
|
+
],
|
|
1550
|
+
"name": "Boolean",
|
|
1551
|
+
"non_null": false
|
|
1552
|
+
},
|
|
1553
|
+
"varName": "hasInternet"
|
|
1554
|
+
},
|
|
1555
|
+
"hasTunnel": {
|
|
1556
|
+
"args": {},
|
|
1557
|
+
"deprecationReason": null,
|
|
1558
|
+
"description": "Indicates if a connection has been established with the Cato Cloud",
|
|
1559
|
+
"id_str": "sites___devices___interfacesLinkState___hasTunnel",
|
|
1560
|
+
"isDeprecated": false,
|
|
1561
|
+
"name": "hasTunnel",
|
|
1562
|
+
"path": "sites.devices.interfacesLinkState.hasTunnel",
|
|
1563
|
+
"requestStr": "$hasTunnel:Boolean ",
|
|
1564
|
+
"required": false,
|
|
1565
|
+
"responseStr": "hasTunnel:$hasTunnel ",
|
|
1566
|
+
"type": {
|
|
1567
|
+
"kind": [
|
|
1568
|
+
"SCALAR"
|
|
1569
|
+
],
|
|
1570
|
+
"name": "Boolean",
|
|
1571
|
+
"non_null": false
|
|
1572
|
+
},
|
|
1573
|
+
"varName": "hasTunnel"
|
|
1574
|
+
},
|
|
1495
1575
|
"id": {
|
|
1496
1576
|
"args": {},
|
|
1497
1577
|
"deprecationReason": null,
|
|
@@ -1535,7 +1615,7 @@
|
|
|
1535
1615
|
"mediaIn": {
|
|
1536
1616
|
"args": {},
|
|
1537
1617
|
"deprecationReason": null,
|
|
1538
|
-
"description": "
|
|
1618
|
+
"description": "Indicates if there is a physical connection to the port",
|
|
1539
1619
|
"id_str": "sites___devices___interfacesLinkState___mediaIn",
|
|
1540
1620
|
"isDeprecated": false,
|
|
1541
1621
|
"name": "mediaIn",
|
|
@@ -3911,6 +3991,26 @@
|
|
|
3911
3991
|
},
|
|
3912
3992
|
"varName": "connectedSince"
|
|
3913
3993
|
},
|
|
3994
|
+
"deviceUptime": {
|
|
3995
|
+
"args": {},
|
|
3996
|
+
"deprecationReason": null,
|
|
3997
|
+
"description": "Indicates the Socket uptime",
|
|
3998
|
+
"id_str": "users___devices___deviceUptime",
|
|
3999
|
+
"isDeprecated": false,
|
|
4000
|
+
"name": "deviceUptime",
|
|
4001
|
+
"path": "users.devices.deviceUptime",
|
|
4002
|
+
"requestStr": "$deviceUptime:Int ",
|
|
4003
|
+
"required": false,
|
|
4004
|
+
"responseStr": "deviceUptime:$deviceUptime ",
|
|
4005
|
+
"type": {
|
|
4006
|
+
"kind": [
|
|
4007
|
+
"SCALAR"
|
|
4008
|
+
],
|
|
4009
|
+
"name": "Int",
|
|
4010
|
+
"non_null": false
|
|
4011
|
+
},
|
|
4012
|
+
"varName": "deviceUptime"
|
|
4013
|
+
},
|
|
3914
4014
|
"haRole": {
|
|
3915
4015
|
"args": {},
|
|
3916
4016
|
"deprecationReason": null,
|
|
@@ -5088,6 +5188,66 @@
|
|
|
5088
5188
|
},
|
|
5089
5189
|
"varName": "duplex"
|
|
5090
5190
|
},
|
|
5191
|
+
"hasAddress": {
|
|
5192
|
+
"args": {},
|
|
5193
|
+
"deprecationReason": null,
|
|
5194
|
+
"description": "Indicates if the WAN interface has an IP address",
|
|
5195
|
+
"id_str": "users___devices___interfacesLinkState___hasAddress",
|
|
5196
|
+
"isDeprecated": false,
|
|
5197
|
+
"name": "hasAddress",
|
|
5198
|
+
"path": "users.devices.interfacesLinkState.hasAddress",
|
|
5199
|
+
"requestStr": "$hasAddress:Boolean ",
|
|
5200
|
+
"required": false,
|
|
5201
|
+
"responseStr": "hasAddress:$hasAddress ",
|
|
5202
|
+
"type": {
|
|
5203
|
+
"kind": [
|
|
5204
|
+
"SCALAR"
|
|
5205
|
+
],
|
|
5206
|
+
"name": "Boolean",
|
|
5207
|
+
"non_null": false
|
|
5208
|
+
},
|
|
5209
|
+
"varName": "hasAddress"
|
|
5210
|
+
},
|
|
5211
|
+
"hasInternet": {
|
|
5212
|
+
"args": {},
|
|
5213
|
+
"deprecationReason": null,
|
|
5214
|
+
"description": "Indicates if the interface is connected to the Internet",
|
|
5215
|
+
"id_str": "users___devices___interfacesLinkState___hasInternet",
|
|
5216
|
+
"isDeprecated": false,
|
|
5217
|
+
"name": "hasInternet",
|
|
5218
|
+
"path": "users.devices.interfacesLinkState.hasInternet",
|
|
5219
|
+
"requestStr": "$hasInternet:Boolean ",
|
|
5220
|
+
"required": false,
|
|
5221
|
+
"responseStr": "hasInternet:$hasInternet ",
|
|
5222
|
+
"type": {
|
|
5223
|
+
"kind": [
|
|
5224
|
+
"SCALAR"
|
|
5225
|
+
],
|
|
5226
|
+
"name": "Boolean",
|
|
5227
|
+
"non_null": false
|
|
5228
|
+
},
|
|
5229
|
+
"varName": "hasInternet"
|
|
5230
|
+
},
|
|
5231
|
+
"hasTunnel": {
|
|
5232
|
+
"args": {},
|
|
5233
|
+
"deprecationReason": null,
|
|
5234
|
+
"description": "Indicates if a connection has been established with the Cato Cloud",
|
|
5235
|
+
"id_str": "users___devices___interfacesLinkState___hasTunnel",
|
|
5236
|
+
"isDeprecated": false,
|
|
5237
|
+
"name": "hasTunnel",
|
|
5238
|
+
"path": "users.devices.interfacesLinkState.hasTunnel",
|
|
5239
|
+
"requestStr": "$hasTunnel:Boolean ",
|
|
5240
|
+
"required": false,
|
|
5241
|
+
"responseStr": "hasTunnel:$hasTunnel ",
|
|
5242
|
+
"type": {
|
|
5243
|
+
"kind": [
|
|
5244
|
+
"SCALAR"
|
|
5245
|
+
],
|
|
5246
|
+
"name": "Boolean",
|
|
5247
|
+
"non_null": false
|
|
5248
|
+
},
|
|
5249
|
+
"varName": "hasTunnel"
|
|
5250
|
+
},
|
|
5091
5251
|
"id": {
|
|
5092
5252
|
"args": {},
|
|
5093
5253
|
"deprecationReason": null,
|
|
@@ -5131,7 +5291,7 @@
|
|
|
5131
5291
|
"mediaIn": {
|
|
5132
5292
|
"args": {},
|
|
5133
5293
|
"deprecationReason": null,
|
|
5134
|
-
"description": "
|
|
5294
|
+
"description": "Indicates if there is a physical connection to the port",
|
|
5135
5295
|
"id_str": "users___devices___interfacesLinkState___mediaIn",
|
|
5136
5296
|
"isDeprecated": false,
|
|
5137
5297
|
"name": "mediaIn",
|
models/query.licensing.json
CHANGED
|
@@ -534,6 +534,12 @@
|
|
|
534
534
|
"isDeprecated": false,
|
|
535
535
|
"name": "CATO_MDR"
|
|
536
536
|
},
|
|
537
|
+
{
|
|
538
|
+
"deprecationReason": null,
|
|
539
|
+
"description": "Cato Managed XDR service SKU",
|
|
540
|
+
"isDeprecated": false,
|
|
541
|
+
"name": "CATO_MANAGED_XDR"
|
|
542
|
+
},
|
|
537
543
|
{
|
|
538
544
|
"deprecationReason": null,
|
|
539
545
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -952,6 +958,12 @@
|
|
|
952
958
|
"isDeprecated": false,
|
|
953
959
|
"name": "CATO_MDR"
|
|
954
960
|
},
|
|
961
|
+
{
|
|
962
|
+
"deprecationReason": null,
|
|
963
|
+
"description": "Cato Managed XDR service SKU",
|
|
964
|
+
"isDeprecated": false,
|
|
965
|
+
"name": "CATO_MANAGED_XDR"
|
|
966
|
+
},
|
|
955
967
|
{
|
|
956
968
|
"deprecationReason": null,
|
|
957
969
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -1443,6 +1455,12 @@
|
|
|
1443
1455
|
"isDeprecated": false,
|
|
1444
1456
|
"name": "CATO_MDR"
|
|
1445
1457
|
},
|
|
1458
|
+
{
|
|
1459
|
+
"deprecationReason": null,
|
|
1460
|
+
"description": "Cato Managed XDR service SKU",
|
|
1461
|
+
"isDeprecated": false,
|
|
1462
|
+
"name": "CATO_MANAGED_XDR"
|
|
1463
|
+
},
|
|
1446
1464
|
{
|
|
1447
1465
|
"deprecationReason": null,
|
|
1448
1466
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -1884,6 +1902,12 @@
|
|
|
1884
1902
|
"isDeprecated": false,
|
|
1885
1903
|
"name": "CATO_MDR"
|
|
1886
1904
|
},
|
|
1905
|
+
{
|
|
1906
|
+
"deprecationReason": null,
|
|
1907
|
+
"description": "Cato Managed XDR service SKU",
|
|
1908
|
+
"isDeprecated": false,
|
|
1909
|
+
"name": "CATO_MANAGED_XDR"
|
|
1910
|
+
},
|
|
1887
1911
|
{
|
|
1888
1912
|
"deprecationReason": null,
|
|
1889
1913
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -2325,6 +2349,12 @@
|
|
|
2325
2349
|
"isDeprecated": false,
|
|
2326
2350
|
"name": "CATO_MDR"
|
|
2327
2351
|
},
|
|
2352
|
+
{
|
|
2353
|
+
"deprecationReason": null,
|
|
2354
|
+
"description": "Cato Managed XDR service SKU",
|
|
2355
|
+
"isDeprecated": false,
|
|
2356
|
+
"name": "CATO_MANAGED_XDR"
|
|
2357
|
+
},
|
|
2328
2358
|
{
|
|
2329
2359
|
"deprecationReason": null,
|
|
2330
2360
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -2766,6 +2796,12 @@
|
|
|
2766
2796
|
"isDeprecated": false,
|
|
2767
2797
|
"name": "CATO_MDR"
|
|
2768
2798
|
},
|
|
2799
|
+
{
|
|
2800
|
+
"deprecationReason": null,
|
|
2801
|
+
"description": "Cato Managed XDR service SKU",
|
|
2802
|
+
"isDeprecated": false,
|
|
2803
|
+
"name": "CATO_MANAGED_XDR"
|
|
2804
|
+
},
|
|
2769
2805
|
{
|
|
2770
2806
|
"deprecationReason": null,
|
|
2771
2807
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -3186,6 +3222,12 @@
|
|
|
3186
3222
|
"isDeprecated": false,
|
|
3187
3223
|
"name": "CATO_MDR"
|
|
3188
3224
|
},
|
|
3225
|
+
{
|
|
3226
|
+
"deprecationReason": null,
|
|
3227
|
+
"description": "Cato Managed XDR service SKU",
|
|
3228
|
+
"isDeprecated": false,
|
|
3229
|
+
"name": "CATO_MANAGED_XDR"
|
|
3230
|
+
},
|
|
3189
3231
|
{
|
|
3190
3232
|
"deprecationReason": null,
|
|
3191
3233
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -3627,6 +3669,12 @@
|
|
|
3627
3669
|
"isDeprecated": false,
|
|
3628
3670
|
"name": "CATO_MDR"
|
|
3629
3671
|
},
|
|
3672
|
+
{
|
|
3673
|
+
"deprecationReason": null,
|
|
3674
|
+
"description": "Cato Managed XDR service SKU",
|
|
3675
|
+
"isDeprecated": false,
|
|
3676
|
+
"name": "CATO_MANAGED_XDR"
|
|
3677
|
+
},
|
|
3630
3678
|
{
|
|
3631
3679
|
"deprecationReason": null,
|
|
3632
3680
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -4068,6 +4116,12 @@
|
|
|
4068
4116
|
"isDeprecated": false,
|
|
4069
4117
|
"name": "CATO_MDR"
|
|
4070
4118
|
},
|
|
4119
|
+
{
|
|
4120
|
+
"deprecationReason": null,
|
|
4121
|
+
"description": "Cato Managed XDR service SKU",
|
|
4122
|
+
"isDeprecated": false,
|
|
4123
|
+
"name": "CATO_MANAGED_XDR"
|
|
4124
|
+
},
|
|
4071
4125
|
{
|
|
4072
4126
|
"deprecationReason": null,
|
|
4073
4127
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -4488,6 +4542,12 @@
|
|
|
4488
4542
|
"isDeprecated": false,
|
|
4489
4543
|
"name": "CATO_MDR"
|
|
4490
4544
|
},
|
|
4545
|
+
{
|
|
4546
|
+
"deprecationReason": null,
|
|
4547
|
+
"description": "Cato Managed XDR service SKU",
|
|
4548
|
+
"isDeprecated": false,
|
|
4549
|
+
"name": "CATO_MANAGED_XDR"
|
|
4550
|
+
},
|
|
4491
4551
|
{
|
|
4492
4552
|
"deprecationReason": null,
|
|
4493
4553
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -4908,6 +4968,12 @@
|
|
|
4908
4968
|
"isDeprecated": false,
|
|
4909
4969
|
"name": "CATO_MDR"
|
|
4910
4970
|
},
|
|
4971
|
+
{
|
|
4972
|
+
"deprecationReason": null,
|
|
4973
|
+
"description": "Cato Managed XDR service SKU",
|
|
4974
|
+
"isDeprecated": false,
|
|
4975
|
+
"name": "CATO_MANAGED_XDR"
|
|
4976
|
+
},
|
|
4911
4977
|
{
|
|
4912
4978
|
"deprecationReason": null,
|
|
4913
4979
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -5328,6 +5394,12 @@
|
|
|
5328
5394
|
"isDeprecated": false,
|
|
5329
5395
|
"name": "CATO_MDR"
|
|
5330
5396
|
},
|
|
5397
|
+
{
|
|
5398
|
+
"deprecationReason": null,
|
|
5399
|
+
"description": "Cato Managed XDR service SKU",
|
|
5400
|
+
"isDeprecated": false,
|
|
5401
|
+
"name": "CATO_MANAGED_XDR"
|
|
5402
|
+
},
|
|
5331
5403
|
{
|
|
5332
5404
|
"deprecationReason": null,
|
|
5333
5405
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -5748,6 +5820,12 @@
|
|
|
5748
5820
|
"isDeprecated": false,
|
|
5749
5821
|
"name": "CATO_MDR"
|
|
5750
5822
|
},
|
|
5823
|
+
{
|
|
5824
|
+
"deprecationReason": null,
|
|
5825
|
+
"description": "Cato Managed XDR service SKU",
|
|
5826
|
+
"isDeprecated": false,
|
|
5827
|
+
"name": "CATO_MANAGED_XDR"
|
|
5828
|
+
},
|
|
5751
5829
|
{
|
|
5752
5830
|
"deprecationReason": null,
|
|
5753
5831
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -6609,6 +6687,12 @@
|
|
|
6609
6687
|
"isDeprecated": false,
|
|
6610
6688
|
"name": "CATO_MDR"
|
|
6611
6689
|
},
|
|
6690
|
+
{
|
|
6691
|
+
"deprecationReason": null,
|
|
6692
|
+
"description": "Cato Managed XDR service SKU",
|
|
6693
|
+
"isDeprecated": false,
|
|
6694
|
+
"name": "CATO_MANAGED_XDR"
|
|
6695
|
+
},
|
|
6612
6696
|
{
|
|
6613
6697
|
"deprecationReason": null,
|
|
6614
6698
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -7050,6 +7134,12 @@
|
|
|
7050
7134
|
"isDeprecated": false,
|
|
7051
7135
|
"name": "CATO_MDR"
|
|
7052
7136
|
},
|
|
7137
|
+
{
|
|
7138
|
+
"deprecationReason": null,
|
|
7139
|
+
"description": "Cato Managed XDR service SKU",
|
|
7140
|
+
"isDeprecated": false,
|
|
7141
|
+
"name": "CATO_MANAGED_XDR"
|
|
7142
|
+
},
|
|
7053
7143
|
{
|
|
7054
7144
|
"deprecationReason": null,
|
|
7055
7145
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -7491,6 +7581,12 @@
|
|
|
7491
7581
|
"isDeprecated": false,
|
|
7492
7582
|
"name": "CATO_MDR"
|
|
7493
7583
|
},
|
|
7584
|
+
{
|
|
7585
|
+
"deprecationReason": null,
|
|
7586
|
+
"description": "Cato Managed XDR service SKU",
|
|
7587
|
+
"isDeprecated": false,
|
|
7588
|
+
"name": "CATO_MANAGED_XDR"
|
|
7589
|
+
},
|
|
7494
7590
|
{
|
|
7495
7591
|
"deprecationReason": null,
|
|
7496
7592
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -7911,6 +8007,12 @@
|
|
|
7911
8007
|
"isDeprecated": false,
|
|
7912
8008
|
"name": "CATO_MDR"
|
|
7913
8009
|
},
|
|
8010
|
+
{
|
|
8011
|
+
"deprecationReason": null,
|
|
8012
|
+
"description": "Cato Managed XDR service SKU",
|
|
8013
|
+
"isDeprecated": false,
|
|
8014
|
+
"name": "CATO_MANAGED_XDR"
|
|
8015
|
+
},
|
|
7914
8016
|
{
|
|
7915
8017
|
"deprecationReason": null,
|
|
7916
8018
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -8626,6 +8728,12 @@
|
|
|
8626
8728
|
"isDeprecated": false,
|
|
8627
8729
|
"name": "CATO_MDR"
|
|
8628
8730
|
},
|
|
8731
|
+
{
|
|
8732
|
+
"deprecationReason": null,
|
|
8733
|
+
"description": "Cato Managed XDR service SKU",
|
|
8734
|
+
"isDeprecated": false,
|
|
8735
|
+
"name": "CATO_MANAGED_XDR"
|
|
8736
|
+
},
|
|
8629
8737
|
{
|
|
8630
8738
|
"deprecationReason": null,
|
|
8631
8739
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -9067,6 +9175,12 @@
|
|
|
9067
9175
|
"isDeprecated": false,
|
|
9068
9176
|
"name": "CATO_MDR"
|
|
9069
9177
|
},
|
|
9178
|
+
{
|
|
9179
|
+
"deprecationReason": null,
|
|
9180
|
+
"description": "Cato Managed XDR service SKU",
|
|
9181
|
+
"isDeprecated": false,
|
|
9182
|
+
"name": "CATO_MANAGED_XDR"
|
|
9183
|
+
},
|
|
9070
9184
|
{
|
|
9071
9185
|
"deprecationReason": null,
|
|
9072
9186
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -9487,6 +9601,12 @@
|
|
|
9487
9601
|
"isDeprecated": false,
|
|
9488
9602
|
"name": "CATO_MDR"
|
|
9489
9603
|
},
|
|
9604
|
+
{
|
|
9605
|
+
"deprecationReason": null,
|
|
9606
|
+
"description": "Cato Managed XDR service SKU",
|
|
9607
|
+
"isDeprecated": false,
|
|
9608
|
+
"name": "CATO_MANAGED_XDR"
|
|
9609
|
+
},
|
|
9490
9610
|
{
|
|
9491
9611
|
"deprecationReason": null,
|
|
9492
9612
|
"description": "Cato NOCaaS service SKU",
|
|
@@ -9928,6 +10048,12 @@
|
|
|
9928
10048
|
"isDeprecated": false,
|
|
9929
10049
|
"name": "CATO_MDR"
|
|
9930
10050
|
},
|
|
10051
|
+
{
|
|
10052
|
+
"deprecationReason": null,
|
|
10053
|
+
"description": "Cato Managed XDR service SKU",
|
|
10054
|
+
"isDeprecated": false,
|
|
10055
|
+
"name": "CATO_MANAGED_XDR"
|
|
10056
|
+
},
|
|
9931
10057
|
{
|
|
9932
10058
|
"deprecationReason": null,
|
|
9933
10059
|
"description": "Cato NOCaaS service SKU",
|
schema/catolib.py
CHANGED
|
@@ -511,6 +511,7 @@ import catocli
|
|
|
511
511
|
from graphql_client import Configuration
|
|
512
512
|
from graphql_client.api_client import ApiException
|
|
513
513
|
from ..parsers.parserApiClient import get_help
|
|
514
|
+
import traceback
|
|
514
515
|
import sys
|
|
515
516
|
sys.path.insert(0, 'vendor')
|
|
516
517
|
import urllib3
|
|
@@ -578,8 +579,16 @@ def main(args=None):
|
|
|
578
579
|
else:
|
|
579
580
|
if response!=None:
|
|
580
581
|
print(json.dumps(response[0], sort_keys=True, indent=4))
|
|
581
|
-
except
|
|
582
|
-
|
|
582
|
+
except Exception as e:
|
|
583
|
+
if isinstance(e, AttributeError):
|
|
584
|
+
print('Missing arguments. Usage: catocli <operation> -h')
|
|
585
|
+
if args.v==True:
|
|
586
|
+
print('ERROR: ',e)
|
|
587
|
+
traceback.print_exc()
|
|
588
|
+
else:
|
|
589
|
+
print('ERROR: ',e)
|
|
590
|
+
traceback.print_exc()
|
|
591
|
+
exit(1)
|
|
583
592
|
"""
|
|
584
593
|
writeFile("../catocli/Utils/clidriver.py",cliDriverStr)
|
|
585
594
|
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import os
|
|
3
|
-
import argparse
|
|
4
|
-
import json
|
|
5
|
-
import catocli
|
|
6
|
-
from graphql_client import Configuration
|
|
7
|
-
from graphql_client.api_client import ApiException
|
|
8
|
-
from ..parsers.parserApiClient import get_help
|
|
9
|
-
import sys
|
|
10
|
-
sys.path.insert(0, 'vendor')
|
|
11
|
-
import urllib3
|
|
12
|
-
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
|
13
|
-
if "CATO_TOKEN" not in os.environ:
|
|
14
|
-
print("Missing authentication, please set the CATO_TOKEN environment variable with your api key.")
|
|
15
|
-
exit()
|
|
16
|
-
CATO_TOKEN = os.getenv("CATO_TOKEN")
|
|
17
|
-
CATO_DEBUG = bool(os.getenv("CATO_DEBUG", False))
|
|
18
|
-
from ..parsers.raw import raw_parse
|
|
19
|
-
from ..parsers.custom import custom_parse
|
|
20
|
-
from ..parsers.query_siteLocation import query_siteLocation_parse
|
|
21
|
-
from ..parsers.mutation_admin import mutation_admin_parse
|
|
22
|
-
from ..parsers.mutation_container import mutation_container_parse
|
|
23
|
-
from ..parsers.mutation_policy import mutation_policy_parse
|
|
24
|
-
from ..parsers.mutation_site import mutation_site_parse
|
|
25
|
-
from ..parsers.mutation_sites import mutation_sites_parse
|
|
26
|
-
from ..parsers.query_accountBySubdomain import query_accountBySubdomain_parse
|
|
27
|
-
from ..parsers.query_accountMetrics import query_accountMetrics_parse
|
|
28
|
-
from ..parsers.query_accountRoles import query_accountRoles_parse
|
|
29
|
-
from ..parsers.query_accountSnapshot import query_accountSnapshot_parse
|
|
30
|
-
from ..parsers.query_admin import query_admin_parse
|
|
31
|
-
from ..parsers.query_admins import query_admins_parse
|
|
32
|
-
from ..parsers.query_appStats import query_appStats_parse
|
|
33
|
-
from ..parsers.query_appStatsTimeSeries import query_appStatsTimeSeries_parse
|
|
34
|
-
from ..parsers.query_auditFeed import query_auditFeed_parse
|
|
35
|
-
from ..parsers.query_container import query_container_parse
|
|
36
|
-
from ..parsers.query_entityLookup import query_entityLookup_parse
|
|
37
|
-
from ..parsers.query_events import query_events_parse
|
|
38
|
-
from ..parsers.query_eventsFeed import query_eventsFeed_parse
|
|
39
|
-
from ..parsers.query_eventsTimeSeries import query_eventsTimeSeries_parse
|
|
40
|
-
from ..parsers.query_hardwareManagement import query_hardwareManagement_parse
|
|
41
|
-
from ..parsers.query_licensing import query_licensing_parse
|
|
42
|
-
from ..parsers.query_policy import query_policy_parse
|
|
43
|
-
from ..parsers.query_subDomains import query_subDomains_parse
|
|
44
|
-
from ..parsers.query_xdr import query_xdr_parse
|
|
45
|
-
|
|
46
|
-
configuration = Configuration()
|
|
47
|
-
configuration.verify_ssl = False
|
|
48
|
-
configuration.api_key["x-api-key"] = CATO_TOKEN
|
|
49
|
-
configuration.host = "{}".format(catocli.__cato_host__)
|
|
50
|
-
configuration.debug = CATO_DEBUG
|
|
51
|
-
configuration.version = "{}".format(catocli.__version__)
|
|
52
|
-
|
|
53
|
-
parser = argparse.ArgumentParser(prog='catocli', usage='%(prog)s <operationType> <operationName> [options]', description="CLI for query on CATO via API.")
|
|
54
|
-
parser.add_argument('--version', action='version', version=catocli.__version__)
|
|
55
|
-
subparsers = parser.add_subparsers()
|
|
56
|
-
custom_parsers = custom_parse(subparsers)
|
|
57
|
-
raw_parsers = subparsers.add_parser('raw', help='Raw GraphQL', usage=get_help("raw"))
|
|
58
|
-
raw_parser = raw_parse(raw_parsers)
|
|
59
|
-
query_parser = subparsers.add_parser('query', help='Query', usage='catocli query <operationName> [options]')
|
|
60
|
-
query_subparsers = query_parser.add_subparsers(description='valid subcommands', help='additional help')
|
|
61
|
-
query_siteLocation_parser = query_siteLocation_parse(query_subparsers)
|
|
62
|
-
mutation_parser = subparsers.add_parser('mutation', help='Mutation', usage='catocli mutation <operationName> [options]')
|
|
63
|
-
mutation_subparsers = mutation_parser.add_subparsers(description='valid subcommands', help='additional help')
|
|
64
|
-
|
|
65
|
-
mutation_admin_parser = mutation_admin_parse(mutation_subparsers)
|
|
66
|
-
mutation_container_parser = mutation_container_parse(mutation_subparsers)
|
|
67
|
-
mutation_policy_parser = mutation_policy_parse(mutation_subparsers)
|
|
68
|
-
mutation_site_parser = mutation_site_parse(mutation_subparsers)
|
|
69
|
-
mutation_sites_parser = mutation_sites_parse(mutation_subparsers)
|
|
70
|
-
query_accountBySubdomain_parser = query_accountBySubdomain_parse(query_subparsers)
|
|
71
|
-
query_accountMetrics_parser = query_accountMetrics_parse(query_subparsers)
|
|
72
|
-
query_accountRoles_parser = query_accountRoles_parse(query_subparsers)
|
|
73
|
-
query_accountSnapshot_parser = query_accountSnapshot_parse(query_subparsers)
|
|
74
|
-
query_admin_parser = query_admin_parse(query_subparsers)
|
|
75
|
-
query_admins_parser = query_admins_parse(query_subparsers)
|
|
76
|
-
query_appStats_parser = query_appStats_parse(query_subparsers)
|
|
77
|
-
query_appStatsTimeSeries_parser = query_appStatsTimeSeries_parse(query_subparsers)
|
|
78
|
-
query_auditFeed_parser = query_auditFeed_parse(query_subparsers)
|
|
79
|
-
query_container_parser = query_container_parse(query_subparsers)
|
|
80
|
-
query_entityLookup_parser = query_entityLookup_parse(query_subparsers)
|
|
81
|
-
query_events_parser = query_events_parse(query_subparsers)
|
|
82
|
-
query_eventsFeed_parser = query_eventsFeed_parse(query_subparsers)
|
|
83
|
-
query_eventsTimeSeries_parser = query_eventsTimeSeries_parse(query_subparsers)
|
|
84
|
-
query_hardwareManagement_parser = query_hardwareManagement_parse(query_subparsers)
|
|
85
|
-
query_licensing_parser = query_licensing_parse(query_subparsers)
|
|
86
|
-
query_policy_parser = query_policy_parse(query_subparsers)
|
|
87
|
-
query_subDomains_parser = query_subDomains_parse(query_subparsers)
|
|
88
|
-
query_xdr_parser = query_xdr_parse(query_subparsers)
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
def main(args=None):
|
|
92
|
-
args = parser.parse_args(args=args)
|
|
93
|
-
try:
|
|
94
|
-
CATO_ACCOUNT_ID = os.getenv("CATO_ACCOUNT_ID")
|
|
95
|
-
if args.func.__name__!="createRawRequest":
|
|
96
|
-
if CATO_ACCOUNT_ID==None and args.accountID==None:
|
|
97
|
-
print("Missing accountID, please specify an accountID:\n")
|
|
98
|
-
print('Option 1: Set the CATO_ACCOUNT_ID environment variable with the value of your account ID.')
|
|
99
|
-
print('export CATO_ACCOUNT_ID="12345"\n')
|
|
100
|
-
print("Option 2: Override the accountID value as a cli argument, example:")
|
|
101
|
-
print('catocli <operationType> <operationName> -accountID=12345 <json>')
|
|
102
|
-
print("catocli query entityLookup -accountID=12345 '{\"type\":\"country\"}'\n")
|
|
103
|
-
exit()
|
|
104
|
-
elif args.accountID!=None:
|
|
105
|
-
configuration.accountID = args.accountID
|
|
106
|
-
else:
|
|
107
|
-
configuration.accountID = CATO_ACCOUNT_ID
|
|
108
|
-
response = args.func(args, configuration)
|
|
109
|
-
|
|
110
|
-
if type(response) == ApiException:
|
|
111
|
-
print("ERROR! Status code: {}".format(response.status))
|
|
112
|
-
print(response)
|
|
113
|
-
else:
|
|
114
|
-
if response!=None:
|
|
115
|
-
print(json.dumps(response[0], sort_keys=True, indent=4))
|
|
116
|
-
except AttributeError:
|
|
117
|
-
print('Missing arguments. Usage: catocli <operation> -h')
|
build/lib/catocli/__init__.py
DELETED