catocli 3.0.22__py3-none-any.whl → 3.0.24__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 (155) hide show
  1. catocli/Utils/clidriver.py +8 -8
  2. catocli/__init__.py +1 -1
  3. catocli/parsers/customParserApiClient.py +6 -2
  4. catocli/parsers/utils/export_utils.py +6 -2
  5. catocli-3.0.24.dist-info/METADATA +184 -0
  6. {catocli-3.0.22.dist-info → catocli-3.0.24.dist-info}/RECORD +154 -154
  7. models/mutation.policy.antiMalwareFileHash.addRule.json +0 -20
  8. models/mutation.policy.antiMalwareFileHash.addSection.json +0 -103
  9. models/mutation.policy.antiMalwareFileHash.createPolicyRevision.json +0 -123
  10. models/mutation.policy.antiMalwareFileHash.discardPolicyRevision.json +0 -123
  11. models/mutation.policy.antiMalwareFileHash.moveRule.json +0 -20
  12. models/mutation.policy.antiMalwareFileHash.moveSection.json +0 -103
  13. models/mutation.policy.antiMalwareFileHash.publishPolicyRevision.json +0 -123
  14. models/mutation.policy.antiMalwareFileHash.removeRule.json +0 -20
  15. models/mutation.policy.antiMalwareFileHash.removeSection.json +0 -103
  16. models/mutation.policy.antiMalwareFileHash.updatePolicy.json +0 -123
  17. models/mutation.policy.antiMalwareFileHash.updateRule.json +0 -20
  18. models/mutation.policy.antiMalwareFileHash.updateSection.json +0 -103
  19. models/mutation.policy.appTenantRestriction.addRule.json +0 -20
  20. models/mutation.policy.appTenantRestriction.addSection.json +0 -103
  21. models/mutation.policy.appTenantRestriction.createPolicyRevision.json +0 -123
  22. models/mutation.policy.appTenantRestriction.discardPolicyRevision.json +0 -123
  23. models/mutation.policy.appTenantRestriction.moveRule.json +0 -20
  24. models/mutation.policy.appTenantRestriction.moveSection.json +0 -103
  25. models/mutation.policy.appTenantRestriction.publishPolicyRevision.json +0 -123
  26. models/mutation.policy.appTenantRestriction.removeRule.json +0 -20
  27. models/mutation.policy.appTenantRestriction.removeSection.json +0 -103
  28. models/mutation.policy.appTenantRestriction.updatePolicy.json +0 -123
  29. models/mutation.policy.appTenantRestriction.updateRule.json +0 -20
  30. models/mutation.policy.appTenantRestriction.updateSection.json +0 -103
  31. models/mutation.policy.applicationControl.addRule.json +0 -20
  32. models/mutation.policy.applicationControl.addSection.json +0 -103
  33. models/mutation.policy.applicationControl.createPolicyRevision.json +0 -123
  34. models/mutation.policy.applicationControl.discardPolicyRevision.json +0 -123
  35. models/mutation.policy.applicationControl.moveRule.json +0 -20
  36. models/mutation.policy.applicationControl.moveSection.json +0 -103
  37. models/mutation.policy.applicationControl.publishPolicyRevision.json +0 -123
  38. models/mutation.policy.applicationControl.removeRule.json +0 -20
  39. models/mutation.policy.applicationControl.removeSection.json +0 -103
  40. models/mutation.policy.applicationControl.updatePolicy.json +0 -123
  41. models/mutation.policy.applicationControl.updateRule.json +0 -20
  42. models/mutation.policy.applicationControl.updateSection.json +0 -103
  43. models/mutation.policy.dynamicIpAllocation.addRule.json +0 -20
  44. models/mutation.policy.dynamicIpAllocation.addSection.json +0 -103
  45. models/mutation.policy.dynamicIpAllocation.createPolicyRevision.json +0 -123
  46. models/mutation.policy.dynamicIpAllocation.discardPolicyRevision.json +0 -123
  47. models/mutation.policy.dynamicIpAllocation.moveRule.json +0 -20
  48. models/mutation.policy.dynamicIpAllocation.moveSection.json +0 -103
  49. models/mutation.policy.dynamicIpAllocation.publishPolicyRevision.json +0 -123
  50. models/mutation.policy.dynamicIpAllocation.removeRule.json +0 -20
  51. models/mutation.policy.dynamicIpAllocation.removeSection.json +0 -103
  52. models/mutation.policy.dynamicIpAllocation.updatePolicy.json +0 -123
  53. models/mutation.policy.dynamicIpAllocation.updateRule.json +0 -20
  54. models/mutation.policy.dynamicIpAllocation.updateSection.json +0 -103
  55. models/mutation.policy.internetFirewall.addRule.json +0 -20
  56. models/mutation.policy.internetFirewall.addSection.json +0 -103
  57. models/mutation.policy.internetFirewall.createPolicyRevision.json +0 -123
  58. models/mutation.policy.internetFirewall.discardPolicyRevision.json +0 -123
  59. models/mutation.policy.internetFirewall.moveRule.json +0 -20
  60. models/mutation.policy.internetFirewall.moveSection.json +0 -103
  61. models/mutation.policy.internetFirewall.publishPolicyRevision.json +0 -123
  62. models/mutation.policy.internetFirewall.removeRule.json +0 -20
  63. models/mutation.policy.internetFirewall.removeSection.json +0 -103
  64. models/mutation.policy.internetFirewall.updatePolicy.json +0 -123
  65. models/mutation.policy.internetFirewall.updateRule.json +0 -20
  66. models/mutation.policy.internetFirewall.updateSection.json +0 -103
  67. models/mutation.policy.remotePortFwd.addRule.json +0 -20
  68. models/mutation.policy.remotePortFwd.addSection.json +0 -103
  69. models/mutation.policy.remotePortFwd.createPolicyRevision.json +0 -123
  70. models/mutation.policy.remotePortFwd.discardPolicyRevision.json +0 -123
  71. models/mutation.policy.remotePortFwd.moveRule.json +0 -20
  72. models/mutation.policy.remotePortFwd.moveSection.json +0 -103
  73. models/mutation.policy.remotePortFwd.publishPolicyRevision.json +0 -123
  74. models/mutation.policy.remotePortFwd.removeRule.json +0 -20
  75. models/mutation.policy.remotePortFwd.removeSection.json +0 -103
  76. models/mutation.policy.remotePortFwd.updatePolicy.json +0 -123
  77. models/mutation.policy.remotePortFwd.updateRule.json +0 -20
  78. models/mutation.policy.remotePortFwd.updateSection.json +0 -103
  79. models/mutation.policy.socketLan.addRule.json +0 -40
  80. models/mutation.policy.socketLan.addSection.json +0 -103
  81. models/mutation.policy.socketLan.createPolicyRevision.json +0 -143
  82. models/mutation.policy.socketLan.discardPolicyRevision.json +0 -143
  83. models/mutation.policy.socketLan.moveRule.json +0 -40
  84. models/mutation.policy.socketLan.moveSection.json +0 -103
  85. models/mutation.policy.socketLan.publishPolicyRevision.json +0 -143
  86. models/mutation.policy.socketLan.removeRule.json +0 -40
  87. models/mutation.policy.socketLan.removeSection.json +0 -103
  88. models/mutation.policy.socketLan.updatePolicy.json +0 -143
  89. models/mutation.policy.socketLan.updateRule.json +0 -40
  90. models/mutation.policy.socketLan.updateSection.json +0 -103
  91. models/mutation.policy.terminalServer.addRule.json +0 -20
  92. models/mutation.policy.terminalServer.addSection.json +0 -103
  93. models/mutation.policy.terminalServer.createPolicyRevision.json +0 -123
  94. models/mutation.policy.terminalServer.discardPolicyRevision.json +0 -123
  95. models/mutation.policy.terminalServer.moveRule.json +0 -20
  96. models/mutation.policy.terminalServer.moveSection.json +0 -103
  97. models/mutation.policy.terminalServer.publishPolicyRevision.json +0 -123
  98. models/mutation.policy.terminalServer.removeRule.json +0 -20
  99. models/mutation.policy.terminalServer.removeSection.json +0 -103
  100. models/mutation.policy.terminalServer.updatePolicy.json +0 -123
  101. models/mutation.policy.terminalServer.updateRule.json +0 -20
  102. models/mutation.policy.terminalServer.updateSection.json +0 -103
  103. models/mutation.policy.tlsInspect.addRule.json +0 -20
  104. models/mutation.policy.tlsInspect.addSection.json +0 -103
  105. models/mutation.policy.tlsInspect.createPolicyRevision.json +0 -123
  106. models/mutation.policy.tlsInspect.discardPolicyRevision.json +0 -123
  107. models/mutation.policy.tlsInspect.moveRule.json +0 -20
  108. models/mutation.policy.tlsInspect.moveSection.json +0 -103
  109. models/mutation.policy.tlsInspect.publishPolicyRevision.json +0 -123
  110. models/mutation.policy.tlsInspect.removeRule.json +0 -20
  111. models/mutation.policy.tlsInspect.removeSection.json +0 -103
  112. models/mutation.policy.tlsInspect.updatePolicy.json +0 -123
  113. models/mutation.policy.tlsInspect.updateRule.json +0 -20
  114. models/mutation.policy.tlsInspect.updateSection.json +0 -103
  115. models/mutation.policy.wanFirewall.addRule.json +0 -20
  116. models/mutation.policy.wanFirewall.addSection.json +0 -103
  117. models/mutation.policy.wanFirewall.createPolicyRevision.json +0 -123
  118. models/mutation.policy.wanFirewall.discardPolicyRevision.json +0 -123
  119. models/mutation.policy.wanFirewall.moveRule.json +0 -20
  120. models/mutation.policy.wanFirewall.moveSection.json +0 -103
  121. models/mutation.policy.wanFirewall.publishPolicyRevision.json +0 -123
  122. models/mutation.policy.wanFirewall.removeRule.json +0 -20
  123. models/mutation.policy.wanFirewall.removeSection.json +0 -103
  124. models/mutation.policy.wanFirewall.updatePolicy.json +0 -123
  125. models/mutation.policy.wanFirewall.updateRule.json +0 -20
  126. models/mutation.policy.wanFirewall.updateSection.json +0 -103
  127. models/mutation.policy.wanNetwork.addRule.json +0 -20
  128. models/mutation.policy.wanNetwork.addSection.json +0 -103
  129. models/mutation.policy.wanNetwork.createPolicyRevision.json +0 -123
  130. models/mutation.policy.wanNetwork.discardPolicyRevision.json +0 -123
  131. models/mutation.policy.wanNetwork.moveRule.json +0 -20
  132. models/mutation.policy.wanNetwork.moveSection.json +0 -103
  133. models/mutation.policy.wanNetwork.publishPolicyRevision.json +0 -123
  134. models/mutation.policy.wanNetwork.removeRule.json +0 -20
  135. models/mutation.policy.wanNetwork.removeSection.json +0 -103
  136. models/mutation.policy.wanNetwork.updatePolicy.json +0 -123
  137. models/mutation.policy.wanNetwork.updateRule.json +0 -20
  138. models/mutation.policy.wanNetwork.updateSection.json +0 -103
  139. models/query.policy.antiMalwareFileHash.policy.json +0 -123
  140. models/query.policy.appTenantRestriction.policy.json +0 -123
  141. models/query.policy.applicationControl.policy.json +0 -123
  142. models/query.policy.dynamicIpAllocation.policy.json +0 -123
  143. models/query.policy.internetFirewall.policy.json +0 -123
  144. models/query.policy.remotePortFwd.policy.json +0 -123
  145. models/query.policy.socketLan.policy.json +0 -143
  146. models/query.policy.terminalServer.policy.json +0 -123
  147. models/query.policy.tlsInspect.policy.json +0 -123
  148. models/query.policy.wanFirewall.policy.json +0 -123
  149. models/query.policy.wanNetwork.policy.json +0 -123
  150. schema/catolib.py +64 -56
  151. catocli-3.0.22.dist-info/METADATA +0 -124
  152. {catocli-3.0.22.dist-info → catocli-3.0.24.dist-info}/WHEEL +0 -0
  153. {catocli-3.0.22.dist-info → catocli-3.0.24.dist-info}/entry_points.txt +0 -0
  154. {catocli-3.0.22.dist-info → catocli-3.0.24.dist-info}/licenses/LICENSE +0 -0
  155. {catocli-3.0.22.dist-info → catocli-3.0.24.dist-info}/top_level.txt +0 -0
@@ -1,124 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: catocli
3
- Version: 3.0.22
4
- Summary: Cato Networks cli wrapper for the GraphQL API.
5
- Home-page: https://github.com/Cato-Networks/cato-cli
6
- Author: Cato Networks
7
- Author-email: [email protected]
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: OSI Approved :: Apache Software License
10
- Classifier: Operating System :: OS Independent
11
- Classifier: Programming Language :: Python :: 3.6
12
- Classifier: Programming Language :: Python :: 3.7
13
- Classifier: Programming Language :: Python :: 3.8
14
- Classifier: Programming Language :: Python :: 3.9
15
- Classifier: Programming Language :: Python :: 3.10
16
- Classifier: Programming Language :: Python :: 3.11
17
- Classifier: Programming Language :: Python :: 3.12
18
- Requires-Python: >=3.6
19
- Description-Content-Type: text/markdown
20
- License-File: LICENSE
21
- Requires-Dist: urllib3
22
- Requires-Dist: certifi
23
- Requires-Dist: six
24
- Dynamic: author
25
- Dynamic: author-email
26
- Dynamic: classifier
27
- Dynamic: description
28
- Dynamic: description-content-type
29
- Dynamic: home-page
30
- Dynamic: license-file
31
- Dynamic: requires-dist
32
- Dynamic: requires-python
33
- Dynamic: summary
34
-
35
- # Cato Networks GraphQL API CLI
36
-
37
- The package provides a simple to use CLI that reflects industry standards (such as the AWS cli), and enables customers to manage Cato Networks configurations and processes via the [Cato Networks GraphQL API](https://api.catonetworks.com/api/v1/graphql2) easily integrating into configurations management, orchestration or automation frameworks to support the DevOps model.
38
-
39
- ## Installation
40
- pip3 install catocli
41
-
42
- ## Authentication
43
-
44
- The Cato CLI uses a profile-based authentication system similar to AWS CLI. You can configure multiple profiles for different environments or accounts.
45
-
46
- ### Quick Setup
47
-
48
- ```bash
49
- # Configure your first profile (interactive)
50
- catocli configure set
51
-
52
- # Or configure non-interactively
53
- catocli configure set --cato-token "your-api-token" --account-id "12345"
54
- ```
55
-
56
- ### Profile Management
57
-
58
- ```bash
59
- # List profiles
60
- catocli configure list
61
-
62
- # Switch profiles
63
- catocli configure use prod
64
-
65
- # Show current profile
66
- catocli configure show
67
- ```
68
-
69
- ### Legacy Environment Variables (deprecated)
70
-
71
- For backward compatibility, you can still use environment variables:
72
-
73
- ```bash
74
- export CATO_TOKEN="12345-abcde-12345-abcde"
75
- export CATO_ACCOUNT_ID="12345"
76
- export CATO_DEBUG=True # Optional for debug logs
77
- ```
78
-
79
- The CLI will automatically migrate these to a default profile on first run.
80
-
81
- ### Documentation
82
-
83
- For detailed information about profile management, see [PROFILES.md](PROFILES.md).
84
-
85
- [CLICK HERE](https://support.catonetworks.com/hc/en-us/articles/4413280536081-Generating-API-Keys-for-the-Cato-API) to see how create an API key to authenticate.
86
-
87
- ## Running the CLI
88
- catocli -h
89
- catocli query -h
90
- catocli query entityLookup -h
91
- catocli query entityLookup '{"type":"country"}`
92
-
93
- // Override the accountID value as a cli argument
94
- catocli query entityLookup -accountID=12345 '{"type":"country"}`
95
-
96
- ## Check out run locally not as pip package
97
- git clone git@github.com:Cato-Networks/cato-cli.git
98
- cd cato-cli
99
- python3 -m catocli -h
100
-
101
- This CLI is a Python 3 application and has been tested with Python 3.6 -> 3.8
102
- ## Requirements:
103
- python 3.6 or higher
104
-
105
- ## Confirm your version of python if installed:
106
- Open a terminal
107
- Enter: python -V or python3 -V
108
-
109
- ## Usage:
110
- usage: catocli <resource> <command> [options]
111
-
112
- CLI for query, and mutation operations via API.
113
-
114
- Positional arguments:
115
- {entityLookup}
116
- entityLookup entityLookup reference.
117
-
118
- Optional arguments:
119
- -h, --help show this help message and exit
120
- --version show program's version number and exit
121
-
122
- ## Installing the correct version for environment:
123
- https://www.python.org/downloads/
124
-