catocli 2.0.5__py3-none-any.whl → 2.1.0__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 +10 -0
- catocli/__init__.py +1 -1
- catocli/parsers/custom/export_sites/export_sites.py +18 -1
- catocli/parsers/custom/import_sites_to_tf/__init__.py +3 -1
- catocli/parsers/custom/import_sites_to_tf/import_sites_to_tf.py +71 -5
- catocli/parsers/mutation_accountManagement/__init__.py +13 -0
- catocli/parsers/mutation_accountManagement_disableAccount/README.md +16 -0
- catocli/parsers/mutation_groups/README.md +7 -0
- catocli/parsers/mutation_groups/__init__.py +48 -0
- catocli/parsers/mutation_groups_createGroup/README.md +18 -0
- catocli/parsers/mutation_groups_deleteGroup/README.md +18 -0
- catocli/parsers/mutation_groups_updateGroup/README.md +18 -0
- catocli/parsers/mutation_site/__init__.py +104 -0
- catocli/parsers/mutation_site_assignSiteBwLicense/README.md +17 -0
- catocli/parsers/mutation_site_removeSecondaryAwsVSocket/README.md +17 -0
- catocli/parsers/mutation_site_removeSecondaryAzureVSocket/README.md +17 -0
- catocli/parsers/mutation_site_removeSiteBwLicense/README.md +17 -0
- catocli/parsers/mutation_site_replaceSiteBwLicense/README.md +17 -0
- catocli/parsers/mutation_site_updateSecondaryAwsVSocket/README.md +17 -0
- catocli/parsers/mutation_site_updateSecondaryAzureVSocket/README.md +17 -0
- catocli/parsers/mutation_site_updateSiteBwLicense/README.md +17 -0
- catocli/parsers/mutation_site_updateSiteGeneralDetails/README.md +1 -1
- catocli/parsers/mutation_sites/__init__.py +104 -0
- catocli/parsers/mutation_sites_assignSiteBwLicense/README.md +17 -0
- catocli/parsers/mutation_sites_removeSecondaryAwsVSocket/README.md +17 -0
- catocli/parsers/mutation_sites_removeSecondaryAzureVSocket/README.md +17 -0
- catocli/parsers/mutation_sites_removeSiteBwLicense/README.md +17 -0
- catocli/parsers/mutation_sites_replaceSiteBwLicense/README.md +17 -0
- catocli/parsers/mutation_sites_updateSecondaryAwsVSocket/README.md +17 -0
- catocli/parsers/mutation_sites_updateSecondaryAzureVSocket/README.md +17 -0
- catocli/parsers/mutation_sites_updateSiteBwLicense/README.md +17 -0
- catocli/parsers/mutation_sites_updateSiteGeneralDetails/README.md +1 -1
- catocli/parsers/parserApiClient.py +17 -8
- catocli/parsers/query_eventsFeed/README.md +1 -1
- catocli/parsers/query_groups/README.md +7 -0
- catocli/parsers/query_groups/__init__.py +54 -0
- catocli/parsers/query_groups_group/README.md +7 -0
- catocli/parsers/query_groups_groupList/README.md +18 -0
- catocli/parsers/query_groups_group_members/README.md +18 -0
- catocli/parsers/query_groups_whereUsed/README.md +17 -0
- catocli/parsers/query_popLocations/README.md +17 -0
- catocli/parsers/query_popLocations/__init__.py +16 -0
- catocli/parsers/query_site/__init__.py +26 -0
- catocli/parsers/query_site_secondaryAwsVSocket/README.md +17 -0
- catocli/parsers/query_site_secondaryAzureVSocket/README.md +17 -0
- catocli/parsers/query_socketPortMetrics/README.md +23 -0
- catocli/parsers/query_socketPortMetrics/__init__.py +16 -0
- catocli/parsers/query_socketPortMetricsTimeSeries/README.md +24 -0
- catocli/parsers/query_socketPortMetricsTimeSeries/__init__.py +16 -0
- {catocli-2.0.5.dist-info → catocli-2.1.0.dist-info}/METADATA +3 -2
- {catocli-2.0.5.dist-info → catocli-2.1.0.dist-info}/RECORD +249 -297
- {catocli-2.0.5.dist-info → catocli-2.1.0.dist-info}/WHEEL +1 -1
- {catocli-2.0.5.dist-info → catocli-2.1.0.dist-info}/top_level.txt +0 -2
- models/mutation.accountManagement.addAccount.json +97 -0
- models/mutation.accountManagement.disableAccount.json +545 -0
- models/mutation.accountManagement.removeAccount.json +102 -3
- models/mutation.accountManagement.updateAccount.json +97 -0
- models/mutation.admin.addAdmin.json +6 -9
- models/mutation.container.delete.json +2 -2
- models/mutation.container.fqdn.addValues.json +3 -3
- models/mutation.container.fqdn.createFromFile.json +3 -3
- models/mutation.container.fqdn.removeValues.json +3 -3
- models/mutation.container.fqdn.updateFromFile.json +3 -3
- models/mutation.container.ipAddressRange.addValues.json +3 -3
- models/mutation.container.ipAddressRange.createFromFile.json +3 -3
- models/mutation.container.ipAddressRange.removeValues.json +3 -3
- models/mutation.container.ipAddressRange.updateFromFile.json +3 -3
- models/mutation.groups.createGroup.json +3178 -0
- models/mutation.groups.deleteGroup.json +2758 -0
- models/mutation.groups.updateGroup.json +4429 -0
- models/mutation.hardware.updateHardwareShipping.json +30 -10
- models/mutation.policy.appTenantRestriction.addRule.json +33 -33
- models/mutation.policy.appTenantRestriction.addSection.json +4 -4
- models/mutation.policy.appTenantRestriction.createPolicyRevision.json +33 -33
- models/mutation.policy.appTenantRestriction.discardPolicyRevision.json +33 -33
- models/mutation.policy.appTenantRestriction.moveRule.json +27 -27
- models/mutation.policy.appTenantRestriction.moveSection.json +4 -4
- models/mutation.policy.appTenantRestriction.publishPolicyRevision.json +33 -33
- models/mutation.policy.appTenantRestriction.removeRule.json +27 -27
- models/mutation.policy.appTenantRestriction.removeSection.json +4 -4
- models/mutation.policy.appTenantRestriction.updatePolicy.json +33 -33
- models/mutation.policy.appTenantRestriction.updateRule.json +33 -33
- models/mutation.policy.appTenantRestriction.updateSection.json +4 -4
- models/mutation.policy.dynamicIpAllocation.addRule.json +12 -12
- models/mutation.policy.dynamicIpAllocation.addSection.json +4 -4
- models/mutation.policy.dynamicIpAllocation.createPolicyRevision.json +18 -18
- models/mutation.policy.dynamicIpAllocation.discardPolicyRevision.json +18 -18
- models/mutation.policy.dynamicIpAllocation.moveRule.json +12 -12
- models/mutation.policy.dynamicIpAllocation.moveSection.json +4 -4
- models/mutation.policy.dynamicIpAllocation.publishPolicyRevision.json +18 -18
- models/mutation.policy.dynamicIpAllocation.removeRule.json +12 -12
- models/mutation.policy.dynamicIpAllocation.removeSection.json +4 -4
- models/mutation.policy.dynamicIpAllocation.updatePolicy.json +18 -18
- models/mutation.policy.dynamicIpAllocation.updateRule.json +12 -12
- models/mutation.policy.dynamicIpAllocation.updateSection.json +4 -4
- models/mutation.policy.internetFirewall.addRule.json +141 -141
- models/mutation.policy.internetFirewall.addSection.json +4 -4
- models/mutation.policy.internetFirewall.createPolicyRevision.json +102 -102
- models/mutation.policy.internetFirewall.discardPolicyRevision.json +102 -102
- models/mutation.policy.internetFirewall.moveRule.json +96 -96
- models/mutation.policy.internetFirewall.moveSection.json +4 -4
- models/mutation.policy.internetFirewall.publishPolicyRevision.json +102 -102
- models/mutation.policy.internetFirewall.removeRule.json +96 -96
- models/mutation.policy.internetFirewall.removeSection.json +4 -4
- models/mutation.policy.internetFirewall.updatePolicy.json +102 -102
- models/mutation.policy.internetFirewall.updateRule.json +141 -141
- models/mutation.policy.internetFirewall.updateSection.json +4 -4
- models/mutation.policy.remotePortFwd.addRule.json +21 -21
- models/mutation.policy.remotePortFwd.addSection.json +4 -4
- models/mutation.policy.remotePortFwd.createPolicyRevision.json +24 -24
- models/mutation.policy.remotePortFwd.discardPolicyRevision.json +24 -24
- models/mutation.policy.remotePortFwd.moveRule.json +18 -18
- models/mutation.policy.remotePortFwd.moveSection.json +4 -4
- models/mutation.policy.remotePortFwd.publishPolicyRevision.json +24 -24
- models/mutation.policy.remotePortFwd.removeRule.json +18 -18
- models/mutation.policy.remotePortFwd.removeSection.json +4 -4
- models/mutation.policy.remotePortFwd.updatePolicy.json +24 -24
- models/mutation.policy.remotePortFwd.updateRule.json +21 -21
- models/mutation.policy.remotePortFwd.updateSection.json +4 -4
- models/mutation.policy.socketLan.addRule.json +97 -97
- models/mutation.policy.socketLan.addSection.json +4 -4
- models/mutation.policy.socketLan.createPolicyRevision.json +91 -91
- models/mutation.policy.socketLan.discardPolicyRevision.json +91 -91
- models/mutation.policy.socketLan.moveRule.json +85 -85
- models/mutation.policy.socketLan.moveSection.json +4 -4
- models/mutation.policy.socketLan.publishPolicyRevision.json +91 -91
- models/mutation.policy.socketLan.removeRule.json +85 -85
- models/mutation.policy.socketLan.removeSection.json +4 -4
- models/mutation.policy.socketLan.updatePolicy.json +91 -91
- models/mutation.policy.socketLan.updateRule.json +97 -97
- models/mutation.policy.socketLan.updateSection.json +4 -4
- models/mutation.policy.terminalServer.addRule.json +7 -7
- models/mutation.policy.terminalServer.addSection.json +4 -4
- models/mutation.policy.terminalServer.createPolicyRevision.json +13 -13
- models/mutation.policy.terminalServer.discardPolicyRevision.json +13 -13
- models/mutation.policy.terminalServer.moveRule.json +7 -7
- models/mutation.policy.terminalServer.moveSection.json +4 -4
- models/mutation.policy.terminalServer.publishPolicyRevision.json +13 -13
- models/mutation.policy.terminalServer.removeRule.json +7 -7
- models/mutation.policy.terminalServer.removeSection.json +4 -4
- models/mutation.policy.terminalServer.updatePolicy.json +13 -13
- models/mutation.policy.terminalServer.updateRule.json +7 -7
- models/mutation.policy.terminalServer.updateSection.json +4 -4
- models/mutation.policy.wanFirewall.addRule.json +157 -157
- models/mutation.policy.wanFirewall.addSection.json +4 -4
- models/mutation.policy.wanFirewall.createPolicyRevision.json +121 -121
- models/mutation.policy.wanFirewall.discardPolicyRevision.json +121 -121
- models/mutation.policy.wanFirewall.moveRule.json +115 -115
- models/mutation.policy.wanFirewall.moveSection.json +4 -4
- models/mutation.policy.wanFirewall.publishPolicyRevision.json +121 -121
- models/mutation.policy.wanFirewall.removeRule.json +115 -115
- models/mutation.policy.wanFirewall.removeSection.json +4 -4
- models/mutation.policy.wanFirewall.updatePolicy.json +121 -121
- models/mutation.policy.wanFirewall.updateRule.json +157 -157
- models/mutation.policy.wanFirewall.updateSection.json +4 -4
- models/mutation.policy.wanNetwork.addRule.json +103 -103
- models/mutation.policy.wanNetwork.addSection.json +4 -4
- models/mutation.policy.wanNetwork.createPolicyRevision.json +97 -97
- models/mutation.policy.wanNetwork.discardPolicyRevision.json +97 -97
- models/mutation.policy.wanNetwork.moveRule.json +91 -91
- models/mutation.policy.wanNetwork.moveSection.json +4 -4
- models/mutation.policy.wanNetwork.publishPolicyRevision.json +97 -97
- models/mutation.policy.wanNetwork.removeRule.json +91 -91
- models/mutation.policy.wanNetwork.removeSection.json +4 -4
- models/mutation.policy.wanNetwork.updatePolicy.json +97 -97
- models/mutation.policy.wanNetwork.updateRule.json +103 -103
- models/mutation.policy.wanNetwork.updateSection.json +4 -4
- models/mutation.site.addBgpPeer.json +10 -10
- models/mutation.site.addIpsecIkeV2SiteTunnels.json +2 -2
- models/mutation.site.addSocketAddOnCard.json +2 -2
- models/mutation.site.assignSiteBwLicense.json +12879 -0
- models/mutation.site.removeBgpPeer.json +10 -10
- models/mutation.site.removeIpsecIkeV2SiteTunnels.json +2 -2
- models/mutation.site.removeSecondaryAwsVSocket.json +375 -0
- models/mutation.site.removeSecondaryAzureVSocket.json +354 -0
- models/mutation.site.removeSiteBwLicense.json +12822 -0
- models/mutation.site.removeSocketAddOnCard.json +2 -2
- models/mutation.site.replaceSiteBwLicense.json +12939 -0
- models/mutation.site.startSiteUpgrade.json +36 -15
- models/mutation.site.updateBgpPeer.json +10 -10
- models/mutation.site.updateIpsecIkeV2SiteTunnels.json +2 -2
- models/mutation.site.updateSecondaryAwsVSocket.json +643 -0
- models/mutation.site.updateSecondaryAzureVSocket.json +565 -0
- models/mutation.site.updateSiteBwLicense.json +12882 -0
- models/mutation.site.updateSiteGeneralDetails.json +724 -1
- models/mutation.sites.addBgpPeer.json +10 -10
- models/mutation.sites.addIpsecIkeV2SiteTunnels.json +2 -2
- models/mutation.sites.addSocketAddOnCard.json +2 -2
- models/mutation.sites.assignSiteBwLicense.json +12879 -0
- models/mutation.sites.removeBgpPeer.json +10 -10
- models/mutation.sites.removeIpsecIkeV2SiteTunnels.json +2 -2
- models/mutation.sites.removeSecondaryAwsVSocket.json +375 -0
- models/mutation.sites.removeSecondaryAzureVSocket.json +354 -0
- models/mutation.sites.removeSiteBwLicense.json +12822 -0
- models/mutation.sites.removeSocketAddOnCard.json +2 -2
- models/mutation.sites.replaceSiteBwLicense.json +12939 -0
- models/mutation.sites.startSiteUpgrade.json +36 -15
- models/mutation.sites.updateBgpPeer.json +10 -10
- models/mutation.sites.updateIpsecIkeV2SiteTunnels.json +2 -2
- models/mutation.sites.updateSecondaryAwsVSocket.json +643 -0
- models/mutation.sites.updateSecondaryAzureVSocket.json +565 -0
- models/mutation.sites.updateSiteBwLicense.json +12882 -0
- models/mutation.sites.updateSiteGeneralDetails.json +724 -1
- models/mutation.xdr.addStoryComment.json +1 -1
- models/mutation.xdr.analystFeedback.json +84 -84
- models/mutation.xdr.deleteStoryComment.json +1 -1
- models/query.accountManagement.json +97 -0
- models/query.accountMetrics.json +45 -45
- models/query.accountSnapshot.json +30 -30
- models/query.admin.json +6 -6
- models/query.admins.json +13 -13
- models/query.appStats.json +915 -867
- models/query.appStatsTimeSeries.json +692 -656
- models/query.auditFeed.json +6 -6
- models/query.catalogs.json +52 -52
- models/query.container.json +16 -16
- models/query.devices.json +20 -93
- models/query.entityLookup.json +2 -2
- models/query.events.json +288 -384
- models/query.eventsFeed.json +73 -97
- models/query.eventsTimeSeries.json +219 -291
- models/query.groups.group.members.json +3058 -0
- models/query.groups.groupList.json +6474 -0
- models/query.groups.whereUsed.json +697 -0
- models/query.hardware.json +27 -7
- models/query.hardwareManagement.json +8 -8
- models/query.licensing.json +3487 -1324
- models/query.policy.appTenantRestriction.policy.json +32 -32
- models/query.policy.dynamicIpAllocation.policy.json +18 -18
- models/query.policy.internetFirewall.policy.json +93 -93
- models/query.policy.remotePortFwd.policy.json +23 -23
- models/query.policy.socketLan.policy.json +88 -88
- models/query.policy.terminalServer.policy.json +13 -13
- models/query.policy.wanFirewall.policy.json +111 -111
- models/query.policy.wanNetwork.policy.json +97 -97
- models/query.popLocations.json +2878 -0
- models/query.sandbox.json +5 -5
- models/query.site.bgpPeer.json +4 -4
- models/query.site.bgpPeerList.json +10 -10
- models/query.site.secondaryAwsVSocket.json +340 -0
- models/query.site.secondaryAzureVSocket.json +319 -0
- models/query.site.siteBgpStatus.json +2 -2
- models/query.socketPortMetrics.json +2410 -0
- models/query.socketPortMetricsTimeSeries.json +2361 -0
- models/query.xdr.stories.json +104 -104
- models/query.xdr.story.json +93 -93
- schema/catolib.py +21 -12
- build/lib/catocli/Utils/clidriver.py +0 -268
- build/lib/catocli/Utils/profile_manager.py +0 -188
- build/lib/catocli/Utils/version_checker.py +0 -192
- build/lib/catocli/__init__.py +0 -2
- build/lib/catocli/__main__.py +0 -12
- build/lib/catocli/parsers/configure/__init__.py +0 -115
- build/lib/catocli/parsers/configure/configure.py +0 -307
- build/lib/catocli/parsers/custom/__init__.py +0 -57
- build/lib/catocli/parsers/custom/customLib.py +0 -561
- build/lib/catocli/parsers/custom/export_rules/__init__.py +0 -42
- build/lib/catocli/parsers/custom/export_rules/export_rules.py +0 -234
- build/lib/catocli/parsers/custom/export_sites/__init__.py +0 -21
- build/lib/catocli/parsers/custom/export_sites/export_sites.py +0 -372
- build/lib/catocli/parsers/custom/import_rules_to_tf/__init__.py +0 -58
- build/lib/catocli/parsers/custom/import_rules_to_tf/import_rules_to_tf.py +0 -451
- build/lib/catocli/parsers/custom/import_sites_to_tf/__init__.py +0 -45
- build/lib/catocli/parsers/custom/import_sites_to_tf/import_sites_to_tf.py +0 -891
- build/lib/catocli/parsers/mutation_accountManagement/__init__.py +0 -48
- build/lib/catocli/parsers/mutation_admin/__init__.py +0 -48
- build/lib/catocli/parsers/mutation_container/__init__.py +0 -138
- build/lib/catocli/parsers/mutation_hardware/__init__.py +0 -22
- build/lib/catocli/parsers/mutation_policy/__init__.py +0 -1305
- build/lib/catocli/parsers/mutation_sandbox/__init__.py +0 -35
- build/lib/catocli/parsers/mutation_site/__init__.py +0 -373
- build/lib/catocli/parsers/mutation_sites/__init__.py +0 -373
- build/lib/catocli/parsers/mutation_xdr/__init__.py +0 -48
- build/lib/catocli/parsers/parserApiClient.py +0 -513
- build/lib/catocli/parsers/query_accountBySubdomain/__init__.py +0 -16
- build/lib/catocli/parsers/query_accountManagement/__init__.py +0 -16
- build/lib/catocli/parsers/query_accountMetrics/__init__.py +0 -16
- build/lib/catocli/parsers/query_accountRoles/__init__.py +0 -16
- build/lib/catocli/parsers/query_accountSnapshot/__init__.py +0 -16
- build/lib/catocli/parsers/query_admin/__init__.py +0 -16
- build/lib/catocli/parsers/query_admins/__init__.py +0 -16
- build/lib/catocli/parsers/query_appStats/__init__.py +0 -16
- build/lib/catocli/parsers/query_appStatsTimeSeries/__init__.py +0 -16
- build/lib/catocli/parsers/query_auditFeed/__init__.py +0 -16
- build/lib/catocli/parsers/query_catalogs/__init__.py +0 -16
- build/lib/catocli/parsers/query_container/__init__.py +0 -16
- build/lib/catocli/parsers/query_devices/__init__.py +0 -16
- build/lib/catocli/parsers/query_entityLookup/__init__.py +0 -16
- build/lib/catocli/parsers/query_events/__init__.py +0 -16
- build/lib/catocli/parsers/query_eventsFeed/__init__.py +0 -16
- build/lib/catocli/parsers/query_eventsTimeSeries/__init__.py +0 -16
- build/lib/catocli/parsers/query_hardware/__init__.py +0 -16
- build/lib/catocli/parsers/query_hardwareManagement/__init__.py +0 -16
- build/lib/catocli/parsers/query_licensing/__init__.py +0 -16
- build/lib/catocli/parsers/query_policy/__init__.py +0 -161
- build/lib/catocli/parsers/query_sandbox/__init__.py +0 -16
- build/lib/catocli/parsers/query_site/__init__.py +0 -100
- build/lib/catocli/parsers/query_siteLocation/__init__.py +0 -13
- build/lib/catocli/parsers/query_subDomains/__init__.py +0 -16
- build/lib/catocli/parsers/query_xdr/__init__.py +0 -35
- build/lib/catocli/parsers/raw/__init__.py +0 -12
- build/lib/graphql_client/__init__.py +0 -11
- build/lib/graphql_client/api/__init__.py +0 -3
- build/lib/graphql_client/api/call_api.py +0 -84
- build/lib/graphql_client/api_client.py +0 -192
- build/lib/graphql_client/api_client_types.py +0 -409
- build/lib/graphql_client/configuration.py +0 -232
- build/lib/graphql_client/models/__init__.py +0 -13
- build/lib/graphql_client/models/no_schema.py +0 -71
- build/lib/schema/catolib.py +0 -1141
- build/lib/schema/importSchema.py +0 -60
- build/lib/schema/remove_policyid.py +0 -89
- build/lib/schema/remove_policyid_mutations.py +0 -89
- build/lib/scripts/catolib.py +0 -62
- build/lib/scripts/export_if_rules_to_json.py +0 -188
- build/lib/scripts/export_wf_rules_to_json.py +0 -111
- build/lib/scripts/import_wf_rules_to_tfstate.py +0 -331
- build/lib/vendor/certifi/__init__.py +0 -4
- build/lib/vendor/certifi/__main__.py +0 -12
- build/lib/vendor/certifi/core.py +0 -114
- build/lib/vendor/certifi/py.typed +0 -0
- build/lib/vendor/six.py +0 -998
- build/lib/vendor/urllib3/__init__.py +0 -211
- build/lib/vendor/urllib3/_base_connection.py +0 -172
- build/lib/vendor/urllib3/_collections.py +0 -483
- build/lib/vendor/urllib3/_request_methods.py +0 -278
- build/lib/vendor/urllib3/_version.py +0 -16
- build/lib/vendor/urllib3/connection.py +0 -1033
- build/lib/vendor/urllib3/connectionpool.py +0 -1182
- build/lib/vendor/urllib3/contrib/__init__.py +0 -0
- build/lib/vendor/urllib3/contrib/emscripten/__init__.py +0 -18
- build/lib/vendor/urllib3/contrib/emscripten/connection.py +0 -254
- build/lib/vendor/urllib3/contrib/emscripten/fetch.py +0 -418
- build/lib/vendor/urllib3/contrib/emscripten/request.py +0 -22
- build/lib/vendor/urllib3/contrib/emscripten/response.py +0 -285
- build/lib/vendor/urllib3/contrib/pyopenssl.py +0 -552
- build/lib/vendor/urllib3/contrib/socks.py +0 -228
- build/lib/vendor/urllib3/exceptions.py +0 -321
- build/lib/vendor/urllib3/fields.py +0 -341
- build/lib/vendor/urllib3/filepost.py +0 -89
- build/lib/vendor/urllib3/http2/__init__.py +0 -53
- build/lib/vendor/urllib3/http2/connection.py +0 -356
- build/lib/vendor/urllib3/http2/probe.py +0 -87
- build/lib/vendor/urllib3/poolmanager.py +0 -637
- build/lib/vendor/urllib3/py.typed +0 -2
- build/lib/vendor/urllib3/response.py +0 -1265
- build/lib/vendor/urllib3/util/__init__.py +0 -42
- build/lib/vendor/urllib3/util/connection.py +0 -137
- build/lib/vendor/urllib3/util/proxy.py +0 -43
- build/lib/vendor/urllib3/util/request.py +0 -256
- build/lib/vendor/urllib3/util/response.py +0 -101
- build/lib/vendor/urllib3/util/retry.py +0 -533
- build/lib/vendor/urllib3/util/ssl_.py +0 -513
- build/lib/vendor/urllib3/util/ssl_match_hostname.py +0 -159
- build/lib/vendor/urllib3/util/ssltransport.py +0 -276
- build/lib/vendor/urllib3/util/timeout.py +0 -275
- build/lib/vendor/urllib3/util/url.py +0 -471
- build/lib/vendor/urllib3/util/util.py +0 -42
- build/lib/vendor/urllib3/util/wait.py +0 -124
- {catocli-2.0.5.dist-info → catocli-2.1.0.dist-info}/entry_points.txt +0 -0
- {catocli-2.0.5.dist-info → catocli-2.1.0.dist-info/licenses}/LICENSE +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.site.updateSecondaryAwsVSocket:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-updateSecondaryAwsVSocket) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.site.updateSecondaryAwsVSocket:
|
|
6
|
+
|
|
7
|
+
`catocli mutation site updateSecondaryAwsVSocket -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation site updateSecondaryAwsVSocket <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation site updateSecondaryAwsVSocket "$(cat < updateSecondaryAwsVSocket.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation site updateSecondaryAwsVSocket '{"updateSecondaryAwsVSocketInput": {"id": {"id": "ID"}, "ipAddress": {"ipAddress": "IPAddress"}, "routeTableId": {"routeTableId": "String"}, "subnet": {"subnet": "NetworkSubnet"}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.site.updateSecondaryAwsVSocket ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`updateSecondaryAwsVSocketInput` [UpdateSecondaryAwsVSocketInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.site.updateSecondaryAzureVSocket:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-updateSecondaryAzureVSocket) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.site.updateSecondaryAzureVSocket:
|
|
6
|
+
|
|
7
|
+
`catocli mutation site updateSecondaryAzureVSocket -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation site updateSecondaryAzureVSocket <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation site updateSecondaryAzureVSocket "$(cat < updateSecondaryAzureVSocket.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation site updateSecondaryAzureVSocket '{"updateSecondaryAzureVSocketInput": {"floatingIp": {"floatingIp": "IPAddress"}, "id": {"id": "ID"}, "interfaceIp": {"interfaceIp": "IPAddress"}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.site.updateSecondaryAzureVSocket ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`updateSecondaryAzureVSocketInput` [UpdateSecondaryAzureVSocketInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.site.updateSiteBwLicense:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-updateSiteBwLicense) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.site.updateSiteBwLicense:
|
|
6
|
+
|
|
7
|
+
`catocli mutation site updateSiteBwLicense -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation site updateSiteBwLicense <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation site updateSiteBwLicense "$(cat < updateSiteBwLicense.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation site updateSiteBwLicense '{"updateSiteBwLicenseInput": {"bw": {"bw": "Int"}, "licenseId": {"licenseId": "ID"}, "siteRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.site.updateSiteBwLicense ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`updateSiteBwLicenseInput` [UpdateSiteBwLicenseInput] - (required) N/A
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
`catocli mutation site updateSiteGeneralDetails "$(cat < updateSiteGeneralDetails.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli mutation site updateSiteGeneralDetails '{"siteId": "ID", "updateSiteGeneralDetailsInput": {"description": {"description": "String"}, "name": {"name": "String"}, "siteType": {"siteType": "enum(SiteType)"}, "updateSiteLocationInput": {"address": {"address": "String"}, "cityName": {"cityName": "String"}, "countryCode": {"countryCode": "String"}, "stateCode": {"stateCode": "String"}, "timezone": {"timezone": "String"}}}}'`
|
|
13
|
+
`catocli mutation site updateSiteGeneralDetails '{"siteId": "ID", "updateSiteGeneralDetailsInput": {"description": {"description": "String"}, "name": {"name": "String"}, "siteType": {"siteType": "enum(SiteType)"}, "updateSiteLocationInput": {"address": {"address": "String"}, "cityName": {"cityName": "String"}, "countryCode": {"countryCode": "String"}, "stateCode": {"stateCode": "String"}, "timezone": {"timezone": "String"}}, "updateSitePreferredPopLocationInput": {"preferredOnly": {"preferredOnly": "Boolean"}, "primary": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "secondary": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for mutation.site.updateSiteGeneralDetails ####
|
|
16
16
|
`accountId` [ID] - (required) N/A
|
|
@@ -151,6 +151,19 @@ def mutation_sites_parse(mutation_subparsers):
|
|
|
151
151
|
mutation_sites_addStaticHost_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
152
152
|
mutation_sites_addStaticHost_parser.set_defaults(func=createRequest,operation_name='mutation.sites.addStaticHost')
|
|
153
153
|
|
|
154
|
+
mutation_sites_assignSiteBwLicense_parser = mutation_sites_subparsers.add_parser('assignSiteBwLicense',
|
|
155
|
+
help='assignSiteBwLicense() sites operation',
|
|
156
|
+
usage=get_help("mutation_sites_assignSiteBwLicense"))
|
|
157
|
+
|
|
158
|
+
mutation_sites_assignSiteBwLicense_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
159
|
+
mutation_sites_assignSiteBwLicense_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
160
|
+
mutation_sites_assignSiteBwLicense_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
161
|
+
mutation_sites_assignSiteBwLicense_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
162
|
+
mutation_sites_assignSiteBwLicense_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
163
|
+
mutation_sites_assignSiteBwLicense_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
164
|
+
mutation_sites_assignSiteBwLicense_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
165
|
+
mutation_sites_assignSiteBwLicense_parser.set_defaults(func=createRequest,operation_name='mutation.sites.assignSiteBwLicense')
|
|
166
|
+
|
|
154
167
|
mutation_sites_removeBgpPeer_parser = mutation_sites_subparsers.add_parser('removeBgpPeer',
|
|
155
168
|
help='removeBgpPeer() sites operation',
|
|
156
169
|
usage=get_help("mutation_sites_removeBgpPeer"))
|
|
@@ -203,6 +216,32 @@ def mutation_sites_parse(mutation_subparsers):
|
|
|
203
216
|
mutation_sites_removeNetworkRange_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
204
217
|
mutation_sites_removeNetworkRange_parser.set_defaults(func=createRequest,operation_name='mutation.sites.removeNetworkRange')
|
|
205
218
|
|
|
219
|
+
mutation_sites_removeSecondaryAwsVSocket_parser = mutation_sites_subparsers.add_parser('removeSecondaryAwsVSocket',
|
|
220
|
+
help='removeSecondaryAwsVSocket() sites operation',
|
|
221
|
+
usage=get_help("mutation_sites_removeSecondaryAwsVSocket"))
|
|
222
|
+
|
|
223
|
+
mutation_sites_removeSecondaryAwsVSocket_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
224
|
+
mutation_sites_removeSecondaryAwsVSocket_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
225
|
+
mutation_sites_removeSecondaryAwsVSocket_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
226
|
+
mutation_sites_removeSecondaryAwsVSocket_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
227
|
+
mutation_sites_removeSecondaryAwsVSocket_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
228
|
+
mutation_sites_removeSecondaryAwsVSocket_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
229
|
+
mutation_sites_removeSecondaryAwsVSocket_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
230
|
+
mutation_sites_removeSecondaryAwsVSocket_parser.set_defaults(func=createRequest,operation_name='mutation.sites.removeSecondaryAwsVSocket')
|
|
231
|
+
|
|
232
|
+
mutation_sites_removeSecondaryAzureVSocket_parser = mutation_sites_subparsers.add_parser('removeSecondaryAzureVSocket',
|
|
233
|
+
help='removeSecondaryAzureVSocket() sites operation',
|
|
234
|
+
usage=get_help("mutation_sites_removeSecondaryAzureVSocket"))
|
|
235
|
+
|
|
236
|
+
mutation_sites_removeSecondaryAzureVSocket_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
237
|
+
mutation_sites_removeSecondaryAzureVSocket_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
238
|
+
mutation_sites_removeSecondaryAzureVSocket_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
239
|
+
mutation_sites_removeSecondaryAzureVSocket_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
240
|
+
mutation_sites_removeSecondaryAzureVSocket_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
241
|
+
mutation_sites_removeSecondaryAzureVSocket_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
242
|
+
mutation_sites_removeSecondaryAzureVSocket_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
243
|
+
mutation_sites_removeSecondaryAzureVSocket_parser.set_defaults(func=createRequest,operation_name='mutation.sites.removeSecondaryAzureVSocket')
|
|
244
|
+
|
|
206
245
|
mutation_sites_removeSite_parser = mutation_sites_subparsers.add_parser('removeSite',
|
|
207
246
|
help='removeSite() sites operation',
|
|
208
247
|
usage=get_help("mutation_sites_removeSite"))
|
|
@@ -216,6 +255,19 @@ def mutation_sites_parse(mutation_subparsers):
|
|
|
216
255
|
mutation_sites_removeSite_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
217
256
|
mutation_sites_removeSite_parser.set_defaults(func=createRequest,operation_name='mutation.sites.removeSite')
|
|
218
257
|
|
|
258
|
+
mutation_sites_removeSiteBwLicense_parser = mutation_sites_subparsers.add_parser('removeSiteBwLicense',
|
|
259
|
+
help='removeSiteBwLicense() sites operation',
|
|
260
|
+
usage=get_help("mutation_sites_removeSiteBwLicense"))
|
|
261
|
+
|
|
262
|
+
mutation_sites_removeSiteBwLicense_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
263
|
+
mutation_sites_removeSiteBwLicense_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
264
|
+
mutation_sites_removeSiteBwLicense_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
265
|
+
mutation_sites_removeSiteBwLicense_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
266
|
+
mutation_sites_removeSiteBwLicense_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
267
|
+
mutation_sites_removeSiteBwLicense_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
268
|
+
mutation_sites_removeSiteBwLicense_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
269
|
+
mutation_sites_removeSiteBwLicense_parser.set_defaults(func=createRequest,operation_name='mutation.sites.removeSiteBwLicense')
|
|
270
|
+
|
|
219
271
|
mutation_sites_removeSocketAddOnCard_parser = mutation_sites_subparsers.add_parser('removeSocketAddOnCard',
|
|
220
272
|
help='removeSocketAddOnCard() sites operation',
|
|
221
273
|
usage=get_help("mutation_sites_removeSocketAddOnCard"))
|
|
@@ -242,6 +294,19 @@ def mutation_sites_parse(mutation_subparsers):
|
|
|
242
294
|
mutation_sites_removeStaticHost_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
243
295
|
mutation_sites_removeStaticHost_parser.set_defaults(func=createRequest,operation_name='mutation.sites.removeStaticHost')
|
|
244
296
|
|
|
297
|
+
mutation_sites_replaceSiteBwLicense_parser = mutation_sites_subparsers.add_parser('replaceSiteBwLicense',
|
|
298
|
+
help='replaceSiteBwLicense() sites operation',
|
|
299
|
+
usage=get_help("mutation_sites_replaceSiteBwLicense"))
|
|
300
|
+
|
|
301
|
+
mutation_sites_replaceSiteBwLicense_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
302
|
+
mutation_sites_replaceSiteBwLicense_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
303
|
+
mutation_sites_replaceSiteBwLicense_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
304
|
+
mutation_sites_replaceSiteBwLicense_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
305
|
+
mutation_sites_replaceSiteBwLicense_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
306
|
+
mutation_sites_replaceSiteBwLicense_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
307
|
+
mutation_sites_replaceSiteBwLicense_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
308
|
+
mutation_sites_replaceSiteBwLicense_parser.set_defaults(func=createRequest,operation_name='mutation.sites.replaceSiteBwLicense')
|
|
309
|
+
|
|
245
310
|
mutation_sites_startSiteUpgrade_parser = mutation_sites_subparsers.add_parser('startSiteUpgrade',
|
|
246
311
|
help='startSiteUpgrade() sites operation',
|
|
247
312
|
usage=get_help("mutation_sites_startSiteUpgrade"))
|
|
@@ -333,6 +398,45 @@ def mutation_sites_parse(mutation_subparsers):
|
|
|
333
398
|
mutation_sites_updateNetworkRange_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
334
399
|
mutation_sites_updateNetworkRange_parser.set_defaults(func=createRequest,operation_name='mutation.sites.updateNetworkRange')
|
|
335
400
|
|
|
401
|
+
mutation_sites_updateSecondaryAwsVSocket_parser = mutation_sites_subparsers.add_parser('updateSecondaryAwsVSocket',
|
|
402
|
+
help='updateSecondaryAwsVSocket() sites operation',
|
|
403
|
+
usage=get_help("mutation_sites_updateSecondaryAwsVSocket"))
|
|
404
|
+
|
|
405
|
+
mutation_sites_updateSecondaryAwsVSocket_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
406
|
+
mutation_sites_updateSecondaryAwsVSocket_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
407
|
+
mutation_sites_updateSecondaryAwsVSocket_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
408
|
+
mutation_sites_updateSecondaryAwsVSocket_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
409
|
+
mutation_sites_updateSecondaryAwsVSocket_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
410
|
+
mutation_sites_updateSecondaryAwsVSocket_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
411
|
+
mutation_sites_updateSecondaryAwsVSocket_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
412
|
+
mutation_sites_updateSecondaryAwsVSocket_parser.set_defaults(func=createRequest,operation_name='mutation.sites.updateSecondaryAwsVSocket')
|
|
413
|
+
|
|
414
|
+
mutation_sites_updateSecondaryAzureVSocket_parser = mutation_sites_subparsers.add_parser('updateSecondaryAzureVSocket',
|
|
415
|
+
help='updateSecondaryAzureVSocket() sites operation',
|
|
416
|
+
usage=get_help("mutation_sites_updateSecondaryAzureVSocket"))
|
|
417
|
+
|
|
418
|
+
mutation_sites_updateSecondaryAzureVSocket_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
419
|
+
mutation_sites_updateSecondaryAzureVSocket_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
420
|
+
mutation_sites_updateSecondaryAzureVSocket_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
421
|
+
mutation_sites_updateSecondaryAzureVSocket_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
422
|
+
mutation_sites_updateSecondaryAzureVSocket_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
423
|
+
mutation_sites_updateSecondaryAzureVSocket_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
424
|
+
mutation_sites_updateSecondaryAzureVSocket_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
425
|
+
mutation_sites_updateSecondaryAzureVSocket_parser.set_defaults(func=createRequest,operation_name='mutation.sites.updateSecondaryAzureVSocket')
|
|
426
|
+
|
|
427
|
+
mutation_sites_updateSiteBwLicense_parser = mutation_sites_subparsers.add_parser('updateSiteBwLicense',
|
|
428
|
+
help='updateSiteBwLicense() sites operation',
|
|
429
|
+
usage=get_help("mutation_sites_updateSiteBwLicense"))
|
|
430
|
+
|
|
431
|
+
mutation_sites_updateSiteBwLicense_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
432
|
+
mutation_sites_updateSiteBwLicense_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
433
|
+
mutation_sites_updateSiteBwLicense_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
434
|
+
mutation_sites_updateSiteBwLicense_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
435
|
+
mutation_sites_updateSiteBwLicense_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
436
|
+
mutation_sites_updateSiteBwLicense_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
437
|
+
mutation_sites_updateSiteBwLicense_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
438
|
+
mutation_sites_updateSiteBwLicense_parser.set_defaults(func=createRequest,operation_name='mutation.sites.updateSiteBwLicense')
|
|
439
|
+
|
|
336
440
|
mutation_sites_updateSiteGeneralDetails_parser = mutation_sites_subparsers.add_parser('updateSiteGeneralDetails',
|
|
337
441
|
help='updateSiteGeneralDetails() sites operation',
|
|
338
442
|
usage=get_help("mutation_sites_updateSiteGeneralDetails"))
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.sites.assignSiteBwLicense:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-assignSiteBwLicense) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.sites.assignSiteBwLicense:
|
|
6
|
+
|
|
7
|
+
`catocli mutation sites assignSiteBwLicense -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation sites assignSiteBwLicense <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation sites assignSiteBwLicense "$(cat < assignSiteBwLicense.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation sites assignSiteBwLicense '{"assignSiteBwLicenseInput": {"bw": {"bw": "Int"}, "licenseId": {"licenseId": "ID"}, "siteRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.sites.assignSiteBwLicense ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`assignSiteBwLicenseInput` [AssignSiteBwLicenseInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.sites.removeSecondaryAwsVSocket:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-removeSecondaryAwsVSocket) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.sites.removeSecondaryAwsVSocket:
|
|
6
|
+
|
|
7
|
+
`catocli mutation sites removeSecondaryAwsVSocket -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation sites removeSecondaryAwsVSocket <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation sites removeSecondaryAwsVSocket "$(cat < removeSecondaryAwsVSocket.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation sites removeSecondaryAwsVSocket '{"socketId": "ID"}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.sites.removeSecondaryAwsVSocket ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`socketId` [ID] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.sites.removeSecondaryAzureVSocket:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-removeSecondaryAzureVSocket) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.sites.removeSecondaryAzureVSocket:
|
|
6
|
+
|
|
7
|
+
`catocli mutation sites removeSecondaryAzureVSocket -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation sites removeSecondaryAzureVSocket <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation sites removeSecondaryAzureVSocket "$(cat < removeSecondaryAzureVSocket.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation sites removeSecondaryAzureVSocket '{"socketId": "ID"}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.sites.removeSecondaryAzureVSocket ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`socketId` [ID] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.sites.removeSiteBwLicense:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-removeSiteBwLicense) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.sites.removeSiteBwLicense:
|
|
6
|
+
|
|
7
|
+
`catocli mutation sites removeSiteBwLicense -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation sites removeSiteBwLicense <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation sites removeSiteBwLicense "$(cat < removeSiteBwLicense.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation sites removeSiteBwLicense '{"removeSiteBwLicenseInput": {"licenseId": {"licenseId": "ID"}, "siteRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.sites.removeSiteBwLicense ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`removeSiteBwLicenseInput` [RemoveSiteBwLicenseInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.sites.replaceSiteBwLicense:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-replaceSiteBwLicense) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.sites.replaceSiteBwLicense:
|
|
6
|
+
|
|
7
|
+
`catocli mutation sites replaceSiteBwLicense -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation sites replaceSiteBwLicense <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation sites replaceSiteBwLicense "$(cat < replaceSiteBwLicense.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation sites replaceSiteBwLicense '{"replaceSiteBwLicenseInput": {"bw": {"bw": "Int"}, "licenseIdToAdd": {"licenseIdToAdd": "ID"}, "licenseIdToRemove": {"licenseIdToRemove": "ID"}, "siteRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.sites.replaceSiteBwLicense ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`replaceSiteBwLicenseInput` [ReplaceSiteBwLicenseInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.sites.updateSecondaryAwsVSocket:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-updateSecondaryAwsVSocket) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.sites.updateSecondaryAwsVSocket:
|
|
6
|
+
|
|
7
|
+
`catocli mutation sites updateSecondaryAwsVSocket -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation sites updateSecondaryAwsVSocket <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation sites updateSecondaryAwsVSocket "$(cat < updateSecondaryAwsVSocket.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation sites updateSecondaryAwsVSocket '{"updateSecondaryAwsVSocketInput": {"id": {"id": "ID"}, "ipAddress": {"ipAddress": "IPAddress"}, "routeTableId": {"routeTableId": "String"}, "subnet": {"subnet": "NetworkSubnet"}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.sites.updateSecondaryAwsVSocket ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`updateSecondaryAwsVSocketInput` [UpdateSecondaryAwsVSocketInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.sites.updateSecondaryAzureVSocket:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-updateSecondaryAzureVSocket) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.sites.updateSecondaryAzureVSocket:
|
|
6
|
+
|
|
7
|
+
`catocli mutation sites updateSecondaryAzureVSocket -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation sites updateSecondaryAzureVSocket <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation sites updateSecondaryAzureVSocket "$(cat < updateSecondaryAzureVSocket.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation sites updateSecondaryAzureVSocket '{"updateSecondaryAzureVSocketInput": {"floatingIp": {"floatingIp": "IPAddress"}, "id": {"id": "ID"}, "interfaceIp": {"interfaceIp": "IPAddress"}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.sites.updateSecondaryAzureVSocket ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`updateSecondaryAzureVSocketInput` [UpdateSecondaryAzureVSocketInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.sites.updateSiteBwLicense:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-updateSiteBwLicense) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.sites.updateSiteBwLicense:
|
|
6
|
+
|
|
7
|
+
`catocli mutation sites updateSiteBwLicense -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation sites updateSiteBwLicense <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation sites updateSiteBwLicense "$(cat < updateSiteBwLicense.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation sites updateSiteBwLicense '{"updateSiteBwLicenseInput": {"bw": {"bw": "Int"}, "licenseId": {"licenseId": "ID"}, "siteRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.sites.updateSiteBwLicense ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`updateSiteBwLicenseInput` [UpdateSiteBwLicenseInput] - (required) N/A
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
`catocli mutation sites updateSiteGeneralDetails "$(cat < updateSiteGeneralDetails.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli mutation sites updateSiteGeneralDetails '{"siteId": "ID", "updateSiteGeneralDetailsInput": {"description": {"description": "String"}, "name": {"name": "String"}, "siteType": {"siteType": "enum(SiteType)"}, "updateSiteLocationInput": {"address": {"address": "String"}, "cityName": {"cityName": "String"}, "countryCode": {"countryCode": "String"}, "stateCode": {"stateCode": "String"}, "timezone": {"timezone": "String"}}}}'`
|
|
13
|
+
`catocli mutation sites updateSiteGeneralDetails '{"siteId": "ID", "updateSiteGeneralDetailsInput": {"description": {"description": "String"}, "name": {"name": "String"}, "siteType": {"siteType": "enum(SiteType)"}, "updateSiteLocationInput": {"address": {"address": "String"}, "cityName": {"cityName": "String"}, "countryCode": {"countryCode": "String"}, "stateCode": {"stateCode": "String"}, "timezone": {"timezone": "String"}}, "updateSitePreferredPopLocationInput": {"preferredOnly": {"preferredOnly": "Boolean"}, "primary": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "secondary": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for mutation.sites.updateSiteGeneralDetails ####
|
|
16
16
|
`accountId` [ID] - (required) N/A
|
|
@@ -236,16 +236,17 @@ def validateArgs(variablesObj,operation):
|
|
|
236
236
|
|
|
237
237
|
def loadJSON(file):
|
|
238
238
|
CONFIG = {}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
module_dir =
|
|
239
|
+
module_dir = os.path.dirname(__file__)
|
|
240
|
+
# Navigate up two directory levels (from parsers/ to catocli/ to root)
|
|
241
|
+
module_dir = os.path.dirname(module_dir) # Go up from parsers/
|
|
242
|
+
module_dir = os.path.dirname(module_dir) # Go up from catocli/
|
|
243
243
|
try:
|
|
244
|
-
|
|
244
|
+
file_path = os.path.join(module_dir, file)
|
|
245
|
+
with open(file_path, 'r') as data:
|
|
245
246
|
CONFIG = json.load(data)
|
|
246
247
|
return CONFIG
|
|
247
248
|
except:
|
|
248
|
-
logging.warning("File \"
|
|
249
|
+
logging.warning(f"File \"{os.path.join(module_dir, file)}\" not found.")
|
|
249
250
|
exit()
|
|
250
251
|
|
|
251
252
|
def renderCamelCase(pathStr):
|
|
@@ -291,7 +292,8 @@ def renderArgsAndFields(responseArgStr, variablesObj, curOperation, definition,
|
|
|
291
292
|
responseArgStr += " {\n"
|
|
292
293
|
for subfieldIndex in field['type']['definition']['fields']:
|
|
293
294
|
subfield = field['type']['definition']['fields'][subfieldIndex]
|
|
294
|
-
|
|
295
|
+
# Use the alias if it exists, otherwise use the field name
|
|
296
|
+
subfield_name = subfield['alias'] if 'alias' in subfield else subfield['name']
|
|
295
297
|
responseArgStr += indent + " " + subfield_name
|
|
296
298
|
if subfield.get("args") and len(list(subfield["args"].keys()))>0:
|
|
297
299
|
argsPresent = False
|
|
@@ -338,7 +340,14 @@ def renderArgsAndFields(responseArgStr, variablesObj, curOperation, definition,
|
|
|
338
340
|
responseArgStr += " {\n"
|
|
339
341
|
for subfieldName in field['type']['definition'].get('inputFields'):
|
|
340
342
|
subfield = field['type']['definition']['inputFields'][subfieldName]
|
|
341
|
-
|
|
343
|
+
# Updated aliasing logic for inputFields
|
|
344
|
+
if (subfield.get('type') and subfield['type'].get('name') and
|
|
345
|
+
curOperation.get('fieldTypes', {}).get(subfield['type']['name']) and
|
|
346
|
+
subfield.get('type', {}).get('kind') and
|
|
347
|
+
'SCALAR' not in str(subfield['type']['kind'])):
|
|
348
|
+
subfield_name = f"{subfield['name']}{field['type']['definition']['name']}: {subfield['name']}"
|
|
349
|
+
else:
|
|
350
|
+
subfield_name = subfield['name'] # Always use the raw field name, not incorrect aliases
|
|
342
351
|
responseArgStr += indent + " " + subfield_name
|
|
343
352
|
if subfield.get('type') and subfield['type'].get('definition') and (subfield['type']['definition'].get('fields') or subfield['type']['definition'].get('inputFields')):
|
|
344
353
|
responseArgStr += " {\n"
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
#### Operation Arguments for query.eventsFeed ####
|
|
16
16
|
`accountIDs` [ID[]] - (optional) List of Unique Account Identifiers.
|
|
17
17
|
`eventFeedFieldFilterInput` [EventFeedFieldFilterInput[]] - (optional) N/A
|
|
18
|
-
`fieldNames` [EventFieldName[]] - (optional) N/A Default Value: ['access_method', 'account_id', 'action', 'actions_taken', 'ad_name', 'alert_id', 'always_on_configuration', 'analyst_verdict', 'api_name', 'api_type', 'app_activity', 'app_activity_category', 'app_activity_type', 'app_stack', '
|
|
18
|
+
`fieldNames` [EventFieldName[]] - (optional) N/A Default Value: ['access_method', 'account_id', 'action', 'actions_taken', 'ad_name', 'alert_id', 'always_on_configuration', 'analyst_verdict', 'api_name', 'api_type', 'app_activity', 'app_activity_category', 'app_activity_type', 'app_stack', 'application_id', 'application_name', 'application_risk', 'auth_method', 'authentication_type', 'bgp_cato_asn', 'bgp_cato_ip', 'bgp_error_code', 'bgp_peer_asn', 'bgp_peer_ip', 'bgp_route_cidr', 'bgp_suberror_code', 'bypass_duration_sec', 'bypass_method', 'bypass_reason', 'categories', 'cato_app', 'classification', 'client_cert_expires', 'client_cert_name', 'client_class', 'client_version', 'collaborator_name', 'collaborators', 'confidence_level', 'configured_host_name', 'congestion_algorithm', 'connect_on_boot', 'connection_origin', 'connector_name', 'connector_status', 'connector_type', 'container_name', 'correlation_id', 'criticality', 'custom_category_id', 'custom_category_name', 'dest_country', 'dest_country_code', 'dest_group_id', 'dest_group_name', 'dest_ip', 'dest_is_site_or_vpn', 'dest_pid', 'dest_port', 'dest_process_cmdline', 'dest_process_parent_path', 'dest_process_parent_pid', 'dest_process_path', 'dest_site_id', 'dest_site_name', 'detection_name', 'detection_stage', 'device_categories', 'device_certificate', 'device_id', 'device_manufacturer', 'device_model', 'device_name', 'device_os_type', 'device_posture_profile', 'device_type', 'directory_host_name', 'directory_ip', 'directory_sync_result', 'directory_sync_type', 'disinfect_result', 'dlp_fail_mode', 'dlp_profiles', 'dlp_scan_types', 'dns_protection_category', 'dns_query', 'domain_name', 'egress_pop_name', 'egress_site_name', 'email_subject', 'endpoint_id', 'engine_type', 'epp_engine_type', 'epp_profile', 'event_count', 'event_id', 'event_message', 'event_sub_type', 'event_type', 'failure_reason', 'file_hash', 'file_name', 'file_operation', 'file_size', 'file_type', 'final_object_status', 'flows_cardinality', 'full_path_url', 'guest_user', 'host_ip', 'host_mac', 'http_request_method', 'incident_aggregation', 'incident_id', 'indication', 'indicator', 'initial_object_status', 'internalId', 'ip_protocol', 'is_admin', 'is_admin_activity', 'is_compliant', 'is_managed', 'is_sanctioned_app', 'is_sinkhole', 'ISP_name', 'key_name', 'labels', 'link_health_is_congested', 'link_health_jitter', 'link_health_latency', 'link_health_pkt_loss', 'link_type', 'logged_in_user', 'login_type', 'matched_data_types', 'mitre_attack_subtechniques', 'mitre_attack_tactics', 'mitre_attack_techniques', 'network_access', 'network_rule', 'notification_api_error', 'notification_description', 'object_id', 'object_name', 'object_type', 'office_mode', 'os_type', 'os_version', 'out_of_band_access', 'owner', 'pac_file', 'parent_connector_name', 'pop_name', 'precedence', 'processes_count', 'producer', 'projects', 'prompt_action', 'provider_name', 'public_ip', 'qos_priority', 'qos_reported_time', 'quarantine_folder_path', 'quarantine_uuid', 'raw_data', 'recommended_actions', 'reference_url', 'referer_url', 'region_name', 'registration_code', 'resource_id', 'risk_level', 'rule_id', 'rule_name', 'severity', 'sharing_scope', 'sign_in_event_types', 'signature_id', 'socket_interface', 'socket_interface_id', 'socket_new_version', 'socket_old_version', 'socket_reset', 'socket_role', 'socket_serial', 'socket_version', 'split_tunnel_configuration', 'src_country', 'src_country_code', 'src_ip', 'src_is_site_or_vpn', 'src_isp_ip', 'src_pid', 'src_port', 'src_process_cmdline', 'src_process_parent_path', 'src_process_parent_pid', 'src_process_path', 'src_site_id', 'src_site_name', 'static_host', 'status', 'story_id', 'subnet_name', 'subscription_name', 'targets_cardinality', 'tcp_acceleration', 'tenant_id', 'tenant_name', 'tenant_restriction_rule_name', 'threat_confidence', 'threat_name', 'threat_reference', 'threat_score', 'threat_type', 'threat_verdict', 'time', 'time_str', 'title', 'tls_certificate_error', 'tls_error_description', 'tls_error_type', 'tls_inspection', 'tls_rule_name', 'tls_version', 'traffic_direction', 'translated_client_ip', 'translated_server_ip', 'trigger', 'trust_type', 'trusted_networks', 'tunnel_ip_protocol', 'tunnel_protocol', 'upgrade_end_time', 'upgrade_initiated_by', 'upgrade_start_time', 'url', 'user_agent', 'user_awareness_method', 'user_id', 'user_name', 'user_reference_id', 'user_risk_level', 'vendor', 'vendor_collaborator_id', 'vendor_device_id', 'vendor_device_name', 'vendor_event_id', 'vendor_user_id', 'visible_device_id', 'vpn_lan_access', 'vpn_user_email', 'windows_domain_name', 'xff']
|
|
19
19
|
`marker` [String] - (optional) Marker to use to get results from
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+
from ..parserApiClient import createRequest, get_help
|
|
3
|
+
|
|
4
|
+
def query_groups_parse(query_subparsers):
|
|
5
|
+
query_groups_parser = query_subparsers.add_parser('groups',
|
|
6
|
+
help='groups() query operation',
|
|
7
|
+
usage=get_help("query_groups"))
|
|
8
|
+
|
|
9
|
+
query_groups_subparsers = query_groups_parser.add_subparsers()
|
|
10
|
+
|
|
11
|
+
query_groups_group_parser = query_groups_subparsers.add_parser('group',
|
|
12
|
+
help='group() groups operation',
|
|
13
|
+
usage=get_help("query_groups_group"))
|
|
14
|
+
|
|
15
|
+
query_groups_group_subparsers = query_groups_group_parser.add_subparsers()
|
|
16
|
+
|
|
17
|
+
query_groups_group_members_parser = query_groups_group_subparsers.add_parser('members',
|
|
18
|
+
help='members() group operation',
|
|
19
|
+
usage=get_help("query_groups_group_members"))
|
|
20
|
+
|
|
21
|
+
query_groups_group_members_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
22
|
+
query_groups_group_members_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
23
|
+
query_groups_group_members_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
24
|
+
query_groups_group_members_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
25
|
+
query_groups_group_members_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
26
|
+
query_groups_group_members_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
27
|
+
query_groups_group_members_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
28
|
+
query_groups_group_members_parser.set_defaults(func=createRequest,operation_name='query.groups.group.members')
|
|
29
|
+
|
|
30
|
+
query_groups_groupList_parser = query_groups_subparsers.add_parser('groupList',
|
|
31
|
+
help='groupList() groups operation',
|
|
32
|
+
usage=get_help("query_groups_groupList"))
|
|
33
|
+
|
|
34
|
+
query_groups_groupList_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
35
|
+
query_groups_groupList_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
36
|
+
query_groups_groupList_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
37
|
+
query_groups_groupList_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
38
|
+
query_groups_groupList_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
39
|
+
query_groups_groupList_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
40
|
+
query_groups_groupList_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
41
|
+
query_groups_groupList_parser.set_defaults(func=createRequest,operation_name='query.groups.groupList')
|
|
42
|
+
|
|
43
|
+
query_groups_whereUsed_parser = query_groups_subparsers.add_parser('whereUsed',
|
|
44
|
+
help='whereUsed() groups operation',
|
|
45
|
+
usage=get_help("query_groups_whereUsed"))
|
|
46
|
+
|
|
47
|
+
query_groups_whereUsed_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
48
|
+
query_groups_whereUsed_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
49
|
+
query_groups_whereUsed_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
50
|
+
query_groups_whereUsed_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
51
|
+
query_groups_whereUsed_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
52
|
+
query_groups_whereUsed_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
53
|
+
query_groups_whereUsed_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
54
|
+
query_groups_whereUsed_parser.set_defaults(func=createRequest,operation_name='query.groups.whereUsed')
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.groups.groupList:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-groupList) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.groups.groupList:
|
|
6
|
+
|
|
7
|
+
`catocli query groups groupList -h`
|
|
8
|
+
|
|
9
|
+
`catocli query groups groupList <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query groups groupList "$(cat < groupList.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query groups groupList '{"groupListInput": {"groupListFilterInput": {"audit": {"updatedBy": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "updatedTime": {"between": {"between": ["DateTime"]}, "eq": {"eq": "DateTime"}, "gt": {"gt": "DateTime"}, "gte": {"gte": "DateTime"}, "in": {"in": ["DateTime"]}, "lt": {"lt": "DateTime"}, "lte": {"lte": "DateTime"}, "neq": {"neq": "DateTime"}, "nin": {"nin": ["DateTime"]}}}, "freeText": {"search": {"search": "String"}}, "id": {"eq": {"eq": "ID"}, "in": {"in": ["ID"]}, "neq": {"neq": "ID"}, "nin": {"nin": ["ID"]}}, "member": {"ref": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}, "type": {"type": "enum(GroupMemberRefType)"}}}, "name": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}, "regex": {"regex": "String"}}}, "groupListSortInput": {"audit": {"updatedBy": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "updatedTime": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "name": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "pagingInput": {"from": {"from": "Int"}, "limit": {"limit": "Int"}}}, "groupMembersListInput": {"groupMembersListFilterInput": {"name": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}, "regex": {"regex": "String"}}, "type": {"eq": {"eq": "enum(GroupMemberRefType)"}, "in": {"in": "enum(GroupMemberRefType)"}, "neq": {"neq": "enum(GroupMemberRefType)"}, "nin": {"nin": "enum(GroupMemberRefType)"}}}, "groupMembersListSortInput": {"name": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "type": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "pagingInput": {"from": {"from": "Int"}, "limit": {"limit": "Int"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.groups.groupList ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`groupListInput` [GroupListInput] - (optional) N/A
|
|
18
|
+
`groupMembersListInput` [GroupMembersListInput] - (required) N/A
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.groups.group.members:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-members) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.groups.group.members:
|
|
6
|
+
|
|
7
|
+
`catocli query groups group members -h`
|
|
8
|
+
|
|
9
|
+
`catocli query groups group members <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query groups group members "$(cat < members.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query groups group members '{"groupMembersListInput": {"groupMembersListFilterInput": {"name": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}, "regex": {"regex": "String"}}, "type": {"eq": {"eq": "enum(GroupMemberRefType)"}, "in": {"in": "enum(GroupMemberRefType)"}, "neq": {"neq": "enum(GroupMemberRefType)"}, "nin": {"nin": "enum(GroupMemberRefType)"}}}, "groupMembersListSortInput": {"name": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "type": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "pagingInput": {"from": {"from": "Int"}, "limit": {"limit": "Int"}}}, "groupRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.groups.group.members ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`groupMembersListInput` [GroupMembersListInput] - (required) N/A
|
|
18
|
+
`groupRefInput` [GroupRefInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.groups.whereUsed:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-whereUsed) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.groups.whereUsed:
|
|
6
|
+
|
|
7
|
+
`catocli query groups whereUsed -h`
|
|
8
|
+
|
|
9
|
+
`catocli query groups whereUsed <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query groups whereUsed "$(cat < whereUsed.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query groups whereUsed '{"groupRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.groups.whereUsed ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`groupRefInput` [GroupRefInput] - (required) N/A
|