catocli 2.0.0__py3-none-any.whl → 2.0.2__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 +37 -5
- catocli/__init__.py +1 -1
- catocli/parsers/custom/__init__.py +3 -2
- catocli/parsers/custom/customLib.py +252 -1
- catocli/parsers/custom/export_rules/__init__.py +5 -1
- catocli/parsers/custom/export_rules/export_rules.py +31 -182
- catocli/parsers/custom/export_sites/__init__.py +20 -0
- catocli/parsers/custom/export_sites/export_sites.py +233 -0
- catocli/parsers/custom/import_rules_to_tf/__init__.py +2 -2
- catocli/parsers/custom/import_rules_to_tf/import_rules_to_tf.py +21 -11
- catocli/parsers/mutation_accountManagement/__init__.py +15 -18
- catocli/parsers/mutation_admin/__init__.py +15 -18
- catocli/parsers/mutation_container/__init__.py +5 -6
- catocli/parsers/mutation_hardware/__init__.py +5 -6
- catocli/parsers/mutation_policy/__init__.py +582 -504
- catocli/parsers/mutation_policy_terminalServer/README.md +7 -0
- catocli/parsers/mutation_policy_terminalServer_addRule/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_addSection/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_createPolicyRevision/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_discardPolicyRevision/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_moveRule/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_moveSection/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_publishPolicyRevision/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_removeRule/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_removeSection/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_updatePolicy/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_updateRule/README.md +18 -0
- catocli/parsers/mutation_policy_terminalServer_updateSection/README.md +18 -0
- catocli/parsers/mutation_sandbox/__init__.py +10 -12
- catocli/parsers/mutation_site/__init__.py +164 -150
- catocli/parsers/mutation_site_addSocketAddOnCard/README.md +17 -0
- catocli/parsers/mutation_site_removeSocketAddOnCard/README.md +17 -0
- catocli/parsers/mutation_site_startSiteUpgrade/README.md +17 -0
- catocli/parsers/mutation_sites/__init__.py +164 -150
- catocli/parsers/mutation_sites_addSocketAddOnCard/README.md +17 -0
- catocli/parsers/mutation_sites_removeSocketAddOnCard/README.md +17 -0
- catocli/parsers/mutation_sites_startSiteUpgrade/README.md +17 -0
- catocli/parsers/mutation_xdr/__init__.py +15 -18
- catocli/parsers/query_accountBySubdomain/__init__.py +5 -6
- catocli/parsers/query_accountManagement/__init__.py +5 -6
- catocli/parsers/query_accountMetrics/__init__.py +5 -6
- catocli/parsers/query_accountRoles/__init__.py +5 -6
- catocli/parsers/query_accountSnapshot/__init__.py +5 -6
- catocli/parsers/query_admin/__init__.py +5 -6
- catocli/parsers/query_admins/__init__.py +5 -6
- catocli/parsers/query_appStats/__init__.py +5 -6
- catocli/parsers/query_appStatsTimeSeries/__init__.py +5 -6
- catocli/parsers/query_auditFeed/__init__.py +5 -6
- catocli/parsers/query_catalogs/__init__.py +5 -6
- catocli/parsers/query_container/__init__.py +5 -6
- catocli/parsers/query_devices/README.md +2 -1
- catocli/parsers/query_devices/__init__.py +5 -6
- catocli/parsers/query_entityLookup/__init__.py +5 -6
- catocli/parsers/query_events/__init__.py +5 -6
- catocli/parsers/query_eventsFeed/README.md +1 -1
- catocli/parsers/query_eventsFeed/__init__.py +5 -6
- catocli/parsers/query_eventsTimeSeries/__init__.py +5 -6
- catocli/parsers/query_hardware/__init__.py +5 -6
- catocli/parsers/query_hardwareManagement/__init__.py +5 -6
- catocli/parsers/query_licensing/__init__.py +5 -6
- catocli/parsers/query_policy/README.md +2 -1
- catocli/parsers/query_policy/__init__.py +5 -6
- catocli/parsers/query_sandbox/__init__.py +5 -6
- catocli/parsers/query_site/README.md +2 -1
- catocli/parsers/query_site/__init__.py +5 -6
- catocli/parsers/query_siteLocation/__init__.py +3 -7
- catocli/parsers/query_subDomains/__init__.py +5 -6
- catocli/parsers/query_xdr/__init__.py +10 -12
- catocli/parsers/raw/__init__.py +2 -0
- {catocli-2.0.0.dist-info → catocli-2.0.2.dist-info}/METADATA +1 -1
- {catocli-2.0.0.dist-info → catocli-2.0.2.dist-info}/RECORD +104 -65
- graphql_client/api/call_api.py +12 -6
- models/mutation.policy.remotePortFwd.updateRule.json +6 -6
- models/mutation.policy.terminalServer.addRule.json +2403 -0
- models/mutation.policy.terminalServer.addSection.json +1358 -0
- models/mutation.policy.terminalServer.createPolicyRevision.json +1873 -0
- models/mutation.policy.terminalServer.discardPolicyRevision.json +1807 -0
- models/mutation.policy.terminalServer.moveRule.json +1605 -0
- models/mutation.policy.terminalServer.moveSection.json +1259 -0
- models/mutation.policy.terminalServer.publishPolicyRevision.json +1864 -0
- models/mutation.policy.terminalServer.removeRule.json +1253 -0
- models/mutation.policy.terminalServer.removeSection.json +958 -0
- models/mutation.policy.terminalServer.updatePolicy.json +1883 -0
- models/mutation.policy.terminalServer.updateRule.json +2096 -0
- models/mutation.policy.terminalServer.updateSection.json +1111 -0
- models/mutation.site.addSocketAddOnCard.json +1050 -0
- models/mutation.site.removeSocketAddOnCard.json +786 -0
- models/mutation.site.startSiteUpgrade.json +802 -0
- models/mutation.sites.addSocketAddOnCard.json +1050 -0
- models/mutation.sites.removeSocketAddOnCard.json +786 -0
- models/mutation.sites.startSiteUpgrade.json +802 -0
- models/query.devices.json +311 -2
- models/query.events.json +48 -0
- models/query.eventsFeed.json +12 -0
- models/query.eventsTimeSeries.json +36 -0
- models/query.licensing.json +21815 -10093
- models/query.policy.json +1898 -305
- models/query.site.json +225 -0
- models/query.siteLocation.json +97190 -295396
- schema/catolib.py +52 -24
- {catocli-2.0.0.dist-info → catocli-2.0.2.dist-info}/LICENSE +0 -0
- {catocli-2.0.0.dist-info → catocli-2.0.2.dist-info}/WHEEL +0 -0
- {catocli-2.0.0.dist-info → catocli-2.0.2.dist-info}/entry_points.txt +0 -0
- {catocli-2.0.0.dist-info → catocli-2.0.2.dist-info}/top_level.txt +0 -0
|
@@ -60,14 +60,13 @@ def extract_rules_and_sections(policy_data):
|
|
|
60
60
|
})
|
|
61
61
|
|
|
62
62
|
# Extract sections
|
|
63
|
-
section_ids = policy_data.get('section_ids', {})
|
|
64
63
|
for section in policy_data.get('sections', []):
|
|
65
64
|
if section.get('section_name'):
|
|
66
65
|
sections.append({
|
|
67
66
|
'section_name': section['section_name'],
|
|
68
67
|
'section_index': section.get('section_index', 0),
|
|
69
|
-
'section_id':
|
|
70
|
-
})
|
|
68
|
+
'section_id': section.get('section_id', '')
|
|
69
|
+
})
|
|
71
70
|
return rules, sections
|
|
72
71
|
|
|
73
72
|
|
|
@@ -123,8 +122,8 @@ def find_rule_index(rules, rule_name):
|
|
|
123
122
|
return None
|
|
124
123
|
|
|
125
124
|
|
|
126
|
-
def import_sections(sections, module_name,
|
|
127
|
-
|
|
125
|
+
def import_sections(sections, module_name, resource_type,
|
|
126
|
+
resource_name="sections", verbose=False):
|
|
128
127
|
"""Import all sections"""
|
|
129
128
|
print("\nStarting section imports...")
|
|
130
129
|
total_sections = len(sections)
|
|
@@ -135,7 +134,7 @@ def import_sections(sections, module_name, verbose=False,
|
|
|
135
134
|
section_id = section['section_id']
|
|
136
135
|
section_name = section['section_name']
|
|
137
136
|
section_index = section['section_index']
|
|
138
|
-
resource_address = f'{module_name}.{resource_type}.{resource_name}["{
|
|
137
|
+
resource_address = f'{module_name}.{resource_type}.{resource_name}["{section_name}"]'
|
|
139
138
|
print(f"\n[{i+1}/{total_sections}] Section: {section_name} (index: {section_index})")
|
|
140
139
|
|
|
141
140
|
# For sections, we use the section name as the ID since that's how Cato identifies them
|
|
@@ -166,7 +165,7 @@ def import_rules(rules, module_name, verbose=False,
|
|
|
166
165
|
terraform_key = sanitize_name_for_terraform(rule_name)
|
|
167
166
|
|
|
168
167
|
# Use array index syntax instead of rule ID
|
|
169
|
-
resource_address = f'{module_name}.{resource_type}.{resource_name}["{str(
|
|
168
|
+
resource_address = f'{module_name}.{resource_type}.{resource_name}["{str(rule_name)}"]'
|
|
170
169
|
print(f"\n[{i+1}/{total_rules}] Rule: {rule_name} (index: {rule_index})")
|
|
171
170
|
|
|
172
171
|
success, stdout, stderr = run_terraform_import(resource_address, rule_id, verbose=verbose)
|
|
@@ -376,7 +375,7 @@ def import_if_rules_to_tf(args, configuration):
|
|
|
376
375
|
|
|
377
376
|
# Import sections first (if not skipped)
|
|
378
377
|
if not args.rules_only and sections:
|
|
379
|
-
successful, failed = import_sections(sections, module_name=args.module_name, verbose=args.verbose)
|
|
378
|
+
successful, failed = import_sections(sections, module_name=args.module_name, resource_type="cato_if_section", verbose=args.verbose)
|
|
380
379
|
total_successful += successful
|
|
381
380
|
total_failed += failed
|
|
382
381
|
|
|
@@ -439,7 +438,10 @@ def import_wf_sections(sections, module_name, verbose=False,
|
|
|
439
438
|
section_id = section['section_id']
|
|
440
439
|
section_name = section['section_name']
|
|
441
440
|
section_index = section['section_index']
|
|
442
|
-
|
|
441
|
+
# Add module. prefix if not present
|
|
442
|
+
if not module_name.startswith('module.'):
|
|
443
|
+
module_name = f'module.{module_name}'
|
|
444
|
+
resource_address = f'{module_name}.{resource_type}.{resource_name}["{section_name}"]'
|
|
443
445
|
print(f"\n[{i+1}/{total_sections}] Section: {section_name} (index: {section_index})")
|
|
444
446
|
|
|
445
447
|
# For sections, we use the section name as the ID since that's how Cato identifies them
|
|
@@ -469,8 +471,12 @@ def import_wf_rules(rules, module_name, verbose=False,
|
|
|
469
471
|
rule_index = find_rule_index(rules, rule_name)
|
|
470
472
|
terraform_key = sanitize_name_for_terraform(rule_name)
|
|
471
473
|
|
|
474
|
+
# Add module. prefix if not present
|
|
475
|
+
if not module_name.startswith('module.'):
|
|
476
|
+
module_name = f'module.{module_name}'
|
|
477
|
+
|
|
472
478
|
# Use array index syntax instead of rule ID
|
|
473
|
-
resource_address = f'{module_name}.{resource_type}.{resource_name}["{str(
|
|
479
|
+
resource_address = f'{module_name}.{resource_type}.{resource_name}["{str(rule_name)}"]'
|
|
474
480
|
print(f"\n[{i+1}/{total_rules}] Rule: {rule_name} (index: {rule_index})")
|
|
475
481
|
|
|
476
482
|
success, stdout, stderr = run_terraform_import(resource_address, rule_id, verbose=verbose)
|
|
@@ -519,8 +525,12 @@ def import_wf_rules_to_tf(args, configuration):
|
|
|
519
525
|
print(" No rules or sections found. Exiting.")
|
|
520
526
|
return [{"success": False, "error": "No rules or sections found"}]
|
|
521
527
|
|
|
528
|
+
# Add module. prefix if not present
|
|
529
|
+
module_name = args.module_name
|
|
530
|
+
if not module_name.startswith('module.'):
|
|
531
|
+
module_name = f'module.{module_name}'
|
|
522
532
|
# Validate Terraform environment before proceeding
|
|
523
|
-
validate_terraform_environment(
|
|
533
|
+
validate_terraform_environment(module_name, verbose=args.verbose)
|
|
524
534
|
|
|
525
535
|
# Ask for confirmation (unless auto-approved)
|
|
526
536
|
if not args.rules_only and not args.sections_only:
|
|
@@ -14,12 +14,11 @@ def mutation_accountManagement_parse(mutation_subparsers):
|
|
|
14
14
|
|
|
15
15
|
mutation_accountManagement_addAccount_parser.add_argument('json', help='Variables in JSON format.')
|
|
16
16
|
mutation_accountManagement_addAccount_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
17
|
-
mutation_accountManagement_addAccount_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
18
|
-
|
|
19
|
-
mutation_accountManagement_addAccount_parser.add_argument('-
|
|
20
|
-
|
|
21
|
-
mutation_accountManagement_addAccount_parser.add_argument('-
|
|
22
|
-
help='Pretty print')
|
|
17
|
+
mutation_accountManagement_addAccount_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
|
|
18
|
+
mutation_accountManagement_addAccount_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
19
|
+
mutation_accountManagement_addAccount_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
20
|
+
mutation_accountManagement_addAccount_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
21
|
+
mutation_accountManagement_addAccount_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
23
22
|
mutation_accountManagement_addAccount_parser.set_defaults(func=createRequest,operation_name='mutation.accountManagement.addAccount')
|
|
24
23
|
|
|
25
24
|
mutation_accountManagement_removeAccount_parser = mutation_accountManagement_subparsers.add_parser('removeAccount',
|
|
@@ -28,12 +27,11 @@ def mutation_accountManagement_parse(mutation_subparsers):
|
|
|
28
27
|
|
|
29
28
|
mutation_accountManagement_removeAccount_parser.add_argument('json', help='Variables in JSON format.')
|
|
30
29
|
mutation_accountManagement_removeAccount_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
31
|
-
mutation_accountManagement_removeAccount_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
32
|
-
|
|
33
|
-
mutation_accountManagement_removeAccount_parser.add_argument('-
|
|
34
|
-
|
|
35
|
-
mutation_accountManagement_removeAccount_parser.add_argument('-
|
|
36
|
-
help='Pretty print')
|
|
30
|
+
mutation_accountManagement_removeAccount_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
|
|
31
|
+
mutation_accountManagement_removeAccount_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
32
|
+
mutation_accountManagement_removeAccount_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
33
|
+
mutation_accountManagement_removeAccount_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
34
|
+
mutation_accountManagement_removeAccount_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
37
35
|
mutation_accountManagement_removeAccount_parser.set_defaults(func=createRequest,operation_name='mutation.accountManagement.removeAccount')
|
|
38
36
|
|
|
39
37
|
mutation_accountManagement_updateAccount_parser = mutation_accountManagement_subparsers.add_parser('updateAccount',
|
|
@@ -42,10 +40,9 @@ def mutation_accountManagement_parse(mutation_subparsers):
|
|
|
42
40
|
|
|
43
41
|
mutation_accountManagement_updateAccount_parser.add_argument('json', help='Variables in JSON format.')
|
|
44
42
|
mutation_accountManagement_updateAccount_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
45
|
-
mutation_accountManagement_updateAccount_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
46
|
-
|
|
47
|
-
mutation_accountManagement_updateAccount_parser.add_argument('-
|
|
48
|
-
|
|
49
|
-
mutation_accountManagement_updateAccount_parser.add_argument('-
|
|
50
|
-
help='Pretty print')
|
|
43
|
+
mutation_accountManagement_updateAccount_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
|
|
44
|
+
mutation_accountManagement_updateAccount_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
45
|
+
mutation_accountManagement_updateAccount_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
46
|
+
mutation_accountManagement_updateAccount_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
47
|
+
mutation_accountManagement_updateAccount_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
51
48
|
mutation_accountManagement_updateAccount_parser.set_defaults(func=createRequest,operation_name='mutation.accountManagement.updateAccount')
|
|
@@ -14,12 +14,11 @@ def mutation_admin_parse(mutation_subparsers):
|
|
|
14
14
|
|
|
15
15
|
mutation_admin_addAdmin_parser.add_argument('json', help='Variables in JSON format.')
|
|
16
16
|
mutation_admin_addAdmin_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
17
|
-
mutation_admin_addAdmin_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
18
|
-
|
|
19
|
-
mutation_admin_addAdmin_parser.add_argument('-
|
|
20
|
-
|
|
21
|
-
mutation_admin_addAdmin_parser.add_argument('-
|
|
22
|
-
help='Pretty print')
|
|
17
|
+
mutation_admin_addAdmin_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
|
|
18
|
+
mutation_admin_addAdmin_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
19
|
+
mutation_admin_addAdmin_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
20
|
+
mutation_admin_addAdmin_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
21
|
+
mutation_admin_addAdmin_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
23
22
|
mutation_admin_addAdmin_parser.set_defaults(func=createRequest,operation_name='mutation.admin.addAdmin')
|
|
24
23
|
|
|
25
24
|
mutation_admin_removeAdmin_parser = mutation_admin_subparsers.add_parser('removeAdmin',
|
|
@@ -28,12 +27,11 @@ def mutation_admin_parse(mutation_subparsers):
|
|
|
28
27
|
|
|
29
28
|
mutation_admin_removeAdmin_parser.add_argument('json', help='Variables in JSON format.')
|
|
30
29
|
mutation_admin_removeAdmin_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
31
|
-
mutation_admin_removeAdmin_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
32
|
-
|
|
33
|
-
mutation_admin_removeAdmin_parser.add_argument('-
|
|
34
|
-
|
|
35
|
-
mutation_admin_removeAdmin_parser.add_argument('-
|
|
36
|
-
help='Pretty print')
|
|
30
|
+
mutation_admin_removeAdmin_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
|
|
31
|
+
mutation_admin_removeAdmin_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
32
|
+
mutation_admin_removeAdmin_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
33
|
+
mutation_admin_removeAdmin_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
34
|
+
mutation_admin_removeAdmin_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
37
35
|
mutation_admin_removeAdmin_parser.set_defaults(func=createRequest,operation_name='mutation.admin.removeAdmin')
|
|
38
36
|
|
|
39
37
|
mutation_admin_updateAdmin_parser = mutation_admin_subparsers.add_parser('updateAdmin',
|
|
@@ -42,10 +40,9 @@ def mutation_admin_parse(mutation_subparsers):
|
|
|
42
40
|
|
|
43
41
|
mutation_admin_updateAdmin_parser.add_argument('json', help='Variables in JSON format.')
|
|
44
42
|
mutation_admin_updateAdmin_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
45
|
-
mutation_admin_updateAdmin_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
46
|
-
|
|
47
|
-
mutation_admin_updateAdmin_parser.add_argument('-
|
|
48
|
-
|
|
49
|
-
mutation_admin_updateAdmin_parser.add_argument('-
|
|
50
|
-
help='Pretty print')
|
|
43
|
+
mutation_admin_updateAdmin_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
|
|
44
|
+
mutation_admin_updateAdmin_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
45
|
+
mutation_admin_updateAdmin_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
46
|
+
mutation_admin_updateAdmin_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
47
|
+
mutation_admin_updateAdmin_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
51
48
|
mutation_admin_updateAdmin_parser.set_defaults(func=createRequest,operation_name='mutation.admin.updateAdmin')
|
|
@@ -14,10 +14,9 @@ def mutation_container_parse(mutation_subparsers):
|
|
|
14
14
|
|
|
15
15
|
mutation_container_delete_parser.add_argument('json', help='Variables in JSON format.')
|
|
16
16
|
mutation_container_delete_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
17
|
-
mutation_container_delete_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
18
|
-
|
|
19
|
-
mutation_container_delete_parser.add_argument('-
|
|
20
|
-
|
|
21
|
-
mutation_container_delete_parser.add_argument('-
|
|
22
|
-
help='Pretty print')
|
|
17
|
+
mutation_container_delete_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
|
|
18
|
+
mutation_container_delete_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
19
|
+
mutation_container_delete_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
20
|
+
mutation_container_delete_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
21
|
+
mutation_container_delete_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
23
22
|
mutation_container_delete_parser.set_defaults(func=createRequest,operation_name='mutation.container.delete')
|
|
@@ -14,10 +14,9 @@ def mutation_hardware_parse(mutation_subparsers):
|
|
|
14
14
|
|
|
15
15
|
mutation_hardware_updateHardwareShipping_parser.add_argument('json', help='Variables in JSON format.')
|
|
16
16
|
mutation_hardware_updateHardwareShipping_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
17
|
-
mutation_hardware_updateHardwareShipping_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
18
|
-
|
|
19
|
-
mutation_hardware_updateHardwareShipping_parser.add_argument('-
|
|
20
|
-
|
|
21
|
-
mutation_hardware_updateHardwareShipping_parser.add_argument('-
|
|
22
|
-
help='Pretty print')
|
|
17
|
+
mutation_hardware_updateHardwareShipping_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
|
|
18
|
+
mutation_hardware_updateHardwareShipping_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
19
|
+
mutation_hardware_updateHardwareShipping_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
20
|
+
mutation_hardware_updateHardwareShipping_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
21
|
+
mutation_hardware_updateHardwareShipping_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
23
22
|
mutation_hardware_updateHardwareShipping_parser.set_defaults(func=createRequest,operation_name='mutation.hardware.updateHardwareShipping')
|