tccli 3.0.1098.1__py2.py3-none-any.whl → 3.0.1100.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cfw/v20190904/DescribeIPStatusList.md +4 -4
  3. tccli/examples/cls/v20201016/CreateCosRecharge.md +4 -4
  4. tccli/examples/cls/v20201016/CreateDashboardSubscribe.md +18 -0
  5. tccli/examples/cls/v20201016/DeleteDashboardSubscribe.md +18 -0
  6. tccli/examples/cls/v20201016/DescribeDashboardSubscribes.md +18 -0
  7. tccli/examples/cls/v20201016/ModifyCosRecharge.md +3 -3
  8. tccli/examples/cls/v20201016/ModifyDashboardSubscribe.md +18 -0
  9. tccli/examples/cls/v20201016/OpenKafkaConsumer.md +1 -1
  10. tccli/examples/cls/v20201016/SearchDashboardSubscribe.md +35 -0
  11. tccli/examples/cynosdb/v20190107/DescribeChangedParamsAfterUpgrade.md +31 -0
  12. tccli/examples/dlc/v20210125/CreateSparkSessionBatchSQL.md +1 -1
  13. tccli/examples/domain/v20180808/ModifyTemplate.md +73 -0
  14. tccli/examples/ess/v20201111/DescribeBatchOrganizationRegistrationUrls.md +27 -0
  15. tccli/examples/faceid/v20180301/GetFaceIdResult.md +3 -1
  16. tccli/examples/hunyuan/v20230901/ChatCompletions.md +183 -0
  17. tccli/examples/hunyuan/v20230901/ChatPro.md +2 -2
  18. tccli/examples/ims/v20200713/ImageModeration.md +4 -1
  19. tccli/examples/lke/v20231130/GetEmbedding.md +1 -1
  20. tccli/examples/lke/v20231130/GetMsgRecord.md +4 -1
  21. tccli/examples/ocr/v20181119/RecognizeGeneralTextImageWarn.md +83 -0
  22. tccli/examples/rum/v20210622/CreateWhitelist.md +2 -2
  23. tccli/examples/rum/v20210622/DescribeRumGroupLog.md +3 -3
  24. tccli/examples/rum/v20210622/DescribeRumLogExport.md +6 -6
  25. tccli/examples/rum/v20210622/DescribeRumStatsLogList.md +2 -2
  26. tccli/examples/teo/v20220901/CreatePlan.md +47 -0
  27. tccli/examples/teo/v20220901/DescribeRealtimeLogDeliveryTasks.md +42 -21
  28. tccli/examples/teo/v20220901/DestroyPlan.md +20 -0
  29. tccli/examples/teo/v20220901/IncreasePlanQuota.md +46 -0
  30. tccli/examples/teo/v20220901/ModifyPlan.md +21 -0
  31. tccli/examples/teo/v20220901/RenewPlan.md +23 -0
  32. tccli/examples/teo/v20220901/UpgradePlan.md +23 -0
  33. tccli/examples/tione/v20191022/UpdateCodeRepository.md +1 -1
  34. tccli/examples/tke/v20180525/CheckInstancesUpgradeAble.md +15 -7
  35. tccli/examples/tke/v20180525/CreateCluster.md +58 -142
  36. tccli/examples/tke/v20180525/DescribeClusterNodePools.md +1 -0
  37. tccli/examples/tke/v20180525/GetUpgradeInstanceProgress.md +18 -19
  38. tccli/examples/tke/v20180525/ModifyClusterAuthenticationOptions.md +3 -0
  39. tccli/examples/tke/v20180525/ModifyNodePoolInstanceTypes.md +1 -1
  40. tccli/examples/tms/v20201229/AnswerQuestion.md +21 -0
  41. tccli/examples/vpc/v20170312/DescribeVpnGatewayRoutes.md +2 -1
  42. tccli/examples/vpc/v20170312/ModifyVpnGatewayRoutes.md +8 -4
  43. tccli/services/aiart/v20221229/api.json +5 -5
  44. tccli/services/ccc/v20200210/api.json +1 -1
  45. tccli/services/cfs/v20190719/api.json +27 -27
  46. tccli/services/cfw/v20190904/api.json +5 -5
  47. tccli/services/cfw/v20190904/examples.json +1 -1
  48. tccli/services/cloudstudio/v20230508/api.json +13 -4
  49. tccli/services/cls/cls_client.py +337 -72
  50. tccli/services/cls/v20201016/api.json +501 -66
  51. tccli/services/cls/v20201016/examples.json +45 -5
  52. tccli/services/cynosdb/cynosdb_client.py +53 -0
  53. tccli/services/cynosdb/v20190107/api.json +120 -2
  54. tccli/services/cynosdb/v20190107/examples.json +8 -0
  55. tccli/services/dcdb/v20180411/api.json +2 -2
  56. tccli/services/dlc/v20210125/api.json +14 -4
  57. tccli/services/dlc/v20210125/examples.json +1 -1
  58. tccli/services/domain/domain_client.py +53 -0
  59. tccli/services/domain/v20180808/api.json +62 -0
  60. tccli/services/domain/v20180808/examples.json +8 -0
  61. tccli/services/dts/v20211206/api.json +1 -1
  62. tccli/services/ess/ess_client.py +57 -4
  63. tccli/services/ess/v20201111/api.json +89 -1
  64. tccli/services/ess/v20201111/examples.json +8 -0
  65. tccli/services/essbasic/v20210526/api.json +1 -1
  66. tccli/services/faceid/v20180301/api.json +21 -1
  67. tccli/services/faceid/v20180301/examples.json +1 -1
  68. tccli/services/hunyuan/hunyuan_client.py +53 -0
  69. tccli/services/hunyuan/v20230901/api.json +165 -26
  70. tccli/services/hunyuan/v20230901/examples.json +33 -1
  71. tccli/services/ims/v20200713/api.json +13 -0
  72. tccli/services/ims/v20200713/examples.json +1 -1
  73. tccli/services/ims/v20201229/api.json +2 -1
  74. tccli/services/iotvideo/v20211125/api.json +15 -0
  75. tccli/services/lcic/v20220817/api.json +1 -1
  76. tccli/services/lke/lke_client.py +114 -8
  77. tccli/services/lke/v20231130/api.json +492 -0
  78. tccli/services/lke/v20231130/examples.json +18 -2
  79. tccli/services/mariadb/v20170312/api.json +2 -2
  80. tccli/services/monitor/v20180724/api.json +1 -1
  81. tccli/services/mps/v20190612/api.json +46 -1
  82. tccli/services/ocr/ocr_client.py +53 -0
  83. tccli/services/ocr/v20181119/api.json +156 -0
  84. tccli/services/ocr/v20181119/examples.json +8 -0
  85. tccli/services/rce/v20201103/api.json +9 -9
  86. tccli/services/rum/v20210622/api.json +37 -35
  87. tccli/services/rum/v20210622/examples.json +7 -7
  88. tccli/services/tdmq/v20200217/api.json +6 -6
  89. tccli/services/teo/teo_client.py +338 -20
  90. tccli/services/teo/v20220901/api.json +503 -18
  91. tccli/services/teo/v20220901/examples.json +62 -2
  92. tccli/services/tione/v20191022/api.json +6 -7
  93. tccli/services/tione/v20191022/examples.json +1 -1
  94. tccli/services/tione/v20211111/api.json +2 -0
  95. tccli/services/tke/v20180525/api.json +77 -93
  96. tccli/services/tke/v20180525/examples.json +7 -7
  97. tccli/services/tms/tms_client.py +53 -0
  98. tccli/services/tms/v20201229/api.json +44 -0
  99. tccli/services/tms/v20201229/examples.json +8 -0
  100. tccli/services/tmt/v20180321/api.json +1 -1
  101. tccli/services/tse/v20201207/api.json +49 -1
  102. tccli/services/vpc/v20170312/api.json +3 -0
  103. tccli/services/vpc/v20170312/examples.json +3 -3
  104. tccli/services/waf/v20180125/api.json +2 -2
  105. {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/METADATA +2 -2
  106. {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/RECORD +109 -92
  107. {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/WHEEL +0 -0
  108. {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/entry_points.txt +0 -0
  109. {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.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\": {\n \"InstanceId\": \"ins-mq0fqbso\",\n \"Reason\": \"instance already the master latest version\"\n },\n \"UpgradeAbleInstances\": [\n {\n \"InstanceId\": \"ins-q40fqbso\",\n \"LatestVersion\": \"1.22.5\",\n \"Version\": \"1.20.6\"\n },\n {\n \"InstanceId\": \"ins-hvldgo6w\",\n \"LatestVersion\": \"1.22.5\",\n \"Version\": \"1.20.6\"\n },\n {\n \"InstanceId\": \"ins-hrtaxazg\",\n \"LatestVersion\": \"1.22.5\",\n \"Version\": \"1.20.6\"\n }\n ]\n }\n}",
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 \"ClusterStatus\": {\n \"PodTotal\": 0,\n \"NotReadyPod\": 0\n },\n \"Done\": 0,\n \"Instances\": [\n {\n \"CheckResult\": {\n \"CheckPass\": false,\n \"Items\": [\n {\n \"After\": 0,\n \"Before\": 2,\n \"Namespace\": \"default\",\n \"Pods\": [\n \"kubernetes-proxy-67fd23cf4d-2tcxw\",\n \"kubernetes-proxy-67fd23cf4d-qd99j\"\n ],\n \"WorkLoadKind\": \"ReplicaSet\",\n \"WorkLoadName\": \"kubernetes-proxy-67fd23cf4d\"\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 \"EndAt\": null,\n \"InstanceID\": \"ins-wggphft5\",\n \"LifeState\": \"paused\",\n \"StartAt\": \"2023-02-08T16:29:46+08:00\"\n }\n ],\n \"LifeState\": \"aborted\",\n \"RequestId\": \"b224fa4b-fedf-4061-baa9-d547ew858df\",\n \"Total\": 1\n }\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\": \"6\",\n \"NodePoolId\": \"np-xxx\"\n}",
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": "修改节点池机型"
@@ -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": "用于客户自有标签体系的内容审核,审核结果会以客户定义的标签体系输出结果",
@@ -98,7 +98,7 @@
98
98
  },
99
99
  {
100
100
  "disabled": false,
101
- "document": "需要翻译文件url,文件需小于100MB。",
101
+ "document": "需要翻译文件url,文件限制如下:docx/xIsx/html/markdown文件不超过800万字符,doc/pdf/pptx文件不超过300页,txt/po文件不超过10MB,pdf/docx/pptx/xlsx不超过40MB",
102
102
  "example": "http://test.com",
103
103
  "member": "string",
104
104
  "name": "Url",
@@ -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"
@@ -16246,6 +16246,7 @@
16246
16246
  "example": "无",
16247
16247
  "member": "VpnGatewayRoute",
16248
16248
  "name": "Routes",
16249
+ "output_required": true,
16249
16250
  "type": "list",
16250
16251
  "value_allowed_null": false
16251
16252
  },
@@ -16255,6 +16256,7 @@
16255
16256
  "example": "3",
16256
16257
  "member": "uint64",
16257
16258
  "name": "TotalCount",
16259
+ "output_required": true,
16258
16260
  "type": "int",
16259
16261
  "value_allowed_null": true
16260
16262
  },
@@ -22599,6 +22601,7 @@
22599
22601
  "example": "无",
22600
22602
  "member": "VpnGatewayRoute",
22601
22603
  "name": "Routes",
22604
+ "output_required": true,
22602
22605
  "type": "list",
22603
22606
  "value_allowed_null": true
22604
22607
  },
@@ -1829,7 +1829,7 @@
1829
1829
  "DescribeVpnGatewayRoutes": [
1830
1830
  {
1831
1831
  "document": "查询VPN网关目的路由",
1832
- "input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVpnGatewayRoutes\n<公共请求参数>\n\n{\n \"VpnGatewayId\": \"vpngw-7lhl5331\",\n \"Offset\": \"0\"\n}",
1832
+ "input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVpnGatewayRoutes\n<公共请求参数>\n\n{\n \"VpnGatewayId\": \"vpngw-7lhl5331\",\n \"Offset\": 0,\n \"Limit\": 20\n}",
1833
1833
  "output": "{\n \"Response\": {\n \"Routes\": [\n {\n \"RouteId\": \"vpnr-h53fo5tv\",\n \"DestinationCidrBlock\": \"10.0.0.0/16\",\n \"Status\": \"ENABLE\",\n \"InstanceId\": \"vpnx-f99clft2\",\n \"InstanceType\": \"VPNCONN\",\n \"Priority\": 0,\n \"Type\": \"Static\",\n \"CreateTime\": \"2022-12-05 11:02:44\",\n \"UpdateTime\": \"2022-12-05 11:02:44\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"cf5ec1b0-ec85-4e28-bc05-763c617b57a0\"\n }\n}",
1834
1834
  "title": "查询VPN网关目的路由"
1835
1835
  }
@@ -2613,8 +2613,8 @@
2613
2613
  "ModifyVpnGatewayRoutes": [
2614
2614
  {
2615
2615
  "document": "禁用某条VPN网关路由",
2616
- "input": "https://vpc.tencentcloudapi.com/?Action=ModifyVpnGatewayRoutes\n&VpnGatewayId=vpn-ngenl4az\n&Routes.0.RouteId=vpnr-7t3tknmg\n&Routes.0.Status=DISABLE\n&<公共请求参数>",
2617
- "output": "{\n \"Response\": {\n \"Routes\": [\n {\n \"DestinationCidrBlock\": \"192.241.0.0/24\",\n \"Status\": \"ENABLE\",\n \"InstanceId\": \"vpnx-ng2asdew\",\n \"InstanceType\": \"VPNCONN\",\n \"Priority\": 100\n }\n ],\n \"RequestId\": \"6e446c86-d8c9-4981-9b33-d10956585058\"\n }\n}",
2616
+ "input": "https://vpc.tencentcloudapi.com/?Action=ModifyVpnGatewayRoutes\n&VpnGatewayId=vpngw-ngenl4az\n&Routes.0.RouteId=vpnr-7t3tknmg\n&Routes.0.Status=DISABLE\n&<公共请求参数>",
2617
+ "output": "{\n \"Response\": {\n \"Routes\": [\n {\n \"RouteId\": \"vpnr-7t3tknmg\",\n \"DestinationCidrBlock\": \"10.11.0.0/16\",\n \"Status\": \"DISABLE\",\n \"InstanceId\": \"vpnx-ng2asdew\",\n \"InstanceType\": \"VPNCONN\",\n \"Priority\": 0,\n \"Type\": \"Static\",\n \"CreateTime\": \"2023-03-21 07:08:13\",\n \"UpdateTime\": \"2023-04-28 17:02:43\"\n }\n ],\n \"RequestId\": \"6e446c86-d8c9-4981-9b33-d10956585058\"\n }\n}",
2618
2618
  "title": "禁用VPN网关路由"
2619
2619
  }
2620
2620
  ],
@@ -409,7 +409,7 @@
409
409
  "DescribeIpAccessControl": {
410
410
  "document": "Waf ip黑白名单查询",
411
411
  "input": "DescribeIpAccessControlRequest",
412
- "name": "Waf ip黑白名单查询",
412
+ "name": "Waf IP黑白名单查询",
413
413
  "output": "DescribeIpAccessControlResponse",
414
414
  "status": "online"
415
415
  },
@@ -14637,7 +14637,7 @@
14637
14637
  },
14638
14638
  {
14639
14639
  "disabled": false,
14640
- "document": "WEB 安全模块开关,0或1",
14640
+ "document": "Web 安全模块开关,0或1",
14641
14641
  "example": "1",
14642
14642
  "member": "uint64",
14643
14643
  "name": "WebSecurity",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.1098.1
3
+ Version: 3.0.1100.1
4
4
  Summary: Universal Command Line Environment for Tencent Cloud
5
5
  Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
6
6
  Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Requires-Dist: jmespath==0.10.0
15
15
  Requires-Dist: six==1.16.0
16
- Requires-Dist: tencentcloud-sdk-python>=3.0.1098
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.1100
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介