catocli 2.1.0__py3-none-any.whl → 2.1.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 +217 -194
- catocli/Utils/version_checker.py +1 -1
- catocli/__init__.py +1 -1
- catocli/parsers/custom/customLib.py +1 -1
- catocli/parsers/custom/export_sites/export_sites.py +118 -130
- catocli/parsers/custom/import_rules_to_tf/import_rules_to_tf.py +13 -2
- catocli/parsers/custom/import_sites_to_tf/import_sites_to_tf.py +8 -1
- catocli/parsers/customParserApiClient.py +1195 -0
- catocli/parsers/custom_private/__init__.py +134 -0
- catocli/parsers/mutation_accountManagement/__init__.py +45 -58
- catocli/parsers/mutation_accountManagement_addAccount/README.md +7 -5
- catocli/parsers/mutation_accountManagement_removeAccount/README.md +4 -5
- catocli/parsers/mutation_accountManagement_updateAccount/README.md +7 -5
- catocli/parsers/mutation_admin/__init__.py +84 -45
- catocli/parsers/mutation_admin_addAdmin/README.md +7 -5
- catocli/parsers/mutation_admin_addServicePrincipalAdmin/README.md +19 -0
- catocli/parsers/mutation_admin_removeAdmin/README.md +7 -5
- catocli/parsers/mutation_admin_removeServicePrincipalAdmin/README.md +19 -0
- catocli/parsers/mutation_admin_updateAdmin/README.md +8 -6
- catocli/parsers/mutation_admin_updateServicePrincipalAdmin/README.md +20 -0
- catocli/parsers/mutation_container/__init__.py +135 -135
- catocli/parsers/mutation_container_delete/README.md +7 -5
- catocli/parsers/mutation_container_fqdn_addValues/README.md +7 -5
- catocli/parsers/mutation_container_fqdn_createFromFile/README.md +7 -5
- catocli/parsers/mutation_container_fqdn_removeValues/README.md +7 -5
- catocli/parsers/mutation_container_fqdn_updateFromFile/README.md +7 -5
- catocli/parsers/mutation_container_ipAddressRange_addValues/README.md +7 -5
- catocli/parsers/mutation_container_ipAddressRange_createFromFile/README.md +7 -5
- catocli/parsers/mutation_container_ipAddressRange_removeValues/README.md +7 -5
- catocli/parsers/mutation_container_ipAddressRange_updateFromFile/README.md +7 -5
- catocli/parsers/mutation_enterpriseDirectory/README.md +7 -0
- catocli/parsers/mutation_enterpriseDirectory/__init__.py +61 -0
- catocli/parsers/mutation_enterpriseDirectory_archiveLocation/README.md +19 -0
- catocli/parsers/mutation_enterpriseDirectory_createLocation/README.md +19 -0
- catocli/parsers/mutation_enterpriseDirectory_restoreLocation/README.md +19 -0
- catocli/parsers/mutation_enterpriseDirectory_updateLocation/README.md +19 -0
- catocli/parsers/mutation_groups/__init__.py +45 -45
- catocli/parsers/mutation_groups_createGroup/README.md +8 -6
- catocli/parsers/mutation_groups_deleteGroup/README.md +8 -6
- catocli/parsers/mutation_groups_updateGroup/README.md +8 -6
- catocli/parsers/mutation_hardware/__init__.py +16 -16
- catocli/parsers/mutation_hardware_updateHardwareShipping/README.md +7 -5
- catocli/parsers/mutation_policy/__init__.py +1302 -1302
- catocli/parsers/mutation_policy_appTenantRestriction_addRule/README.md +8 -6
- catocli/parsers/mutation_policy_appTenantRestriction_addSection/README.md +8 -6
- catocli/parsers/mutation_policy_appTenantRestriction_createPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_appTenantRestriction_discardPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_appTenantRestriction_moveRule/README.md +8 -6
- catocli/parsers/mutation_policy_appTenantRestriction_moveSection/README.md +8 -6
- catocli/parsers/mutation_policy_appTenantRestriction_publishPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_appTenantRestriction_removeRule/README.md +8 -6
- catocli/parsers/mutation_policy_appTenantRestriction_removeSection/README.md +8 -6
- catocli/parsers/mutation_policy_appTenantRestriction_updatePolicy/README.md +8 -6
- catocli/parsers/mutation_policy_appTenantRestriction_updateRule/README.md +8 -6
- catocli/parsers/mutation_policy_appTenantRestriction_updateSection/README.md +8 -6
- catocli/parsers/mutation_policy_dynamicIpAllocation_addRule/README.md +8 -6
- catocli/parsers/mutation_policy_dynamicIpAllocation_addSection/README.md +8 -6
- catocli/parsers/mutation_policy_dynamicIpAllocation_createPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_dynamicIpAllocation_discardPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_dynamicIpAllocation_moveRule/README.md +8 -6
- catocli/parsers/mutation_policy_dynamicIpAllocation_moveSection/README.md +8 -6
- catocli/parsers/mutation_policy_dynamicIpAllocation_publishPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_dynamicIpAllocation_removeRule/README.md +8 -6
- catocli/parsers/mutation_policy_dynamicIpAllocation_removeSection/README.md +8 -6
- catocli/parsers/mutation_policy_dynamicIpAllocation_updatePolicy/README.md +8 -6
- catocli/parsers/mutation_policy_dynamicIpAllocation_updateRule/README.md +8 -6
- catocli/parsers/mutation_policy_dynamicIpAllocation_updateSection/README.md +8 -6
- catocli/parsers/mutation_policy_internetFirewall_addRule/README.md +8 -6
- catocli/parsers/mutation_policy_internetFirewall_addSection/README.md +8 -6
- catocli/parsers/mutation_policy_internetFirewall_createPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_internetFirewall_discardPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_internetFirewall_moveRule/README.md +8 -6
- catocli/parsers/mutation_policy_internetFirewall_moveSection/README.md +8 -6
- catocli/parsers/mutation_policy_internetFirewall_publishPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_internetFirewall_removeRule/README.md +8 -6
- catocli/parsers/mutation_policy_internetFirewall_removeSection/README.md +8 -6
- catocli/parsers/mutation_policy_internetFirewall_updatePolicy/README.md +8 -6
- catocli/parsers/mutation_policy_internetFirewall_updateRule/README.md +8 -6
- catocli/parsers/mutation_policy_internetFirewall_updateSection/README.md +8 -6
- catocli/parsers/mutation_policy_remotePortFwd_addRule/README.md +8 -6
- catocli/parsers/mutation_policy_remotePortFwd_addSection/README.md +8 -6
- catocli/parsers/mutation_policy_remotePortFwd_createPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_remotePortFwd_discardPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_remotePortFwd_moveRule/README.md +8 -6
- catocli/parsers/mutation_policy_remotePortFwd_moveSection/README.md +8 -6
- catocli/parsers/mutation_policy_remotePortFwd_publishPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_remotePortFwd_removeRule/README.md +8 -6
- catocli/parsers/mutation_policy_remotePortFwd_removeSection/README.md +8 -6
- catocli/parsers/mutation_policy_remotePortFwd_updatePolicy/README.md +8 -6
- catocli/parsers/mutation_policy_remotePortFwd_updateRule/README.md +8 -6
- catocli/parsers/mutation_policy_remotePortFwd_updateSection/README.md +8 -6
- catocli/parsers/mutation_policy_socketLan_addRule/README.md +8 -6
- catocli/parsers/mutation_policy_socketLan_addSection/README.md +8 -6
- catocli/parsers/mutation_policy_socketLan_createPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_socketLan_discardPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_socketLan_moveRule/README.md +8 -6
- catocli/parsers/mutation_policy_socketLan_moveSection/README.md +8 -6
- catocli/parsers/mutation_policy_socketLan_publishPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_socketLan_removeRule/README.md +8 -6
- catocli/parsers/mutation_policy_socketLan_removeSection/README.md +8 -6
- catocli/parsers/mutation_policy_socketLan_updatePolicy/README.md +8 -6
- catocli/parsers/mutation_policy_socketLan_updateRule/README.md +8 -6
- catocli/parsers/mutation_policy_socketLan_updateSection/README.md +8 -6
- catocli/parsers/mutation_policy_terminalServer_addRule/README.md +8 -6
- catocli/parsers/mutation_policy_terminalServer_addSection/README.md +8 -6
- catocli/parsers/mutation_policy_terminalServer_createPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_terminalServer_discardPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_terminalServer_moveRule/README.md +8 -6
- catocli/parsers/mutation_policy_terminalServer_moveSection/README.md +8 -6
- catocli/parsers/mutation_policy_terminalServer_publishPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_terminalServer_removeRule/README.md +8 -6
- catocli/parsers/mutation_policy_terminalServer_removeSection/README.md +8 -6
- catocli/parsers/mutation_policy_terminalServer_updatePolicy/README.md +8 -6
- catocli/parsers/mutation_policy_terminalServer_updateRule/README.md +8 -6
- catocli/parsers/mutation_policy_terminalServer_updateSection/README.md +8 -6
- catocli/parsers/mutation_policy_wanFirewall_addRule/README.md +8 -6
- catocli/parsers/mutation_policy_wanFirewall_addSection/README.md +8 -6
- catocli/parsers/mutation_policy_wanFirewall_createPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_wanFirewall_discardPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_wanFirewall_moveRule/README.md +8 -6
- catocli/parsers/mutation_policy_wanFirewall_moveSection/README.md +8 -6
- catocli/parsers/mutation_policy_wanFirewall_publishPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_wanFirewall_removeRule/README.md +8 -6
- catocli/parsers/mutation_policy_wanFirewall_removeSection/README.md +8 -6
- catocli/parsers/mutation_policy_wanFirewall_updatePolicy/README.md +8 -6
- catocli/parsers/mutation_policy_wanFirewall_updateRule/README.md +8 -6
- catocli/parsers/mutation_policy_wanFirewall_updateSection/README.md +8 -6
- catocli/parsers/mutation_policy_wanNetwork_addRule/README.md +8 -6
- catocli/parsers/mutation_policy_wanNetwork_addSection/README.md +8 -6
- catocli/parsers/mutation_policy_wanNetwork_createPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_wanNetwork_discardPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_wanNetwork_moveRule/README.md +8 -6
- catocli/parsers/mutation_policy_wanNetwork_moveSection/README.md +8 -6
- catocli/parsers/mutation_policy_wanNetwork_publishPolicyRevision/README.md +8 -6
- catocli/parsers/mutation_policy_wanNetwork_removeRule/README.md +8 -6
- catocli/parsers/mutation_policy_wanNetwork_removeSection/README.md +8 -6
- catocli/parsers/mutation_policy_wanNetwork_updatePolicy/README.md +8 -6
- catocli/parsers/mutation_policy_wanNetwork_updateRule/README.md +8 -6
- catocli/parsers/mutation_policy_wanNetwork_updateSection/README.md +8 -6
- catocli/parsers/mutation_sandbox/__init__.py +27 -27
- catocli/parsers/mutation_sandbox_deleteReport/README.md +7 -5
- catocli/parsers/mutation_sandbox_uploadFile/README.md +7 -5
- catocli/parsers/mutation_site/__init__.py +474 -474
- catocli/parsers/mutation_site_addBgpPeer/README.md +7 -5
- catocli/parsers/mutation_site_addCloudInterconnectPhysicalConnection/README.md +7 -5
- catocli/parsers/mutation_site_addCloudInterconnectSite/README.md +7 -5
- catocli/parsers/mutation_site_addIpsecIkeV2Site/README.md +7 -5
- catocli/parsers/mutation_site_addIpsecIkeV2SiteTunnels/README.md +8 -6
- catocli/parsers/mutation_site_addNetworkRange/README.md +8 -6
- catocli/parsers/mutation_site_addSecondaryAwsVSocket/README.md +7 -5
- catocli/parsers/mutation_site_addSecondaryAzureVSocket/README.md +7 -5
- catocli/parsers/mutation_site_addSocketAddOnCard/README.md +7 -5
- catocli/parsers/mutation_site_addSocketSite/README.md +7 -5
- catocli/parsers/mutation_site_addStaticHost/README.md +8 -6
- catocli/parsers/mutation_site_assignSiteBwLicense/README.md +7 -5
- catocli/parsers/mutation_site_removeBgpPeer/README.md +7 -5
- catocli/parsers/mutation_site_removeCloudInterconnectPhysicalConnection/README.md +7 -5
- catocli/parsers/mutation_site_removeIpsecIkeV2SiteTunnels/README.md +8 -6
- catocli/parsers/mutation_site_removeNetworkRange/README.md +7 -5
- catocli/parsers/mutation_site_removeSecondaryAwsVSocket/README.md +7 -5
- catocli/parsers/mutation_site_removeSecondaryAzureVSocket/README.md +7 -5
- catocli/parsers/mutation_site_removeSite/README.md +7 -5
- catocli/parsers/mutation_site_removeSiteBwLicense/README.md +7 -5
- catocli/parsers/mutation_site_removeSocketAddOnCard/README.md +7 -5
- catocli/parsers/mutation_site_removeStaticHost/README.md +7 -5
- catocli/parsers/mutation_site_replaceSiteBwLicense/README.md +7 -5
- catocli/parsers/mutation_site_startSiteUpgrade/README.md +7 -5
- catocli/parsers/mutation_site_updateBgpPeer/README.md +7 -5
- catocli/parsers/mutation_site_updateCloudInterconnectPhysicalConnection/README.md +7 -5
- catocli/parsers/mutation_site_updateHa/README.md +8 -6
- catocli/parsers/mutation_site_updateIpsecIkeV2SiteGeneralDetails/README.md +8 -6
- catocli/parsers/mutation_site_updateIpsecIkeV2SiteTunnels/README.md +8 -6
- catocli/parsers/mutation_site_updateNetworkRange/README.md +8 -6
- catocli/parsers/mutation_site_updateSecondaryAwsVSocket/README.md +7 -5
- catocli/parsers/mutation_site_updateSecondaryAzureVSocket/README.md +7 -5
- catocli/parsers/mutation_site_updateSiteBwLicense/README.md +7 -5
- catocli/parsers/mutation_site_updateSiteGeneralDetails/README.md +8 -6
- catocli/parsers/mutation_site_updateSocketInterface/README.md +9 -7
- catocli/parsers/mutation_site_updateStaticHost/README.md +8 -6
- catocli/parsers/mutation_sites/__init__.py +474 -474
- catocli/parsers/mutation_sites_addBgpPeer/README.md +7 -5
- catocli/parsers/mutation_sites_addCloudInterconnectPhysicalConnection/README.md +7 -5
- catocli/parsers/mutation_sites_addCloudInterconnectSite/README.md +7 -5
- catocli/parsers/mutation_sites_addIpsecIkeV2Site/README.md +7 -5
- catocli/parsers/mutation_sites_addIpsecIkeV2SiteTunnels/README.md +8 -6
- catocli/parsers/mutation_sites_addNetworkRange/README.md +8 -6
- catocli/parsers/mutation_sites_addSecondaryAwsVSocket/README.md +7 -5
- catocli/parsers/mutation_sites_addSecondaryAzureVSocket/README.md +7 -5
- catocli/parsers/mutation_sites_addSocketAddOnCard/README.md +7 -5
- catocli/parsers/mutation_sites_addSocketSite/README.md +7 -5
- catocli/parsers/mutation_sites_addStaticHost/README.md +8 -6
- catocli/parsers/mutation_sites_assignSiteBwLicense/README.md +7 -5
- catocli/parsers/mutation_sites_removeBgpPeer/README.md +7 -5
- catocli/parsers/mutation_sites_removeCloudInterconnectPhysicalConnection/README.md +7 -5
- catocli/parsers/mutation_sites_removeIpsecIkeV2SiteTunnels/README.md +8 -6
- catocli/parsers/mutation_sites_removeNetworkRange/README.md +7 -5
- catocli/parsers/mutation_sites_removeSecondaryAwsVSocket/README.md +7 -5
- catocli/parsers/mutation_sites_removeSecondaryAzureVSocket/README.md +7 -5
- catocli/parsers/mutation_sites_removeSite/README.md +7 -5
- catocli/parsers/mutation_sites_removeSiteBwLicense/README.md +7 -5
- catocli/parsers/mutation_sites_removeSocketAddOnCard/README.md +7 -5
- catocli/parsers/mutation_sites_removeStaticHost/README.md +7 -5
- catocli/parsers/mutation_sites_replaceSiteBwLicense/README.md +7 -5
- catocli/parsers/mutation_sites_startSiteUpgrade/README.md +7 -5
- catocli/parsers/mutation_sites_updateBgpPeer/README.md +7 -5
- catocli/parsers/mutation_sites_updateCloudInterconnectPhysicalConnection/README.md +7 -5
- catocli/parsers/mutation_sites_updateHa/README.md +8 -6
- catocli/parsers/mutation_sites_updateIpsecIkeV2SiteGeneralDetails/README.md +8 -6
- catocli/parsers/mutation_sites_updateIpsecIkeV2SiteTunnels/README.md +8 -6
- catocli/parsers/mutation_sites_updateNetworkRange/README.md +8 -6
- catocli/parsers/mutation_sites_updateSecondaryAwsVSocket/README.md +7 -5
- catocli/parsers/mutation_sites_updateSecondaryAzureVSocket/README.md +7 -5
- catocli/parsers/mutation_sites_updateSiteBwLicense/README.md +7 -5
- catocli/parsers/mutation_sites_updateSiteGeneralDetails/README.md +8 -6
- catocli/parsers/mutation_sites_updateSocketInterface/README.md +9 -7
- catocli/parsers/mutation_sites_updateStaticHost/README.md +8 -6
- catocli/parsers/mutation_xdr/__init__.py +45 -45
- catocli/parsers/mutation_xdr_addStoryComment/README.md +7 -5
- catocli/parsers/mutation_xdr_analystFeedback/README.md +7 -6
- catocli/parsers/mutation_xdr_deleteStoryComment/README.md +7 -5
- catocli/parsers/query_accountBySubdomain/README.md +7 -5
- catocli/parsers/query_accountBySubdomain/__init__.py +12 -12
- catocli/parsers/query_accountManagement/README.md +4 -5
- catocli/parsers/query_accountManagement/__init__.py +12 -12
- catocli/parsers/query_accountMetrics/README.md +20 -18
- catocli/parsers/query_accountMetrics/__init__.py +12 -12
- catocli/parsers/query_accountRoles/README.md +7 -5
- catocli/parsers/query_accountRoles/__init__.py +12 -12
- catocli/parsers/query_accountSnapshot/README.md +8 -6
- catocli/parsers/query_accountSnapshot/__init__.py +12 -12
- catocli/parsers/query_admin/README.md +7 -5
- catocli/parsers/query_admin/__init__.py +12 -12
- catocli/parsers/query_admins/README.md +11 -9
- catocli/parsers/query_admins/__init__.py +12 -12
- catocli/parsers/query_appStats/README.md +20 -11
- catocli/parsers/query_appStats/__init__.py +12 -12
- catocli/parsers/query_appStatsTimeSeries/README.md +21 -12
- catocli/parsers/query_appStatsTimeSeries/__init__.py +12 -12
- catocli/parsers/query_auditFeed/README.md +10 -8
- catocli/parsers/query_auditFeed/__init__.py +12 -12
- catocli/parsers/query_catalogs/README.md +9 -7
- catocli/parsers/query_catalogs/__init__.py +12 -12
- catocli/parsers/query_container/README.md +13 -11
- catocli/parsers/query_container/__init__.py +12 -12
- catocli/parsers/query_devices/README.md +10 -8
- catocli/parsers/query_devices/__init__.py +12 -12
- catocli/parsers/query_enterpriseDirectory/README.md +19 -0
- catocli/parsers/query_enterpriseDirectory/__init__.py +16 -0
- catocli/parsers/query_entityLookup/README.md +19 -17
- catocli/parsers/query_entityLookup/__init__.py +12 -12
- catocli/parsers/query_events/README.md +13 -11
- catocli/parsers/query_events/__init__.py +12 -12
- catocli/parsers/query_eventsFeed/README.md +9 -7
- catocli/parsers/query_eventsFeed/__init__.py +12 -12
- catocli/parsers/query_eventsTimeSeries/README.md +14 -12
- catocli/parsers/query_eventsTimeSeries/__init__.py +12 -12
- catocli/parsers/query_groups/__init__.py +51 -51
- catocli/parsers/query_groups_groupList/README.md +8 -6
- catocli/parsers/query_groups_group_members/README.md +8 -6
- catocli/parsers/query_groups_whereUsed/README.md +7 -5
- catocli/parsers/query_hardware/README.md +7 -5
- catocli/parsers/query_hardware/__init__.py +12 -12
- catocli/parsers/query_hardwareManagement/README.md +7 -5
- catocli/parsers/query_hardwareManagement/__init__.py +12 -12
- catocli/parsers/query_licensing/README.md +4 -5
- catocli/parsers/query_licensing/__init__.py +12 -12
- catocli/parsers/query_policy/__init__.py +158 -158
- catocli/parsers/query_policy_appTenantRestriction_policy/README.md +7 -5
- catocli/parsers/query_policy_dynamicIpAllocation_policy/README.md +7 -5
- catocli/parsers/query_policy_internetFirewall_policy/README.md +7 -5
- catocli/parsers/query_policy_remotePortFwd_policy/README.md +7 -5
- catocli/parsers/query_policy_socketLan_policy/README.md +7 -5
- catocli/parsers/query_policy_terminalServer_policy/README.md +7 -5
- catocli/parsers/query_policy_wanFirewall_policy/README.md +7 -5
- catocli/parsers/query_policy_wanNetwork_policy/README.md +7 -5
- catocli/parsers/query_popLocations/README.md +7 -5
- catocli/parsers/query_popLocations/__init__.py +12 -12
- catocli/parsers/query_sandbox/README.md +7 -5
- catocli/parsers/query_sandbox/__init__.py +12 -12
- catocli/parsers/query_servicePrincipalAdmin/README.md +19 -0
- catocli/parsers/query_servicePrincipalAdmin/__init__.py +16 -0
- catocli/parsers/query_site/__init__.py +123 -123
- catocli/parsers/query_siteLocation/__init__.py +10 -10
- catocli/parsers/query_site_availableVersionList/README.md +7 -5
- catocli/parsers/query_site_bgpPeer/README.md +7 -5
- catocli/parsers/query_site_bgpPeerList/README.md +7 -5
- catocli/parsers/query_site_cloudInterconnectConnectionConnectivity/README.md +7 -5
- catocli/parsers/query_site_cloudInterconnectPhysicalConnection/README.md +7 -5
- catocli/parsers/query_site_cloudInterconnectPhysicalConnectionId/README.md +7 -5
- catocli/parsers/query_site_secondaryAwsVSocket/README.md +7 -5
- catocli/parsers/query_site_secondaryAzureVSocket/README.md +7 -5
- catocli/parsers/query_site_siteBgpStatus/README.md +7 -5
- catocli/parsers/query_socketPortMetrics/README.md +13 -11
- catocli/parsers/query_socketPortMetrics/__init__.py +12 -12
- catocli/parsers/query_socketPortMetricsTimeSeries/README.md +14 -12
- catocli/parsers/query_socketPortMetricsTimeSeries/__init__.py +12 -12
- catocli/parsers/query_subDomains/README.md +7 -5
- catocli/parsers/query_subDomains/__init__.py +12 -12
- catocli/parsers/query_xdr/__init__.py +27 -27
- catocli/parsers/query_xdr_stories/README.md +7 -6
- catocli/parsers/query_xdr_story/README.md +9 -8
- catocli/parsers/raw/__init__.py +9 -9
- {catocli-2.1.0.dist-info → catocli-2.1.2.dist-info}/METADATA +1 -1
- catocli-2.1.2.dist-info/RECORD +659 -0
- graphql_client/api/call_api.py +20 -2
- models/mutation.accountManagement.addAccount.json +5 -15
- models/mutation.accountManagement.updateAccount.json +1 -3
- models/mutation.admin.addAdmin.json +14 -35
- models/mutation.admin.addServicePrincipalAdmin.json +2554 -0
- models/mutation.admin.removeAdmin.json +1 -1
- models/mutation.admin.removeServicePrincipalAdmin.json +201 -0
- models/mutation.admin.updateAdmin.json +13 -30
- models/mutation.admin.updateServicePrincipalAdmin.json +2554 -0
- models/mutation.container.delete.json +9 -435
- models/mutation.container.fqdn.addValues.json +6 -11
- models/mutation.container.fqdn.createFromFile.json +4 -12
- models/mutation.container.fqdn.removeValues.json +6 -11
- models/mutation.container.fqdn.updateFromFile.json +5 -15
- models/mutation.container.ipAddressRange.addValues.json +4 -12
- models/mutation.container.ipAddressRange.createFromFile.json +4 -12
- models/mutation.container.ipAddressRange.removeValues.json +4 -12
- models/mutation.container.ipAddressRange.updateFromFile.json +5 -15
- models/mutation.enterpriseDirectory.archiveLocation.json +1046 -0
- models/mutation.enterpriseDirectory.createLocation.json +2521 -0
- models/mutation.enterpriseDirectory.restoreLocation.json +1046 -0
- models/mutation.enterpriseDirectory.updateLocation.json +2567 -0
- models/mutation.groups.createGroup.json +39 -171
- models/mutation.groups.deleteGroup.json +36 -162
- models/mutation.groups.updateGroup.json +41 -177
- models/mutation.hardware.updateHardwareShipping.json +18 -47
- models/mutation.policy.appTenantRestriction.addRule.json +50 -136
- models/mutation.policy.appTenantRestriction.addSection.json +4 -12
- models/mutation.policy.appTenantRestriction.createPolicyRevision.json +3 -9
- models/mutation.policy.appTenantRestriction.discardPolicyRevision.json +2 -6
- models/mutation.policy.appTenantRestriction.moveRule.json +4 -12
- models/mutation.policy.appTenantRestriction.moveSection.json +4 -12
- models/mutation.policy.appTenantRestriction.publishPolicyRevision.json +3 -9
- models/mutation.policy.appTenantRestriction.removeRule.json +2 -6
- models/mutation.policy.appTenantRestriction.removeSection.json +2 -6
- models/mutation.policy.appTenantRestriction.updatePolicy.json +2 -6
- models/mutation.policy.appTenantRestriction.updateRule.json +49 -133
- models/mutation.policy.appTenantRestriction.updateSection.json +3 -9
- models/mutation.policy.dynamicIpAllocation.addRule.json +15 -45
- models/mutation.policy.dynamicIpAllocation.addSection.json +4 -12
- models/mutation.policy.dynamicIpAllocation.createPolicyRevision.json +3 -9
- models/mutation.policy.dynamicIpAllocation.discardPolicyRevision.json +2 -6
- models/mutation.policy.dynamicIpAllocation.moveRule.json +4 -12
- models/mutation.policy.dynamicIpAllocation.moveSection.json +4 -12
- models/mutation.policy.dynamicIpAllocation.publishPolicyRevision.json +3 -9
- models/mutation.policy.dynamicIpAllocation.removeRule.json +2 -6
- models/mutation.policy.dynamicIpAllocation.removeSection.json +2 -6
- models/mutation.policy.dynamicIpAllocation.updatePolicy.json +2 -6
- models/mutation.policy.dynamicIpAllocation.updateRule.json +14 -42
- models/mutation.policy.dynamicIpAllocation.updateSection.json +3 -9
- models/mutation.policy.internetFirewall.addRule.json +248 -542
- models/mutation.policy.internetFirewall.addSection.json +4 -12
- models/mutation.policy.internetFirewall.createPolicyRevision.json +3 -9
- models/mutation.policy.internetFirewall.discardPolicyRevision.json +2 -6
- models/mutation.policy.internetFirewall.moveRule.json +4 -12
- models/mutation.policy.internetFirewall.moveSection.json +4 -12
- models/mutation.policy.internetFirewall.publishPolicyRevision.json +3 -9
- models/mutation.policy.internetFirewall.removeRule.json +2 -6
- models/mutation.policy.internetFirewall.removeSection.json +2 -6
- models/mutation.policy.internetFirewall.updatePolicy.json +2 -6
- models/mutation.policy.internetFirewall.updateRule.json +247 -539
- models/mutation.policy.internetFirewall.updateSection.json +3 -9
- models/mutation.policy.remotePortFwd.addRule.json +35 -91
- models/mutation.policy.remotePortFwd.addSection.json +4 -12
- models/mutation.policy.remotePortFwd.createPolicyRevision.json +3 -9
- models/mutation.policy.remotePortFwd.discardPolicyRevision.json +2 -6
- models/mutation.policy.remotePortFwd.moveRule.json +4 -12
- models/mutation.policy.remotePortFwd.moveSection.json +4 -12
- models/mutation.policy.remotePortFwd.publishPolicyRevision.json +3 -9
- models/mutation.policy.remotePortFwd.removeRule.json +2 -6
- models/mutation.policy.remotePortFwd.removeSection.json +2 -6
- models/mutation.policy.remotePortFwd.updatePolicy.json +2 -6
- models/mutation.policy.remotePortFwd.updateRule.json +34 -88
- models/mutation.policy.remotePortFwd.updateSection.json +3 -9
- models/mutation.policy.socketLan.addRule.json +78 -185
- models/mutation.policy.socketLan.addSection.json +4 -12
- models/mutation.policy.socketLan.createPolicyRevision.json +3 -9
- models/mutation.policy.socketLan.discardPolicyRevision.json +2 -6
- models/mutation.policy.socketLan.moveRule.json +4 -12
- models/mutation.policy.socketLan.moveSection.json +4 -12
- models/mutation.policy.socketLan.publishPolicyRevision.json +3 -9
- models/mutation.policy.socketLan.removeRule.json +2 -6
- models/mutation.policy.socketLan.removeSection.json +2 -6
- models/mutation.policy.socketLan.updatePolicy.json +2 -6
- models/mutation.policy.socketLan.updateRule.json +77 -182
- models/mutation.policy.socketLan.updateSection.json +3 -9
- models/mutation.policy.terminalServer.addRule.json +10 -30
- models/mutation.policy.terminalServer.addSection.json +4 -12
- models/mutation.policy.terminalServer.createPolicyRevision.json +3 -9
- models/mutation.policy.terminalServer.discardPolicyRevision.json +2 -6
- models/mutation.policy.terminalServer.moveRule.json +4 -12
- models/mutation.policy.terminalServer.moveSection.json +4 -12
- models/mutation.policy.terminalServer.publishPolicyRevision.json +3 -9
- models/mutation.policy.terminalServer.removeRule.json +2 -6
- models/mutation.policy.terminalServer.removeSection.json +2 -6
- models/mutation.policy.terminalServer.updatePolicy.json +2 -6
- models/mutation.policy.terminalServer.updateRule.json +9 -27
- models/mutation.policy.terminalServer.updateSection.json +3 -9
- models/mutation.policy.wanFirewall.addRule.json +290 -654
- models/mutation.policy.wanFirewall.addSection.json +4 -12
- models/mutation.policy.wanFirewall.createPolicyRevision.json +3 -9
- models/mutation.policy.wanFirewall.discardPolicyRevision.json +2 -6
- models/mutation.policy.wanFirewall.moveRule.json +4 -12
- models/mutation.policy.wanFirewall.moveSection.json +4 -12
- models/mutation.policy.wanFirewall.publishPolicyRevision.json +3 -9
- models/mutation.policy.wanFirewall.removeRule.json +2 -6
- models/mutation.policy.wanFirewall.removeSection.json +2 -6
- models/mutation.policy.wanFirewall.updatePolicy.json +2 -6
- models/mutation.policy.wanFirewall.updateRule.json +289 -651
- models/mutation.policy.wanFirewall.updateSection.json +3 -9
- models/mutation.policy.wanNetwork.addRule.json +204 -514
- models/mutation.policy.wanNetwork.addSection.json +4 -12
- models/mutation.policy.wanNetwork.createPolicyRevision.json +3 -9
- models/mutation.policy.wanNetwork.discardPolicyRevision.json +2 -6
- models/mutation.policy.wanNetwork.moveRule.json +4 -12
- models/mutation.policy.wanNetwork.moveSection.json +4 -12
- models/mutation.policy.wanNetwork.publishPolicyRevision.json +3 -9
- models/mutation.policy.wanNetwork.removeRule.json +2 -6
- models/mutation.policy.wanNetwork.removeSection.json +2 -6
- models/mutation.policy.wanNetwork.updatePolicy.json +2 -6
- models/mutation.policy.wanNetwork.updateRule.json +203 -511
- models/mutation.policy.wanNetwork.updateSection.json +3 -9
- models/mutation.sandbox.deleteReport.json +1 -3
- models/mutation.sandbox.uploadFile.json +1 -3
- models/mutation.site.addBgpPeer.json +48 -123
- models/mutation.site.addCloudInterconnectPhysicalConnection.json +12 -36
- models/mutation.site.addCloudInterconnectSite.json +8 -24
- models/mutation.site.addIpsecIkeV2Site.json +10 -30
- models/mutation.site.addIpsecIkeV2SiteTunnels.json +14 -40
- models/mutation.site.addNetworkRange.json +15 -43
- models/mutation.site.addSecondaryAwsVSocket.json +5 -15
- models/mutation.site.addSecondaryAzureVSocket.json +4 -12
- models/mutation.site.addSocketAddOnCard.json +4 -12
- models/mutation.site.addSocketSite.json +12 -36
- models/mutation.site.addStaticHost.json +4 -10
- models/mutation.site.assignSiteBwLicense.json +120 -11782
- models/mutation.site.removeBgpPeer.json +1 -3
- models/mutation.site.removeCloudInterconnectPhysicalConnection.json +1 -3
- models/mutation.site.removeIpsecIkeV2SiteTunnels.json +2 -4
- models/mutation.site.removeNetworkRange.json +1 -1
- models/mutation.site.removeSecondaryAwsVSocket.json +1 -1
- models/mutation.site.removeSecondaryAzureVSocket.json +1 -1
- models/mutation.site.removeSite.json +1 -1
- models/mutation.site.removeSiteBwLicense.json +119 -11779
- models/mutation.site.removeSocketAddOnCard.json +3 -9
- models/mutation.site.removeStaticHost.json +1 -1
- models/mutation.site.replaceSiteBwLicense.json +121 -11785
- models/mutation.site.startSiteUpgrade.json +3 -9
- models/mutation.site.updateBgpPeer.json +47 -120
- models/mutation.site.updateCloudInterconnectPhysicalConnection.json +10 -30
- models/mutation.site.updateHa.json +4 -10
- models/mutation.site.updateIpsecIkeV2SiteGeneralDetails.json +11 -24
- models/mutation.site.updateIpsecIkeV2SiteTunnels.json +15 -43
- models/mutation.site.updateNetworkRange.json +15 -43
- models/mutation.site.updateSecondaryAwsVSocket.json +4 -12
- models/mutation.site.updateSecondaryAzureVSocket.json +3 -9
- models/mutation.site.updateSiteBwLicense.json +120 -11782
- models/mutation.site.updateSiteGeneralDetails.json +14 -40
- models/mutation.site.updateSocketInterface.json +26 -74
- models/mutation.site.updateStaticHost.json +4 -10
- models/mutation.sites.addBgpPeer.json +48 -123
- models/mutation.sites.addCloudInterconnectPhysicalConnection.json +12 -36
- models/mutation.sites.addCloudInterconnectSite.json +8 -24
- models/mutation.sites.addIpsecIkeV2Site.json +10 -30
- models/mutation.sites.addIpsecIkeV2SiteTunnels.json +14 -40
- models/mutation.sites.addNetworkRange.json +15 -43
- models/mutation.sites.addSecondaryAwsVSocket.json +5 -15
- models/mutation.sites.addSecondaryAzureVSocket.json +4 -12
- models/mutation.sites.addSocketAddOnCard.json +4 -12
- models/mutation.sites.addSocketSite.json +12 -36
- models/mutation.sites.addStaticHost.json +4 -10
- models/mutation.sites.assignSiteBwLicense.json +120 -11782
- models/mutation.sites.removeBgpPeer.json +1 -3
- models/mutation.sites.removeCloudInterconnectPhysicalConnection.json +1 -3
- models/mutation.sites.removeIpsecIkeV2SiteTunnels.json +2 -4
- models/mutation.sites.removeNetworkRange.json +1 -1
- models/mutation.sites.removeSecondaryAwsVSocket.json +1 -1
- models/mutation.sites.removeSecondaryAzureVSocket.json +1 -1
- models/mutation.sites.removeSite.json +1 -1
- models/mutation.sites.removeSiteBwLicense.json +119 -11779
- models/mutation.sites.removeSocketAddOnCard.json +3 -9
- models/mutation.sites.removeStaticHost.json +1 -1
- models/mutation.sites.replaceSiteBwLicense.json +121 -11785
- models/mutation.sites.startSiteUpgrade.json +3 -9
- models/mutation.sites.updateBgpPeer.json +47 -120
- models/mutation.sites.updateCloudInterconnectPhysicalConnection.json +10 -30
- models/mutation.sites.updateHa.json +4 -10
- models/mutation.sites.updateIpsecIkeV2SiteGeneralDetails.json +11 -24
- models/mutation.sites.updateIpsecIkeV2SiteTunnels.json +15 -43
- models/mutation.sites.updateNetworkRange.json +15 -43
- models/mutation.sites.updateSecondaryAwsVSocket.json +4 -12
- models/mutation.sites.updateSecondaryAzureVSocket.json +3 -9
- models/mutation.sites.updateSiteBwLicense.json +120 -11782
- models/mutation.sites.updateSiteGeneralDetails.json +14 -40
- models/mutation.sites.updateSocketInterface.json +26 -74
- models/mutation.sites.updateStaticHost.json +4 -10
- models/mutation.xdr.addStoryComment.json +15 -113
- models/mutation.xdr.analystFeedback.json +229 -26307
- models/mutation.xdr.deleteStoryComment.json +15 -113
- models/query.accountBySubdomain.json +2 -1
- models/query.accountMetrics.json +15 -12
- models/query.accountRoles.json +1 -1
- models/query.accountSnapshot.json +4 -2
- models/query.admin.json +1 -1
- models/query.admins.json +7 -10
- models/query.appStats.json +633 -33
- models/query.appStatsTimeSeries.json +15 -28
- models/query.auditFeed.json +225 -16
- models/query.catalogs.json +106 -215
- models/query.container.json +21 -471
- models/query.devices.json +333 -620
- models/query.enterpriseDirectory.json +3596 -0
- models/query.entityLookup.json +15 -27
- models/query.events.json +1875 -33
- models/query.eventsFeed.json +30 -14
- models/query.eventsTimeSeries.json +15 -28
- models/query.groups.group.members.json +23 -55
- models/query.groups.groupList.json +87 -266
- models/query.groups.whereUsed.json +2 -6
- models/query.hardware.json +92 -192
- models/query.hardwareManagement.json +21 -63
- models/query.licensing.json +76 -11721
- models/query.policy.appTenantRestriction.policy.json +2 -6
- models/query.policy.dynamicIpAllocation.policy.json +2 -6
- models/query.policy.internetFirewall.policy.json +2 -6
- models/query.policy.remotePortFwd.policy.json +2 -6
- models/query.policy.socketLan.policy.json +2 -6
- models/query.policy.terminalServer.policy.json +2 -6
- models/query.policy.wanFirewall.policy.json +2 -6
- models/query.policy.wanNetwork.policy.json +2 -6
- models/query.popLocations.json +34 -74
- models/query.sandbox.json +44 -83
- models/query.servicePrincipalAdmin.json +1098 -0
- models/query.site.availableVersionList.json +4 -5
- models/query.site.bgpPeer.json +2 -6
- models/query.site.bgpPeerList.json +2 -6
- models/query.site.cloudInterconnectConnectionConnectivity.json +1 -3
- models/query.site.cloudInterconnectPhysicalConnection.json +1 -3
- models/query.site.cloudInterconnectPhysicalConnectionId.json +3 -9
- models/query.site.secondaryAwsVSocket.json +1 -1
- models/query.site.secondaryAzureVSocket.json +1 -1
- models/query.site.siteBgpStatus.json +2 -6
- models/query.socketPortMetrics.json +465 -33
- models/query.socketPortMetricsTimeSeries.json +15 -28
- models/query.subDomains.json +1 -1
- models/query.xdr.stories.json +306 -26440
- models/query.xdr.story.json +40 -26100
- schema/catolib.py +1266 -956
- schema/importSchema.py +53 -48
- catocli/parsers/mutation/README.md +0 -4
- catocli/parsers/mutation_accountManagement_disableAccount/README.md +0 -16
- catocli/parsers/parserApiClient.py +0 -522
- catocli/parsers/query/README.md +0 -3
- catocli-2.1.0.dist-info/RECORD +0 -644
- models/mutation.accountManagement.disableAccount.json +0 -545
- models/query.policy.json +0 -40899
- models/query.site.json +0 -5688
- schema/remove_policyid.py +0 -89
- schema/remove_policyid_mutations.py +0 -89
- {catocli-2.1.0.dist-info → catocli-2.1.2.dist-info}/WHEEL +0 -0
- {catocli-2.1.0.dist-info → catocli-2.1.2.dist-info}/entry_points.txt +0 -0
- {catocli-2.1.0.dist-info → catocli-2.1.2.dist-info}/licenses/LICENSE +0 -0
- {catocli-2.1.0.dist-info → catocli-2.1.2.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Private commands parser for custom GraphQL payloads
|
|
4
|
+
Dynamically loads commands from ~/.cato/settings.json
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import os
|
|
8
|
+
import json
|
|
9
|
+
import argparse
|
|
10
|
+
from ..customParserApiClient import createPrivateRequest, get_private_help
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def load_private_settings():
|
|
14
|
+
"""Load private settings from ~/.cato/settings.json"""
|
|
15
|
+
settings_file = os.path.expanduser("~/.cato/settings.json")
|
|
16
|
+
try:
|
|
17
|
+
with open(settings_file, 'r') as f:
|
|
18
|
+
settings = json.load(f)
|
|
19
|
+
return settings.get('privateCommands', {})
|
|
20
|
+
except (FileNotFoundError, json.JSONDecodeError, KeyError):
|
|
21
|
+
return {}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def private_parse(subparsers):
|
|
25
|
+
"""Check for private settings and create private parser if found"""
|
|
26
|
+
private_commands = load_private_settings()
|
|
27
|
+
|
|
28
|
+
if not private_commands:
|
|
29
|
+
return None
|
|
30
|
+
|
|
31
|
+
# Create the private subparser
|
|
32
|
+
private_parser = subparsers.add_parser(
|
|
33
|
+
'private',
|
|
34
|
+
help='Private custom commands (configured in ~/.cato/settings.json)',
|
|
35
|
+
usage='catocli private <command> [options]'
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
private_subparsers = private_parser.add_subparsers(
|
|
39
|
+
description='Available private commands',
|
|
40
|
+
help='Private command help'
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
# Dynamically create subparsers for each private command
|
|
44
|
+
for command_name, command_config in private_commands.items():
|
|
45
|
+
create_private_command_parser(
|
|
46
|
+
private_subparsers,
|
|
47
|
+
command_name,
|
|
48
|
+
command_config
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
return private_parser
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def create_private_command_parser(subparsers, command_name, command_config):
|
|
55
|
+
"""Create a parser for a specific private command"""
|
|
56
|
+
|
|
57
|
+
# Create the command parser
|
|
58
|
+
cmd_parser = subparsers.add_parser(
|
|
59
|
+
command_name,
|
|
60
|
+
help=f'Execute private command: {command_name}',
|
|
61
|
+
usage=get_private_help(command_name, command_config)
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
# Add standard arguments
|
|
65
|
+
cmd_parser.add_argument(
|
|
66
|
+
'json',
|
|
67
|
+
nargs='?',
|
|
68
|
+
default='{}',
|
|
69
|
+
help='Variables in JSON format (defaults to empty object if not provided).'
|
|
70
|
+
)
|
|
71
|
+
cmd_parser.add_argument(
|
|
72
|
+
'-t',
|
|
73
|
+
const=True,
|
|
74
|
+
default=False,
|
|
75
|
+
nargs='?',
|
|
76
|
+
help='Print GraphQL query without sending API call'
|
|
77
|
+
)
|
|
78
|
+
cmd_parser.add_argument(
|
|
79
|
+
'-v',
|
|
80
|
+
const=True,
|
|
81
|
+
default=False,
|
|
82
|
+
nargs='?',
|
|
83
|
+
help='Verbose output'
|
|
84
|
+
)
|
|
85
|
+
cmd_parser.add_argument(
|
|
86
|
+
'-p',
|
|
87
|
+
const=True,
|
|
88
|
+
default=False,
|
|
89
|
+
nargs='?',
|
|
90
|
+
help='Pretty print'
|
|
91
|
+
)
|
|
92
|
+
cmd_parser.add_argument(
|
|
93
|
+
'-H', '--header',
|
|
94
|
+
action='append',
|
|
95
|
+
dest='headers',
|
|
96
|
+
help='Add custom headers in "Key: Value" format. Can be used multiple times.'
|
|
97
|
+
)
|
|
98
|
+
cmd_parser.add_argument(
|
|
99
|
+
'--headers-file',
|
|
100
|
+
dest='headers_file',
|
|
101
|
+
help='Load headers from a file. Each line should contain a header in "Key: Value" format.'
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
# Add standard accountID argument (like other commands)
|
|
105
|
+
cmd_parser.add_argument(
|
|
106
|
+
'-accountID',
|
|
107
|
+
help='Override the account ID from profile with this value.'
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
# Add dynamic arguments based on command configuration (excluding accountId since it's handled above)
|
|
111
|
+
if 'arguments' in command_config:
|
|
112
|
+
for arg in command_config['arguments']:
|
|
113
|
+
arg_name = arg.get('name')
|
|
114
|
+
# Skip accountId since it's handled by the standard -accountID argument
|
|
115
|
+
if arg_name and arg_name.lower() != 'accountid':
|
|
116
|
+
arg_type = arg.get('type', 'string')
|
|
117
|
+
arg_default = arg.get('default')
|
|
118
|
+
arg_help = f"Argument: {arg_name}"
|
|
119
|
+
|
|
120
|
+
if arg_default:
|
|
121
|
+
arg_help += f" (default: {arg_default})"
|
|
122
|
+
|
|
123
|
+
cmd_parser.add_argument(
|
|
124
|
+
f'--{arg_name}',
|
|
125
|
+
help=arg_help,
|
|
126
|
+
default=arg_default
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
# Set the function to handle this command
|
|
130
|
+
cmd_parser.set_defaults(
|
|
131
|
+
func=createPrivateRequest,
|
|
132
|
+
private_command=command_name,
|
|
133
|
+
private_config=command_config
|
|
134
|
+
)
|
|
@@ -1,61 +1,48 @@
|
|
|
1
1
|
|
|
2
|
-
from ..
|
|
2
|
+
from ..customParserApiClient import createRequest, get_help
|
|
3
3
|
|
|
4
4
|
def mutation_accountManagement_parse(mutation_subparsers):
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
mutation_accountManagement_updateAccount_parser = mutation_accountManagement_subparsers.add_parser('updateAccount',
|
|
51
|
-
help='updateAccount() accountManagement operation',
|
|
52
|
-
usage=get_help("mutation_accountManagement_updateAccount"))
|
|
53
|
-
|
|
54
|
-
mutation_accountManagement_updateAccount_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
55
|
-
mutation_accountManagement_updateAccount_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
56
|
-
mutation_accountManagement_updateAccount_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
57
|
-
mutation_accountManagement_updateAccount_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
58
|
-
mutation_accountManagement_updateAccount_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
59
|
-
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.')
|
|
60
|
-
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.')
|
|
61
|
-
mutation_accountManagement_updateAccount_parser.set_defaults(func=createRequest,operation_name='mutation.accountManagement.updateAccount')
|
|
5
|
+
mutation_accountManagement_parser = mutation_subparsers.add_parser('accountManagement',
|
|
6
|
+
help='accountManagement() mutation operation',
|
|
7
|
+
usage=get_help("mutation_accountManagement"))
|
|
8
|
+
|
|
9
|
+
mutation_accountManagement_subparsers = mutation_accountManagement_parser.add_subparsers()
|
|
10
|
+
|
|
11
|
+
mutation_accountManagement_addAccount_parser = mutation_accountManagement_subparsers.add_parser('addAccount',
|
|
12
|
+
help='addAccount() accountManagement operation',
|
|
13
|
+
usage=get_help("mutation_accountManagement_addAccount"))
|
|
14
|
+
|
|
15
|
+
mutation_accountManagement_addAccount_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
16
|
+
mutation_accountManagement_addAccount_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
|
|
17
|
+
mutation_accountManagement_addAccount_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query 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.')
|
|
22
|
+
mutation_accountManagement_addAccount_parser.set_defaults(func=createRequest,operation_name='mutation.accountManagement.addAccount')
|
|
23
|
+
|
|
24
|
+
mutation_accountManagement_updateAccount_parser = mutation_accountManagement_subparsers.add_parser('updateAccount',
|
|
25
|
+
help='updateAccount() accountManagement operation',
|
|
26
|
+
usage=get_help("mutation_accountManagement_updateAccount"))
|
|
27
|
+
|
|
28
|
+
mutation_accountManagement_updateAccount_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
29
|
+
mutation_accountManagement_updateAccount_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
|
|
30
|
+
mutation_accountManagement_updateAccount_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
31
|
+
mutation_accountManagement_updateAccount_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
32
|
+
mutation_accountManagement_updateAccount_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
33
|
+
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.')
|
|
34
|
+
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.')
|
|
35
|
+
mutation_accountManagement_updateAccount_parser.set_defaults(func=createRequest,operation_name='mutation.accountManagement.updateAccount')
|
|
36
|
+
|
|
37
|
+
mutation_accountManagement_removeAccount_parser = mutation_accountManagement_subparsers.add_parser('removeAccount',
|
|
38
|
+
help='removeAccount() accountManagement operation',
|
|
39
|
+
usage=get_help("mutation_accountManagement_removeAccount"))
|
|
40
|
+
|
|
41
|
+
mutation_accountManagement_removeAccount_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
42
|
+
mutation_accountManagement_removeAccount_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
|
|
43
|
+
mutation_accountManagement_removeAccount_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
44
|
+
mutation_accountManagement_removeAccount_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
45
|
+
mutation_accountManagement_removeAccount_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
46
|
+
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.')
|
|
47
|
+
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.')
|
|
48
|
+
mutation_accountManagement_removeAccount_parser.set_defaults(func=createRequest,operation_name='mutation.accountManagement.removeAccount')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
## CATO-CLI - mutation.accountManagement.addAccount:
|
|
3
|
-
[Click here](https://api.catonetworks.com/documentation/#mutation-addAccount) for documentation on this operation.
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-mutation.accountManagement.addAccount) for documentation on this operation.
|
|
4
4
|
|
|
5
5
|
### Usage for mutation.accountManagement.addAccount:
|
|
6
6
|
|
|
@@ -8,10 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli mutation accountManagement addAccount <json>`
|
|
10
10
|
|
|
11
|
-
`catocli mutation accountManagement addAccount "$(cat < addAccount.json)"`
|
|
11
|
+
`catocli mutation accountManagement addAccount "$(cat < mutation.accountManagement.addAccount.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation accountManagement addAccount '{"addAccountInput":{"description":"string","name":"string","tenancy":"SINGLE_TENANT","timezone":"example_value","type":"CUSTOMER"}}'`
|
|
12
14
|
|
|
13
|
-
`catocli mutation accountManagement addAccount '{"addAccountInput": {"description": {"description": "String"}, "name": {"name": "String"}, "tenancy": {"tenancy": "enum(AccountTenancy)"}, "timezone": {"timezone": "TimeZone"}, "type": {"type": "enum(AccountProfileType)"}}}'`
|
|
14
15
|
|
|
15
16
|
#### Operation Arguments for mutation.accountManagement.addAccount ####
|
|
16
|
-
|
|
17
|
-
`
|
|
17
|
+
|
|
18
|
+
`accountId` [ID] - (required) N/A
|
|
19
|
+
`addAccountInput` [AddAccountInput] - (required) N/A
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
## CATO-CLI - mutation.accountManagement.removeAccount:
|
|
3
|
-
[Click here](https://api.catonetworks.com/documentation/#mutation-removeAccount) for documentation on this operation.
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-mutation.accountManagement.removeAccount) for documentation on this operation.
|
|
4
4
|
|
|
5
5
|
### Usage for mutation.accountManagement.removeAccount:
|
|
6
6
|
|
|
@@ -8,9 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli mutation accountManagement removeAccount <json>`
|
|
10
10
|
|
|
11
|
-
`catocli mutation accountManagement removeAccount "$(cat < removeAccount.json)"`
|
|
12
|
-
|
|
13
|
-
`catocli mutation accountManagement removeAccount '{}'`
|
|
11
|
+
`catocli mutation accountManagement removeAccount "$(cat < mutation.accountManagement.removeAccount.json)"`
|
|
14
12
|
|
|
15
13
|
#### Operation Arguments for mutation.accountManagement.removeAccount ####
|
|
16
|
-
|
|
14
|
+
|
|
15
|
+
`accountId` [ID] - (required) N/A
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
## CATO-CLI - mutation.accountManagement.updateAccount:
|
|
3
|
-
[Click here](https://api.catonetworks.com/documentation/#mutation-updateAccount) for documentation on this operation.
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-mutation.accountManagement.updateAccount) for documentation on this operation.
|
|
4
4
|
|
|
5
5
|
### Usage for mutation.accountManagement.updateAccount:
|
|
6
6
|
|
|
@@ -8,10 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli mutation accountManagement updateAccount <json>`
|
|
10
10
|
|
|
11
|
-
`catocli mutation accountManagement updateAccount "$(cat < updateAccount.json)"`
|
|
11
|
+
`catocli mutation accountManagement updateAccount "$(cat < mutation.accountManagement.updateAccount.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation accountManagement updateAccount '{"updateAccountInput":{"description":"string"}}'`
|
|
12
14
|
|
|
13
|
-
`catocli mutation accountManagement updateAccount '{"updateAccountInput": {"description": {"description": "String"}}}'`
|
|
14
15
|
|
|
15
16
|
#### Operation Arguments for mutation.accountManagement.updateAccount ####
|
|
16
|
-
|
|
17
|
-
`
|
|
17
|
+
|
|
18
|
+
`accountId` [ID] - (required) N/A
|
|
19
|
+
`updateAccountInput` [UpdateAccountInput] - (required) N/A
|
|
@@ -1,48 +1,87 @@
|
|
|
1
1
|
|
|
2
|
-
from ..
|
|
2
|
+
from ..customParserApiClient import createRequest, get_help
|
|
3
3
|
|
|
4
4
|
def mutation_admin_parse(mutation_subparsers):
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
5
|
+
mutation_admin_parser = mutation_subparsers.add_parser('admin',
|
|
6
|
+
help='admin() mutation operation',
|
|
7
|
+
usage=get_help("mutation_admin"))
|
|
8
|
+
|
|
9
|
+
mutation_admin_subparsers = mutation_admin_parser.add_subparsers()
|
|
10
|
+
|
|
11
|
+
mutation_admin_addAdmin_parser = mutation_admin_subparsers.add_parser('addAdmin',
|
|
12
|
+
help='addAdmin() admin operation',
|
|
13
|
+
usage=get_help("mutation_admin_addAdmin"))
|
|
14
|
+
|
|
15
|
+
mutation_admin_addAdmin_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
16
|
+
mutation_admin_addAdmin_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
|
|
17
|
+
mutation_admin_addAdmin_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query 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.')
|
|
22
|
+
mutation_admin_addAdmin_parser.set_defaults(func=createRequest,operation_name='mutation.admin.addAdmin')
|
|
23
|
+
|
|
24
|
+
mutation_admin_addServicePrincipalAdmin_parser = mutation_admin_subparsers.add_parser('addServicePrincipalAdmin',
|
|
25
|
+
help='addServicePrincipalAdmin() admin operation',
|
|
26
|
+
usage=get_help("mutation_admin_addServicePrincipalAdmin"))
|
|
27
|
+
|
|
28
|
+
mutation_admin_addServicePrincipalAdmin_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
29
|
+
mutation_admin_addServicePrincipalAdmin_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
|
|
30
|
+
mutation_admin_addServicePrincipalAdmin_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
31
|
+
mutation_admin_addServicePrincipalAdmin_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
32
|
+
mutation_admin_addServicePrincipalAdmin_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
33
|
+
mutation_admin_addServicePrincipalAdmin_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_addServicePrincipalAdmin_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
35
|
+
mutation_admin_addServicePrincipalAdmin_parser.set_defaults(func=createRequest,operation_name='mutation.admin.addServicePrincipalAdmin')
|
|
36
|
+
|
|
37
|
+
mutation_admin_removeAdmin_parser = mutation_admin_subparsers.add_parser('removeAdmin',
|
|
38
|
+
help='removeAdmin() admin operation',
|
|
39
|
+
usage=get_help("mutation_admin_removeAdmin"))
|
|
40
|
+
|
|
41
|
+
mutation_admin_removeAdmin_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
42
|
+
mutation_admin_removeAdmin_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
|
|
43
|
+
mutation_admin_removeAdmin_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
44
|
+
mutation_admin_removeAdmin_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
45
|
+
mutation_admin_removeAdmin_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
46
|
+
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.')
|
|
47
|
+
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.')
|
|
48
|
+
mutation_admin_removeAdmin_parser.set_defaults(func=createRequest,operation_name='mutation.admin.removeAdmin')
|
|
49
|
+
|
|
50
|
+
mutation_admin_removeServicePrincipalAdmin_parser = mutation_admin_subparsers.add_parser('removeServicePrincipalAdmin',
|
|
51
|
+
help='removeServicePrincipalAdmin() admin operation',
|
|
52
|
+
usage=get_help("mutation_admin_removeServicePrincipalAdmin"))
|
|
53
|
+
|
|
54
|
+
mutation_admin_removeServicePrincipalAdmin_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
55
|
+
mutation_admin_removeServicePrincipalAdmin_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
|
|
56
|
+
mutation_admin_removeServicePrincipalAdmin_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
57
|
+
mutation_admin_removeServicePrincipalAdmin_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
58
|
+
mutation_admin_removeServicePrincipalAdmin_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
59
|
+
mutation_admin_removeServicePrincipalAdmin_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
60
|
+
mutation_admin_removeServicePrincipalAdmin_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
61
|
+
mutation_admin_removeServicePrincipalAdmin_parser.set_defaults(func=createRequest,operation_name='mutation.admin.removeServicePrincipalAdmin')
|
|
62
|
+
|
|
63
|
+
mutation_admin_updateAdmin_parser = mutation_admin_subparsers.add_parser('updateAdmin',
|
|
64
|
+
help='updateAdmin() admin operation',
|
|
65
|
+
usage=get_help("mutation_admin_updateAdmin"))
|
|
66
|
+
|
|
67
|
+
mutation_admin_updateAdmin_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
68
|
+
mutation_admin_updateAdmin_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
|
|
69
|
+
mutation_admin_updateAdmin_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
70
|
+
mutation_admin_updateAdmin_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
71
|
+
mutation_admin_updateAdmin_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
72
|
+
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.')
|
|
73
|
+
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.')
|
|
74
|
+
mutation_admin_updateAdmin_parser.set_defaults(func=createRequest,operation_name='mutation.admin.updateAdmin')
|
|
75
|
+
|
|
76
|
+
mutation_admin_updateServicePrincipalAdmin_parser = mutation_admin_subparsers.add_parser('updateServicePrincipalAdmin',
|
|
77
|
+
help='updateServicePrincipalAdmin() admin operation',
|
|
78
|
+
usage=get_help("mutation_admin_updateServicePrincipalAdmin"))
|
|
79
|
+
|
|
80
|
+
mutation_admin_updateServicePrincipalAdmin_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
81
|
+
mutation_admin_updateServicePrincipalAdmin_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
|
|
82
|
+
mutation_admin_updateServicePrincipalAdmin_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
83
|
+
mutation_admin_updateServicePrincipalAdmin_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
84
|
+
mutation_admin_updateServicePrincipalAdmin_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
85
|
+
mutation_admin_updateServicePrincipalAdmin_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
86
|
+
mutation_admin_updateServicePrincipalAdmin_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
87
|
+
mutation_admin_updateServicePrincipalAdmin_parser.set_defaults(func=createRequest,operation_name='mutation.admin.updateServicePrincipalAdmin')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
## CATO-CLI - mutation.admin.addAdmin:
|
|
3
|
-
[Click here](https://api.catonetworks.com/documentation/#mutation-addAdmin) for documentation on this operation.
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-mutation.admin.addAdmin) for documentation on this operation.
|
|
4
4
|
|
|
5
5
|
### Usage for mutation.admin.addAdmin:
|
|
6
6
|
|
|
@@ -8,10 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli mutation admin addAdmin <json>`
|
|
10
10
|
|
|
11
|
-
`catocli mutation admin addAdmin "$(cat < addAdmin.json)"`
|
|
11
|
+
`catocli mutation admin addAdmin "$(cat < mutation.admin.addAdmin.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation admin addAdmin '{"addAdminInput":{"adminType":"LOGIN","email":"string","firstName":"string","lastName":"string","passwordNeverExpires":true,"updateAdminRoleInput":{"allowedAccounts":["id1","id2"],"allowedEntities":{"id":"id","name":"string","type":"account"},"role":{"id":"id","name":"string"}}}}'`
|
|
12
14
|
|
|
13
|
-
`catocli mutation admin addAdmin '{"addAdminInput": {"adminType": {"adminType": "enum(AdminType)"}, "email": {"email": "String"}, "firstName": {"firstName": "String"}, "lastName": {"lastName": "String"}, "passwordNeverExpires": {"passwordNeverExpires": "Boolean"}, "updateAdminRoleInput": {"allowedAccounts": {"allowedAccounts": ["ID"]}, "allowedEntities": {"id": {"id": "ID"}, "name": {"name": "String"}, "type": {"type": "enum(EntityType)"}}, "role": {"id": {"id": "ID"}, "name": {"name": "String"}}}}}'`
|
|
14
15
|
|
|
15
16
|
#### Operation Arguments for mutation.admin.addAdmin ####
|
|
16
|
-
|
|
17
|
-
`
|
|
17
|
+
|
|
18
|
+
`accountId` [ID] - (required) N/A
|
|
19
|
+
`addAdminInput` [AddAdminInput] - (required) N/A
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.admin.addServicePrincipalAdmin:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-mutation.admin.addServicePrincipalAdmin) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.admin.addServicePrincipalAdmin:
|
|
6
|
+
|
|
7
|
+
`catocli mutation admin addServicePrincipalAdmin -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation admin addServicePrincipalAdmin <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation admin addServicePrincipalAdmin "$(cat < mutation.admin.addServicePrincipalAdmin.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation admin addServicePrincipalAdmin '{"addServicePrincipalAdminInput":{"email":"string","name":"string","updateAdminRoleInput":{"allowedAccounts":["id1","id2"],"allowedEntities":{"id":"id","name":"string","type":"account"},"role":{"id":"id","name":"string"}}}}'`
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
#### Operation Arguments for mutation.admin.addServicePrincipalAdmin ####
|
|
17
|
+
|
|
18
|
+
`accountId` [ID] - (required) N/A
|
|
19
|
+
`addServicePrincipalAdminInput` [AddServicePrincipalAdminInput] - (required) N/A
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
## CATO-CLI - mutation.admin.removeAdmin:
|
|
3
|
-
[Click here](https://api.catonetworks.com/documentation/#mutation-removeAdmin) for documentation on this operation.
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-mutation.admin.removeAdmin) for documentation on this operation.
|
|
4
4
|
|
|
5
5
|
### Usage for mutation.admin.removeAdmin:
|
|
6
6
|
|
|
@@ -8,10 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli mutation admin removeAdmin <json>`
|
|
10
10
|
|
|
11
|
-
`catocli mutation admin removeAdmin "$(cat < removeAdmin.json)"`
|
|
11
|
+
`catocli mutation admin removeAdmin "$(cat < mutation.admin.removeAdmin.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation admin removeAdmin '{"adminID":"id"}'`
|
|
12
14
|
|
|
13
|
-
`catocli mutation admin removeAdmin '{"adminID": "ID"}'`
|
|
14
15
|
|
|
15
16
|
#### Operation Arguments for mutation.admin.removeAdmin ####
|
|
16
|
-
|
|
17
|
-
`
|
|
17
|
+
|
|
18
|
+
`accountId` [ID] - (required) N/A
|
|
19
|
+
`adminID` [ID] - (required) N/A
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.admin.removeServicePrincipalAdmin:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-mutation.admin.removeServicePrincipalAdmin) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.admin.removeServicePrincipalAdmin:
|
|
6
|
+
|
|
7
|
+
`catocli mutation admin removeServicePrincipalAdmin -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation admin removeServicePrincipalAdmin <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation admin removeServicePrincipalAdmin "$(cat < mutation.admin.removeServicePrincipalAdmin.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation admin removeServicePrincipalAdmin '{"adminID":"id"}'`
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
#### Operation Arguments for mutation.admin.removeServicePrincipalAdmin ####
|
|
17
|
+
|
|
18
|
+
`accountId` [ID] - (required) N/A
|
|
19
|
+
`adminID` [ID] - (required) N/A
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
## CATO-CLI - mutation.admin.updateAdmin:
|
|
3
|
-
[Click here](https://api.catonetworks.com/documentation/#mutation-updateAdmin) for documentation on this operation.
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-mutation.admin.updateAdmin) for documentation on this operation.
|
|
4
4
|
|
|
5
5
|
### Usage for mutation.admin.updateAdmin:
|
|
6
6
|
|
|
@@ -8,11 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli mutation admin updateAdmin <json>`
|
|
10
10
|
|
|
11
|
-
`catocli mutation admin updateAdmin "$(cat < updateAdmin.json)"`
|
|
11
|
+
`catocli mutation admin updateAdmin "$(cat < mutation.admin.updateAdmin.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation admin updateAdmin '{"adminID":"id","updateAdminInput":{"firstName":"string","lastName":"string","passwordNeverExpires":true,"updateAdminRoleInput":{"allowedAccounts":["id1","id2"],"allowedEntities":{"id":"id","name":"string","type":"account"},"role":{"id":"id","name":"string"}}}}'`
|
|
12
14
|
|
|
13
|
-
`catocli mutation admin updateAdmin '{"adminID": "ID", "updateAdminInput": {"firstName": {"firstName": "String"}, "lastName": {"lastName": "String"}, "passwordNeverExpires": {"passwordNeverExpires": "Boolean"}, "updateAdminRoleInput": {"allowedAccounts": {"allowedAccounts": ["ID"]}, "allowedEntities": {"id": {"id": "ID"}, "name": {"name": "String"}, "type": {"type": "enum(EntityType)"}}, "role": {"id": {"id": "ID"}, "name": {"name": "String"}}}}}'`
|
|
14
15
|
|
|
15
16
|
#### Operation Arguments for mutation.admin.updateAdmin ####
|
|
16
|
-
|
|
17
|
-
`
|
|
18
|
-
`
|
|
17
|
+
|
|
18
|
+
`accountId` [ID] - (required) N/A
|
|
19
|
+
`adminID` [ID] - (required) N/A
|
|
20
|
+
`updateAdminInput` [UpdateAdminInput] - (required) N/A
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.admin.updateServicePrincipalAdmin:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-mutation.admin.updateServicePrincipalAdmin) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.admin.updateServicePrincipalAdmin:
|
|
6
|
+
|
|
7
|
+
`catocli mutation admin updateServicePrincipalAdmin -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation admin updateServicePrincipalAdmin <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation admin updateServicePrincipalAdmin "$(cat < mutation.admin.updateServicePrincipalAdmin.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation admin updateServicePrincipalAdmin '{"adminID":"id","updateServicePrincipalAdminInput":{"name":"string","updateAdminRoleInput":{"allowedAccounts":["id1","id2"],"allowedEntities":{"id":"id","name":"string","type":"account"},"role":{"id":"id","name":"string"}}}}'`
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
#### Operation Arguments for mutation.admin.updateServicePrincipalAdmin ####
|
|
17
|
+
|
|
18
|
+
`accountId` [ID] - (required) N/A
|
|
19
|
+
`adminID` [ID] - (required) N/A
|
|
20
|
+
`updateServicePrincipalAdminInput` [UpdateServicePrincipalAdminInput] - (required) N/A
|