catocli 2.0.2__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.
- catocli/Utils/clidriver.py +4 -1
- catocli/__init__.py +1 -1
- catocli/parsers/custom/__init__.py +4 -3
- catocli/parsers/custom/customLib.py +239 -1
- catocli/parsers/custom/export_rules/export_rules.py +1 -1
- catocli/parsers/custom/export_sites/export_sites.py +186 -54
- catocli/parsers/custom/import_rules_to_tf/__init__.py +1 -1
- catocli/parsers/custom/import_rules_to_tf/import_rules_to_tf.py +1 -137
- catocli/parsers/custom/import_sites_to_tf/__init__.py +45 -0
- catocli/parsers/custom/import_sites_to_tf/import_sites_to_tf.py +891 -0
- catocli/parsers/mutation_accountManagement/__init__.py +6 -6
- catocli/parsers/mutation_admin/__init__.py +6 -6
- catocli/parsers/mutation_container/__init__.py +2 -2
- catocli/parsers/mutation_hardware/__init__.py +2 -2
- catocli/parsers/mutation_policy/__init__.py +192 -192
- catocli/parsers/mutation_sandbox/__init__.py +4 -4
- catocli/parsers/mutation_site/__init__.py +56 -56
- catocli/parsers/mutation_sites/__init__.py +56 -56
- catocli/parsers/mutation_xdr/__init__.py +6 -6
- catocli/parsers/parserApiClient.py +36 -11
- catocli/parsers/query_accountBySubdomain/__init__.py +2 -2
- catocli/parsers/query_accountManagement/__init__.py +2 -2
- catocli/parsers/query_accountMetrics/__init__.py +2 -2
- catocli/parsers/query_accountRoles/__init__.py +2 -2
- catocli/parsers/query_accountSnapshot/__init__.py +2 -2
- catocli/parsers/query_admin/__init__.py +2 -2
- catocli/parsers/query_admins/__init__.py +2 -2
- catocli/parsers/query_appStats/__init__.py +2 -2
- catocli/parsers/query_appStatsTimeSeries/__init__.py +2 -2
- catocli/parsers/query_auditFeed/__init__.py +2 -2
- catocli/parsers/query_catalogs/__init__.py +2 -2
- catocli/parsers/query_container/__init__.py +2 -2
- catocli/parsers/query_devices/__init__.py +2 -2
- catocli/parsers/query_entityLookup/__init__.py +2 -2
- catocli/parsers/query_events/__init__.py +2 -2
- catocli/parsers/query_eventsFeed/__init__.py +2 -2
- catocli/parsers/query_eventsTimeSeries/__init__.py +2 -2
- catocli/parsers/query_hardware/__init__.py +2 -2
- catocli/parsers/query_hardwareManagement/__init__.py +2 -2
- catocli/parsers/query_licensing/__init__.py +2 -2
- catocli/parsers/query_policy/__init__.py +2 -2
- catocli/parsers/query_sandbox/__init__.py +2 -2
- catocli/parsers/query_site/__init__.py +2 -2
- catocli/parsers/query_siteLocation/__init__.py +2 -2
- catocli/parsers/query_subDomains/__init__.py +2 -2
- catocli/parsers/query_xdr/__init__.py +4 -4
- catocli/parsers/raw/README.md +4 -0
- catocli/parsers/raw/__init__.py +3 -2
- {catocli-2.0.2.dist-info → catocli-2.0.3.dist-info}/METADATA +1 -1
- {catocli-2.0.2.dist-info → catocli-2.0.3.dist-info}/RECORD +55 -53
- schema/catolib.py +14 -9
- {catocli-2.0.2.dist-info → catocli-2.0.3.dist-info}/LICENSE +0 -0
- {catocli-2.0.2.dist-info → catocli-2.0.3.dist-info}/WHEEL +0 -0
- {catocli-2.0.2.dist-info → catocli-2.0.3.dist-info}/entry_points.txt +0 -0
- {catocli-2.0.2.dist-info → catocli-2.0.3.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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.')
|
|
@@ -12,23 +12,38 @@ def createRequest(args, configuration):
|
|
|
12
12
|
instance = CallApi(ApiClient(configuration))
|
|
13
13
|
operationName = params["operation_name"]
|
|
14
14
|
operation = loadJSON("models/"+operationName+".json")
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
variablesObj = {}
|
|
16
|
+
if params["json"] and not params["t"]:
|
|
17
|
+
try:
|
|
18
|
+
variablesObj = json.loads(params["json"])
|
|
19
|
+
except ValueError as e:
|
|
20
|
+
print("ERROR: Query argument must be valid json in quotes. ",e,'\n\nExample: \'{"yourKey":"yourValue"}\'')
|
|
21
|
+
exit()
|
|
22
|
+
elif not params["t"] and params["json"] is None:
|
|
23
|
+
# Default to empty object if no json provided and not using -t flag
|
|
24
|
+
variablesObj = {}
|
|
20
25
|
if "accountId" in operation["args"]:
|
|
21
26
|
variablesObj["accountId"] = configuration.accountID
|
|
22
27
|
else:
|
|
23
28
|
variablesObj["accountID"] = configuration.accountID
|
|
24
|
-
|
|
29
|
+
if params["t"]==True:
|
|
30
|
+
# Skip validation when using -t flag
|
|
31
|
+
isOk = True
|
|
32
|
+
else:
|
|
33
|
+
isOk, invalidVars, message = validateArgs(variablesObj,operation)
|
|
25
34
|
if isOk==True:
|
|
26
35
|
body = generateGraphqlPayload(variablesObj,operation,operationName)
|
|
27
36
|
if params["t"]==True:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
37
|
+
# Load query from queryPayloads file
|
|
38
|
+
try:
|
|
39
|
+
queryPayloadFile = "queryPayloads/" + operationName + ".json"
|
|
40
|
+
queryPayload = loadJSON(queryPayloadFile)
|
|
41
|
+
if queryPayload and "query" in queryPayload:
|
|
42
|
+
print(queryPayload["query"])
|
|
43
|
+
else:
|
|
44
|
+
print("ERROR: Query not found in " + queryPayloadFile)
|
|
45
|
+
except Exception as e:
|
|
46
|
+
print("ERROR: Could not load query from " + queryPayloadFile + ": " + str(e))
|
|
32
47
|
return None
|
|
33
48
|
else:
|
|
34
49
|
try:
|
|
@@ -37,7 +52,13 @@ def createRequest(args, configuration):
|
|
|
37
52
|
return e
|
|
38
53
|
else:
|
|
39
54
|
print("ERROR: "+message,", ".join(invalidVars))
|
|
40
|
-
|
|
55
|
+
try:
|
|
56
|
+
queryPayloadFile = "queryPayloads/" + operationName + ".json"
|
|
57
|
+
queryPayload = loadJSON(queryPayloadFile)
|
|
58
|
+
print("\nExample: catocli "+operationName.replace(".", " "), json.dumps(queryPayload['variables']))
|
|
59
|
+
except Exception as e:
|
|
60
|
+
print("ERROR: Could not load query from " + queryPayloadFile + ": " + str(e))
|
|
61
|
+
|
|
41
62
|
def querySiteLocation(args, configuration):
|
|
42
63
|
params = vars(args)
|
|
43
64
|
operationName = params["operation_name"]
|
|
@@ -110,6 +131,9 @@ def querySiteLocation(args, configuration):
|
|
|
110
131
|
|
|
111
132
|
def createRawRequest(args, configuration):
|
|
112
133
|
params = vars(args)
|
|
134
|
+
# Handle endpoint override
|
|
135
|
+
if hasattr(args, 'endpoint') and args.endpoint:
|
|
136
|
+
configuration.host = args.endpoint
|
|
113
137
|
instance = CallApi(ApiClient(configuration))
|
|
114
138
|
isOk = False
|
|
115
139
|
try:
|
|
@@ -189,6 +213,7 @@ def validateArgs(variablesObj,operation):
|
|
|
189
213
|
isOk = False
|
|
190
214
|
invalidVars.append('"'+varName+'"')
|
|
191
215
|
message = "Invalid argument names. Looking for: "+", ".join(list(operation["operationArgs"].keys()))
|
|
216
|
+
|
|
192
217
|
if isOk==True:
|
|
193
218
|
for varName in operation["operationArgs"]:
|
|
194
219
|
if operation["operationArgs"][varName]["required"] and varName not in variablesObj:
|
|
@@ -6,9 +6,9 @@ def query_accountBySubdomain_parse(query_subparsers):
|
|
|
6
6
|
help='accountBySubdomain() query operation',
|
|
7
7
|
usage=get_help("query_accountBySubdomain"))
|
|
8
8
|
|
|
9
|
-
query_accountBySubdomain_parser.add_argument('json', help='Variables in JSON format.')
|
|
9
|
+
query_accountBySubdomain_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
10
10
|
query_accountBySubdomain_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
11
|
-
query_accountBySubdomain_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print
|
|
11
|
+
query_accountBySubdomain_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
12
12
|
query_accountBySubdomain_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
13
13
|
query_accountBySubdomain_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
14
14
|
query_accountBySubdomain_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
@@ -6,9 +6,9 @@ def query_accountManagement_parse(query_subparsers):
|
|
|
6
6
|
help='accountManagement() query operation',
|
|
7
7
|
usage=get_help("query_accountManagement"))
|
|
8
8
|
|
|
9
|
-
query_accountManagement_parser.add_argument('json', help='Variables in JSON format.')
|
|
9
|
+
query_accountManagement_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
10
10
|
query_accountManagement_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
11
|
-
query_accountManagement_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print
|
|
11
|
+
query_accountManagement_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
12
12
|
query_accountManagement_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
13
13
|
query_accountManagement_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
14
14
|
query_accountManagement_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
@@ -6,9 +6,9 @@ def query_accountMetrics_parse(query_subparsers):
|
|
|
6
6
|
help='accountMetrics() query operation',
|
|
7
7
|
usage=get_help("query_accountMetrics"))
|
|
8
8
|
|
|
9
|
-
query_accountMetrics_parser.add_argument('json', help='Variables in JSON format.')
|
|
9
|
+
query_accountMetrics_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
10
10
|
query_accountMetrics_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
11
|
-
query_accountMetrics_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print
|
|
11
|
+
query_accountMetrics_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
12
12
|
query_accountMetrics_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
13
13
|
query_accountMetrics_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
14
14
|
query_accountMetrics_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
@@ -6,9 +6,9 @@ def query_accountRoles_parse(query_subparsers):
|
|
|
6
6
|
help='accountRoles() query operation',
|
|
7
7
|
usage=get_help("query_accountRoles"))
|
|
8
8
|
|
|
9
|
-
query_accountRoles_parser.add_argument('json', help='Variables in JSON format.')
|
|
9
|
+
query_accountRoles_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
10
10
|
query_accountRoles_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
11
|
-
query_accountRoles_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print
|
|
11
|
+
query_accountRoles_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
12
12
|
query_accountRoles_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
13
13
|
query_accountRoles_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
14
14
|
query_accountRoles_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
@@ -6,9 +6,9 @@ def query_accountSnapshot_parse(query_subparsers):
|
|
|
6
6
|
help='accountSnapshot() query operation',
|
|
7
7
|
usage=get_help("query_accountSnapshot"))
|
|
8
8
|
|
|
9
|
-
query_accountSnapshot_parser.add_argument('json', help='Variables in JSON format.')
|
|
9
|
+
query_accountSnapshot_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
10
10
|
query_accountSnapshot_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
11
|
-
query_accountSnapshot_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print
|
|
11
|
+
query_accountSnapshot_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
12
12
|
query_accountSnapshot_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
13
13
|
query_accountSnapshot_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
14
14
|
query_accountSnapshot_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
@@ -6,9 +6,9 @@ def query_admin_parse(query_subparsers):
|
|
|
6
6
|
help='admin() query operation',
|
|
7
7
|
usage=get_help("query_admin"))
|
|
8
8
|
|
|
9
|
-
query_admin_parser.add_argument('json', help='Variables in JSON format.')
|
|
9
|
+
query_admin_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
10
10
|
query_admin_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
11
|
-
query_admin_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print
|
|
11
|
+
query_admin_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
12
12
|
query_admin_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
13
13
|
query_admin_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
14
14
|
query_admin_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
@@ -6,9 +6,9 @@ def query_admins_parse(query_subparsers):
|
|
|
6
6
|
help='admins() query operation',
|
|
7
7
|
usage=get_help("query_admins"))
|
|
8
8
|
|
|
9
|
-
query_admins_parser.add_argument('json', help='Variables in JSON format.')
|
|
9
|
+
query_admins_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
10
10
|
query_admins_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
11
|
-
query_admins_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print
|
|
11
|
+
query_admins_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
12
12
|
query_admins_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
13
13
|
query_admins_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
14
14
|
query_admins_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
@@ -6,9 +6,9 @@ def query_appStats_parse(query_subparsers):
|
|
|
6
6
|
help='appStats() query operation',
|
|
7
7
|
usage=get_help("query_appStats"))
|
|
8
8
|
|
|
9
|
-
query_appStats_parser.add_argument('json', help='Variables in JSON format.')
|
|
9
|
+
query_appStats_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
10
10
|
query_appStats_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
11
|
-
query_appStats_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print
|
|
11
|
+
query_appStats_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
12
12
|
query_appStats_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
13
13
|
query_appStats_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
14
14
|
query_appStats_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|