catocli 1.0.14__py3-none-any.whl → 1.0.17__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 (249) hide show
  1. catocli/Utils/clidriver.py +19 -2
  2. catocli/__init__.py +1 -1
  3. catocli/parsers/mutation_accountManagement/README.md +7 -0
  4. catocli/parsers/mutation_accountManagement/__init__.py +51 -0
  5. catocli/parsers/mutation_accountManagement_addAccount/README.md +17 -0
  6. catocli/parsers/mutation_accountManagement_removeAccount/README.md +16 -0
  7. catocli/parsers/mutation_accountManagement_updateAccount/README.md +17 -0
  8. catocli/parsers/mutation_admin_addAdmin/README.md +2 -2
  9. catocli/parsers/mutation_admin_updateAdmin/README.md +2 -2
  10. catocli/parsers/mutation_container_delete/README.md +2 -2
  11. catocli/parsers/mutation_policy/__init__.py +348 -0
  12. catocli/parsers/mutation_policy_appTenantRestriction/README.md +7 -0
  13. catocli/parsers/mutation_policy_appTenantRestriction_addRule/README.md +18 -0
  14. catocli/parsers/mutation_policy_appTenantRestriction_addSection/README.md +18 -0
  15. catocli/parsers/mutation_policy_appTenantRestriction_createPolicyRevision/README.md +18 -0
  16. catocli/parsers/mutation_policy_appTenantRestriction_discardPolicyRevision/README.md +18 -0
  17. catocli/parsers/mutation_policy_appTenantRestriction_moveRule/README.md +18 -0
  18. catocli/parsers/mutation_policy_appTenantRestriction_moveSection/README.md +18 -0
  19. catocli/parsers/mutation_policy_appTenantRestriction_publishPolicyRevision/README.md +18 -0
  20. catocli/parsers/mutation_policy_appTenantRestriction_removeRule/README.md +18 -0
  21. catocli/parsers/mutation_policy_appTenantRestriction_removeSection/README.md +18 -0
  22. catocli/parsers/mutation_policy_appTenantRestriction_updatePolicy/README.md +18 -0
  23. catocli/parsers/mutation_policy_appTenantRestriction_updateRule/README.md +18 -0
  24. catocli/parsers/mutation_policy_appTenantRestriction_updateSection/README.md +18 -0
  25. catocli/parsers/mutation_policy_internetFirewall_addRule/README.md +3 -3
  26. catocli/parsers/mutation_policy_internetFirewall_addSection/README.md +3 -3
  27. catocli/parsers/mutation_policy_internetFirewall_createPolicyRevision/README.md +3 -3
  28. catocli/parsers/mutation_policy_internetFirewall_discardPolicyRevision/README.md +3 -3
  29. catocli/parsers/mutation_policy_internetFirewall_moveRule/README.md +3 -3
  30. catocli/parsers/mutation_policy_internetFirewall_moveSection/README.md +3 -3
  31. catocli/parsers/mutation_policy_internetFirewall_publishPolicyRevision/README.md +3 -3
  32. catocli/parsers/mutation_policy_internetFirewall_removeRule/README.md +3 -3
  33. catocli/parsers/mutation_policy_internetFirewall_removeSection/README.md +3 -3
  34. catocli/parsers/mutation_policy_internetFirewall_updatePolicy/README.md +3 -3
  35. catocli/parsers/mutation_policy_internetFirewall_updateRule/README.md +3 -3
  36. catocli/parsers/mutation_policy_internetFirewall_updateSection/README.md +3 -3
  37. catocli/parsers/mutation_policy_remotePortFwd/README.md +7 -0
  38. catocli/parsers/mutation_policy_remotePortFwd_addRule/README.md +18 -0
  39. catocli/parsers/mutation_policy_remotePortFwd_addSection/README.md +18 -0
  40. catocli/parsers/mutation_policy_remotePortFwd_createPolicyRevision/README.md +18 -0
  41. catocli/parsers/mutation_policy_remotePortFwd_discardPolicyRevision/README.md +18 -0
  42. catocli/parsers/mutation_policy_remotePortFwd_moveRule/README.md +18 -0
  43. catocli/parsers/mutation_policy_remotePortFwd_moveSection/README.md +18 -0
  44. catocli/parsers/mutation_policy_remotePortFwd_publishPolicyRevision/README.md +18 -0
  45. catocli/parsers/mutation_policy_remotePortFwd_removeRule/README.md +18 -0
  46. catocli/parsers/mutation_policy_remotePortFwd_removeSection/README.md +18 -0
  47. catocli/parsers/mutation_policy_remotePortFwd_updatePolicy/README.md +18 -0
  48. catocli/parsers/mutation_policy_remotePortFwd_updateRule/README.md +18 -0
  49. catocli/parsers/mutation_policy_remotePortFwd_updateSection/README.md +18 -0
  50. catocli/parsers/mutation_policy_wanFirewall_addRule/README.md +3 -3
  51. catocli/parsers/mutation_policy_wanFirewall_addSection/README.md +3 -3
  52. catocli/parsers/mutation_policy_wanFirewall_createPolicyRevision/README.md +3 -3
  53. catocli/parsers/mutation_policy_wanFirewall_discardPolicyRevision/README.md +3 -3
  54. catocli/parsers/mutation_policy_wanFirewall_moveRule/README.md +3 -3
  55. catocli/parsers/mutation_policy_wanFirewall_moveSection/README.md +3 -3
  56. catocli/parsers/mutation_policy_wanFirewall_publishPolicyRevision/README.md +3 -3
  57. catocli/parsers/mutation_policy_wanFirewall_removeRule/README.md +3 -3
  58. catocli/parsers/mutation_policy_wanFirewall_removeSection/README.md +3 -3
  59. catocli/parsers/mutation_policy_wanFirewall_updatePolicy/README.md +3 -3
  60. catocli/parsers/mutation_policy_wanFirewall_updateRule/README.md +3 -3
  61. catocli/parsers/mutation_policy_wanFirewall_updateSection/README.md +3 -3
  62. catocli/parsers/mutation_site/__init__.py +98 -0
  63. catocli/parsers/mutation_site_addBgpPeer/README.md +17 -0
  64. catocli/parsers/mutation_site_addCloudInterconnectPhysicalConnection/README.md +17 -0
  65. catocli/parsers/mutation_site_addCloudInterconnectSite/README.md +17 -0
  66. catocli/parsers/mutation_site_addIpsecIkeV2Site/README.md +2 -2
  67. catocli/parsers/mutation_site_addIpsecIkeV2SiteTunnels/README.md +2 -2
  68. catocli/parsers/mutation_site_addNetworkRange/README.md +2 -2
  69. catocli/parsers/mutation_site_addSocketSite/README.md +2 -2
  70. catocli/parsers/mutation_site_addStaticHost/README.md +2 -2
  71. catocli/parsers/mutation_site_removeBgpPeer/README.md +17 -0
  72. catocli/parsers/mutation_site_removeCloudInterconnectPhysicalConnection/README.md +17 -0
  73. catocli/parsers/mutation_site_removeIpsecIkeV2SiteTunnels/README.md +2 -2
  74. catocli/parsers/mutation_site_updateBgpPeer/README.md +17 -0
  75. catocli/parsers/mutation_site_updateCloudInterconnectPhysicalConnection/README.md +17 -0
  76. catocli/parsers/mutation_site_updateHa/README.md +2 -2
  77. catocli/parsers/mutation_site_updateIpsecIkeV2SiteGeneralDetails/README.md +2 -2
  78. catocli/parsers/mutation_site_updateIpsecIkeV2SiteTunnels/README.md +2 -2
  79. catocli/parsers/mutation_site_updateNetworkRange/README.md +2 -2
  80. catocli/parsers/mutation_site_updateSiteGeneralDetails/README.md +2 -2
  81. catocli/parsers/mutation_site_updateSocketInterface/README.md +2 -2
  82. catocli/parsers/mutation_site_updateStaticHost/README.md +2 -2
  83. catocli/parsers/mutation_sites/__init__.py +98 -0
  84. catocli/parsers/mutation_sites_addBgpPeer/README.md +17 -0
  85. catocli/parsers/mutation_sites_addCloudInterconnectPhysicalConnection/README.md +17 -0
  86. catocli/parsers/mutation_sites_addCloudInterconnectSite/README.md +17 -0
  87. catocli/parsers/mutation_sites_addIpsecIkeV2Site/README.md +2 -2
  88. catocli/parsers/mutation_sites_addIpsecIkeV2SiteTunnels/README.md +2 -2
  89. catocli/parsers/mutation_sites_addNetworkRange/README.md +2 -2
  90. catocli/parsers/mutation_sites_addSocketSite/README.md +2 -2
  91. catocli/parsers/mutation_sites_addStaticHost/README.md +2 -2
  92. catocli/parsers/mutation_sites_removeBgpPeer/README.md +17 -0
  93. catocli/parsers/mutation_sites_removeCloudInterconnectPhysicalConnection/README.md +17 -0
  94. catocli/parsers/mutation_sites_removeIpsecIkeV2SiteTunnels/README.md +2 -2
  95. catocli/parsers/mutation_sites_updateBgpPeer/README.md +17 -0
  96. catocli/parsers/mutation_sites_updateCloudInterconnectPhysicalConnection/README.md +17 -0
  97. catocli/parsers/mutation_sites_updateHa/README.md +2 -2
  98. catocli/parsers/mutation_sites_updateIpsecIkeV2SiteGeneralDetails/README.md +2 -2
  99. catocli/parsers/mutation_sites_updateIpsecIkeV2SiteTunnels/README.md +2 -2
  100. catocli/parsers/mutation_sites_updateNetworkRange/README.md +2 -2
  101. catocli/parsers/mutation_sites_updateSiteGeneralDetails/README.md +2 -2
  102. catocli/parsers/mutation_sites_updateSocketInterface/README.md +2 -2
  103. catocli/parsers/mutation_sites_updateStaticHost/README.md +2 -2
  104. catocli/parsers/parserApiClient.py +7 -4
  105. catocli/parsers/query_accountManagement/README.md +16 -0
  106. catocli/parsers/query_accountManagement/__init__.py +17 -0
  107. catocli/parsers/query_admins/README.md +2 -2
  108. catocli/parsers/query_appStats/README.md +5 -5
  109. catocli/parsers/query_appStatsTimeSeries/README.md +4 -4
  110. catocli/parsers/query_auditFeed/README.md +2 -2
  111. catocli/parsers/query_container/README.md +8 -8
  112. catocli/parsers/query_entityLookup/README.md +6 -6
  113. catocli/parsers/query_events/README.md +5 -5
  114. catocli/parsers/query_eventsFeed/README.md +3 -3
  115. catocli/parsers/query_eventsTimeSeries/README.md +4 -4
  116. catocli/parsers/query_hardwareManagement/README.md +2 -2
  117. catocli/parsers/query_policy/README.md +5 -3
  118. catocli/parsers/query_site/README.md +22 -0
  119. catocli/parsers/query_site/__init__.py +17 -0
  120. catocli/parsers/query_xdr_stories/README.md +2 -2
  121. {catocli-1.0.14.dist-info → catocli-1.0.17.dist-info}/METADATA +11 -2
  122. catocli-1.0.17.dist-info/RECORD +356 -0
  123. {catocli-1.0.14.dist-info → catocli-1.0.17.dist-info}/WHEEL +1 -1
  124. models/mutation.accountManagement.addAccount.json +908 -0
  125. models/mutation.accountManagement.removeAccount.json +446 -0
  126. models/mutation.accountManagement.updateAccount.json +524 -0
  127. models/mutation.admin.addAdmin.json +103 -103
  128. models/mutation.admin.removeAdmin.json +3 -3
  129. models/mutation.admin.updateAdmin.json +121 -121
  130. models/mutation.container.delete.json +67 -67
  131. models/mutation.policy.appTenantRestriction.addRule.json +8674 -0
  132. models/mutation.policy.appTenantRestriction.addSection.json +1358 -0
  133. models/mutation.policy.appTenantRestriction.createPolicyRevision.json +3327 -0
  134. models/mutation.policy.appTenantRestriction.discardPolicyRevision.json +3261 -0
  135. models/mutation.policy.appTenantRestriction.moveRule.json +3059 -0
  136. models/mutation.policy.appTenantRestriction.moveSection.json +1259 -0
  137. models/mutation.policy.appTenantRestriction.publishPolicyRevision.json +3318 -0
  138. models/mutation.policy.appTenantRestriction.removeRule.json +2707 -0
  139. models/mutation.policy.appTenantRestriction.removeSection.json +958 -0
  140. models/mutation.policy.appTenantRestriction.updatePolicy.json +3337 -0
  141. models/mutation.policy.appTenantRestriction.updateRule.json +8295 -0
  142. models/mutation.policy.appTenantRestriction.updateSection.json +1111 -0
  143. models/mutation.policy.internetFirewall.addRule.json +2497 -1889
  144. models/mutation.policy.internetFirewall.addSection.json +92 -92
  145. models/mutation.policy.internetFirewall.createPolicyRevision.json +734 -546
  146. models/mutation.policy.internetFirewall.discardPolicyRevision.json +734 -546
  147. models/mutation.policy.internetFirewall.moveRule.json +723 -535
  148. models/mutation.policy.internetFirewall.moveSection.json +85 -85
  149. models/mutation.policy.internetFirewall.publishPolicyRevision.json +734 -546
  150. models/mutation.policy.internetFirewall.removeRule.json +710 -522
  151. models/mutation.policy.internetFirewall.removeSection.json +72 -72
  152. models/mutation.policy.internetFirewall.updatePolicy.json +734 -546
  153. models/mutation.policy.internetFirewall.updateRule.json +2476 -1885
  154. models/mutation.policy.internetFirewall.updateSection.json +85 -85
  155. models/mutation.policy.remotePortFwd.addRule.json +5502 -0
  156. models/mutation.policy.remotePortFwd.addSection.json +1358 -0
  157. models/mutation.policy.remotePortFwd.createPolicyRevision.json +2628 -0
  158. models/mutation.policy.remotePortFwd.discardPolicyRevision.json +2562 -0
  159. models/mutation.policy.remotePortFwd.moveRule.json +2360 -0
  160. models/mutation.policy.remotePortFwd.moveSection.json +1259 -0
  161. models/mutation.policy.remotePortFwd.publishPolicyRevision.json +2619 -0
  162. models/mutation.policy.remotePortFwd.removeRule.json +2008 -0
  163. models/mutation.policy.remotePortFwd.removeSection.json +958 -0
  164. models/mutation.policy.remotePortFwd.updatePolicy.json +2638 -0
  165. models/mutation.policy.remotePortFwd.updateRule.json +5138 -0
  166. models/mutation.policy.remotePortFwd.updateSection.json +1111 -0
  167. models/mutation.policy.wanFirewall.addRule.json +2577 -1225
  168. models/mutation.policy.wanFirewall.addSection.json +92 -92
  169. models/mutation.policy.wanFirewall.createPolicyRevision.json +800 -455
  170. models/mutation.policy.wanFirewall.discardPolicyRevision.json +800 -455
  171. models/mutation.policy.wanFirewall.moveRule.json +789 -444
  172. models/mutation.policy.wanFirewall.moveSection.json +85 -85
  173. models/mutation.policy.wanFirewall.publishPolicyRevision.json +800 -455
  174. models/mutation.policy.wanFirewall.removeRule.json +776 -431
  175. models/mutation.policy.wanFirewall.removeSection.json +72 -72
  176. models/mutation.policy.wanFirewall.updatePolicy.json +800 -455
  177. models/mutation.policy.wanFirewall.updateRule.json +2597 -1265
  178. models/mutation.policy.wanFirewall.updateSection.json +85 -85
  179. models/mutation.site.addBgpPeer.json +3334 -0
  180. models/mutation.site.addCloudInterconnectPhysicalConnection.json +1441 -0
  181. models/mutation.site.addCloudInterconnectSite.json +911 -0
  182. models/mutation.site.addIpsecIkeV2Site.json +45 -45
  183. models/mutation.site.addIpsecIkeV2SiteTunnels.json +104 -104
  184. models/mutation.site.addNetworkRange.json +55 -55
  185. models/mutation.site.addSocketSite.json +45 -45
  186. models/mutation.site.addStaticHost.json +35 -35
  187. models/mutation.site.removeBgpPeer.json +1158 -0
  188. models/mutation.site.removeCloudInterconnectPhysicalConnection.json +298 -0
  189. models/mutation.site.removeIpsecIkeV2SiteTunnels.json +49 -49
  190. models/mutation.site.removeNetworkRange.json +5 -5
  191. models/mutation.site.removeSite.json +5 -5
  192. models/mutation.site.removeStaticHost.json +5 -5
  193. models/mutation.site.updateBgpPeer.json +3063 -0
  194. models/mutation.site.updateCloudInterconnectPhysicalConnection.json +1056 -0
  195. models/mutation.site.updateHa.json +56 -56
  196. models/mutation.site.updateIpsecIkeV2SiteGeneralDetails.json +81 -81
  197. models/mutation.site.updateIpsecIkeV2SiteTunnels.json +528 -125
  198. models/mutation.site.updateNetworkRange.json +76 -76
  199. models/mutation.site.updateSiteGeneralDetails.json +75 -75
  200. models/mutation.site.updateSocketInterface.json +284 -284
  201. models/mutation.site.updateStaticHost.json +56 -56
  202. models/mutation.sites.addBgpPeer.json +3334 -0
  203. models/mutation.sites.addCloudInterconnectPhysicalConnection.json +1441 -0
  204. models/mutation.sites.addCloudInterconnectSite.json +911 -0
  205. models/mutation.sites.addIpsecIkeV2Site.json +45 -45
  206. models/mutation.sites.addIpsecIkeV2SiteTunnels.json +104 -104
  207. models/mutation.sites.addNetworkRange.json +55 -55
  208. models/mutation.sites.addSocketSite.json +45 -45
  209. models/mutation.sites.addStaticHost.json +35 -35
  210. models/mutation.sites.removeBgpPeer.json +1158 -0
  211. models/mutation.sites.removeCloudInterconnectPhysicalConnection.json +298 -0
  212. models/mutation.sites.removeIpsecIkeV2SiteTunnels.json +49 -49
  213. models/mutation.sites.removeNetworkRange.json +5 -5
  214. models/mutation.sites.removeSite.json +5 -5
  215. models/mutation.sites.removeStaticHost.json +5 -5
  216. models/mutation.sites.updateBgpPeer.json +3063 -0
  217. models/mutation.sites.updateCloudInterconnectPhysicalConnection.json +1056 -0
  218. models/mutation.sites.updateHa.json +56 -56
  219. models/mutation.sites.updateIpsecIkeV2SiteGeneralDetails.json +81 -81
  220. models/mutation.sites.updateIpsecIkeV2SiteTunnels.json +528 -125
  221. models/mutation.sites.updateNetworkRange.json +76 -76
  222. models/mutation.sites.updateSiteGeneralDetails.json +75 -75
  223. models/mutation.sites.updateSocketInterface.json +284 -284
  224. models/mutation.sites.updateStaticHost.json +56 -56
  225. models/query.accountManagement.json +355 -0
  226. models/query.accountMetrics.json +235 -235
  227. models/query.accountRoles.json +3 -3
  228. models/query.accountSnapshot.json +116 -116
  229. models/query.admin.json +24 -24
  230. models/query.admins.json +138 -138
  231. models/query.appStats.json +92 -92
  232. models/query.appStatsTimeSeries.json +78 -78
  233. models/query.auditFeed.json +113 -89
  234. models/query.container.json +192 -192
  235. models/query.entityLookup.json +154 -154
  236. models/query.events.json +198 -102
  237. models/query.eventsFeed.json +74 -50
  238. models/query.eventsTimeSeries.json +186 -114
  239. models/query.hardwareManagement.json +317 -125
  240. models/query.licensing.json +971 -434
  241. models/query.policy.json +10946 -5043
  242. models/query.site.json +4138 -0
  243. models/query.xdr.stories.json +869 -869
  244. models/query.xdr.story.json +637 -637
  245. schema/catolib.py +12 -12
  246. catocli-1.0.14.dist-info/RECORD +0 -264
  247. {catocli-1.0.14.dist-info → catocli-1.0.17.dist-info}/LICENSE +0 -0
  248. {catocli-1.0.14.dist-info → catocli-1.0.17.dist-info}/entry_points.txt +0 -0
  249. {catocli-1.0.14.dist-info → catocli-1.0.17.dist-info}/top_level.txt +0 -0
@@ -19,12 +19,14 @@ CATO_DEBUG = bool(os.getenv("CATO_DEBUG", False))
19
19
  from ..parsers.raw import raw_parse
20
20
  from ..parsers.custom import custom_parse
21
21
  from ..parsers.query_siteLocation import query_siteLocation_parse
22
+ from ..parsers.mutation_accountManagement import mutation_accountManagement_parse
22
23
  from ..parsers.mutation_admin import mutation_admin_parse
23
24
  from ..parsers.mutation_container import mutation_container_parse
24
25
  from ..parsers.mutation_policy import mutation_policy_parse
25
26
  from ..parsers.mutation_site import mutation_site_parse
26
27
  from ..parsers.mutation_sites import mutation_sites_parse
27
28
  from ..parsers.query_accountBySubdomain import query_accountBySubdomain_parse
29
+ from ..parsers.query_accountManagement import query_accountManagement_parse
28
30
  from ..parsers.query_accountMetrics import query_accountMetrics_parse
29
31
  from ..parsers.query_accountRoles import query_accountRoles_parse
30
32
  from ..parsers.query_accountSnapshot import query_accountSnapshot_parse
@@ -41,6 +43,7 @@ from ..parsers.query_eventsTimeSeries import query_eventsTimeSeries_parse
41
43
  from ..parsers.query_hardwareManagement import query_hardwareManagement_parse
42
44
  from ..parsers.query_licensing import query_licensing_parse
43
45
  from ..parsers.query_policy import query_policy_parse
46
+ from ..parsers.query_site import query_site_parse
44
47
  from ..parsers.query_subDomains import query_subDomains_parse
45
48
  from ..parsers.query_xdr import query_xdr_parse
46
49
 
@@ -51,7 +54,18 @@ configuration.host = "{}".format(catocli.__cato_host__)
51
54
  configuration.debug = CATO_DEBUG
52
55
  configuration.version = "{}".format(catocli.__version__)
53
56
 
54
- parser = argparse.ArgumentParser(prog='catocli', usage='%(prog)s <operationType> <operationName> [options]', description="CLI for query on CATO via API.")
57
+ defaultReadmeStr = """
58
+ The Cato CLI is a command-line interface tool designed to simplify the management and automation of Cato Networks’ configurations and operations.
59
+ It enables users to interact with Cato’s API for tasks such as managing Cato Management Application (CMA) site and account configurations, security policies, retrieving events, etc.
60
+
61
+
62
+ For assistance in generating syntax for the cli to perform various operations, please refer to the Cato API Explorer application.
63
+
64
+
65
+ https://github.com/catonetworks/cato-api-explorer
66
+ """
67
+
68
+ parser = argparse.ArgumentParser(prog='catocli', usage='%(prog)s <operationType> <operationName> [options]', description=defaultReadmeStr)
55
69
  parser.add_argument('--version', action='version', version=catocli.__version__)
56
70
  subparsers = parser.add_subparsers()
57
71
  custom_parsers = custom_parse(subparsers)
@@ -63,12 +77,14 @@ query_siteLocation_parser = query_siteLocation_parse(query_subparsers)
63
77
  mutation_parser = subparsers.add_parser('mutation', help='Mutation', usage='catocli mutation <operationName> [options]')
64
78
  mutation_subparsers = mutation_parser.add_subparsers(description='valid subcommands', help='additional help')
65
79
 
80
+ mutation_accountManagement_parser = mutation_accountManagement_parse(mutation_subparsers)
66
81
  mutation_admin_parser = mutation_admin_parse(mutation_subparsers)
67
82
  mutation_container_parser = mutation_container_parse(mutation_subparsers)
68
83
  mutation_policy_parser = mutation_policy_parse(mutation_subparsers)
69
84
  mutation_site_parser = mutation_site_parse(mutation_subparsers)
70
85
  mutation_sites_parser = mutation_sites_parse(mutation_subparsers)
71
86
  query_accountBySubdomain_parser = query_accountBySubdomain_parse(query_subparsers)
87
+ query_accountManagement_parser = query_accountManagement_parse(query_subparsers)
72
88
  query_accountMetrics_parser = query_accountMetrics_parse(query_subparsers)
73
89
  query_accountRoles_parser = query_accountRoles_parse(query_subparsers)
74
90
  query_accountSnapshot_parser = query_accountSnapshot_parse(query_subparsers)
@@ -85,6 +101,7 @@ query_eventsTimeSeries_parser = query_eventsTimeSeries_parse(query_subparsers)
85
101
  query_hardwareManagement_parser = query_hardwareManagement_parse(query_subparsers)
86
102
  query_licensing_parser = query_licensing_parse(query_subparsers)
87
103
  query_policy_parser = query_policy_parse(query_subparsers)
104
+ query_site_parser = query_site_parse(query_subparsers)
88
105
  query_subDomains_parser = query_subDomains_parse(query_subparsers)
89
106
  query_xdr_parser = query_xdr_parse(query_subparsers)
90
107
 
@@ -117,7 +134,7 @@ def main(args=None):
117
134
  except Exception as e:
118
135
  if isinstance(e, AttributeError):
119
136
  print('Missing arguments. Usage: catocli <operation> -h')
120
- if "v" in args and args.v==True:
137
+ if args.v==True:
121
138
  print('ERROR: ',e)
122
139
  traceback.print_exc()
123
140
  else:
catocli/__init__.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = "1.0.14"
1
+ __version__ = "1.0.17"
2
2
  __cato_host__ = "https://api.catonetworks.com/api/v1/graphql2"
@@ -0,0 +1,7 @@
1
+
2
+ ## CATO-CLI - mutation.accountManagement:
3
+ [Click here](https://api.catonetworks.com/documentation/#mutation-accountManagement) for documentation on this operation.
4
+
5
+ ### Usage for mutation.accountManagement:
6
+
7
+ `catocli mutation accountManagement -h`
@@ -0,0 +1,51 @@
1
+
2
+ from ..parserApiClient import createRequest, get_help
3
+
4
+ def mutation_accountManagement_parse(mutation_subparsers):
5
+ mutation_accountManagement_parser = mutation_subparsers.add_parser('accountManagement',
6
+ help='accountManagement() mutation operation',
7
+ usage=get_help("mutation_accountManagement"))
8
+
9
+ mutation_accountManagement_subparsers = mutation_accountManagement_parser.add_subparsers()
10
+
11
+ mutation_accountManagement_addAccount_parser = mutation_accountManagement_subparsers.add_parser('addAccount',
12
+ help='addAccount() accountManagement operation',
13
+ usage=get_help("mutation_accountManagement_addAccount"))
14
+
15
+ mutation_accountManagement_addAccount_parser.add_argument('json', help='Variables in JSON format.')
16
+ mutation_accountManagement_addAccount_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
17
+ mutation_accountManagement_addAccount_parser.add_argument('-t', const=True, default=False, nargs='?',
18
+ help='Print test request preview without sending api call')
19
+ mutation_accountManagement_addAccount_parser.add_argument('-v', const=True, default=False, nargs='?',
20
+ help='Verbose output')
21
+ mutation_accountManagement_addAccount_parser.add_argument('-p', const=True, default=False, nargs='?',
22
+ help='Pretty print')
23
+ mutation_accountManagement_addAccount_parser.set_defaults(func=createRequest,operation_name='mutation.accountManagement.addAccount')
24
+
25
+ mutation_accountManagement_removeAccount_parser = mutation_accountManagement_subparsers.add_parser('removeAccount',
26
+ help='removeAccount() accountManagement operation',
27
+ usage=get_help("mutation_accountManagement_removeAccount"))
28
+
29
+ mutation_accountManagement_removeAccount_parser.add_argument('json', help='Variables in JSON format.')
30
+ mutation_accountManagement_removeAccount_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
31
+ mutation_accountManagement_removeAccount_parser.add_argument('-t', const=True, default=False, nargs='?',
32
+ help='Print test request preview without sending api call')
33
+ mutation_accountManagement_removeAccount_parser.add_argument('-v', const=True, default=False, nargs='?',
34
+ help='Verbose output')
35
+ mutation_accountManagement_removeAccount_parser.add_argument('-p', const=True, default=False, nargs='?',
36
+ help='Pretty print')
37
+ mutation_accountManagement_removeAccount_parser.set_defaults(func=createRequest,operation_name='mutation.accountManagement.removeAccount')
38
+
39
+ mutation_accountManagement_updateAccount_parser = mutation_accountManagement_subparsers.add_parser('updateAccount',
40
+ help='updateAccount() accountManagement operation',
41
+ usage=get_help("mutation_accountManagement_updateAccount"))
42
+
43
+ mutation_accountManagement_updateAccount_parser.add_argument('json', help='Variables in JSON format.')
44
+ mutation_accountManagement_updateAccount_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
45
+ mutation_accountManagement_updateAccount_parser.add_argument('-t', const=True, default=False, nargs='?',
46
+ help='Print test request preview without sending api call')
47
+ mutation_accountManagement_updateAccount_parser.add_argument('-v', const=True, default=False, nargs='?',
48
+ help='Verbose output')
49
+ mutation_accountManagement_updateAccount_parser.add_argument('-p', const=True, default=False, nargs='?',
50
+ help='Pretty print')
51
+ mutation_accountManagement_updateAccount_parser.set_defaults(func=createRequest,operation_name='mutation.accountManagement.updateAccount')
@@ -0,0 +1,17 @@
1
+
2
+ ## CATO-CLI - mutation.accountManagement.addAccount:
3
+ [Click here](https://api.catonetworks.com/documentation/#mutation-addAccount) for documentation on this operation.
4
+
5
+ ### Usage for mutation.accountManagement.addAccount:
6
+
7
+ `catocli mutation accountManagement addAccount -h`
8
+
9
+ `catocli mutation accountManagement addAccount <json>`
10
+
11
+ `catocli mutation accountManagement addAccount "$(cat < addAccount.json)"`
12
+
13
+ `catocli mutation accountManagement addAccount '{"addAccountInput": {"description": {"description": "String"}, "name": {"name": "String"}, "tenancy": {"tenancy": "enum(AccountTenancy)"}, "timezone": {"timezone": "TimeZone"}, "type": {"type": "enum(AccountProfileType)"}}}'`
14
+
15
+ #### Operation Arguments for mutation.accountManagement.addAccount ####
16
+ `accountId` [ID] - (required) N/A
17
+ `addAccountInput` [AddAccountInput] - (required) N/A
@@ -0,0 +1,16 @@
1
+
2
+ ## CATO-CLI - mutation.accountManagement.removeAccount:
3
+ [Click here](https://api.catonetworks.com/documentation/#mutation-removeAccount) for documentation on this operation.
4
+
5
+ ### Usage for mutation.accountManagement.removeAccount:
6
+
7
+ `catocli mutation accountManagement removeAccount -h`
8
+
9
+ `catocli mutation accountManagement removeAccount <json>`
10
+
11
+ `catocli mutation accountManagement removeAccount "$(cat < removeAccount.json)"`
12
+
13
+ `catocli mutation accountManagement removeAccount '{}'`
14
+
15
+ #### Operation Arguments for mutation.accountManagement.removeAccount ####
16
+ `accountId` [ID] - (required) N/A
@@ -0,0 +1,17 @@
1
+
2
+ ## CATO-CLI - mutation.accountManagement.updateAccount:
3
+ [Click here](https://api.catonetworks.com/documentation/#mutation-updateAccount) for documentation on this operation.
4
+
5
+ ### Usage for mutation.accountManagement.updateAccount:
6
+
7
+ `catocli mutation accountManagement updateAccount -h`
8
+
9
+ `catocli mutation accountManagement updateAccount <json>`
10
+
11
+ `catocli mutation accountManagement updateAccount "$(cat < updateAccount.json)"`
12
+
13
+ `catocli mutation accountManagement updateAccount '{"updateAccountInput": {"description": {"description": "String"}}}'`
14
+
15
+ #### Operation Arguments for mutation.accountManagement.updateAccount ####
16
+ `accountId` [ID] - (required) N/A
17
+ `updateAccountInput` [UpdateAccountInput] - (required) N/A
@@ -10,8 +10,8 @@
10
10
 
11
11
  `catocli mutation admin addAdmin "$(cat < addAdmin.json)"`
12
12
 
13
- `catocli mutation admin addAdmin '{"AddAdminInput": {"UpdateAdminRoleInput": {"allowedAccounts": {"allowedAccounts": ["ID"]}, "allowedEntities": {"id": {"id": "ID"}, "name": {"name": "String"}, "type": {"type": "enum(EntityType)"}}, "role": {"id": {"id": "ID"}, "name": {"name": "String"}}}, "email": {"email": "String"}, "firstName": {"firstName": "String"}, "lastName": {"lastName": "String"}, "mfaEnabled": {"mfaEnabled": "Boolean"}, "passwordNeverExpires": {"passwordNeverExpires": "Boolean"}}}'`
13
+ `catocli mutation admin addAdmin '{"addAdminInput": {"email": {"email": "String"}, "firstName": {"firstName": "String"}, "lastName": {"lastName": "String"}, "mfaEnabled": {"mfaEnabled": "Boolean"}, "passwordNeverExpires": {"passwordNeverExpires": "Boolean"}, "updateAdminRoleInput": {"allowedAccounts": {"allowedAccounts": ["ID"]}, "allowedEntities": {"id": {"id": "ID"}, "name": {"name": "String"}, "type": {"type": "enum(EntityType)"}}, "role": {"id": {"id": "ID"}, "name": {"name": "String"}}}}}'`
14
14
 
15
15
  #### Operation Arguments for mutation.admin.addAdmin ####
16
- `AddAdminInput` [AddAdminInput] - (required) N/A
17
16
  `accountId` [ID] - (required) N/A
17
+ `addAdminInput` [AddAdminInput] - (required) N/A
@@ -10,9 +10,9 @@
10
10
 
11
11
  `catocli mutation admin updateAdmin "$(cat < updateAdmin.json)"`
12
12
 
13
- `catocli mutation admin updateAdmin '{"UpdateAdminInput": {"UpdateAdminRoleInput": {"allowedAccounts": {"allowedAccounts": ["ID"]}, "allowedEntities": {"id": {"id": "ID"}, "name": {"name": "String"}, "type": {"type": "enum(EntityType)"}}, "role": {"id": {"id": "ID"}, "name": {"name": "String"}}}, "firstName": {"firstName": "String"}, "lastName": {"lastName": "String"}, "mfaEnabled": {"mfaEnabled": "Boolean"}, "passwordNeverExpires": {"passwordNeverExpires": "Boolean"}}, "adminID": "ID"}'`
13
+ `catocli mutation admin updateAdmin '{"adminID": "ID", "updateAdminInput": {"firstName": {"firstName": "String"}, "lastName": {"lastName": "String"}, "mfaEnabled": {"mfaEnabled": "Boolean"}, "passwordNeverExpires": {"passwordNeverExpires": "Boolean"}, "updateAdminRoleInput": {"allowedAccounts": {"allowedAccounts": ["ID"]}, "allowedEntities": {"id": {"id": "ID"}, "name": {"name": "String"}, "type": {"type": "enum(EntityType)"}}, "role": {"id": {"id": "ID"}, "name": {"name": "String"}}}}}'`
14
14
 
15
15
  #### Operation Arguments for mutation.admin.updateAdmin ####
16
- `UpdateAdminInput` [UpdateAdminInput] - (required) N/A
17
16
  `accountId` [ID] - (required) N/A
18
17
  `adminID` [ID] - (required) N/A
18
+ `updateAdminInput` [UpdateAdminInput] - (required) N/A
@@ -10,8 +10,8 @@
10
10
 
11
11
  `catocli mutation container delete "$(cat < delete.json)"`
12
12
 
13
- `catocli mutation container delete '{"DeleteContainerInput": {"ContainerRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}'`
13
+ `catocli mutation container delete '{"deleteContainerInput": {"containerRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}'`
14
14
 
15
15
  #### Operation Arguments for mutation.container.delete ####
16
- `DeleteContainerInput` [DeleteContainerInput] - (required) N/A
17
16
  `accountId` [ID] - (required) N/A
17
+ `deleteContainerInput` [DeleteContainerInput] - (required) N/A
@@ -8,6 +8,180 @@ def mutation_policy_parse(mutation_subparsers):
8
8
 
9
9
  mutation_policy_subparsers = mutation_policy_parser.add_subparsers()
10
10
 
11
+ mutation_policy_appTenantRestriction_parser = mutation_policy_subparsers.add_parser('appTenantRestriction',
12
+ help='appTenantRestriction() policy operation',
13
+ usage=get_help("mutation_policy_appTenantRestriction"))
14
+
15
+ mutation_policy_appTenantRestriction_subparsers = mutation_policy_appTenantRestriction_parser.add_subparsers()
16
+
17
+ mutation_policy_appTenantRestriction_addRule_parser = mutation_policy_appTenantRestriction_subparsers.add_parser('addRule',
18
+ help='addRule() appTenantRestriction operation',
19
+ usage=get_help("mutation_policy_appTenantRestriction_addRule"))
20
+
21
+ mutation_policy_appTenantRestriction_addRule_parser.add_argument('json', help='Variables in JSON format.')
22
+ mutation_policy_appTenantRestriction_addRule_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
23
+ mutation_policy_appTenantRestriction_addRule_parser.add_argument('-t', const=True, default=False, nargs='?',
24
+ help='Print test request preview without sending api call')
25
+ mutation_policy_appTenantRestriction_addRule_parser.add_argument('-v', const=True, default=False, nargs='?',
26
+ help='Verbose output')
27
+ mutation_policy_appTenantRestriction_addRule_parser.add_argument('-p', const=True, default=False, nargs='?',
28
+ help='Pretty print')
29
+ mutation_policy_appTenantRestriction_addRule_parser.set_defaults(func=createRequest,operation_name='mutation.policy.appTenantRestriction.addRule')
30
+
31
+ mutation_policy_appTenantRestriction_addSection_parser = mutation_policy_appTenantRestriction_subparsers.add_parser('addSection',
32
+ help='addSection() appTenantRestriction operation',
33
+ usage=get_help("mutation_policy_appTenantRestriction_addSection"))
34
+
35
+ mutation_policy_appTenantRestriction_addSection_parser.add_argument('json', help='Variables in JSON format.')
36
+ mutation_policy_appTenantRestriction_addSection_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
37
+ mutation_policy_appTenantRestriction_addSection_parser.add_argument('-t', const=True, default=False, nargs='?',
38
+ help='Print test request preview without sending api call')
39
+ mutation_policy_appTenantRestriction_addSection_parser.add_argument('-v', const=True, default=False, nargs='?',
40
+ help='Verbose output')
41
+ mutation_policy_appTenantRestriction_addSection_parser.add_argument('-p', const=True, default=False, nargs='?',
42
+ help='Pretty print')
43
+ mutation_policy_appTenantRestriction_addSection_parser.set_defaults(func=createRequest,operation_name='mutation.policy.appTenantRestriction.addSection')
44
+
45
+ mutation_policy_appTenantRestriction_createPolicyRevision_parser = mutation_policy_appTenantRestriction_subparsers.add_parser('createPolicyRevision',
46
+ help='createPolicyRevision() appTenantRestriction operation',
47
+ usage=get_help("mutation_policy_appTenantRestriction_createPolicyRevision"))
48
+
49
+ mutation_policy_appTenantRestriction_createPolicyRevision_parser.add_argument('json', help='Variables in JSON format.')
50
+ mutation_policy_appTenantRestriction_createPolicyRevision_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
51
+ mutation_policy_appTenantRestriction_createPolicyRevision_parser.add_argument('-t', const=True, default=False, nargs='?',
52
+ help='Print test request preview without sending api call')
53
+ mutation_policy_appTenantRestriction_createPolicyRevision_parser.add_argument('-v', const=True, default=False, nargs='?',
54
+ help='Verbose output')
55
+ mutation_policy_appTenantRestriction_createPolicyRevision_parser.add_argument('-p', const=True, default=False, nargs='?',
56
+ help='Pretty print')
57
+ mutation_policy_appTenantRestriction_createPolicyRevision_parser.set_defaults(func=createRequest,operation_name='mutation.policy.appTenantRestriction.createPolicyRevision')
58
+
59
+ mutation_policy_appTenantRestriction_discardPolicyRevision_parser = mutation_policy_appTenantRestriction_subparsers.add_parser('discardPolicyRevision',
60
+ help='discardPolicyRevision() appTenantRestriction operation',
61
+ usage=get_help("mutation_policy_appTenantRestriction_discardPolicyRevision"))
62
+
63
+ mutation_policy_appTenantRestriction_discardPolicyRevision_parser.add_argument('json', help='Variables in JSON format.')
64
+ mutation_policy_appTenantRestriction_discardPolicyRevision_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
65
+ mutation_policy_appTenantRestriction_discardPolicyRevision_parser.add_argument('-t', const=True, default=False, nargs='?',
66
+ help='Print test request preview without sending api call')
67
+ mutation_policy_appTenantRestriction_discardPolicyRevision_parser.add_argument('-v', const=True, default=False, nargs='?',
68
+ help='Verbose output')
69
+ mutation_policy_appTenantRestriction_discardPolicyRevision_parser.add_argument('-p', const=True, default=False, nargs='?',
70
+ help='Pretty print')
71
+ mutation_policy_appTenantRestriction_discardPolicyRevision_parser.set_defaults(func=createRequest,operation_name='mutation.policy.appTenantRestriction.discardPolicyRevision')
72
+
73
+ mutation_policy_appTenantRestriction_moveRule_parser = mutation_policy_appTenantRestriction_subparsers.add_parser('moveRule',
74
+ help='moveRule() appTenantRestriction operation',
75
+ usage=get_help("mutation_policy_appTenantRestriction_moveRule"))
76
+
77
+ mutation_policy_appTenantRestriction_moveRule_parser.add_argument('json', help='Variables in JSON format.')
78
+ mutation_policy_appTenantRestriction_moveRule_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
79
+ mutation_policy_appTenantRestriction_moveRule_parser.add_argument('-t', const=True, default=False, nargs='?',
80
+ help='Print test request preview without sending api call')
81
+ mutation_policy_appTenantRestriction_moveRule_parser.add_argument('-v', const=True, default=False, nargs='?',
82
+ help='Verbose output')
83
+ mutation_policy_appTenantRestriction_moveRule_parser.add_argument('-p', const=True, default=False, nargs='?',
84
+ help='Pretty print')
85
+ mutation_policy_appTenantRestriction_moveRule_parser.set_defaults(func=createRequest,operation_name='mutation.policy.appTenantRestriction.moveRule')
86
+
87
+ mutation_policy_appTenantRestriction_moveSection_parser = mutation_policy_appTenantRestriction_subparsers.add_parser('moveSection',
88
+ help='moveSection() appTenantRestriction operation',
89
+ usage=get_help("mutation_policy_appTenantRestriction_moveSection"))
90
+
91
+ mutation_policy_appTenantRestriction_moveSection_parser.add_argument('json', help='Variables in JSON format.')
92
+ mutation_policy_appTenantRestriction_moveSection_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
93
+ mutation_policy_appTenantRestriction_moveSection_parser.add_argument('-t', const=True, default=False, nargs='?',
94
+ help='Print test request preview without sending api call')
95
+ mutation_policy_appTenantRestriction_moveSection_parser.add_argument('-v', const=True, default=False, nargs='?',
96
+ help='Verbose output')
97
+ mutation_policy_appTenantRestriction_moveSection_parser.add_argument('-p', const=True, default=False, nargs='?',
98
+ help='Pretty print')
99
+ mutation_policy_appTenantRestriction_moveSection_parser.set_defaults(func=createRequest,operation_name='mutation.policy.appTenantRestriction.moveSection')
100
+
101
+ mutation_policy_appTenantRestriction_publishPolicyRevision_parser = mutation_policy_appTenantRestriction_subparsers.add_parser('publishPolicyRevision',
102
+ help='publishPolicyRevision() appTenantRestriction operation',
103
+ usage=get_help("mutation_policy_appTenantRestriction_publishPolicyRevision"))
104
+
105
+ mutation_policy_appTenantRestriction_publishPolicyRevision_parser.add_argument('json', help='Variables in JSON format.')
106
+ mutation_policy_appTenantRestriction_publishPolicyRevision_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
107
+ mutation_policy_appTenantRestriction_publishPolicyRevision_parser.add_argument('-t', const=True, default=False, nargs='?',
108
+ help='Print test request preview without sending api call')
109
+ mutation_policy_appTenantRestriction_publishPolicyRevision_parser.add_argument('-v', const=True, default=False, nargs='?',
110
+ help='Verbose output')
111
+ mutation_policy_appTenantRestriction_publishPolicyRevision_parser.add_argument('-p', const=True, default=False, nargs='?',
112
+ help='Pretty print')
113
+ mutation_policy_appTenantRestriction_publishPolicyRevision_parser.set_defaults(func=createRequest,operation_name='mutation.policy.appTenantRestriction.publishPolicyRevision')
114
+
115
+ mutation_policy_appTenantRestriction_removeRule_parser = mutation_policy_appTenantRestriction_subparsers.add_parser('removeRule',
116
+ help='removeRule() appTenantRestriction operation',
117
+ usage=get_help("mutation_policy_appTenantRestriction_removeRule"))
118
+
119
+ mutation_policy_appTenantRestriction_removeRule_parser.add_argument('json', help='Variables in JSON format.')
120
+ mutation_policy_appTenantRestriction_removeRule_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
121
+ mutation_policy_appTenantRestriction_removeRule_parser.add_argument('-t', const=True, default=False, nargs='?',
122
+ help='Print test request preview without sending api call')
123
+ mutation_policy_appTenantRestriction_removeRule_parser.add_argument('-v', const=True, default=False, nargs='?',
124
+ help='Verbose output')
125
+ mutation_policy_appTenantRestriction_removeRule_parser.add_argument('-p', const=True, default=False, nargs='?',
126
+ help='Pretty print')
127
+ mutation_policy_appTenantRestriction_removeRule_parser.set_defaults(func=createRequest,operation_name='mutation.policy.appTenantRestriction.removeRule')
128
+
129
+ mutation_policy_appTenantRestriction_removeSection_parser = mutation_policy_appTenantRestriction_subparsers.add_parser('removeSection',
130
+ help='removeSection() appTenantRestriction operation',
131
+ usage=get_help("mutation_policy_appTenantRestriction_removeSection"))
132
+
133
+ mutation_policy_appTenantRestriction_removeSection_parser.add_argument('json', help='Variables in JSON format.')
134
+ mutation_policy_appTenantRestriction_removeSection_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
135
+ mutation_policy_appTenantRestriction_removeSection_parser.add_argument('-t', const=True, default=False, nargs='?',
136
+ help='Print test request preview without sending api call')
137
+ mutation_policy_appTenantRestriction_removeSection_parser.add_argument('-v', const=True, default=False, nargs='?',
138
+ help='Verbose output')
139
+ mutation_policy_appTenantRestriction_removeSection_parser.add_argument('-p', const=True, default=False, nargs='?',
140
+ help='Pretty print')
141
+ mutation_policy_appTenantRestriction_removeSection_parser.set_defaults(func=createRequest,operation_name='mutation.policy.appTenantRestriction.removeSection')
142
+
143
+ mutation_policy_appTenantRestriction_updatePolicy_parser = mutation_policy_appTenantRestriction_subparsers.add_parser('updatePolicy',
144
+ help='updatePolicy() appTenantRestriction operation',
145
+ usage=get_help("mutation_policy_appTenantRestriction_updatePolicy"))
146
+
147
+ mutation_policy_appTenantRestriction_updatePolicy_parser.add_argument('json', help='Variables in JSON format.')
148
+ mutation_policy_appTenantRestriction_updatePolicy_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
149
+ mutation_policy_appTenantRestriction_updatePolicy_parser.add_argument('-t', const=True, default=False, nargs='?',
150
+ help='Print test request preview without sending api call')
151
+ mutation_policy_appTenantRestriction_updatePolicy_parser.add_argument('-v', const=True, default=False, nargs='?',
152
+ help='Verbose output')
153
+ mutation_policy_appTenantRestriction_updatePolicy_parser.add_argument('-p', const=True, default=False, nargs='?',
154
+ help='Pretty print')
155
+ mutation_policy_appTenantRestriction_updatePolicy_parser.set_defaults(func=createRequest,operation_name='mutation.policy.appTenantRestriction.updatePolicy')
156
+
157
+ mutation_policy_appTenantRestriction_updateRule_parser = mutation_policy_appTenantRestriction_subparsers.add_parser('updateRule',
158
+ help='updateRule() appTenantRestriction operation',
159
+ usage=get_help("mutation_policy_appTenantRestriction_updateRule"))
160
+
161
+ mutation_policy_appTenantRestriction_updateRule_parser.add_argument('json', help='Variables in JSON format.')
162
+ mutation_policy_appTenantRestriction_updateRule_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
163
+ mutation_policy_appTenantRestriction_updateRule_parser.add_argument('-t', const=True, default=False, nargs='?',
164
+ help='Print test request preview without sending api call')
165
+ mutation_policy_appTenantRestriction_updateRule_parser.add_argument('-v', const=True, default=False, nargs='?',
166
+ help='Verbose output')
167
+ mutation_policy_appTenantRestriction_updateRule_parser.add_argument('-p', const=True, default=False, nargs='?',
168
+ help='Pretty print')
169
+ mutation_policy_appTenantRestriction_updateRule_parser.set_defaults(func=createRequest,operation_name='mutation.policy.appTenantRestriction.updateRule')
170
+
171
+ mutation_policy_appTenantRestriction_updateSection_parser = mutation_policy_appTenantRestriction_subparsers.add_parser('updateSection',
172
+ help='updateSection() appTenantRestriction operation',
173
+ usage=get_help("mutation_policy_appTenantRestriction_updateSection"))
174
+
175
+ mutation_policy_appTenantRestriction_updateSection_parser.add_argument('json', help='Variables in JSON format.')
176
+ mutation_policy_appTenantRestriction_updateSection_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
177
+ mutation_policy_appTenantRestriction_updateSection_parser.add_argument('-t', const=True, default=False, nargs='?',
178
+ help='Print test request preview without sending api call')
179
+ mutation_policy_appTenantRestriction_updateSection_parser.add_argument('-v', const=True, default=False, nargs='?',
180
+ help='Verbose output')
181
+ mutation_policy_appTenantRestriction_updateSection_parser.add_argument('-p', const=True, default=False, nargs='?',
182
+ help='Pretty print')
183
+ mutation_policy_appTenantRestriction_updateSection_parser.set_defaults(func=createRequest,operation_name='mutation.policy.appTenantRestriction.updateSection')
184
+
11
185
  mutation_policy_internetFirewall_parser = mutation_policy_subparsers.add_parser('internetFirewall',
12
186
  help='internetFirewall() policy operation',
13
187
  usage=get_help("mutation_policy_internetFirewall"))
@@ -182,6 +356,180 @@ def mutation_policy_parse(mutation_subparsers):
182
356
  help='Pretty print')
183
357
  mutation_policy_internetFirewall_updateSection_parser.set_defaults(func=createRequest,operation_name='mutation.policy.internetFirewall.updateSection')
184
358
 
359
+ mutation_policy_remotePortFwd_parser = mutation_policy_subparsers.add_parser('remotePortFwd',
360
+ help='remotePortFwd() policy operation',
361
+ usage=get_help("mutation_policy_remotePortFwd"))
362
+
363
+ mutation_policy_remotePortFwd_subparsers = mutation_policy_remotePortFwd_parser.add_subparsers()
364
+
365
+ mutation_policy_remotePortFwd_addRule_parser = mutation_policy_remotePortFwd_subparsers.add_parser('addRule',
366
+ help='addRule() remotePortFwd operation',
367
+ usage=get_help("mutation_policy_remotePortFwd_addRule"))
368
+
369
+ mutation_policy_remotePortFwd_addRule_parser.add_argument('json', help='Variables in JSON format.')
370
+ mutation_policy_remotePortFwd_addRule_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
371
+ mutation_policy_remotePortFwd_addRule_parser.add_argument('-t', const=True, default=False, nargs='?',
372
+ help='Print test request preview without sending api call')
373
+ mutation_policy_remotePortFwd_addRule_parser.add_argument('-v', const=True, default=False, nargs='?',
374
+ help='Verbose output')
375
+ mutation_policy_remotePortFwd_addRule_parser.add_argument('-p', const=True, default=False, nargs='?',
376
+ help='Pretty print')
377
+ mutation_policy_remotePortFwd_addRule_parser.set_defaults(func=createRequest,operation_name='mutation.policy.remotePortFwd.addRule')
378
+
379
+ mutation_policy_remotePortFwd_addSection_parser = mutation_policy_remotePortFwd_subparsers.add_parser('addSection',
380
+ help='addSection() remotePortFwd operation',
381
+ usage=get_help("mutation_policy_remotePortFwd_addSection"))
382
+
383
+ mutation_policy_remotePortFwd_addSection_parser.add_argument('json', help='Variables in JSON format.')
384
+ mutation_policy_remotePortFwd_addSection_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
385
+ mutation_policy_remotePortFwd_addSection_parser.add_argument('-t', const=True, default=False, nargs='?',
386
+ help='Print test request preview without sending api call')
387
+ mutation_policy_remotePortFwd_addSection_parser.add_argument('-v', const=True, default=False, nargs='?',
388
+ help='Verbose output')
389
+ mutation_policy_remotePortFwd_addSection_parser.add_argument('-p', const=True, default=False, nargs='?',
390
+ help='Pretty print')
391
+ mutation_policy_remotePortFwd_addSection_parser.set_defaults(func=createRequest,operation_name='mutation.policy.remotePortFwd.addSection')
392
+
393
+ mutation_policy_remotePortFwd_createPolicyRevision_parser = mutation_policy_remotePortFwd_subparsers.add_parser('createPolicyRevision',
394
+ help='createPolicyRevision() remotePortFwd operation',
395
+ usage=get_help("mutation_policy_remotePortFwd_createPolicyRevision"))
396
+
397
+ mutation_policy_remotePortFwd_createPolicyRevision_parser.add_argument('json', help='Variables in JSON format.')
398
+ mutation_policy_remotePortFwd_createPolicyRevision_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
399
+ mutation_policy_remotePortFwd_createPolicyRevision_parser.add_argument('-t', const=True, default=False, nargs='?',
400
+ help='Print test request preview without sending api call')
401
+ mutation_policy_remotePortFwd_createPolicyRevision_parser.add_argument('-v', const=True, default=False, nargs='?',
402
+ help='Verbose output')
403
+ mutation_policy_remotePortFwd_createPolicyRevision_parser.add_argument('-p', const=True, default=False, nargs='?',
404
+ help='Pretty print')
405
+ mutation_policy_remotePortFwd_createPolicyRevision_parser.set_defaults(func=createRequest,operation_name='mutation.policy.remotePortFwd.createPolicyRevision')
406
+
407
+ mutation_policy_remotePortFwd_discardPolicyRevision_parser = mutation_policy_remotePortFwd_subparsers.add_parser('discardPolicyRevision',
408
+ help='discardPolicyRevision() remotePortFwd operation',
409
+ usage=get_help("mutation_policy_remotePortFwd_discardPolicyRevision"))
410
+
411
+ mutation_policy_remotePortFwd_discardPolicyRevision_parser.add_argument('json', help='Variables in JSON format.')
412
+ mutation_policy_remotePortFwd_discardPolicyRevision_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
413
+ mutation_policy_remotePortFwd_discardPolicyRevision_parser.add_argument('-t', const=True, default=False, nargs='?',
414
+ help='Print test request preview without sending api call')
415
+ mutation_policy_remotePortFwd_discardPolicyRevision_parser.add_argument('-v', const=True, default=False, nargs='?',
416
+ help='Verbose output')
417
+ mutation_policy_remotePortFwd_discardPolicyRevision_parser.add_argument('-p', const=True, default=False, nargs='?',
418
+ help='Pretty print')
419
+ mutation_policy_remotePortFwd_discardPolicyRevision_parser.set_defaults(func=createRequest,operation_name='mutation.policy.remotePortFwd.discardPolicyRevision')
420
+
421
+ mutation_policy_remotePortFwd_moveRule_parser = mutation_policy_remotePortFwd_subparsers.add_parser('moveRule',
422
+ help='moveRule() remotePortFwd operation',
423
+ usage=get_help("mutation_policy_remotePortFwd_moveRule"))
424
+
425
+ mutation_policy_remotePortFwd_moveRule_parser.add_argument('json', help='Variables in JSON format.')
426
+ mutation_policy_remotePortFwd_moveRule_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
427
+ mutation_policy_remotePortFwd_moveRule_parser.add_argument('-t', const=True, default=False, nargs='?',
428
+ help='Print test request preview without sending api call')
429
+ mutation_policy_remotePortFwd_moveRule_parser.add_argument('-v', const=True, default=False, nargs='?',
430
+ help='Verbose output')
431
+ mutation_policy_remotePortFwd_moveRule_parser.add_argument('-p', const=True, default=False, nargs='?',
432
+ help='Pretty print')
433
+ mutation_policy_remotePortFwd_moveRule_parser.set_defaults(func=createRequest,operation_name='mutation.policy.remotePortFwd.moveRule')
434
+
435
+ mutation_policy_remotePortFwd_moveSection_parser = mutation_policy_remotePortFwd_subparsers.add_parser('moveSection',
436
+ help='moveSection() remotePortFwd operation',
437
+ usage=get_help("mutation_policy_remotePortFwd_moveSection"))
438
+
439
+ mutation_policy_remotePortFwd_moveSection_parser.add_argument('json', help='Variables in JSON format.')
440
+ mutation_policy_remotePortFwd_moveSection_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
441
+ mutation_policy_remotePortFwd_moveSection_parser.add_argument('-t', const=True, default=False, nargs='?',
442
+ help='Print test request preview without sending api call')
443
+ mutation_policy_remotePortFwd_moveSection_parser.add_argument('-v', const=True, default=False, nargs='?',
444
+ help='Verbose output')
445
+ mutation_policy_remotePortFwd_moveSection_parser.add_argument('-p', const=True, default=False, nargs='?',
446
+ help='Pretty print')
447
+ mutation_policy_remotePortFwd_moveSection_parser.set_defaults(func=createRequest,operation_name='mutation.policy.remotePortFwd.moveSection')
448
+
449
+ mutation_policy_remotePortFwd_publishPolicyRevision_parser = mutation_policy_remotePortFwd_subparsers.add_parser('publishPolicyRevision',
450
+ help='publishPolicyRevision() remotePortFwd operation',
451
+ usage=get_help("mutation_policy_remotePortFwd_publishPolicyRevision"))
452
+
453
+ mutation_policy_remotePortFwd_publishPolicyRevision_parser.add_argument('json', help='Variables in JSON format.')
454
+ mutation_policy_remotePortFwd_publishPolicyRevision_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
455
+ mutation_policy_remotePortFwd_publishPolicyRevision_parser.add_argument('-t', const=True, default=False, nargs='?',
456
+ help='Print test request preview without sending api call')
457
+ mutation_policy_remotePortFwd_publishPolicyRevision_parser.add_argument('-v', const=True, default=False, nargs='?',
458
+ help='Verbose output')
459
+ mutation_policy_remotePortFwd_publishPolicyRevision_parser.add_argument('-p', const=True, default=False, nargs='?',
460
+ help='Pretty print')
461
+ mutation_policy_remotePortFwd_publishPolicyRevision_parser.set_defaults(func=createRequest,operation_name='mutation.policy.remotePortFwd.publishPolicyRevision')
462
+
463
+ mutation_policy_remotePortFwd_removeRule_parser = mutation_policy_remotePortFwd_subparsers.add_parser('removeRule',
464
+ help='removeRule() remotePortFwd operation',
465
+ usage=get_help("mutation_policy_remotePortFwd_removeRule"))
466
+
467
+ mutation_policy_remotePortFwd_removeRule_parser.add_argument('json', help='Variables in JSON format.')
468
+ mutation_policy_remotePortFwd_removeRule_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
469
+ mutation_policy_remotePortFwd_removeRule_parser.add_argument('-t', const=True, default=False, nargs='?',
470
+ help='Print test request preview without sending api call')
471
+ mutation_policy_remotePortFwd_removeRule_parser.add_argument('-v', const=True, default=False, nargs='?',
472
+ help='Verbose output')
473
+ mutation_policy_remotePortFwd_removeRule_parser.add_argument('-p', const=True, default=False, nargs='?',
474
+ help='Pretty print')
475
+ mutation_policy_remotePortFwd_removeRule_parser.set_defaults(func=createRequest,operation_name='mutation.policy.remotePortFwd.removeRule')
476
+
477
+ mutation_policy_remotePortFwd_removeSection_parser = mutation_policy_remotePortFwd_subparsers.add_parser('removeSection',
478
+ help='removeSection() remotePortFwd operation',
479
+ usage=get_help("mutation_policy_remotePortFwd_removeSection"))
480
+
481
+ mutation_policy_remotePortFwd_removeSection_parser.add_argument('json', help='Variables in JSON format.')
482
+ mutation_policy_remotePortFwd_removeSection_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
483
+ mutation_policy_remotePortFwd_removeSection_parser.add_argument('-t', const=True, default=False, nargs='?',
484
+ help='Print test request preview without sending api call')
485
+ mutation_policy_remotePortFwd_removeSection_parser.add_argument('-v', const=True, default=False, nargs='?',
486
+ help='Verbose output')
487
+ mutation_policy_remotePortFwd_removeSection_parser.add_argument('-p', const=True, default=False, nargs='?',
488
+ help='Pretty print')
489
+ mutation_policy_remotePortFwd_removeSection_parser.set_defaults(func=createRequest,operation_name='mutation.policy.remotePortFwd.removeSection')
490
+
491
+ mutation_policy_remotePortFwd_updatePolicy_parser = mutation_policy_remotePortFwd_subparsers.add_parser('updatePolicy',
492
+ help='updatePolicy() remotePortFwd operation',
493
+ usage=get_help("mutation_policy_remotePortFwd_updatePolicy"))
494
+
495
+ mutation_policy_remotePortFwd_updatePolicy_parser.add_argument('json', help='Variables in JSON format.')
496
+ mutation_policy_remotePortFwd_updatePolicy_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
497
+ mutation_policy_remotePortFwd_updatePolicy_parser.add_argument('-t', const=True, default=False, nargs='?',
498
+ help='Print test request preview without sending api call')
499
+ mutation_policy_remotePortFwd_updatePolicy_parser.add_argument('-v', const=True, default=False, nargs='?',
500
+ help='Verbose output')
501
+ mutation_policy_remotePortFwd_updatePolicy_parser.add_argument('-p', const=True, default=False, nargs='?',
502
+ help='Pretty print')
503
+ mutation_policy_remotePortFwd_updatePolicy_parser.set_defaults(func=createRequest,operation_name='mutation.policy.remotePortFwd.updatePolicy')
504
+
505
+ mutation_policy_remotePortFwd_updateRule_parser = mutation_policy_remotePortFwd_subparsers.add_parser('updateRule',
506
+ help='updateRule() remotePortFwd operation',
507
+ usage=get_help("mutation_policy_remotePortFwd_updateRule"))
508
+
509
+ mutation_policy_remotePortFwd_updateRule_parser.add_argument('json', help='Variables in JSON format.')
510
+ mutation_policy_remotePortFwd_updateRule_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
511
+ mutation_policy_remotePortFwd_updateRule_parser.add_argument('-t', const=True, default=False, nargs='?',
512
+ help='Print test request preview without sending api call')
513
+ mutation_policy_remotePortFwd_updateRule_parser.add_argument('-v', const=True, default=False, nargs='?',
514
+ help='Verbose output')
515
+ mutation_policy_remotePortFwd_updateRule_parser.add_argument('-p', const=True, default=False, nargs='?',
516
+ help='Pretty print')
517
+ mutation_policy_remotePortFwd_updateRule_parser.set_defaults(func=createRequest,operation_name='mutation.policy.remotePortFwd.updateRule')
518
+
519
+ mutation_policy_remotePortFwd_updateSection_parser = mutation_policy_remotePortFwd_subparsers.add_parser('updateSection',
520
+ help='updateSection() remotePortFwd operation',
521
+ usage=get_help("mutation_policy_remotePortFwd_updateSection"))
522
+
523
+ mutation_policy_remotePortFwd_updateSection_parser.add_argument('json', help='Variables in JSON format.')
524
+ mutation_policy_remotePortFwd_updateSection_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
525
+ mutation_policy_remotePortFwd_updateSection_parser.add_argument('-t', const=True, default=False, nargs='?',
526
+ help='Print test request preview without sending api call')
527
+ mutation_policy_remotePortFwd_updateSection_parser.add_argument('-v', const=True, default=False, nargs='?',
528
+ help='Verbose output')
529
+ mutation_policy_remotePortFwd_updateSection_parser.add_argument('-p', const=True, default=False, nargs='?',
530
+ help='Pretty print')
531
+ mutation_policy_remotePortFwd_updateSection_parser.set_defaults(func=createRequest,operation_name='mutation.policy.remotePortFwd.updateSection')
532
+
185
533
  mutation_policy_wanFirewall_parser = mutation_policy_subparsers.add_parser('wanFirewall',
186
534
  help='wanFirewall() policy operation',
187
535
  usage=get_help("mutation_policy_wanFirewall"))
@@ -0,0 +1,7 @@
1
+
2
+ ## CATO-CLI - mutation.policy.appTenantRestriction:
3
+ [Click here](https://api.catonetworks.com/documentation/#mutation-appTenantRestriction) for documentation on this operation.
4
+
5
+ ### Usage for mutation.policy.appTenantRestriction:
6
+
7
+ `catocli mutation policy appTenantRestriction -h`