catocli 2.0.2__py3-none-any.whl → 2.0.4__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 (57) hide show
  1. catocli/Utils/clidriver.py +4 -1
  2. catocli/__init__.py +1 -1
  3. catocli/parsers/custom/__init__.py +4 -3
  4. catocli/parsers/custom/customLib.py +239 -1
  5. catocli/parsers/custom/export_rules/__init__.py +2 -0
  6. catocli/parsers/custom/export_rules/export_rules.py +30 -6
  7. catocli/parsers/custom/export_sites/__init__.py +1 -0
  8. catocli/parsers/custom/export_sites/export_sites.py +194 -55
  9. catocli/parsers/custom/import_rules_to_tf/__init__.py +1 -1
  10. catocli/parsers/custom/import_rules_to_tf/import_rules_to_tf.py +1 -137
  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 +6 -6
  14. catocli/parsers/mutation_admin/__init__.py +6 -6
  15. catocli/parsers/mutation_container/__init__.py +2 -2
  16. catocli/parsers/mutation_hardware/__init__.py +2 -2
  17. catocli/parsers/mutation_policy/__init__.py +192 -192
  18. catocli/parsers/mutation_sandbox/__init__.py +4 -4
  19. catocli/parsers/mutation_site/__init__.py +56 -56
  20. catocli/parsers/mutation_sites/__init__.py +56 -56
  21. catocli/parsers/mutation_xdr/__init__.py +6 -6
  22. catocli/parsers/parserApiClient.py +199 -12
  23. catocli/parsers/query_accountBySubdomain/__init__.py +2 -2
  24. catocli/parsers/query_accountManagement/__init__.py +2 -2
  25. catocli/parsers/query_accountMetrics/__init__.py +2 -2
  26. catocli/parsers/query_accountRoles/__init__.py +2 -2
  27. catocli/parsers/query_accountSnapshot/__init__.py +2 -2
  28. catocli/parsers/query_admin/__init__.py +2 -2
  29. catocli/parsers/query_admins/__init__.py +2 -2
  30. catocli/parsers/query_appStats/__init__.py +2 -2
  31. catocli/parsers/query_appStatsTimeSeries/__init__.py +2 -2
  32. catocli/parsers/query_auditFeed/__init__.py +2 -2
  33. catocli/parsers/query_catalogs/__init__.py +2 -2
  34. catocli/parsers/query_container/__init__.py +2 -2
  35. catocli/parsers/query_devices/__init__.py +2 -2
  36. catocli/parsers/query_entityLookup/__init__.py +2 -2
  37. catocli/parsers/query_events/__init__.py +2 -2
  38. catocli/parsers/query_eventsFeed/__init__.py +2 -2
  39. catocli/parsers/query_eventsTimeSeries/__init__.py +2 -2
  40. catocli/parsers/query_hardware/__init__.py +2 -2
  41. catocli/parsers/query_hardwareManagement/__init__.py +2 -2
  42. catocli/parsers/query_licensing/__init__.py +2 -2
  43. catocli/parsers/query_policy/__init__.py +2 -2
  44. catocli/parsers/query_sandbox/__init__.py +2 -2
  45. catocli/parsers/query_site/__init__.py +2 -2
  46. catocli/parsers/query_siteLocation/__init__.py +2 -2
  47. catocli/parsers/query_subDomains/__init__.py +2 -2
  48. catocli/parsers/query_xdr/__init__.py +4 -4
  49. catocli/parsers/raw/README.md +18 -0
  50. catocli/parsers/raw/__init__.py +5 -2
  51. {catocli-2.0.2.dist-info → catocli-2.0.4.dist-info}/METADATA +1 -1
  52. {catocli-2.0.2.dist-info → catocli-2.0.4.dist-info}/RECORD +57 -55
  53. schema/catolib.py +14 -9
  54. {catocli-2.0.2.dist-info → catocli-2.0.4.dist-info}/LICENSE +0 -0
  55. {catocli-2.0.2.dist-info → catocli-2.0.4.dist-info}/WHEEL +0 -0
  56. {catocli-2.0.2.dist-info → catocli-2.0.4.dist-info}/entry_points.txt +0 -0
  57. {catocli-2.0.2.dist-info → catocli-2.0.4.dist-info}/top_level.txt +0 -0
@@ -12,9 +12,9 @@ def mutation_sites_parse(mutation_subparsers):
12
12
  help='addBgpPeer() sites operation',
13
13
  usage=get_help("mutation_sites_addBgpPeer"))
14
14
 
15
- mutation_sites_addBgpPeer_parser.add_argument('json', help='Variables in JSON format.')
15
+ mutation_sites_addBgpPeer_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
16
16
  mutation_sites_addBgpPeer_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
17
- mutation_sites_addBgpPeer_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
17
+ mutation_sites_addBgpPeer_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
18
18
  mutation_sites_addBgpPeer_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
19
19
  mutation_sites_addBgpPeer_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
20
20
  mutation_sites_addBgpPeer_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -25,9 +25,9 @@ def mutation_sites_parse(mutation_subparsers):
25
25
  help='addCloudInterconnectPhysicalConnection() sites operation',
26
26
  usage=get_help("mutation_sites_addCloudInterconnectPhysicalConnection"))
27
27
 
28
- mutation_sites_addCloudInterconnectPhysicalConnection_parser.add_argument('json', help='Variables in JSON format.')
28
+ mutation_sites_addCloudInterconnectPhysicalConnection_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
29
29
  mutation_sites_addCloudInterconnectPhysicalConnection_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
30
- mutation_sites_addCloudInterconnectPhysicalConnection_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
30
+ mutation_sites_addCloudInterconnectPhysicalConnection_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
31
31
  mutation_sites_addCloudInterconnectPhysicalConnection_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
32
32
  mutation_sites_addCloudInterconnectPhysicalConnection_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
33
33
  mutation_sites_addCloudInterconnectPhysicalConnection_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -38,9 +38,9 @@ def mutation_sites_parse(mutation_subparsers):
38
38
  help='addCloudInterconnectSite() sites operation',
39
39
  usage=get_help("mutation_sites_addCloudInterconnectSite"))
40
40
 
41
- mutation_sites_addCloudInterconnectSite_parser.add_argument('json', help='Variables in JSON format.')
41
+ mutation_sites_addCloudInterconnectSite_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
42
42
  mutation_sites_addCloudInterconnectSite_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
43
- mutation_sites_addCloudInterconnectSite_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
43
+ mutation_sites_addCloudInterconnectSite_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
44
44
  mutation_sites_addCloudInterconnectSite_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
45
45
  mutation_sites_addCloudInterconnectSite_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
46
46
  mutation_sites_addCloudInterconnectSite_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -51,9 +51,9 @@ def mutation_sites_parse(mutation_subparsers):
51
51
  help='addIpsecIkeV2Site() sites operation',
52
52
  usage=get_help("mutation_sites_addIpsecIkeV2Site"))
53
53
 
54
- mutation_sites_addIpsecIkeV2Site_parser.add_argument('json', help='Variables in JSON format.')
54
+ mutation_sites_addIpsecIkeV2Site_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
55
55
  mutation_sites_addIpsecIkeV2Site_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
56
- mutation_sites_addIpsecIkeV2Site_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
56
+ mutation_sites_addIpsecIkeV2Site_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
57
57
  mutation_sites_addIpsecIkeV2Site_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
58
58
  mutation_sites_addIpsecIkeV2Site_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
59
59
  mutation_sites_addIpsecIkeV2Site_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -64,9 +64,9 @@ def mutation_sites_parse(mutation_subparsers):
64
64
  help='addIpsecIkeV2SiteTunnels() sites operation',
65
65
  usage=get_help("mutation_sites_addIpsecIkeV2SiteTunnels"))
66
66
 
67
- mutation_sites_addIpsecIkeV2SiteTunnels_parser.add_argument('json', help='Variables in JSON format.')
67
+ mutation_sites_addIpsecIkeV2SiteTunnels_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
68
68
  mutation_sites_addIpsecIkeV2SiteTunnels_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
69
- mutation_sites_addIpsecIkeV2SiteTunnels_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
69
+ mutation_sites_addIpsecIkeV2SiteTunnels_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
70
70
  mutation_sites_addIpsecIkeV2SiteTunnels_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
71
71
  mutation_sites_addIpsecIkeV2SiteTunnels_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
72
72
  mutation_sites_addIpsecIkeV2SiteTunnels_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -77,9 +77,9 @@ def mutation_sites_parse(mutation_subparsers):
77
77
  help='addNetworkRange() sites operation',
78
78
  usage=get_help("mutation_sites_addNetworkRange"))
79
79
 
80
- mutation_sites_addNetworkRange_parser.add_argument('json', help='Variables in JSON format.')
80
+ mutation_sites_addNetworkRange_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
81
81
  mutation_sites_addNetworkRange_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
82
- mutation_sites_addNetworkRange_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
82
+ mutation_sites_addNetworkRange_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
83
83
  mutation_sites_addNetworkRange_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
84
84
  mutation_sites_addNetworkRange_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
85
85
  mutation_sites_addNetworkRange_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -90,9 +90,9 @@ def mutation_sites_parse(mutation_subparsers):
90
90
  help='addSecondaryAwsVSocket() sites operation',
91
91
  usage=get_help("mutation_sites_addSecondaryAwsVSocket"))
92
92
 
93
- mutation_sites_addSecondaryAwsVSocket_parser.add_argument('json', help='Variables in JSON format.')
93
+ mutation_sites_addSecondaryAwsVSocket_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
94
94
  mutation_sites_addSecondaryAwsVSocket_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
95
- mutation_sites_addSecondaryAwsVSocket_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
95
+ mutation_sites_addSecondaryAwsVSocket_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
96
96
  mutation_sites_addSecondaryAwsVSocket_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
97
97
  mutation_sites_addSecondaryAwsVSocket_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
98
98
  mutation_sites_addSecondaryAwsVSocket_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -103,9 +103,9 @@ def mutation_sites_parse(mutation_subparsers):
103
103
  help='addSecondaryAzureVSocket() sites operation',
104
104
  usage=get_help("mutation_sites_addSecondaryAzureVSocket"))
105
105
 
106
- mutation_sites_addSecondaryAzureVSocket_parser.add_argument('json', help='Variables in JSON format.')
106
+ mutation_sites_addSecondaryAzureVSocket_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
107
107
  mutation_sites_addSecondaryAzureVSocket_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
108
- mutation_sites_addSecondaryAzureVSocket_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
108
+ mutation_sites_addSecondaryAzureVSocket_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
109
109
  mutation_sites_addSecondaryAzureVSocket_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
110
110
  mutation_sites_addSecondaryAzureVSocket_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
111
111
  mutation_sites_addSecondaryAzureVSocket_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -116,9 +116,9 @@ def mutation_sites_parse(mutation_subparsers):
116
116
  help='addSocketAddOnCard() sites operation',
117
117
  usage=get_help("mutation_sites_addSocketAddOnCard"))
118
118
 
119
- mutation_sites_addSocketAddOnCard_parser.add_argument('json', help='Variables in JSON format.')
119
+ mutation_sites_addSocketAddOnCard_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
120
120
  mutation_sites_addSocketAddOnCard_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
121
- mutation_sites_addSocketAddOnCard_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
121
+ mutation_sites_addSocketAddOnCard_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
122
122
  mutation_sites_addSocketAddOnCard_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
123
123
  mutation_sites_addSocketAddOnCard_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
124
124
  mutation_sites_addSocketAddOnCard_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -129,9 +129,9 @@ def mutation_sites_parse(mutation_subparsers):
129
129
  help='addSocketSite() sites operation',
130
130
  usage=get_help("mutation_sites_addSocketSite"))
131
131
 
132
- mutation_sites_addSocketSite_parser.add_argument('json', help='Variables in JSON format.')
132
+ mutation_sites_addSocketSite_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
133
133
  mutation_sites_addSocketSite_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
134
- mutation_sites_addSocketSite_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
134
+ mutation_sites_addSocketSite_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
135
135
  mutation_sites_addSocketSite_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
136
136
  mutation_sites_addSocketSite_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
137
137
  mutation_sites_addSocketSite_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -142,9 +142,9 @@ def mutation_sites_parse(mutation_subparsers):
142
142
  help='addStaticHost() sites operation',
143
143
  usage=get_help("mutation_sites_addStaticHost"))
144
144
 
145
- mutation_sites_addStaticHost_parser.add_argument('json', help='Variables in JSON format.')
145
+ mutation_sites_addStaticHost_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
146
146
  mutation_sites_addStaticHost_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
147
- mutation_sites_addStaticHost_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
147
+ mutation_sites_addStaticHost_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
148
148
  mutation_sites_addStaticHost_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
149
149
  mutation_sites_addStaticHost_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
150
150
  mutation_sites_addStaticHost_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -155,9 +155,9 @@ def mutation_sites_parse(mutation_subparsers):
155
155
  help='removeBgpPeer() sites operation',
156
156
  usage=get_help("mutation_sites_removeBgpPeer"))
157
157
 
158
- mutation_sites_removeBgpPeer_parser.add_argument('json', help='Variables in JSON format.')
158
+ mutation_sites_removeBgpPeer_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
159
159
  mutation_sites_removeBgpPeer_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
160
- mutation_sites_removeBgpPeer_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
160
+ mutation_sites_removeBgpPeer_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
161
161
  mutation_sites_removeBgpPeer_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
162
162
  mutation_sites_removeBgpPeer_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
163
163
  mutation_sites_removeBgpPeer_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -168,9 +168,9 @@ def mutation_sites_parse(mutation_subparsers):
168
168
  help='removeCloudInterconnectPhysicalConnection() sites operation',
169
169
  usage=get_help("mutation_sites_removeCloudInterconnectPhysicalConnection"))
170
170
 
171
- mutation_sites_removeCloudInterconnectPhysicalConnection_parser.add_argument('json', help='Variables in JSON format.')
171
+ mutation_sites_removeCloudInterconnectPhysicalConnection_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
172
172
  mutation_sites_removeCloudInterconnectPhysicalConnection_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
173
- mutation_sites_removeCloudInterconnectPhysicalConnection_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
173
+ mutation_sites_removeCloudInterconnectPhysicalConnection_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
174
174
  mutation_sites_removeCloudInterconnectPhysicalConnection_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
175
175
  mutation_sites_removeCloudInterconnectPhysicalConnection_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
176
176
  mutation_sites_removeCloudInterconnectPhysicalConnection_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -181,9 +181,9 @@ def mutation_sites_parse(mutation_subparsers):
181
181
  help='removeIpsecIkeV2SiteTunnels() sites operation',
182
182
  usage=get_help("mutation_sites_removeIpsecIkeV2SiteTunnels"))
183
183
 
184
- mutation_sites_removeIpsecIkeV2SiteTunnels_parser.add_argument('json', help='Variables in JSON format.')
184
+ mutation_sites_removeIpsecIkeV2SiteTunnels_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
185
185
  mutation_sites_removeIpsecIkeV2SiteTunnels_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
186
- mutation_sites_removeIpsecIkeV2SiteTunnels_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
186
+ mutation_sites_removeIpsecIkeV2SiteTunnels_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
187
187
  mutation_sites_removeIpsecIkeV2SiteTunnels_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
188
188
  mutation_sites_removeIpsecIkeV2SiteTunnels_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
189
189
  mutation_sites_removeIpsecIkeV2SiteTunnels_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -194,9 +194,9 @@ def mutation_sites_parse(mutation_subparsers):
194
194
  help='removeNetworkRange() sites operation',
195
195
  usage=get_help("mutation_sites_removeNetworkRange"))
196
196
 
197
- mutation_sites_removeNetworkRange_parser.add_argument('json', help='Variables in JSON format.')
197
+ mutation_sites_removeNetworkRange_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
198
198
  mutation_sites_removeNetworkRange_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
199
- mutation_sites_removeNetworkRange_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
199
+ mutation_sites_removeNetworkRange_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
200
200
  mutation_sites_removeNetworkRange_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
201
201
  mutation_sites_removeNetworkRange_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
202
202
  mutation_sites_removeNetworkRange_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -207,9 +207,9 @@ def mutation_sites_parse(mutation_subparsers):
207
207
  help='removeSite() sites operation',
208
208
  usage=get_help("mutation_sites_removeSite"))
209
209
 
210
- mutation_sites_removeSite_parser.add_argument('json', help='Variables in JSON format.')
210
+ mutation_sites_removeSite_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
211
211
  mutation_sites_removeSite_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
212
- mutation_sites_removeSite_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
212
+ mutation_sites_removeSite_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
213
213
  mutation_sites_removeSite_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
214
214
  mutation_sites_removeSite_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
215
215
  mutation_sites_removeSite_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -220,9 +220,9 @@ def mutation_sites_parse(mutation_subparsers):
220
220
  help='removeSocketAddOnCard() sites operation',
221
221
  usage=get_help("mutation_sites_removeSocketAddOnCard"))
222
222
 
223
- mutation_sites_removeSocketAddOnCard_parser.add_argument('json', help='Variables in JSON format.')
223
+ mutation_sites_removeSocketAddOnCard_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
224
224
  mutation_sites_removeSocketAddOnCard_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
225
- mutation_sites_removeSocketAddOnCard_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
225
+ mutation_sites_removeSocketAddOnCard_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
226
226
  mutation_sites_removeSocketAddOnCard_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
227
227
  mutation_sites_removeSocketAddOnCard_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
228
228
  mutation_sites_removeSocketAddOnCard_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -233,9 +233,9 @@ def mutation_sites_parse(mutation_subparsers):
233
233
  help='removeStaticHost() sites operation',
234
234
  usage=get_help("mutation_sites_removeStaticHost"))
235
235
 
236
- mutation_sites_removeStaticHost_parser.add_argument('json', help='Variables in JSON format.')
236
+ mutation_sites_removeStaticHost_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
237
237
  mutation_sites_removeStaticHost_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
238
- mutation_sites_removeStaticHost_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
238
+ mutation_sites_removeStaticHost_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
239
239
  mutation_sites_removeStaticHost_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
240
240
  mutation_sites_removeStaticHost_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
241
241
  mutation_sites_removeStaticHost_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -246,9 +246,9 @@ def mutation_sites_parse(mutation_subparsers):
246
246
  help='startSiteUpgrade() sites operation',
247
247
  usage=get_help("mutation_sites_startSiteUpgrade"))
248
248
 
249
- mutation_sites_startSiteUpgrade_parser.add_argument('json', help='Variables in JSON format.')
249
+ mutation_sites_startSiteUpgrade_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
250
250
  mutation_sites_startSiteUpgrade_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
251
- mutation_sites_startSiteUpgrade_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
251
+ mutation_sites_startSiteUpgrade_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
252
252
  mutation_sites_startSiteUpgrade_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
253
253
  mutation_sites_startSiteUpgrade_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
254
254
  mutation_sites_startSiteUpgrade_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -259,9 +259,9 @@ def mutation_sites_parse(mutation_subparsers):
259
259
  help='updateBgpPeer() sites operation',
260
260
  usage=get_help("mutation_sites_updateBgpPeer"))
261
261
 
262
- mutation_sites_updateBgpPeer_parser.add_argument('json', help='Variables in JSON format.')
262
+ mutation_sites_updateBgpPeer_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
263
263
  mutation_sites_updateBgpPeer_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
264
- mutation_sites_updateBgpPeer_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
264
+ mutation_sites_updateBgpPeer_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
265
265
  mutation_sites_updateBgpPeer_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
266
266
  mutation_sites_updateBgpPeer_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
267
267
  mutation_sites_updateBgpPeer_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -272,9 +272,9 @@ def mutation_sites_parse(mutation_subparsers):
272
272
  help='updateCloudInterconnectPhysicalConnection() sites operation',
273
273
  usage=get_help("mutation_sites_updateCloudInterconnectPhysicalConnection"))
274
274
 
275
- mutation_sites_updateCloudInterconnectPhysicalConnection_parser.add_argument('json', help='Variables in JSON format.')
275
+ mutation_sites_updateCloudInterconnectPhysicalConnection_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
276
276
  mutation_sites_updateCloudInterconnectPhysicalConnection_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
277
- mutation_sites_updateCloudInterconnectPhysicalConnection_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
277
+ mutation_sites_updateCloudInterconnectPhysicalConnection_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
278
278
  mutation_sites_updateCloudInterconnectPhysicalConnection_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
279
279
  mutation_sites_updateCloudInterconnectPhysicalConnection_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
280
280
  mutation_sites_updateCloudInterconnectPhysicalConnection_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -285,9 +285,9 @@ def mutation_sites_parse(mutation_subparsers):
285
285
  help='updateHa() sites operation',
286
286
  usage=get_help("mutation_sites_updateHa"))
287
287
 
288
- mutation_sites_updateHa_parser.add_argument('json', help='Variables in JSON format.')
288
+ mutation_sites_updateHa_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
289
289
  mutation_sites_updateHa_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
290
- mutation_sites_updateHa_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
290
+ mutation_sites_updateHa_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
291
291
  mutation_sites_updateHa_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
292
292
  mutation_sites_updateHa_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
293
293
  mutation_sites_updateHa_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -298,9 +298,9 @@ def mutation_sites_parse(mutation_subparsers):
298
298
  help='updateIpsecIkeV2SiteGeneralDetails() sites operation',
299
299
  usage=get_help("mutation_sites_updateIpsecIkeV2SiteGeneralDetails"))
300
300
 
301
- mutation_sites_updateIpsecIkeV2SiteGeneralDetails_parser.add_argument('json', help='Variables in JSON format.')
301
+ mutation_sites_updateIpsecIkeV2SiteGeneralDetails_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
302
302
  mutation_sites_updateIpsecIkeV2SiteGeneralDetails_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
303
- mutation_sites_updateIpsecIkeV2SiteGeneralDetails_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
303
+ mutation_sites_updateIpsecIkeV2SiteGeneralDetails_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
304
304
  mutation_sites_updateIpsecIkeV2SiteGeneralDetails_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
305
305
  mutation_sites_updateIpsecIkeV2SiteGeneralDetails_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
306
306
  mutation_sites_updateIpsecIkeV2SiteGeneralDetails_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -311,9 +311,9 @@ def mutation_sites_parse(mutation_subparsers):
311
311
  help='updateIpsecIkeV2SiteTunnels() sites operation',
312
312
  usage=get_help("mutation_sites_updateIpsecIkeV2SiteTunnels"))
313
313
 
314
- mutation_sites_updateIpsecIkeV2SiteTunnels_parser.add_argument('json', help='Variables in JSON format.')
314
+ mutation_sites_updateIpsecIkeV2SiteTunnels_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
315
315
  mutation_sites_updateIpsecIkeV2SiteTunnels_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
316
- mutation_sites_updateIpsecIkeV2SiteTunnels_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
316
+ mutation_sites_updateIpsecIkeV2SiteTunnels_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
317
317
  mutation_sites_updateIpsecIkeV2SiteTunnels_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
318
318
  mutation_sites_updateIpsecIkeV2SiteTunnels_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
319
319
  mutation_sites_updateIpsecIkeV2SiteTunnels_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -324,9 +324,9 @@ def mutation_sites_parse(mutation_subparsers):
324
324
  help='updateNetworkRange() sites operation',
325
325
  usage=get_help("mutation_sites_updateNetworkRange"))
326
326
 
327
- mutation_sites_updateNetworkRange_parser.add_argument('json', help='Variables in JSON format.')
327
+ mutation_sites_updateNetworkRange_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
328
328
  mutation_sites_updateNetworkRange_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
329
- mutation_sites_updateNetworkRange_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
329
+ mutation_sites_updateNetworkRange_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
330
330
  mutation_sites_updateNetworkRange_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
331
331
  mutation_sites_updateNetworkRange_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
332
332
  mutation_sites_updateNetworkRange_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -337,9 +337,9 @@ def mutation_sites_parse(mutation_subparsers):
337
337
  help='updateSiteGeneralDetails() sites operation',
338
338
  usage=get_help("mutation_sites_updateSiteGeneralDetails"))
339
339
 
340
- mutation_sites_updateSiteGeneralDetails_parser.add_argument('json', help='Variables in JSON format.')
340
+ mutation_sites_updateSiteGeneralDetails_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
341
341
  mutation_sites_updateSiteGeneralDetails_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
342
- mutation_sites_updateSiteGeneralDetails_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
342
+ mutation_sites_updateSiteGeneralDetails_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
343
343
  mutation_sites_updateSiteGeneralDetails_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
344
344
  mutation_sites_updateSiteGeneralDetails_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
345
345
  mutation_sites_updateSiteGeneralDetails_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -350,9 +350,9 @@ def mutation_sites_parse(mutation_subparsers):
350
350
  help='updateSocketInterface() sites operation',
351
351
  usage=get_help("mutation_sites_updateSocketInterface"))
352
352
 
353
- mutation_sites_updateSocketInterface_parser.add_argument('json', help='Variables in JSON format.')
353
+ mutation_sites_updateSocketInterface_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
354
354
  mutation_sites_updateSocketInterface_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
355
- mutation_sites_updateSocketInterface_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
355
+ mutation_sites_updateSocketInterface_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
356
356
  mutation_sites_updateSocketInterface_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
357
357
  mutation_sites_updateSocketInterface_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
358
358
  mutation_sites_updateSocketInterface_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -363,9 +363,9 @@ def mutation_sites_parse(mutation_subparsers):
363
363
  help='updateStaticHost() sites operation',
364
364
  usage=get_help("mutation_sites_updateStaticHost"))
365
365
 
366
- mutation_sites_updateStaticHost_parser.add_argument('json', help='Variables in JSON format.')
366
+ mutation_sites_updateStaticHost_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
367
367
  mutation_sites_updateStaticHost_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
368
- mutation_sites_updateStaticHost_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
368
+ mutation_sites_updateStaticHost_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
369
369
  mutation_sites_updateStaticHost_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
370
370
  mutation_sites_updateStaticHost_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
371
371
  mutation_sites_updateStaticHost_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -12,9 +12,9 @@ def mutation_xdr_parse(mutation_subparsers):
12
12
  help='addStoryComment() xdr operation',
13
13
  usage=get_help("mutation_xdr_addStoryComment"))
14
14
 
15
- mutation_xdr_addStoryComment_parser.add_argument('json', help='Variables in JSON format.')
15
+ mutation_xdr_addStoryComment_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
16
16
  mutation_xdr_addStoryComment_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
17
- mutation_xdr_addStoryComment_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
17
+ mutation_xdr_addStoryComment_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
18
18
  mutation_xdr_addStoryComment_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
19
19
  mutation_xdr_addStoryComment_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
20
20
  mutation_xdr_addStoryComment_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -25,9 +25,9 @@ def mutation_xdr_parse(mutation_subparsers):
25
25
  help='analystFeedback() xdr operation',
26
26
  usage=get_help("mutation_xdr_analystFeedback"))
27
27
 
28
- mutation_xdr_analystFeedback_parser.add_argument('json', help='Variables in JSON format.')
28
+ mutation_xdr_analystFeedback_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
29
29
  mutation_xdr_analystFeedback_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
30
- mutation_xdr_analystFeedback_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
30
+ mutation_xdr_analystFeedback_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
31
31
  mutation_xdr_analystFeedback_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
32
32
  mutation_xdr_analystFeedback_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
33
33
  mutation_xdr_analystFeedback_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
@@ -38,9 +38,9 @@ def mutation_xdr_parse(mutation_subparsers):
38
38
  help='deleteStoryComment() xdr operation',
39
39
  usage=get_help("mutation_xdr_deleteStoryComment"))
40
40
 
41
- mutation_xdr_deleteStoryComment_parser.add_argument('json', help='Variables in JSON format.')
41
+ mutation_xdr_deleteStoryComment_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
42
42
  mutation_xdr_deleteStoryComment_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
43
- mutation_xdr_deleteStoryComment_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
43
+ mutation_xdr_deleteStoryComment_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
44
44
  mutation_xdr_deleteStoryComment_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
45
45
  mutation_xdr_deleteStoryComment_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
46
46
  mutation_xdr_deleteStoryComment_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')