tccli 3.0.1099.1__py2.py3-none-any.whl → 3.0.1101.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/examples/cdb/v20170320/CloseSSL.md +21 -0
- tccli/examples/cdb/v20170320/DescribeSSLStatus.md +22 -0
- tccli/examples/cdb/v20170320/OpenSSL.md +21 -0
- tccli/examples/cls/v20201016/CreateCosRecharge.md +4 -4
- tccli/examples/cls/v20201016/CreateDashboardSubscribe.md +18 -0
- tccli/examples/cls/v20201016/DeleteConfigExtra.md +1 -1
- tccli/examples/cls/v20201016/DeleteDashboardSubscribe.md +18 -0
- tccli/examples/cls/v20201016/DescribeDashboardSubscribes.md +18 -0
- tccli/examples/cls/v20201016/ModifyCosRecharge.md +3 -3
- tccli/examples/cls/v20201016/ModifyDashboardSubscribe.md +18 -0
- tccli/examples/cls/v20201016/SearchDashboardSubscribe.md +35 -0
- tccli/examples/csip/v20221121/CreateRiskCenterScanTask.md +1 -0
- tccli/examples/csip/v20221121/DescribeRiskCenterAssetViewCFGRiskList.md +1 -0
- tccli/examples/csip/v20221121/DescribeRiskCenterAssetViewPortRiskList.md +1 -0
- tccli/examples/csip/v20221121/DescribeRiskCenterAssetViewVULRiskList.md +1 -0
- tccli/examples/csip/v20221121/DescribeRiskCenterAssetViewWeakPasswordRiskList.md +1 -0
- tccli/examples/csip/v20221121/DescribeRiskCenterPortViewPortRiskList.md +1 -0
- tccli/examples/csip/v20221121/DescribeRiskCenterServerRiskList.md +1 -0
- tccli/examples/csip/v20221121/DescribeRiskCenterVULViewVULRiskList.md +1 -0
- tccli/examples/csip/v20221121/DescribeRiskCenterWebsiteRiskList.md +1 -0
- tccli/examples/csip/v20221121/DescribeScanTaskList.md +1 -0
- tccli/examples/csip/v20221121/DescribeTaskLogURL.md +1 -0
- tccli/examples/csip/v20221121/ModifyRiskCenterRiskStatus.md +1 -0
- tccli/examples/csip/v20221121/ModifyRiskCenterScanTask.md +1 -0
- tccli/examples/dlc/v20210125/CreateSparkSessionBatchSQL.md +1 -1
- tccli/examples/domain/v20180808/ModifyTemplate.md +73 -0
- tccli/examples/ess/v20201111/DescribeBatchOrganizationRegistrationUrls.md +27 -0
- tccli/examples/hunyuan/v20230901/ChatCompletions.md +141 -1
- tccli/examples/hunyuan/v20230901/ChatPro.md +2 -2
- tccli/examples/lke/v20231130/GetEmbedding.md +1 -1
- tccli/examples/lke/v20231130/GetMsgRecord.md +4 -1
- tccli/examples/ocr/v20181119/RecognizeGeneralTextImageWarn.md +83 -0
- tccli/examples/postgres/v20170312/ModifyAccountRemark.md +1 -1
- tccli/examples/rum/v20210622/CreateWhitelist.md +2 -2
- tccli/examples/rum/v20210622/DescribeRumGroupLog.md +3 -3
- tccli/examples/rum/v20210622/DescribeRumLogExport.md +6 -6
- tccli/examples/rum/v20210622/DescribeRumStatsLogList.md +2 -2
- tccli/examples/teo/v20220901/CreatePlan.md +47 -0
- tccli/examples/teo/v20220901/DescribeRulesSetting.md +6 -159
- tccli/examples/teo/v20220901/DestroyPlan.md +20 -0
- tccli/examples/teo/v20220901/IncreasePlanQuota.md +46 -0
- tccli/examples/teo/v20220901/ModifyPlan.md +21 -0
- tccli/examples/teo/v20220901/RenewPlan.md +23 -0
- tccli/examples/teo/v20220901/UpgradePlan.md +23 -0
- tccli/examples/tione/v20191022/UpdateCodeRepository.md +1 -1
- tccli/examples/tke/v20180525/CheckInstancesUpgradeAble.md +15 -7
- tccli/examples/tke/v20180525/CreateCluster.md +58 -142
- tccli/examples/tke/v20180525/DescribeClusterNodePools.md +1 -0
- tccli/examples/tke/v20180525/GetUpgradeInstanceProgress.md +18 -19
- tccli/examples/tke/v20180525/ModifyClusterAuthenticationOptions.md +3 -0
- tccli/examples/tke/v20180525/ModifyNodePoolInstanceTypes.md +1 -1
- tccli/examples/tms/v20201229/AnswerQuestion.md +21 -0
- tccli/examples/tsf/v20180326/CreateCluster.md +2 -2
- tccli/examples/vpc/v20170312/DeleteVpnGateway.md +1 -2
- tccli/examples/vpc/v20170312/DescribeVpnGatewayRoutes.md +2 -1
- tccli/examples/vpc/v20170312/DescribeVpnGatewaySslServers.md +23 -33
- tccli/examples/vpc/v20170312/InquiryPriceCreateVpnGateway.md +11 -3
- tccli/examples/vpc/v20170312/InquiryPriceResetVpnGatewayInternetMaxBandwidth.md +14 -7
- tccli/examples/vpc/v20170312/ModifyVpnGatewayCcnRoutes.md +1 -1
- tccli/examples/vpc/v20170312/ModifyVpnGatewayRoutes.md +8 -4
- tccli/examples/wedata/v20210820/DescribeProject.md +58 -1
- tccli/services/aiart/v20221229/api.json +5 -5
- tccli/services/cdb/cdb_client.py +163 -4
- tccli/services/cdb/v20170320/api.json +169 -0
- tccli/services/cdb/v20170320/examples.json +24 -0
- tccli/services/clb/v20180317/api.json +18 -0
- tccli/services/cls/cls_client.py +337 -72
- tccli/services/cls/v20201016/api.json +461 -50
- tccli/services/cls/v20201016/examples.json +45 -5
- tccli/services/csip/v20221121/api.json +157 -4
- tccli/services/csip/v20221121/examples.json +13 -13
- tccli/services/cvm/v20170312/api.json +3 -3
- tccli/services/cwp/cwp_client.py +0 -53
- tccli/services/cwp/v20180228/api.json +0 -194
- tccli/services/cwp/v20180228/examples.json +0 -8
- tccli/services/cynosdb/v20190107/api.json +1 -1
- tccli/services/dlc/v20210125/api.json +14 -4
- tccli/services/dlc/v20210125/examples.json +1 -1
- tccli/services/domain/domain_client.py +53 -0
- tccli/services/domain/v20180808/api.json +62 -0
- tccli/services/domain/v20180808/examples.json +8 -0
- tccli/services/dts/v20211206/api.json +1 -1
- tccli/services/ess/ess_client.py +57 -4
- tccli/services/ess/v20201111/api.json +88 -0
- tccli/services/ess/v20201111/examples.json +8 -0
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +10 -10
- tccli/services/hunyuan/v20230901/examples.json +26 -2
- tccli/services/ims/v20201229/api.json +2 -1
- tccli/services/iotvideo/v20211125/api.json +15 -0
- tccli/services/lke/lke_client.py +114 -8
- tccli/services/lke/v20231130/api.json +492 -0
- tccli/services/lke/v20231130/examples.json +18 -2
- tccli/services/nlp/v20190408/api.json +13 -0
- tccli/services/ocr/ocr_client.py +53 -0
- tccli/services/ocr/v20181119/api.json +156 -0
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/postgres/v20170312/examples.json +1 -1
- tccli/services/rce/v20201103/api.json +9 -9
- tccli/services/rum/v20210622/api.json +43 -41
- tccli/services/rum/v20210622/examples.json +7 -7
- tccli/services/ssl/v20191205/api.json +2 -2
- tccli/services/tdmq/v20200217/api.json +6 -6
- tccli/services/teo/teo_client.py +338 -20
- tccli/services/teo/v20220901/api.json +376 -2
- tccli/services/teo/v20220901/examples.json +61 -1
- tccli/services/tione/v20191022/api.json +6 -7
- tccli/services/tione/v20191022/examples.json +1 -1
- tccli/services/tione/v20211111/api.json +2 -0
- tccli/services/tke/v20180525/api.json +77 -93
- tccli/services/tke/v20180525/examples.json +7 -7
- tccli/services/tms/tms_client.py +53 -0
- tccli/services/tms/v20201229/api.json +44 -0
- tccli/services/tms/v20201229/examples.json +8 -0
- tccli/services/tse/v20201207/api.json +49 -1
- tccli/services/tsf/v20180326/api.json +80 -42
- tccli/services/tsf/v20180326/examples.json +1 -1
- tccli/services/vpc/v20170312/api.json +39 -23
- tccli/services/vpc/v20170312/examples.json +14 -14
- tccli/services/wedata/v20210820/api.json +465 -0
- tccli/services/wedata/v20210820/examples.json +1 -1
- {tccli-3.0.1099.1.dist-info → tccli-3.0.1101.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1099.1.dist-info → tccli-3.0.1101.1.dist-info}/RECORD +127 -109
- {tccli-3.0.1099.1.dist-info → tccli-3.0.1101.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1099.1.dist-info → tccli-3.0.1101.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1099.1.dist-info → tccli-3.0.1101.1.dist-info}/license_files/LICENSE +0 -0
@@ -60,7 +60,7 @@
|
|
60
60
|
{
|
61
61
|
"document": "检查节点是否可升级",
|
62
62
|
"input": "https://tke.tencentcloudapi.com/?Action=CheckInstancesUpgradeAble\n&ClusterId=cls-7ph3twqe\n&InstanceIds.0=ins-q40fqbso\n&InstanceIds.1=ins-hvldgo6w\n&InstanceIds.2=ins-hrtaxazg\n&<公共请求参数>",
|
63
|
-
"output": "{\n \"Response\": {\n \"ClusterVersion\": \"1.22.5\",\n \"LatestVersion\": \"1.22.5\",\n \"Total\": 3,\n \"RequestId\": \"123\",\n \"UnavailableVersionReason\":
|
63
|
+
"output": "{\n \"Response\": {\n \"ClusterVersion\": \"1.22.5\",\n \"LatestVersion\": \"1.22.5\",\n \"Total\": 3,\n \"RequestId\": \"123\",\n \"UnavailableVersionReason\": [\n {\n \"InstanceId\": \"ins-mq0fqbso\",\n \"Reason\": \"instance already the master latest version\"\n }\n ],\n \"UpgradeAbleInstances\": [\n {\n \"InstanceId\": \"ins-q40fqbso\",\n \"LatestVersion\": \"1.22.5\",\n \"Version\": \"1.20.6\",\n \"RuntimeVersion\": \"docker-18.9\",\n \"RuntimeLatestVersion\": \"docker-18.9\"\n },\n {\n \"InstanceId\": \"ins-hvldgo6w\",\n \"LatestVersion\": \"1.22.5\",\n \"Version\": \"1.20.6\",\n \"RuntimeVersion\": \"docker-18.9\",\n \"RuntimeLatestVersion\": \"docker-18.9\"\n },\n {\n \"InstanceId\": \"ins-hrtaxazg\",\n \"LatestVersion\": \"1.22.5\",\n \"Version\": \"1.20.6\",\n \"RuntimeVersion\": \"docker-18.9\",\n \"RuntimeLatestVersion\": \"docker-18.9\"\n }\n ]\n }\n}",
|
64
64
|
"title": "检查节点是否可升级"
|
65
65
|
}
|
66
66
|
],
|
@@ -83,7 +83,7 @@
|
|
83
83
|
"CreateCluster": [
|
84
84
|
{
|
85
85
|
"document": "创建托管集群",
|
86
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCluster\n<公共请求参数>\n\n{\n \"ClusterCIDRSettings\": {\n \"ServiceCIDR\": \"xyz\",\n \"ClaimExpiredSeconds\": 0,\n \"MaxClusterServiceNum\": 1,\n \"MaxNodePodNum\": 1,\n \"EniSubnetIds\": [\n \"subnet-abcdef\"\n ],\n \"ClusterCIDR\": \"xyz\",\n \"IgnoreServiceCIDRConflict\": true,\n \"IgnoreClusterCIDRConflict\": true\n },\n \"ClusterAdvancedSettings\": {\n \"AuditEnabled\": true,\n \"DeletionProtection\": true,\n \"RuntimeVersion\": \"xyz\",\n \"IsDualStack\": true,\n \"IsNonStaticIpMode\": true,\n \"KubeProxyMode\": \"xyz\",\n \"AuditLogTopicId\": \"xyz\",\n \"ExtraArgs\": {\n \"KubeAPIServer\": [\n \"xyz\"\n ],\n \"KubeScheduler\": [\n \"xyz\"\n ],\n \"KubeControllerManager\": [\n \"xyz\"\n ],\n \"Etcd\": [\n \"xyz\"\n ]\n },\n \"AuditLogsetId\": \"xyz\",\n \"EnableCustomizedPodCIDR\": true,\n \"CiliumMode\": \"xyz\",\n \"AsEnabled\": true,\n \"ContainerRuntime\": \"xyz\",\n \"VpcCniType\": \"xyz\",\n \"NetworkType\": \"xyz\",\n \"NodeNameType\": \"xyz\",\n \"IPVS\": true,\n \"BasePodNumber\": 0\n },\n \"ClusterBasicSettings\": {\n \"AutoUpgradeClusterLevel\": {\n \"IsAutoUpgrade\": true\n },\n \"VpcId\": \"xyz\",\n \"ClusterVersion\": \"xyz\",\n \"TagSpecification\": [\n {\n \"ResourceType\": \"xyz\",\n \"Tags\": [\n {\n \"Value\": \"xyz\",\n \"Key\": \"xyz\"\n }\n ]\n }\n ],\n \"ClusterName\": \"xyz\",\n \"ProjectId\": 0,\n \"ClusterDescription\": \"xyz\",\n \"NeedWorkSecurityGroup\": true,\n \"SubnetId\": \"xyz\",\n \"OsCustomizeType\": \"xyz\",\n \"ClusterLevel\": \"xyz\",\n \"ClusterOs\": \"xyz\"\n },\n \"RunInstancesForNode\": [\n {\n \"InstanceAdvancedSettingsOverrides\": [\n {\n \"PreStartUserScript\": \"xyz\",\n \"DockerGraphPath\": \"xyz\",\n \"Labels\": [\n {\n \"Name\": \"xyz\",\n \"Value\": \"xyz\"\n }\n ],\n \"ExtraArgs\": {\n \"Kubelet\": [\n \"xyz\"\n ]\n },\n \"Taints\": [\n {\n \"Value\": \"xyz\",\n \"Key\": \"xyz\",\n \"Effect\": \"xyz\"\n }\n ],\n \"Unschedulable\": 0,\n \"UserScript\": \"xyz\",\n \"DesiredPodNumber\": 0,\n \"GPUArgs\": {\n \"MIGEnable\": true,\n \"CustomDriver\": {\n \"Address\": \"xyz\"\n },\n \"Driver\": {\n \"Version\": \"xyz\",\n \"Name\": \"xyz\"\n },\n \"CUDA\": {\n \"Version\": \"xyz\",\n \"Name\": \"xyz\"\n },\n \"CUDNN\": {\n \"DocName\": \"xyz\",\n \"Version\": \"xyz\",\n \"Name\": \"xyz\",\n \"DevName\": \"xyz\"\n }\n },\n \"MountTarget\": \"xyz\",\n \"DataDisks\": [\n {\n \"DiskPartition\": \"xyz\",\n \"DiskType\": \"xyz\",\n \"DiskSize\": 0,\n \"FileSystem\": \"xyz\",\n \"AutoFormatAndMount\": true,\n \"MountTarget\": \"xyz\"\n }\n ]\n }\n ],\n \"NodeRole\": \"xyz\",\n \"RunInstancesPara\": [\n \"{\\\"VirtualPrivateCloud\\\":{\\\"SubnetId\\\":\\\"subnet-xyzx\\\",\\\"VpcId\\\":\\\"vpc-xyzx\\\"},\\\"Placement\\\":{\\\"Zone\\\":\\\"ap-region-1\\\",\\\"ProjectId\\\":1032509},\\\"InstanceType\\\":\\\"S3.LARGE8\\\",\\\"SystemDisk\\\":{\\\"DiskType\\\":\\\"CLOUD_PREMIUM\\\"},\\\"DataDisks\\\":[{\\\"DiskType\\\":\\\"CLOUD_PREMIUM\\\",\\\"DiskSize\\\":50}],\\\"InstanceCount\\\":1,\\\"InternetAccessible\\\":{\\\"PublicIpAssigned\\\":true,\\\"InternetMaxBandwidthOut\\\":1},\\\"LoginSettings\\\":{\\\"Password\\\":\\\"YourPassword\\\"},\\\"UserData\\\":\\\"IyEvYmluL3NoCgplY2hvIGFhYQo=\\\"}\"\n ]\n }\n ],\n \"ExtensionAddons\": [\n {\n \"AddonName\": \"xyz\",\n \"AddonParam\": \"xyz\"\n }\n ],\n \"ClusterType\": \"xyz\",\n \"InstanceAdvancedSettings\": {\n \"PreStartUserScript\": \"xyz\",\n \"DockerGraphPath\": \"xyz\",\n \"Labels\": [\n {\n \"Name\": \"xyz\",\n \"Value\": \"xyz\"\n }\n ],\n \"ExtraArgs\": {\n \"Kubelet\": [\n \"xyz\"\n ]\n },\n \"Taints\": [\n {\n \"Value\": \"xyz\",\n \"Key\": \"xyz\",\n \"Effect\": \"xyz\"\n }\n ],\n \"Unschedulable\": 0,\n \"UserScript\": \"xyz\",\n \"DesiredPodNumber\": 0,\n \"GPUArgs\": {\n \"MIGEnable\": true,\n \"CustomDriver\": {\n \"Address\": \"xyz\"\n },\n \"Driver\": {\n \"Version\": \"xyz\",\n \"Name\": \"xyz\"\n },\n \"CUDNN\": {\n \"DocName\": \"xyz\",\n \"Version\": \"xyz\",\n \"Name\": \"xyz\",\n \"DevName\": \"xyz\"\n }\n },\n \"MountTarget\": \"xyz\",\n \"DataDisks\": [\n {\n \"DiskPartition\": \"xyz\",\n \"DiskType\": \"xyz\",\n \"DiskSize\": 0,\n \"FileSystem\": \"xyz\",\n \"AutoFormatAndMount\": true,\n \"MountTarget\": \"xyz\"\n }\n ]\n },\n \"ExistedInstancesForNode\": [\n {\n \"ExistedInstancesPara\": {\n \"InstanceAdvancedSettings\": {\n \"PreStartUserScript\": \"xyz\",\n \"DockerGraphPath\": \"xyz\",\n \"Labels\": [\n {\n \"Name\": \"xyz\",\n \"Value\": \"xyz\"\n }\n ],\n \"ExtraArgs\": {\n \"Kubelet\": [\n \"xyz\"\n ]\n },\n \"Taints\": [\n {\n \"Value\": \"xyz\",\n \"Key\": \"xyz\",\n \"Effect\": \"xyz\"\n }\n ],\n \"Unschedulable\": 0,\n \"UserScript\": \"xyz\",\n \"DesiredPodNumber\": 0,\n \"GPUArgs\": {\n \"MIGEnable\": true,\n \"CustomDriver\": {\n \"Address\": \"xyz\"\n },\n \"CUDNN\": {\n \"DocName\": \"xyz\",\n \"Version\": \"xyz\",\n \"Name\": \"xyz\",\n \"DevName\": \"xyz\"\n }\n },\n \"MountTarget\": \"xyz\",\n \"DataDisks\": [\n {\n \"DiskPartition\": \"xyz\",\n \"DiskType\": \"xyz\",\n \"DiskSize\": 0,\n \"FileSystem\": \"xyz\",\n \"AutoFormatAndMount\": true,\n \"MountTarget\": \"xyz\"\n }\n ]\n },\n \"HostName\": \"xyz\",\n \"LoginSettings\": {\n \"Password\": \"xyz\",\n \"KeepImageLogin\": \"xyz\",\n \"KeyIds\": [\n \"xyz\"\n ]\n },\n \"SecurityGroupIds\": [\n \"xyz\"\n ],\n \"EnhancedService\": {\n \"SecurityService\": {\n \"Enabled\": true\n },\n \"MonitorService\": {\n \"Enabled\": true\n },\n \"AutomationService\": {\n \"Enabled\": true\n }\n },\n \"InstanceIds\": [\n \"xyz\"\n ]\n },\n \"DesiredPodNumbers\": [\n 0\n ],\n \"NodeRole\": \"xyz\"\n }\n ],\n \"InstanceDataDiskMountSettings\": [\n {\n \"InstanceType\": \"xyz\",\n \"Zone\": \"xyz\",\n \"DataDisks\": [\n {\n \"DiskPartition\": \"xyz\",\n \"DiskType\": \"xyz\",\n \"DiskSize\": 0,\n \"FileSystem\": \"xyz\",\n \"AutoFormatAndMount\": true,\n \"MountTarget\": \"xyz\"\n }\n ]\n }\n ]\n}",
|
86
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCluster\n<公共请求参数>\n\n{\n \"ClusterType\": \"MANAGED_CLUSTER\",\n \"ClusterBasicSettings\": {\n \"ClusterOs\": \"centos8.0x86_64\",\n \"OsCustomizeType\": \"GENERAL\",\n \"ClusterVersion\": \"1.26.1\",\n \"ClusterName\": \"test\",\n \"ClusterDescription\": \"测试集群\",\n \"VpcId\": \"vpc-135qxjgs\",\n \"ProjectId\": 0,\n \"NeedWorkSecurityGroup\": false,\n \"TagSpecification\": [\n {\n \"ResourceType\": \"cluster\",\n \"Tags\": [\n {\n \"Key\": \"aa\",\n \"Value\": \"cc\"\n }\n ]\n }\n ],\n \"ClusterLevel\": \"L5\",\n \"AutoUpgradeClusterLevel\": {\n \"IsAutoUpgrade\": true\n }\n },\n \"ClusterCIDRSettings\": {\n \"ClusterCIDR\": \"172.24.0.0/16\",\n \"IgnoreClusterCIDRConflict\": false,\n \"MaxNodePodNum\": 64,\n \"MaxClusterServiceNum\": 1024\n },\n \"ClusterAdvancedSettings\": {\n \"AsEnabled\": false,\n \"IPVS\": true,\n \"ContainerRuntime\": \"containerd\",\n \"RuntimeVersion\": \"1.6.9\",\n \"NodeNameType\": \"lan-ip\",\n \"ExtraArgs\": {\n \"KubeAPIServer\": [],\n \"KubeControllerManager\": [],\n \"KubeScheduler\": []\n },\n \"NetworkType\": \"GR\",\n \"DeletionProtection\": true,\n \"AuditEnabled\": true,\n \"AuditLogsetId\": \"\",\n \"AuditLogTopicId\": \"\",\n \"EnableCustomizedPodCIDR\": false,\n \"IsDualStack\": false,\n \"QGPUShareEnable\": true\n },\n \"InstanceAdvancedSettings\": {\n \"DataDisks\": [],\n \"DockerGraphPath\": \"/var/lib/containerd\",\n \"Unschedulable\": 0,\n \"PreStartUserScript\": \"\",\n \"UserScript\": \"\",\n \"Labels\": [],\n \"Taints\": [],\n \"GPUArgs\": {},\n \"DesiredPodNumber\": 0\n },\n \"ExtensionAddons\": [\n {\n \"AddonName\": \"CBS\",\n \"AddonParam\": \"{\\\"kind\\\":\\\"App\\\",\\\"spec\\\":{\\\"chart\\\":{\\\"chartName\\\":\\\"cbs\\\",\\\"chartVersion\\\":\\\"1.1.3\\\"},\\\"values\\\":{\\\"values\\\":[],\\\"rawValues\\\":\\\"e30=\\\",\\\"rawValuesType\\\":\\\"json\\\"}}}\"\n },\n {\n \"AddonName\": \"APP\",\n \"AddonParam\": \"{\\\"kind\\\":\\\"App\\\",\\\"spec\\\":{\\\"chart\\\":{\\\"chartName\\\":\\\"user-group-access-control\\\",\\\"chartVersion\\\":\\\"1.0.0\\\"}}}\"\n },\n {\n \"AddonName\": \"QGPU\",\n \"AddonParam\": \"{\\\"kind\\\":\\\"App\\\",\\\"spec\\\":{\\\"chart\\\":{\\\"chartName\\\":\\\"qgpu\\\",\\\"chartVersion\\\":\\\"1.0.19\\\"},\\\"values\\\":{\\\"values\\\":[\\\"config.priority=binpack\\\",\\\"config.nodepriority=spread\\\",\\\"config.rootdir=/var/lib/kubelet\\\"]}}}\"\n },\n {\n \"AddonName\": \"KMS\",\n \"AddonParam\": \"{\\\"kind\\\":\\\"App\\\",\\\"spec\\\":{\\\"chart\\\":{\\\"chartName\\\":\\\"tke-kms-plugin\\\",\\\"chartVersion\\\":\\\"1.0.0\\\"},\\\"name\\\":\\\"tke-kms-plugin\\\",\\\"values\\\":{\\\"values\\\":[\\\"keyId=7d90e454-8458-11ee-b601-525400741137\\\",\\\"region=ap-guangzhou\\\",\\\"resource=secrets\\\"]}}}\"\n }\n ],\n \"RunInstancesForNode\": [\n {\n \"NodeRole\": \"WORKER\",\n \"RunInstancesPara\": [\n \"{\\\"Version\\\":\\\"2017-03-12\\\",\\\"InstanceChargeType\\\":\\\"POSTPAID_BY_HOUR\\\",\\\"Placement\\\":{\\\"Zone\\\":\\\"ap-shanghai-1\\\",\\\"ProjectId\\\":0},\\\"TagSpecification\\\":[{\\\"ResourceType\\\":\\\"instance\\\",\\\"Tags\\\":[{\\\"Key\\\":\\\"aa\\\",\\\"Value\\\":\\\"cc\\\"}]}],\\\"InstanceType\\\":\\\"S2.MEDIUM2\\\",\\\"ImageId\\\":\\\"img-25szkc8t\\\",\\\"SystemDisk\\\":{\\\"DiskType\\\":\\\"CLOUD_BSSD\\\",\\\"DiskSize\\\":50},\\\"VirtualPrivateCloud\\\":{\\\"VpcId\\\":\\\"vpc-135qxjgs\\\",\\\"SubnetId\\\":\\\"subnet-rtp4p7q3\\\",\\\"Ipv6AddressCount\\\":0},\\\"InternetAccessible\\\":{\\\"InternetChargeType\\\":\\\"TRAFFIC_POSTPAID_BY_HOUR\\\",\\\"InternetMaxBandwidthOut\\\":1,\\\"PublicIpAssigned\\\":true},\\\"InstanceCount\\\":1,\\\"InstanceName\\\":\\\"\\\",\\\"LoginSettings\\\":{\\\"KeyIds\\\":[\\\"skey-4h43fuxj\\\"]},\\\"SecurityGroupIds\\\":[\\\"sg-hjsb4ai4\\\"],\\\"EnhancedService\\\":{\\\"SecurityService\\\":{\\\"Enabled\\\":true},\\\"MonitorService\\\":{\\\"Enabled\\\":true}},\\\"PurchaseSource\\\":\\\"docker_dashboard\\\",\\\"UserData\\\":\\\"\\\"}\"\n ],\n \"InstanceAdvancedSettingsOverrides\": [\n {\n \"DataDisks\": [],\n \"MountTarget\": \"\",\n \"DockerGraphPath\": \"/var/lib/containerd\",\n \"Unschedulable\": 0,\n \"PreStartUserScript\": \"\",\n \"UserScript\": \"\",\n \"DesiredPodNumber\": 0,\n \"Labels\": [],\n \"Taints\": [],\n \"ExtraArgs\": {\n \"Kubelet\": []\n },\n \"GPUArgs\": {\n \"MIGEnable\": false,\n \"Driver\": {\n \"Version\": \"\",\n \"Name\": \"\"\n },\n \"CUDA\": {\n \"Version\": \"\",\n \"Name\": \"\"\n },\n \"CUDNN\": {\n \"Version\": \"\",\n \"Name\": \"\",\n \"DocName\": \"\",\n \"DevName\": \"\"\n }\n }\n }\n ]\n }\n ],\n \"InstanceDataDiskMountSettings\": []\n}",
|
87
87
|
"output": "{\n \"Response\": {\n \"ClusterId\": \"cls-7ph3twqe\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
88
88
|
"title": "创建托管集群示例"
|
89
89
|
},
|
@@ -730,7 +730,7 @@
|
|
730
730
|
{
|
731
731
|
"document": "查询节点池列表",
|
732
732
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterNodePools\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-xxxxxx\"\n}",
|
733
|
-
"output": "{\n \"Response\": {\n \"NodePoolSet\": [\n {\n \"AutoscalingGroupId\": \"asg-xxx\",\n \"AutoscalingGroupStatus\": \"disabled\",\n \"ClusterInstanceId\": \"cls-xxxx\",\n \"DataDisks\": null,\n \"DeletionProtection\": true,\n \"DesiredNodesNum\": 2,\n \"DesiredPodNum\": 64,\n \"DockerGraphPath\": \"\",\n \"ExtraArgs\": {\n \"Kubelet\": []\n },\n \"GPUArgs\": {\n \"CUDA\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"CUDNN\": {\n \"DevName\": \"\",\n \"DocName\": \"\",\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"CustomDriver\": {\n \"Address\": \"\"\n },\n \"Driver\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"MIGEnable\": false\n },\n \"ImageId\": \"\",\n \"Labels\": [],\n \"LaunchConfigurationId\": \"asc-xxx\",\n \"LifeState\": \"normal\",\n \"MaxNodesNum\": 3,\n \"MinNodesNum\": 0,\n \"Name\": \"xxx\",\n \"NodeCountSummary\": {\n \"AutoscalingAdded\": {\n \"Initializing\": 0,\n \"Joining\": 0,\n \"Normal\": 2,\n \"Total\": 2\n },\n \"ManuallyAdded\": {\n \"Initializing\": 0,\n \"Joining\": 0,\n \"Normal\": 1,\n \"Total\": 1\n }\n },\n \"NodePoolId\": \"np-xxx\",\n \"NodePoolOs\": \"tlinux_xxx\",\n \"OsCustomizeType\": \"GENERAL\",\n \"PreStartUserScript\": \"#!/bin/sh\\ntouch /tmp/before\",\n \"RuntimeConfig\": {\n \"RuntimeType\": \"containerd\",\n \"RuntimeVersion\": \"1.6.x\"\n },\n \"Tags\": null,\n \"Taints\": [],\n \"Unschedulable\": 0,\n \"UserScript\": \"#!/bin/sh\\ntouch /tmp/after\"\n }\n ],\n \"RequestId\": \"efb810cb-d5a2-4147-88ec-cd1e28c5202e\",\n \"TotalCount\": 1\n }\n}",
|
733
|
+
"output": "{\n \"Response\": {\n \"NodePoolSet\": [\n {\n \"AutoscalingGroupId\": \"asg-xxx\",\n \"AutoscalingGroupStatus\": \"disabled\",\n \"ClusterInstanceId\": \"cls-xxxx\",\n \"DataDisks\": null,\n \"DeletionProtection\": true,\n \"DesiredNodesNum\": 2,\n \"DesiredPodNum\": 64,\n \"DockerGraphPath\": \"\",\n \"ExtraArgs\": {\n \"Kubelet\": []\n },\n \"GPUArgs\": {\n \"CUDA\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"CUDNN\": {\n \"DevName\": \"\",\n \"DocName\": \"\",\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"CustomDriver\": {\n \"Address\": \"\"\n },\n \"Driver\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"MIGEnable\": false\n },\n \"ImageId\": \"\",\n \"Labels\": [],\n \"Annotations\": [],\n \"LaunchConfigurationId\": \"asc-xxx\",\n \"LifeState\": \"normal\",\n \"MaxNodesNum\": 3,\n \"MinNodesNum\": 0,\n \"Name\": \"xxx\",\n \"NodeCountSummary\": {\n \"AutoscalingAdded\": {\n \"Initializing\": 0,\n \"Joining\": 0,\n \"Normal\": 2,\n \"Total\": 2\n },\n \"ManuallyAdded\": {\n \"Initializing\": 0,\n \"Joining\": 0,\n \"Normal\": 1,\n \"Total\": 1\n }\n },\n \"NodePoolId\": \"np-xxx\",\n \"NodePoolOs\": \"tlinux_xxx\",\n \"OsCustomizeType\": \"GENERAL\",\n \"PreStartUserScript\": \"#!/bin/sh\\ntouch /tmp/before\",\n \"RuntimeConfig\": {\n \"RuntimeType\": \"containerd\",\n \"RuntimeVersion\": \"1.6.x\"\n },\n \"Tags\": null,\n \"Taints\": [],\n \"Unschedulable\": 0,\n \"UserScript\": \"#!/bin/sh\\ntouch /tmp/after\"\n }\n ],\n \"RequestId\": \"efb810cb-d5a2-4147-88ec-cd1e28c5202e\",\n \"TotalCount\": 1\n }\n}",
|
734
734
|
"title": "查询节点池列表"
|
735
735
|
}
|
736
736
|
],
|
@@ -1476,7 +1476,7 @@
|
|
1476
1476
|
{
|
1477
1477
|
"document": "查询升级状态",
|
1478
1478
|
"input": "https://tke.tencentcloudapi.com/?Action=GetUpgradeInstanceProgress\n&ClusterId=cls-xxxxxx\n&<公共请求参数>",
|
1479
|
-
"output": "{\n \"Response\": {\n \"
|
1479
|
+
"output": "{\n \"Response\": {\n \"Total\": 0,\n \"Done\": 0,\n \"LifeState\": \"abc\",\n \"Instances\": [\n {\n \"InstanceID\": \"ins-wggphft5\",\n \"LifeState\": \"paused\",\n \"StartAt\": \"2021-02-08T16:29:46+08:00\",\n \"EndAt\": \"2021-02-08T16:39:46+08:00\",\n \"CheckResult\": {\n \"CheckPass\": false,\n \"Items\": [\n {\n \"Namespace\": \"default\",\n \"WorkLoadKind\": \"ReplicaSet\",\n \"WorkLoadName\": \"kubernetes-proxy-67fd23cf4d\",\n \"Before\": 1,\n \"After\": 0,\n \"Pods\": [\n \"kubernetes-proxy-67fd23cf4d-2tcxw\"\n ]\n }\n ],\n \"SinglePods\": []\n },\n \"Detail\": [\n {\n \"EndAt\": null,\n \"FailedMsg\": \"precheck failed\",\n \"LifeState\": \"failed\",\n \"StartAt\": \"2023-02-08T08:29:51Z\",\n \"Step\": \"preCheck\"\n },\n {\n \"EndAt\": null,\n \"FailedMsg\": \"\",\n \"LifeState\": \"pending\",\n \"StartAt\": null,\n \"Step\": \"drain\"\n },\n {\n \"EndAt\": null,\n \"FailedMsg\": \"\",\n \"LifeState\": \"pending\",\n \"StartAt\": null,\n \"Step\": \"remove\"\n },\n {\n \"EndAt\": null,\n \"FailedMsg\": \"\",\n \"LifeState\": \"pending\",\n \"StartAt\": null,\n \"Step\": \"reset\"\n },\n {\n \"EndAt\": null,\n \"FailedMsg\": \"\",\n \"LifeState\": \"pending\",\n \"StartAt\": null,\n \"Step\": \"postCheck\"\n }\n ]\n }\n ],\n \"ClusterStatus\": {\n \"PodTotal\": 10,\n \"NotReadyPod\": 0\n },\n \"RequestId\": \"b224fa4b-fedf-4061-baa9-d547ew858df\"\n }\n}",
|
1480
1480
|
"title": "查询升级状态"
|
1481
1481
|
}
|
1482
1482
|
],
|
@@ -1553,7 +1553,7 @@
|
|
1553
1553
|
"ModifyClusterAuthenticationOptions": [
|
1554
1554
|
{
|
1555
1555
|
"document": "修改集群认证配置",
|
1556
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterAuthenticationOptions\n<公共请求参数>\n\n{\n \"ServiceAccounts\": {\n \"JWKSURI\": \"https://cls-7ph3twqe.ccs.tencent-cloud.com/openid/v1/jwks\",\n \"Issuer\": \"https://cls-7ph3twqe.ccs.tencent-cloud.com\",\n \"AutoCreateDiscoveryAnonymousAuth\": true\n },\n \"ClusterId\": \"cls-7ph3twqe\"\n}",
|
1556
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterAuthenticationOptions\n<公共请求参数>\n\n{\n \"ServiceAccounts\": {\n \"JWKSURI\": \"https://cls-7ph3twqe.ccs.tencent-cloud.com/openid/v1/jwks\",\n \"Issuer\": \"https://cls-7ph3twqe.ccs.tencent-cloud.com\",\n \"AutoCreateDiscoveryAnonymousAuth\": true\n },\n \"OIDCConfig\": {\n \"AutoCreateOIDCConfig\": true,\n \"AutoCreateClientId\": [\n \"sts\"\n ],\n \"AutoInstallPodIdentityWebhookAddon\": true\n },\n \"ClusterId\": \"cls-7ph3twqe\"\n}",
|
1557
1557
|
"output": "{\n \"Response\": {\n \"RequestId\": \"f12a6e20-f950-4af9-8f8b-b6329a4961c2\"\n }\n}",
|
1558
1558
|
"title": "修改集群认证配置"
|
1559
1559
|
}
|
@@ -1593,14 +1593,14 @@
|
|
1593
1593
|
"ModifyNodePoolDesiredCapacityAboutAsg": [
|
1594
1594
|
{
|
1595
1595
|
"document": "修改节点池关联伸缩组的期望实例数示例",
|
1596
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyNodePoolDesiredCapacityAboutAsg\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-xxx\",\n \"DesiredCapacity\":
|
1596
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyNodePoolDesiredCapacityAboutAsg\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-xxx\",\n \"DesiredCapacity\": 6,\n \"NodePoolId\": \"np-xxx\"\n}",
|
1597
1597
|
"output": "{\n \"Response\": {\n \"RequestId\": \"xxxx\"\n }\n}",
|
1598
1598
|
"title": "修改节点池关联伸缩组的期望实例数示例"
|
1599
1599
|
}
|
1600
1600
|
],
|
1601
1601
|
"ModifyNodePoolInstanceTypes": [
|
1602
1602
|
{
|
1603
|
-
"document": "",
|
1603
|
+
"document": "修改节点池机型",
|
1604
1604
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyNodePoolInstanceTypes\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-xxx\",\n \"InstanceTypes\": [\n \"ins-xxx\"\n ],\n \"NodePoolId\": \"np-xxx\"\n}",
|
1605
1605
|
"output": "{\n \"Response\": {\n \"RequestId\": \"xxxxxxxx\"\n }\n}",
|
1606
1606
|
"title": "修改节点池机型"
|
tccli/services/tms/tms_client.py
CHANGED
@@ -175,6 +175,58 @@ def doTextModeration(args, parsed_globals):
|
|
175
175
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
176
176
|
|
177
177
|
|
178
|
+
def doAnswerQuestion(args, parsed_globals):
|
179
|
+
g_param = parse_global_arg(parsed_globals)
|
180
|
+
|
181
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
182
|
+
cred = credential.CVMRoleCredential()
|
183
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
184
|
+
cred = credential.STSAssumeRoleCredential(
|
185
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
186
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
187
|
+
)
|
188
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
189
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
190
|
+
else:
|
191
|
+
cred = credential.Credential(
|
192
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
193
|
+
)
|
194
|
+
http_profile = HttpProfile(
|
195
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
196
|
+
reqMethod="POST",
|
197
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
198
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
199
|
+
)
|
200
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
201
|
+
if g_param[OptionsDefine.Language]:
|
202
|
+
profile.language = g_param[OptionsDefine.Language]
|
203
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
204
|
+
client = mod.TmsClient(cred, g_param[OptionsDefine.Region], profile)
|
205
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
206
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
207
|
+
model = models.AnswerQuestionRequest()
|
208
|
+
model.from_json_string(json.dumps(args))
|
209
|
+
start_time = time.time()
|
210
|
+
while True:
|
211
|
+
rsp = client.AnswerQuestion(model)
|
212
|
+
result = rsp.to_json_string()
|
213
|
+
try:
|
214
|
+
json_obj = json.loads(result)
|
215
|
+
except TypeError as e:
|
216
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
217
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
218
|
+
break
|
219
|
+
cur_time = time.time()
|
220
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
221
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
222
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
223
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
224
|
+
else:
|
225
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
226
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
227
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
228
|
+
|
229
|
+
|
178
230
|
def doDescribeTextLib(args, parsed_globals):
|
179
231
|
g_param = parse_global_arg(parsed_globals)
|
180
232
|
|
@@ -295,6 +347,7 @@ ACTION_MAP = {
|
|
295
347
|
"DescribeTextStat": doDescribeTextStat,
|
296
348
|
"ModerateText": doModerateText,
|
297
349
|
"TextModeration": doTextModeration,
|
350
|
+
"AnswerQuestion": doAnswerQuestion,
|
298
351
|
"DescribeTextLib": doDescribeTextLib,
|
299
352
|
"AccountTipoffAccess": doAccountTipoffAccess,
|
300
353
|
|
@@ -1,5 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"AnswerQuestion": {
|
4
|
+
"document": "\"AIGC代答\"产品帮助客户在其AIGC场景下,对于敏感类的问题,不是由客户的大模型机器人来回答,而是我们来进行代答,尽最大可能帮助客户规避风险。",
|
5
|
+
"input": "AnswerQuestionRequest",
|
6
|
+
"name": "AIGC代答",
|
7
|
+
"output": "AnswerQuestionResponse",
|
8
|
+
"status": "online"
|
9
|
+
},
|
3
10
|
"ModerateText": {
|
4
11
|
"document": "天御文本内容安全定制标签文本审核接口为定制接口,会按照客户定制标签输出审核结果,如需使用请联系商务经理或[在线客服](https://cloud.tencent.com/online-service?from=doc_1125)咨询。",
|
5
12
|
"input": "ModerateTextRequest",
|
@@ -22,6 +29,43 @@
|
|
22
29
|
"serviceShortName": "tms"
|
23
30
|
},
|
24
31
|
"objects": {
|
32
|
+
"AnswerQuestionRequest": {
|
33
|
+
"document": "AnswerQuestion请求参数结构体",
|
34
|
+
"members": [
|
35
|
+
{
|
36
|
+
"disabled": false,
|
37
|
+
"document": "用户问题",
|
38
|
+
"example": "无",
|
39
|
+
"member": "string",
|
40
|
+
"name": "Question",
|
41
|
+
"required": true,
|
42
|
+
"type": "string"
|
43
|
+
}
|
44
|
+
],
|
45
|
+
"type": "object"
|
46
|
+
},
|
47
|
+
"AnswerQuestionResponse": {
|
48
|
+
"document": "AnswerQuestion返回参数结构体",
|
49
|
+
"members": [
|
50
|
+
{
|
51
|
+
"disabled": false,
|
52
|
+
"document": "匹配到的答案",
|
53
|
+
"example": "无",
|
54
|
+
"member": "string",
|
55
|
+
"name": "Answer",
|
56
|
+
"output_required": false,
|
57
|
+
"type": "string",
|
58
|
+
"value_allowed_null": false
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
62
|
+
"member": "string",
|
63
|
+
"name": "RequestId",
|
64
|
+
"type": "string"
|
65
|
+
}
|
66
|
+
],
|
67
|
+
"type": "object"
|
68
|
+
},
|
25
69
|
"DetailResults": {
|
26
70
|
"document": "文本审核返回的详细结果",
|
27
71
|
"members": [
|
@@ -1,5 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"AnswerQuestion": [
|
4
|
+
{
|
5
|
+
"document": "",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: tms.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AnswerQuestion\n<公共请求参数>\n\n{\n \"Question\": \"社会主义\"\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"Answer\": \"社会主义是包括社会主义思想、社会主义运动和社会主义制度的总称。它主张通过推翻资产阶级统治、建立公有制经济和实现社会平等来改变资本主义生产方式带来的阶级对立。\",\n \"RequestId\": \"a4963536-8eba-46a3-a5e3-127117ec07f9\"\n }\n}",
|
8
|
+
"title": "AIGC代答示例"
|
9
|
+
}
|
10
|
+
],
|
3
11
|
"ModerateText": [
|
4
12
|
{
|
5
13
|
"document": "用于客户自有标签体系的内容审核,审核结果会以客户定义的标签体系输出结果",
|
@@ -785,6 +785,34 @@
|
|
785
785
|
"serviceShortName": "tse"
|
786
786
|
},
|
787
787
|
"objects": {
|
788
|
+
"AccurateQpsThreshold": {
|
789
|
+
"document": "云原生网关限流插件参数限流的精确Qps阈值",
|
790
|
+
"members": [
|
791
|
+
{
|
792
|
+
"disabled": false,
|
793
|
+
"document": "qps阈值控制维度,包含:second、minute、hour、day、month、year",
|
794
|
+
"example": "second、minute、hour、day、month、year",
|
795
|
+
"member": "string",
|
796
|
+
"name": "Unit",
|
797
|
+
"output_required": true,
|
798
|
+
"required": true,
|
799
|
+
"type": "string",
|
800
|
+
"value_allowed_null": false
|
801
|
+
},
|
802
|
+
{
|
803
|
+
"disabled": false,
|
804
|
+
"document": "全局配置ID",
|
805
|
+
"example": "aa2090e1-0117-404f-b73f-69b662b6834f",
|
806
|
+
"member": "string",
|
807
|
+
"name": "GlobalConfigId",
|
808
|
+
"output_required": true,
|
809
|
+
"required": true,
|
810
|
+
"type": "string",
|
811
|
+
"value_allowed_null": false
|
812
|
+
}
|
813
|
+
],
|
814
|
+
"usage": "both"
|
815
|
+
},
|
788
816
|
"ApolloEnvParam": {
|
789
817
|
"document": "Apollo 环境配置参数",
|
790
818
|
"members": [
|
@@ -4535,6 +4563,15 @@
|
|
4535
4563
|
"name": "StorageOption",
|
4536
4564
|
"required": false,
|
4537
4565
|
"type": "list"
|
4566
|
+
},
|
4567
|
+
{
|
4568
|
+
"disabled": false,
|
4569
|
+
"document": "ZK引擎实例,可用区分布约束,STRICT:强约束,PERMISSIVE: 弱约束",
|
4570
|
+
"example": "STRICT",
|
4571
|
+
"member": "string",
|
4572
|
+
"name": "AffinityConstraint",
|
4573
|
+
"required": false,
|
4574
|
+
"type": "string"
|
4538
4575
|
}
|
4539
4576
|
],
|
4540
4577
|
"type": "object"
|
@@ -9573,7 +9610,7 @@
|
|
9573
9610
|
},
|
9574
9611
|
{
|
9575
9612
|
"disabled": false,
|
9576
|
-
"document": "
|
9613
|
+
"document": "Polaris: 是否为主地域\nZookeeper: 是否为Leader固定地域",
|
9577
9614
|
"example": "true",
|
9578
9615
|
"member": "bool",
|
9579
9616
|
"name": "MainRegion",
|
@@ -12525,6 +12562,17 @@
|
|
12525
12562
|
"required": false,
|
12526
12563
|
"type": "list",
|
12527
12564
|
"value_allowed_null": true
|
12565
|
+
},
|
12566
|
+
{
|
12567
|
+
"disabled": false,
|
12568
|
+
"document": "精确限流阈值\n注意:此字段可能返回 null,表示取不到有效值。",
|
12569
|
+
"example": "无",
|
12570
|
+
"member": "AccurateQpsThreshold",
|
12571
|
+
"name": "AccurateQpsThresholds",
|
12572
|
+
"output_required": false,
|
12573
|
+
"required": false,
|
12574
|
+
"type": "list",
|
12575
|
+
"value_allowed_null": true
|
12528
12576
|
}
|
12529
12577
|
],
|
12530
12578
|
"usage": "both"
|