catocli 2.0.1__py3-none-any.whl → 2.0.3__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 (108) hide show
  1. catocli/Utils/clidriver.py +41 -6
  2. catocli/__init__.py +1 -1
  3. catocli/parsers/custom/__init__.py +7 -5
  4. catocli/parsers/custom/customLib.py +490 -1
  5. catocli/parsers/custom/export_rules/__init__.py +5 -1
  6. catocli/parsers/custom/export_rules/export_rules.py +32 -183
  7. catocli/parsers/custom/export_sites/__init__.py +20 -0
  8. catocli/parsers/custom/export_sites/export_sites.py +365 -0
  9. catocli/parsers/custom/import_rules_to_tf/__init__.py +3 -3
  10. catocli/parsers/custom/import_rules_to_tf/import_rules_to_tf.py +20 -146
  11. catocli/parsers/custom/import_sites_to_tf/__init__.py +45 -0
  12. catocli/parsers/custom/import_sites_to_tf/import_sites_to_tf.py +891 -0
  13. catocli/parsers/mutation_accountManagement/__init__.py +18 -21
  14. catocli/parsers/mutation_admin/__init__.py +18 -21
  15. catocli/parsers/mutation_container/__init__.py +6 -7
  16. catocli/parsers/mutation_hardware/__init__.py +6 -7
  17. catocli/parsers/mutation_policy/__init__.py +666 -588
  18. catocli/parsers/mutation_policy_terminalServer/README.md +7 -0
  19. catocli/parsers/mutation_policy_terminalServer_addRule/README.md +18 -0
  20. catocli/parsers/mutation_policy_terminalServer_addSection/README.md +18 -0
  21. catocli/parsers/mutation_policy_terminalServer_createPolicyRevision/README.md +18 -0
  22. catocli/parsers/mutation_policy_terminalServer_discardPolicyRevision/README.md +18 -0
  23. catocli/parsers/mutation_policy_terminalServer_moveRule/README.md +18 -0
  24. catocli/parsers/mutation_policy_terminalServer_moveSection/README.md +18 -0
  25. catocli/parsers/mutation_policy_terminalServer_publishPolicyRevision/README.md +18 -0
  26. catocli/parsers/mutation_policy_terminalServer_removeRule/README.md +18 -0
  27. catocli/parsers/mutation_policy_terminalServer_removeSection/README.md +18 -0
  28. catocli/parsers/mutation_policy_terminalServer_updatePolicy/README.md +18 -0
  29. catocli/parsers/mutation_policy_terminalServer_updateRule/README.md +18 -0
  30. catocli/parsers/mutation_policy_terminalServer_updateSection/README.md +18 -0
  31. catocli/parsers/mutation_sandbox/__init__.py +12 -14
  32. catocli/parsers/mutation_site/__init__.py +189 -175
  33. catocli/parsers/mutation_site_addSocketAddOnCard/README.md +17 -0
  34. catocli/parsers/mutation_site_removeSocketAddOnCard/README.md +17 -0
  35. catocli/parsers/mutation_site_startSiteUpgrade/README.md +17 -0
  36. catocli/parsers/mutation_sites/__init__.py +189 -175
  37. catocli/parsers/mutation_sites_addSocketAddOnCard/README.md +17 -0
  38. catocli/parsers/mutation_sites_removeSocketAddOnCard/README.md +17 -0
  39. catocli/parsers/mutation_sites_startSiteUpgrade/README.md +17 -0
  40. catocli/parsers/mutation_xdr/__init__.py +18 -21
  41. catocli/parsers/parserApiClient.py +36 -11
  42. catocli/parsers/query_accountBySubdomain/__init__.py +6 -7
  43. catocli/parsers/query_accountManagement/__init__.py +6 -7
  44. catocli/parsers/query_accountMetrics/__init__.py +6 -7
  45. catocli/parsers/query_accountRoles/__init__.py +6 -7
  46. catocli/parsers/query_accountSnapshot/__init__.py +6 -7
  47. catocli/parsers/query_admin/__init__.py +6 -7
  48. catocli/parsers/query_admins/__init__.py +6 -7
  49. catocli/parsers/query_appStats/__init__.py +6 -7
  50. catocli/parsers/query_appStatsTimeSeries/__init__.py +6 -7
  51. catocli/parsers/query_auditFeed/__init__.py +6 -7
  52. catocli/parsers/query_catalogs/__init__.py +6 -7
  53. catocli/parsers/query_container/__init__.py +6 -7
  54. catocli/parsers/query_devices/README.md +2 -1
  55. catocli/parsers/query_devices/__init__.py +6 -7
  56. catocli/parsers/query_entityLookup/__init__.py +6 -7
  57. catocli/parsers/query_events/__init__.py +6 -7
  58. catocli/parsers/query_eventsFeed/README.md +1 -1
  59. catocli/parsers/query_eventsFeed/__init__.py +6 -7
  60. catocli/parsers/query_eventsTimeSeries/__init__.py +6 -7
  61. catocli/parsers/query_hardware/__init__.py +6 -7
  62. catocli/parsers/query_hardwareManagement/__init__.py +6 -7
  63. catocli/parsers/query_licensing/__init__.py +6 -7
  64. catocli/parsers/query_policy/README.md +2 -1
  65. catocli/parsers/query_policy/__init__.py +6 -7
  66. catocli/parsers/query_sandbox/__init__.py +6 -7
  67. catocli/parsers/query_site/README.md +2 -1
  68. catocli/parsers/query_site/__init__.py +6 -7
  69. catocli/parsers/query_siteLocation/__init__.py +4 -8
  70. catocli/parsers/query_subDomains/__init__.py +6 -7
  71. catocli/parsers/query_xdr/__init__.py +12 -14
  72. catocli/parsers/raw/README.md +4 -0
  73. catocli/parsers/raw/__init__.py +5 -2
  74. {catocli-2.0.1.dist-info → catocli-2.0.3.dist-info}/METADATA +1 -1
  75. {catocli-2.0.1.dist-info → catocli-2.0.3.dist-info}/RECORD +108 -67
  76. graphql_client/api/call_api.py +12 -6
  77. models/mutation.policy.remotePortFwd.updateRule.json +6 -6
  78. models/mutation.policy.terminalServer.addRule.json +2403 -0
  79. models/mutation.policy.terminalServer.addSection.json +1358 -0
  80. models/mutation.policy.terminalServer.createPolicyRevision.json +1873 -0
  81. models/mutation.policy.terminalServer.discardPolicyRevision.json +1807 -0
  82. models/mutation.policy.terminalServer.moveRule.json +1605 -0
  83. models/mutation.policy.terminalServer.moveSection.json +1259 -0
  84. models/mutation.policy.terminalServer.publishPolicyRevision.json +1864 -0
  85. models/mutation.policy.terminalServer.removeRule.json +1253 -0
  86. models/mutation.policy.terminalServer.removeSection.json +958 -0
  87. models/mutation.policy.terminalServer.updatePolicy.json +1883 -0
  88. models/mutation.policy.terminalServer.updateRule.json +2096 -0
  89. models/mutation.policy.terminalServer.updateSection.json +1111 -0
  90. models/mutation.site.addSocketAddOnCard.json +1050 -0
  91. models/mutation.site.removeSocketAddOnCard.json +786 -0
  92. models/mutation.site.startSiteUpgrade.json +802 -0
  93. models/mutation.sites.addSocketAddOnCard.json +1050 -0
  94. models/mutation.sites.removeSocketAddOnCard.json +786 -0
  95. models/mutation.sites.startSiteUpgrade.json +802 -0
  96. models/query.devices.json +311 -2
  97. models/query.events.json +48 -0
  98. models/query.eventsFeed.json +12 -0
  99. models/query.eventsTimeSeries.json +36 -0
  100. models/query.licensing.json +21815 -10093
  101. models/query.policy.json +1898 -305
  102. models/query.site.json +225 -0
  103. models/query.siteLocation.json +97190 -295396
  104. schema/catolib.py +63 -30
  105. {catocli-2.0.1.dist-info → catocli-2.0.3.dist-info}/LICENSE +0 -0
  106. {catocli-2.0.1.dist-info → catocli-2.0.3.dist-info}/WHEEL +0 -0
  107. {catocli-2.0.1.dist-info → catocli-2.0.3.dist-info}/entry_points.txt +0 -0
  108. {catocli-2.0.1.dist-info → catocli-2.0.3.dist-info}/top_level.txt +0 -0
models/query.site.json CHANGED
@@ -23,6 +23,7 @@
23
23
  "deprecationReason": null,
24
24
  "description": null,
25
25
  "fieldTypes": {
26
+ "AvailableVersionListPayload": true,
26
27
  "BfdSettings": true,
27
28
  "BgpCommunity": true,
28
29
  "BgpCommunityFilterPredicate": true,
@@ -43,6 +44,7 @@
43
44
  "GlobalIpRangeRef": true,
44
45
  "HaRole": true,
45
46
  "ObjectRefBy": true,
47
+ "PlatformVersions": true,
46
48
  "PolicyRuleTrackingFrequencyEnum": true,
47
49
  "PopLocationRef": true,
48
50
  "SiteBgpStatus": true,
@@ -72,6 +74,58 @@
72
74
  },
73
75
  "varName": "accountId"
74
76
  },
77
+ "availableVersionListInput": {
78
+ "defaultValue": null,
79
+ "description": null,
80
+ "id_str": "availableVersionList___input",
81
+ "name": "input",
82
+ "path": "availableVersionList.input",
83
+ "requestStr": "$availableVersionListInput:AvailableVersionListInput! ",
84
+ "required": true,
85
+ "responseStr": "input:$availableVersionListInput ",
86
+ "type": {
87
+ "definition": {
88
+ "description": "Input parameters for querying available versions.",
89
+ "enumValues": null,
90
+ "fields": null,
91
+ "inputFields": {
92
+ "platforms": {
93
+ "defaultValue": null,
94
+ "description": "List of platforms to retrieve available versions for.",
95
+ "id_str": "availableVersionList___input___platforms",
96
+ "name": "platforms",
97
+ "path": "availableVersionList.input.platforms",
98
+ "requestStr": "$platforms:[String]! ",
99
+ "required": true,
100
+ "responseStr": "platforms:$platforms ",
101
+ "type": {
102
+ "kind": [
103
+ "NON_NULL",
104
+ "LIST",
105
+ "NON_NULL",
106
+ "SCALAR"
107
+ ],
108
+ "name": "String",
109
+ "non_null": false
110
+ },
111
+ "varName": "platforms"
112
+ }
113
+ },
114
+ "interfaces": null,
115
+ "kind": "INPUT_OBJECT",
116
+ "name": "AvailableVersionListInput",
117
+ "possibleTypes": null
118
+ },
119
+ "indexType": "input_object",
120
+ "kind": [
121
+ "NON_NULL",
122
+ "INPUT_OBJECT"
123
+ ],
124
+ "name": "AvailableVersionListInput",
125
+ "non_null": false
126
+ },
127
+ "varName": "availableVersionListInput"
128
+ },
75
129
  "bgpPeerListInput": {
76
130
  "defaultValue": null,
77
131
  "description": null,
@@ -687,6 +741,170 @@
687
741
  "description": null,
688
742
  "enumValues": null,
689
743
  "fields": {
744
+ "availableVersionList": {
745
+ "args": {
746
+ "availableVersionList___input": {
747
+ "defaultValue": null,
748
+ "description": null,
749
+ "id_str": "availableVersionList___input",
750
+ "name": "input",
751
+ "path": "availableVersionList.input",
752
+ "requestStr": "$availableVersionListInput:AvailableVersionListInput! ",
753
+ "required": true,
754
+ "responseStr": "input:$availableVersionListInput ",
755
+ "type": {
756
+ "definition": {
757
+ "description": "Input parameters for querying available versions.",
758
+ "enumValues": null,
759
+ "fields": null,
760
+ "inputFields": {
761
+ "platforms": {
762
+ "defaultValue": null,
763
+ "description": "List of platforms to retrieve available versions for.",
764
+ "id_str": "availableVersionList___input___platforms",
765
+ "name": "platforms",
766
+ "path": "availableVersionList.input.platforms",
767
+ "requestStr": "$platforms:[String]! ",
768
+ "required": true,
769
+ "responseStr": "platforms:$platforms ",
770
+ "type": {
771
+ "kind": [
772
+ "NON_NULL",
773
+ "LIST",
774
+ "NON_NULL",
775
+ "SCALAR"
776
+ ],
777
+ "name": "String",
778
+ "non_null": false
779
+ },
780
+ "varName": "platforms"
781
+ }
782
+ },
783
+ "interfaces": null,
784
+ "kind": "INPUT_OBJECT",
785
+ "name": "AvailableVersionListInput",
786
+ "possibleTypes": null
787
+ },
788
+ "indexType": "input_object",
789
+ "kind": [
790
+ "NON_NULL",
791
+ "INPUT_OBJECT"
792
+ ],
793
+ "name": "AvailableVersionListInput",
794
+ "non_null": false
795
+ },
796
+ "varName": "availableVersionListInput"
797
+ }
798
+ },
799
+ "deprecationReason": null,
800
+ "description": "Retrieves available socket versions for the specified platforms.",
801
+ "id_str": "availableVersionList",
802
+ "isDeprecated": false,
803
+ "name": "availableVersionList",
804
+ "path": "availableVersionList",
805
+ "requestStr": "$availableVersionListPayload:AvailableVersionListPayload ",
806
+ "required": false,
807
+ "responseStr": "availableVersionList:$availableVersionListPayload ",
808
+ "type": {
809
+ "definition": {
810
+ "description": "Response payload for available versions query.",
811
+ "enumValues": null,
812
+ "fields": {
813
+ "items": {
814
+ "args": {},
815
+ "deprecationReason": null,
816
+ "description": "List of available versions for each requested platform.",
817
+ "id_str": "availableVersionList___items",
818
+ "isDeprecated": false,
819
+ "name": "items",
820
+ "path": "availableVersionList.items",
821
+ "requestStr": "$platformVersions:[PlatformVersions]! ",
822
+ "required": true,
823
+ "responseStr": "items:$platformVersions ",
824
+ "type": {
825
+ "definition": {
826
+ "description": "Represents available versions for a specific platform.",
827
+ "enumValues": null,
828
+ "fields": {
829
+ "platform": {
830
+ "args": {},
831
+ "deprecationReason": null,
832
+ "description": "The platform for which versions are retrieved.",
833
+ "id_str": "availableVersionList___items___platform",
834
+ "isDeprecated": false,
835
+ "name": "platform",
836
+ "path": "availableVersionList.items.platform",
837
+ "requestStr": "$platform:String! ",
838
+ "required": true,
839
+ "responseStr": "platform:$platform ",
840
+ "type": {
841
+ "kind": [
842
+ "NON_NULL",
843
+ "SCALAR"
844
+ ],
845
+ "name": "String",
846
+ "non_null": false
847
+ },
848
+ "varName": "platform"
849
+ },
850
+ "versions": {
851
+ "args": {},
852
+ "deprecationReason": null,
853
+ "description": "List of available socket versions for this platform.",
854
+ "id_str": "availableVersionList___items___versions",
855
+ "isDeprecated": false,
856
+ "name": "versions",
857
+ "path": "availableVersionList.items.versions",
858
+ "requestStr": "$versions:[String]! ",
859
+ "required": true,
860
+ "responseStr": "versions:$versions ",
861
+ "type": {
862
+ "kind": [
863
+ "NON_NULL",
864
+ "LIST",
865
+ "NON_NULL",
866
+ "SCALAR"
867
+ ],
868
+ "name": "String",
869
+ "non_null": false
870
+ },
871
+ "varName": "versions"
872
+ }
873
+ },
874
+ "inputFields": null,
875
+ "interfaces": {},
876
+ "kind": "OBJECT",
877
+ "name": "PlatformVersions",
878
+ "possibleTypes": null
879
+ },
880
+ "indexType": "object",
881
+ "kind": [
882
+ "NON_NULL",
883
+ "LIST",
884
+ "NON_NULL",
885
+ "OBJECT"
886
+ ],
887
+ "name": "PlatformVersions",
888
+ "non_null": false
889
+ },
890
+ "varName": "platformVersions"
891
+ }
892
+ },
893
+ "inputFields": null,
894
+ "interfaces": {},
895
+ "kind": "OBJECT",
896
+ "name": "AvailableVersionListPayload",
897
+ "possibleTypes": null
898
+ },
899
+ "indexType": "object",
900
+ "kind": [
901
+ "OBJECT"
902
+ ],
903
+ "name": "AvailableVersionListPayload",
904
+ "non_null": false
905
+ },
906
+ "varName": "availableVersionListPayload"
907
+ },
690
908
  "bgpPeer": {
691
909
  "args": {
692
910
  "bgpPeer___input": {
@@ -5408,6 +5626,13 @@
5408
5626
  "non_null": false
5409
5627
  },
5410
5628
  "variablesPayload": {
5629
+ "availableVersionListInput": {
5630
+ "platforms": {
5631
+ "platforms": [
5632
+ "String"
5633
+ ]
5634
+ }
5635
+ },
5411
5636
  "bgpPeerListInput": {
5412
5637
  "siteRefInput": {
5413
5638
  "by": {