tccli 3.0.1150.1__py2.py3-none-any.whl → 3.0.1152.1__py2.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.
Files changed (48) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/asr/v20190614/api.json +2 -2
  4. tccli/services/cbs/cbs_client.py +61 -8
  5. tccli/services/cbs/v20170312/api.json +64 -0
  6. tccli/services/cbs/v20170312/examples.json +8 -0
  7. tccli/services/ccc/v20200210/api.json +2 -2
  8. tccli/services/cdc/v20201214/api.json +101 -20
  9. tccli/services/cdc/v20201214/examples.json +1 -1
  10. tccli/services/cdz/__init__.py +4 -0
  11. tccli/services/cdz/cdz_client.py +248 -0
  12. tccli/services/cdz/v20221123/api.json +305 -0
  13. tccli/services/cdz/v20221123/examples.json +21 -0
  14. tccli/services/clb/v20180317/api.json +9 -0
  15. tccli/services/cvm/v20170312/api.json +10 -10
  16. tccli/services/cynosdb/v20190107/api.json +1 -1
  17. tccli/services/dasb/v20191018/api.json +5 -4
  18. tccli/services/dlc/v20210125/api.json +19 -1
  19. tccli/services/dlc/v20210125/examples.json +1 -1
  20. tccli/services/es/v20180416/api.json +19 -1
  21. tccli/services/es/v20180416/examples.json +1 -1
  22. tccli/services/ess/v20201111/api.json +4 -4
  23. tccli/services/essbasic/v20210526/api.json +2 -2
  24. tccli/services/essbasic/v20210526/examples.json +1 -1
  25. tccli/services/facefusion/v20220927/api.json +8 -8
  26. tccli/services/gaap/v20180529/api.json +22 -2
  27. tccli/services/gaap/v20180529/examples.json +1 -1
  28. tccli/services/hunyuan/hunyuan_client.py +65 -12
  29. tccli/services/hunyuan/v20230901/api.json +99 -0
  30. tccli/services/hunyuan/v20230901/examples.json +8 -0
  31. tccli/services/lcic/v20220817/api.json +19 -1
  32. tccli/services/lke/v20231130/api.json +1 -1
  33. tccli/services/monitor/v20180724/api.json +109 -94
  34. tccli/services/monitor/v20180724/examples.json +7 -7
  35. tccli/services/mps/v20190612/api.json +37 -35
  36. tccli/services/mps/v20190612/examples.json +19 -7
  37. tccli/services/tdmq/tdmq_client.py +163 -4
  38. tccli/services/tdmq/v20200217/api.json +279 -0
  39. tccli/services/tdmq/v20200217/examples.json +24 -0
  40. tccli/services/tsi/v20210325/api.json +1 -1
  41. tccli/services/vpc/v20170312/api.json +1573 -157
  42. tccli/services/vpc/v20170312/examples.json +104 -0
  43. tccli/services/vpc/vpc_client.py +1974 -1285
  44. {tccli-3.0.1150.1.dist-info → tccli-3.0.1152.1.dist-info}/METADATA +2 -2
  45. {tccli-3.0.1150.1.dist-info → tccli-3.0.1152.1.dist-info}/RECORD +48 -44
  46. {tccli-3.0.1150.1.dist-info → tccli-3.0.1152.1.dist-info}/WHEEL +0 -0
  47. {tccli-3.0.1150.1.dist-info → tccli-3.0.1152.1.dist-info}/entry_points.txt +0 -0
  48. {tccli-3.0.1150.1.dist-info → tccli-3.0.1152.1.dist-info}/license_files/LICENSE +0 -0
@@ -1783,7 +1783,7 @@
1783
1783
  },
1784
1784
  {
1785
1785
  "disabled": false,
1786
- "document": "实例机型。不同实例机型指定了不同的资源规格。\n<br><li>对于付费模式为PREPAID或POSTPAID\\_BY\\_HOUR的实例创建,具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。若不指定该参数,则系统将根据当前地域的资源售卖情况动态指定默认机型。<br><li>对于付费模式为CDHPAID的实例创建,该参数以\"CDH_\"为前缀,根据CPU和内存配置生成,具体形式为:CDH_XCXG,例如对于创建CPU为1核,内存为1G大小的专用宿主机的实例,该参数应该为CDH_1C1G",
1786
+ "document": "实例机型。不同实例机型指定了不同的资源规格。\n<br><li>对于付费模式为PREPAID或POSTPAID\\_BY\\_HOUR的实例创建,具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。若不指定该参数,则系统将根据当前地域的资源售卖情况动态指定默认机型。</li><li>对于付费模式为CDHPAID的实例创建,该参数以\"CDH_\"为前缀,根据CPU和内存配置生成,具体形式为:CDH_XCXG,例如对于创建CPU为1核,内存为1G大小的专用宿主机的实例,该参数应该为CDH_1C1G。</li>",
1787
1787
  "example": "S5.16XLARGE256",
1788
1788
  "member": "string",
1789
1789
  "name": "InstanceType",
@@ -1837,7 +1837,7 @@
1837
1837
  },
1838
1838
  {
1839
1839
  "disabled": false,
1840
- "document": "实例显示名称。<br><li>不指定实例显示名称则默认显示‘未命名’。</li><li>购买多台实例,如果指定模式串`{R:x}`,表示生成数字`[x, x+n-1]`,其中`n`表示购买实例的数量,例如`server_{R:3}`,购买1台时,实例显示名称为`server_3`;购买2台时,实例显示名称分别为`server_3`,`server_4`。支持指定多个模式串`{R:x}`。</li><li>购买多台实例,如果不指定模式串,则在实例显示名称添加后缀`1、2...n`,其中`n`表示购买实例的数量,例如`server_`,购买2台时,实例显示名称分别为`server_1`,`server_2`。</li><li>最多支持60个字符(包含模式串)。",
1840
+ "document": "实例显示名称。<br><li>不指定实例显示名称则默认显示‘未命名’。</li><li>购买多台实例,如果指定模式串`{R:x}`,表示生成数字`[x, x+n-1]`,其中`n`表示购买实例的数量,例如`server_{R:3}`,购买1台时,实例显示名称为`server_3`;购买2台时,实例显示名称分别为`server_3`,`server_4`。支持指定多个模式串`{R:x}`。</li><li>购买多台实例,如果不指定模式串,则在实例显示名称添加后缀`1、2...n`,其中`n`表示购买实例的数量,例如`server_`,购买2台时,实例显示名称分别为`server_1`,`server_2`。</li><li>最多支持60个字符(包含模式串)。</li>",
1841
1841
  "example": "MyInstance",
1842
1842
  "member": "string",
1843
1843
  "name": "InstanceName",
@@ -1882,7 +1882,7 @@
1882
1882
  },
1883
1883
  {
1884
1884
  "disabled": false,
1885
- "document": "云服务器的主机名。<br><li>点号(.)和短横线(-)不能作为 HostName 的首尾字符,不能连续使用。<br><li>Windows 实例:名字符长度为[2, 15],允许字母(不限制大小写)、数字和短横线(-)组成,不支持点号(.),不能全是数字。<br><li>其他类型(Linux 等)实例:字符长度为[2, 60],允许支持多个点号,点之间为一段,每段允许字母(不限制大小写)、数字和短横线(-)组成。",
1885
+ "document": "云服务器的主机名。<br><li>点号(.)和短横线(-)不能作为 HostName 的首尾字符,不能连续使用。</li><li>Windows 实例:名字符长度为[2, 15],允许字母(不限制大小写)、数字和短横线(-)组成,不支持点号(.),不能全是数字。</li><li>其他类型(Linux 等)实例:字符长度为[2, 60],允许支持多个点号,点之间为一段,每段允许字母(不限制大小写)、数字和短横线(-)组成。</li>",
1886
1886
  "example": "无",
1887
1887
  "member": "string",
1888
1888
  "name": "HostName",
@@ -1963,7 +1963,7 @@
1963
1963
  },
1964
1964
  {
1965
1965
  "disabled": false,
1966
- "document": "实例[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br><li>CDHPAID:独享子机(基于专用宿主机创建,宿主机部分的资源不收费)<br><li>SPOTPAID:竞价付费<br>默认值:POSTPAID_BY_HOUR。",
1966
+ "document": "实例[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月</li><li>POSTPAID_BY_HOUR:按小时后付费</li><li>CDHPAID:独享子机(基于专用宿主机创建,宿主机部分的资源不收费)</li><li>SPOTPAID:竞价付费</li>默认值:POSTPAID_BY_HOUR。",
1967
1967
  "example": "PREPAID",
1968
1968
  "member": "string",
1969
1969
  "name": "InstanceChargeType",
@@ -1981,7 +1981,7 @@
1981
1981
  },
1982
1982
  {
1983
1983
  "disabled": false,
1984
- "document": "实例销毁保护标志,表示是否允许通过api接口删除实例。取值范围:<br><li>TRUE:表示开启实例保护,不允许通过api接口删除实例<br><li>FALSE:表示关闭实例保护,允许通过api接口删除实例<br><br>默认取值:FALSE。",
1984
+ "document": "实例销毁保护标志,表示是否允许通过api接口删除实例。取值范围:<br><li>TRUE:表示开启实例保护,不允许通过api接口删除实例</li><li>FALSE:表示关闭实例保护,允许通过api接口删除实例<br></li>默认取值:FALSE。",
1985
1985
  "example": "false",
1986
1986
  "member": "bool",
1987
1987
  "name": "DisableApiTermination",
@@ -2054,7 +2054,7 @@
2054
2054
  },
2055
2055
  {
2056
2056
  "disabled": false,
2057
- "document": "实例机型。不同实例机型指定了不同的资源规格。\n<br><li>对于付费模式为PREPAID或POSTPAID\\_BY\\_HOUR的实例创建,具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。若不指定该参数,则系统将根据当前地域的资源售卖情况动态指定默认机型。<br><li>对于付费模式为CDHPAID的实例创建,该参数以\"CDH_\"为前缀,根据CPU和内存配置生成,具体形式为:CDH_XCXG,例如对于创建CPU为1核,内存为1G大小的专用宿主机的实例,该参数应该为CDH_1C1G",
2057
+ "document": "实例机型。不同实例机型指定了不同的资源规格。\n<br><li>对于付费模式为PREPAID或POSTPAID\\_BY\\_HOUR的实例创建,具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。若不指定该参数,则系统将根据当前地域的资源售卖情况动态指定默认机型。</li><br><li>对于付费模式为CDHPAID的实例创建,该参数以\"CDH_\"为前缀,根据CPU和内存配置生成,具体形式为:CDH_XCXG,例如对于创建CPU为1核,内存为1G大小的专用宿主机的实例,该参数应该为CDH_1C1G。</li>",
2058
2058
  "example": "PREPAID",
2059
2059
  "member": "string",
2060
2060
  "name": "InstanceType",
@@ -2117,7 +2117,7 @@
2117
2117
  },
2118
2118
  {
2119
2119
  "disabled": false,
2120
- "document": "实例显示名称。<br><li>不指定实例显示名称则默认显示‘未命名’。</li><li>购买多台实例,如果指定模式串`{R:x}`,表示生成数字`[x, x+n-1]`,其中`n`表示购买实例的数量,例如`server_{R:3}`,购买1台时,实例显示名称为`server_3`;购买2台时,实例显示名称分别为`server_3`,`server_4`。支持指定多个模式串`{R:x}`。</li><li>购买多台实例,如果不指定模式串,则在实例显示名称添加后缀`1、2...n`,其中`n`表示购买实例的数量,例如`server_`,购买2台时,实例显示名称分别为`server_1`,`server_2`。</li><li>最多支持60个字符(包含模式串)。",
2120
+ "document": "实例显示名称。<br><li>不指定实例显示名称则默认显示‘未命名’。</li><li>购买多台实例,如果指定模式串`{R:x}`,表示生成数字`[x, x+n-1]`,其中`n`表示购买实例的数量,例如`server_{R:3}`,购买1台时,实例显示名称为`server_3`;购买2台时,实例显示名称分别为`server_3`,`server_4`。支持指定多个模式串`{R:x}`。</li><li>购买多台实例,如果不指定模式串,则在实例显示名称添加后缀`1、2...n`,其中`n`表示购买实例的数量,例如`server_`,购买2台时,实例显示名称分别为`server_1`,`server_2`。</li><li>最多支持60个字符(包含模式串)。</li>",
2121
2121
  "example": "my_instance",
2122
2122
  "member": "string",
2123
2123
  "name": "InstanceName",
@@ -2162,7 +2162,7 @@
2162
2162
  },
2163
2163
  {
2164
2164
  "disabled": false,
2165
- "document": "云服务器的主机名。<br><li>点号(.)和短横线(-)不能作为 HostName 的首尾字符,不能连续使用。<br><li>Windows 实例:名字符长度为[2, 15],允许字母(不限制大小写)、数字和短横线(-)组成,不支持点号(.),不能全是数字。<br><li>其他类型(Linux 等)实例:字符长度为[2, 60],允许支持多个点号,点之间为一段,每段允许字母(不限制大小写)、数字和短横线(-)组成。",
2165
+ "document": "云服务器的主机名。<br><li>点号(.)和短横线(-)不能作为 HostName 的首尾字符,不能连续使用。</li><br><li>Windows 实例:名字符长度为[2, 15],允许字母(不限制大小写)、数字和短横线(-)组成,不支持点号(.),不能全是数字。</li><br><li>其他类型(Linux 等)实例:字符长度为[2, 60],允许支持多个点号,点之间为一段,每段允许字母(不限制大小写)、数字和短横线(-)组成。</li>",
2166
2166
  "example": "无",
2167
2167
  "member": "string",
2168
2168
  "name": "HostName",
@@ -2243,7 +2243,7 @@
2243
2243
  },
2244
2244
  {
2245
2245
  "disabled": false,
2246
- "document": "实例[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br><li>CDHPAID:独享子机(基于专用宿主机创建,宿主机部分的资源不收费)<br><li>SPOTPAID:竞价付费<br>默认值:POSTPAID_BY_HOUR。",
2246
+ "document": "实例[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月</li><li>POSTPAID_BY_HOUR:按小时后付费</li><li>CDHPAID:独享子机(基于专用宿主机创建,宿主机部分的资源不收费)</li><li>SPOTPAID:竞价付费</li>默认值:POSTPAID_BY_HOUR。",
2247
2247
  "example": "PREPAID",
2248
2248
  "member": "string",
2249
2249
  "name": "InstanceChargeType",
@@ -2261,7 +2261,7 @@
2261
2261
  },
2262
2262
  {
2263
2263
  "disabled": false,
2264
- "document": "实例销毁保护标志,表示是否允许通过api接口删除实例。取值范围:<br><li>TRUE:表示开启实例保护,不允许通过api接口删除实例<br><li>FALSE:表示关闭实例保护,允许通过api接口删除实例<br><br>默认取值:FALSE。",
2264
+ "document": "实例销毁保护标志,表示是否允许通过api接口删除实例。取值范围:<br><li>TRUE:表示开启实例保护,不允许通过api接口删除实例</li><br><li>FALSE:表示关闭实例保护,允许通过api接口删除实例</li><br><br>默认取值:FALSE。",
2265
2265
  "example": "false",
2266
2266
  "member": "bool",
2267
2267
  "name": "DisableApiTermination",
@@ -16567,7 +16567,7 @@
16567
16567
  "example": "1008306",
16568
16568
  "member": "int64",
16569
16569
  "name": "FlowId",
16570
- "required": true,
16570
+ "output_required": true,
16571
16571
  "type": "int",
16572
16572
  "value_allowed_null": false
16573
16573
  },
@@ -2446,8 +2446,8 @@
2446
2446
  },
2447
2447
  {
2448
2448
  "disabled": false,
2449
- "document": "大陆手机号直接填写,如果是其他国家、地区号码, 按照\"国家地区代码|手机号\"的格式输入。如: \"+852|xxxxxxxx\"",
2450
- "example": "13312341234",
2449
+ "document": "按照\"国家地区代码|手机号\"的格式输入。如: \"+86|xxxxxxxx\"",
2450
+ "example": "+86|13312341234",
2451
2451
  "member": "string",
2452
2452
  "name": "Phone",
2453
2453
  "required": false,
@@ -2528,6 +2528,7 @@
2528
2528
  "example": "1",
2529
2529
  "member": "uint64",
2530
2530
  "name": "Id",
2531
+ "output_required": true,
2531
2532
  "type": "int",
2532
2533
  "value_allowed_null": false
2533
2534
  },
@@ -5884,8 +5885,8 @@
5884
5885
  },
5885
5886
  {
5886
5887
  "disabled": false,
5887
- "document": "大陆手机号直接填写,如果是其他国家、地区号码,按照\"国家地区代码|手机号\"的格式输入。如: \"+852|xxxxxxxx\"",
5888
- "example": "13311111111",
5888
+ "document": "按照\"国家地区代码|手机号\"的格式输入。如: \"+86|xxxxxxxx\"",
5889
+ "example": "+86|13311111111",
5889
5890
  "member": "string",
5890
5891
  "name": "Phone",
5891
5892
  "required": false,
@@ -8170,12 +8170,30 @@
8170
8170
  "members": [
8171
8171
  {
8172
8172
  "disabled": false,
8173
- "document": "引擎类型:SQL、SparkBatch、StandardSpark、StandardPresto",
8173
+ "document": "引擎类型:SparkSQLPrestoSQL、SparkBatch、StandardSpark、StandardPresto",
8174
8174
  "example": "SQL",
8175
8175
  "member": "string",
8176
8176
  "name": "EngineType",
8177
8177
  "required": true,
8178
8178
  "type": "string"
8179
+ },
8180
+ {
8181
+ "disabled": false,
8182
+ "document": "排序字段: InsertTime(插入时间,默认),UpdateTime(更新时间)",
8183
+ "example": "InsertTime",
8184
+ "member": "string",
8185
+ "name": "Sort",
8186
+ "required": false,
8187
+ "type": "string"
8188
+ },
8189
+ {
8190
+ "disabled": false,
8191
+ "document": "排序方式:false(降序,默认),true(升序)",
8192
+ "example": "false",
8193
+ "member": "bool",
8194
+ "name": "Asc",
8195
+ "required": false,
8196
+ "type": "bool"
8179
8197
  }
8180
8198
  ],
8181
8199
  "type": "object"
@@ -473,7 +473,7 @@
473
473
  "DescribeDataEngineImageVersions": [
474
474
  {
475
475
  "document": "本接口用于获取独享集群大版本镜像列表",
476
- "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDataEngineImageVersions\n<公共请求参数>\n\n{\n \"EngineType\": \"SQL\"\n}",
476
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDataEngineImageVersions\n<公共请求参数>\n\n{\n \"EngineType\": \"SQL\",\n \"Sort\": \"InsertTime\",\n \"Asc\": false\n}",
477
477
  "output": "{\n \"Response\": {\n \"RequestId\": \"b8sd7dd7-ekd4-4e5e-993e-e5db64fa21c1\",\n \"Total\": 1,\n \"ImageParentVersions\": [\n {\n \"UpdateTime\": \"2020-01-01:00:00:00\",\n \"Description\": \"测试\",\n \"IsSharedEngine\": 1,\n \"ImageVersionId\": \"d3018ad4-9a7e-4f64-a3f4-f38507c69742\",\n \"IsPublic\": 1,\n \"State\": 1,\n \"InsertTime\": \"2020-01-01:00:00:00\",\n \"ImageVersion\": \"SuperSQL\",\n \"EngineType\": \"SparkSQL\"\n }\n ]\n }\n}",
478
478
  "title": "获取独享集群大版本镜像列表"
479
479
  }
@@ -2670,7 +2670,7 @@
2670
2670
  },
2671
2671
  {
2672
2672
  "disabled": false,
2673
- "document": "排序字段<li>1:插件名 pluginName",
2673
+ "document": "排序字段<li>1:插件名 pluginName</li>",
2674
2674
  "example": "pluginName",
2675
2675
  "member": "string",
2676
2676
  "name": "OrderBy",
@@ -9597,6 +9597,24 @@
9597
9597
  "name": "CvmDelayOnlineTime",
9598
9598
  "required": false,
9599
9599
  "type": "int"
9600
+ },
9601
+ {
9602
+ "disabled": false,
9603
+ "document": "分片迁移并发数",
9604
+ "example": "2",
9605
+ "member": "uint64",
9606
+ "name": "ShardAllocationConcurrents",
9607
+ "required": false,
9608
+ "type": "int"
9609
+ },
9610
+ {
9611
+ "disabled": false,
9612
+ "document": "分片迁移并发速度",
9613
+ "example": "40",
9614
+ "member": "uint64",
9615
+ "name": "ShardAllocationBytes",
9616
+ "required": false,
9617
+ "type": "int"
9600
9618
  }
9601
9619
  ],
9602
9620
  "type": "object"
@@ -236,7 +236,7 @@
236
236
  {
237
237
  "document": "查询集群视图",
238
238
  "input": "https://es.tencentcloudapi.com/?Action=DescribeViews\n&InstanceId=es-xxxxxxxx\n&<公共请求参数>",
239
- "output": "{\n \"Response\": {\n \"ClusterView\": {\n \"Health\": 0,\n \"Visible\": 0,\n \"Break\": 0,\n \"AvgDiskUsage\": 0,\n \"AvgMemUsage\": 0,\n \"AvgCpuUsage\": 0,\n \"TotalDiskSize\": 1,\n \"TargetNodeTypes\": [\n \"abc\"\n ],\n \"NodeNum\": 0,\n \"TotalNodeNum\": 0,\n \"DataNodeNum\": 0,\n \"IndexNum\": 0,\n \"DocNum\": 0,\n \"DiskUsedInBytes\": 0,\n \"ShardNum\": 0,\n \"PrimaryShardNum\": 0,\n \"RelocatingShardNum\": 0,\n \"InitializingShardNum\": 0,\n \"UnassignedShardNum\": 0,\n \"TotalCosStorage\": 0,\n \"SearchableSnapshotCosBucket\": \"abc\",\n \"SearchableSnapshotCosAppId\": \"abc\"\n },\n \"NodesView\": [\n {\n \"NodeId\": \"abc\",\n \"NodeIp\": \"abc\",\n \"Visible\": 0,\n \"Break\": 0,\n \"DiskSize\": 0,\n \"DiskUsage\": 0,\n \"MemSize\": 0,\n \"MemUsage\": 0,\n \"CpuNum\": 0,\n \"CpuUsage\": 0,\n \"Zone\": \"abc\",\n \"NodeRole\": \"abc\",\n \"NodeHttpIp\": \"abc\",\n \"JvmMemUsage\": 0,\n \"ShardNum\": 0,\n \"DiskIds\": [\n \"abc\"\n ],\n \"Hidden\": true,\n \"IsCoordinationNode\": true\n }\n ],\n \"KibanasView\": [\n {\n \"Ip\": \"abc\",\n \"DiskSize\": 0,\n \"DiskUsage\": 0,\n \"MemSize\": 0,\n \"MemUsage\": 0,\n \"CpuNum\": 0,\n \"CpuUsage\": 0,\n \"Zone\": \"abc\",\n \"NodeId\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
239
+ "output": "{\n \"Response\": {\n \"ClusterView\": {\n \"Health\": 0,\n \"Visible\": 0,\n \"Break\": 0,\n \"AvgDiskUsage\": 0,\n \"AvgMemUsage\": 0,\n \"AvgCpuUsage\": 0,\n \"TotalDiskSize\": 1,\n \"TargetNodeTypes\": [\n \"abc\"\n ],\n \"NodeNum\": 0,\n \"TotalNodeNum\": 0,\n \"DataNodeNum\": 0,\n \"IndexNum\": 0,\n \"DocNum\": 0,\n \"DiskUsedInBytes\": 0,\n \"ShardNum\": 0,\n \"PrimaryShardNum\": 0,\n \"RelocatingShardNum\": 0,\n \"InitializingShardNum\": 0,\n \"UnassignedShardNum\": 0,\n \"TotalCosStorage\": 0,\n \"SearchableSnapshotCosBucket\": \"abc\",\n \"SearchableSnapshotCosAppId\": \"abc\"\n },\n \"NodesView\": [\n {\n \"NodeId\": \"abc\",\n \"NodeIp\": \"abc\",\n \"Visible\": 0,\n \"Break\": 0,\n \"DiskSize\": 0,\n \"DiskUsage\": 0,\n \"MemSize\": 0,\n \"MemUsage\": 0,\n \"CpuNum\": 0,\n \"CpuUsage\": 0,\n \"Zone\": \"abc\",\n \"NodeRole\": \"abc\",\n \"NodeHttpIp\": \"abc\",\n \"JvmMemUsage\": 0,\n \"ShardNum\": 0,\n \"DiskIds\": [\n \"abc\"\n ],\n \"Hidden\": true,\n \"IsCoordinationNode\": true,\n \"CVMStatus\": \"abc\"\n }\n ],\n \"KibanasView\": [\n {\n \"Ip\": \"abc\",\n \"DiskSize\": 0,\n \"DiskUsage\": 0,\n \"MemSize\": 0,\n \"MemUsage\": 0,\n \"CpuNum\": 0,\n \"CpuUsage\": 0,\n \"Zone\": \"abc\",\n \"NodeId\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
240
240
  "title": "查询集群视图"
241
241
  }
242
242
  ],
@@ -3052,7 +3052,7 @@
3052
3052
  },
3053
3053
  {
3054
3054
  "disabled": false,
3055
- "document": "合同流程的名称(可自定义此名称),长度不能超过200个字符,只能由中文、字母、数字、中划线和下划线组成。\n\n该名称还将用于合同签署完成后的下载文件名。",
3055
+ "document": "自定义的合同流程的名称,长度不能超过200个字符,只能由中文汉字、中文标点、英文字母、阿拉伯数字、空格、小括号、中括号、中划线、下划线以及(,)、(;)、(.)、(&)、(+)组成。\n\n该名称还将用于合同签署完成后文件下载的默认文件名称。",
3056
3056
  "example": "2013年采购西红柿合同",
3057
3057
  "member": "string",
3058
3058
  "name": "FlowName",
@@ -3818,7 +3818,7 @@
3818
3818
  },
3819
3819
  {
3820
3820
  "disabled": false,
3821
- "document": "合同流程的名称(可自定义此名称),长度不能超过200,只能由中文、字母、数字和下划线组成。\n\n该名称还将用于合同签署完成后的下载文件名。",
3821
+ "document": "自定义的合同流程的名称,长度不能超过200个字符,只能由中文汉字、中文标点、英文字母、阿拉伯数字、空格、小括号、中括号、中划线、下划线以及(,)、(;)、(.)、(&)、(+)组成。\n\n该名称还将用于合同签署完成后文件下载的默认文件名称。",
3822
3822
  "example": "张三的入职合同",
3823
3823
  "member": "string",
3824
3824
  "name": "FlowName",
@@ -5328,7 +5328,7 @@
5328
5328
  },
5329
5329
  {
5330
5330
  "disabled": false,
5331
- "document": "合同流程的名称(可自定义此名称),长度不能超过200,只能由中文、字母、数字和下划线组成。\n",
5331
+ "document": "自定义的合同流程的名称,长度不能超过200个字符,只能由中文汉字、中文标点、英文字母、阿拉伯数字、空格、小括号、中括号、中划线、下划线以及(,)、(;)、(.)、(&)、(+)组成。\n\n该名称还将用于合同签署完成后文件下载的默认文件名称。",
5332
5332
  "example": "无",
5333
5333
  "member": "string",
5334
5334
  "name": "FlowName",
@@ -6106,7 +6106,7 @@
6106
6106
  },
6107
6107
  {
6108
6108
  "disabled": false,
6109
- "document": "电子印章类型 , 可选类型如下: \n<ul><li>**OFFICIAL**: (默认)公章</li>\n<li>**CONTRACT**: 合同专用章;</li>\n<li>**FINANCE**: 财务专用章;</li>\n<li>**PERSONNEL**: 人事专用章</li>\n<li>**INVOICE**: 发票专用章</li>\n</ul>\n注: `同企业下只能有一个公章, 重复创建会报错`",
6109
+ "document": "电子印章类型 , 可选类型如下: <ul><li>**OFFICIAL**: (默认)公章</li><li>**CONTRACT**: 合同专用章;</li><li>**FINANCE**: 财务专用章;</li><li>**PERSONNEL**: 人事专用章</li><li>**INVOICE**: 发票专用章</li></ul>注: `同企业下只能有<font color=\"red\">一个</font>公章, 重复创建会报错`",
6110
6110
  "example": "OFFICIAL",
6111
6111
  "member": "string",
6112
6112
  "name": "SealType",
@@ -442,7 +442,7 @@
442
442
  "status": "online"
443
443
  },
444
444
  "DescribeExtendedServiceAuthInfo": {
445
- "document": "查询企业扩展服务的开通和授权情况,当前支持查询以下内容:\n\n1. **企业自动签**\n2. **企业与港澳台居民签署合同**\n3. **使用手机号验证签署方身份**\n4. **骑缝章**\n5. **拓宽签署方年龄限制**\n6. **下载企业合同/文件**\n7. **隐藏合同经办人姓名**\n\n对应能力开通页面在子客控制台-企业中心-拓展服务,如下图所示:\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/931a1e02955ab36e5cc69a489af10352.jpg)\n\n注: <font color='red'>所在企业的超管、法人才有权限调用此接口</font>(Agent.ProxyOperator.OpenId 需要传递超管或者法人的OpenId)",
445
+ "document": "查询企业扩展服务的开通和授权情况,当前支持查询以下内容:\n\n1. **企业自动签**\n2. **企业与港澳台居民签署合同**\n3. **使用手机号验证签署方身份**\n4. **拓宽签署方年龄限制**\n5. **下载企业合同/文件**\n6. **隐藏合同经办人姓名**\n\n对应能力开通页面在子客控制台-企业中心-拓展服务,如下图所示:\n\n![image](https://qcloudimg.tencent-cloud.cn/raw/931a1e02955ab36e5cc69a489af10352.jpg)\n\n注: <font color='red'>所在企业的超管、法人才有权限调用此接口</font>(Agent.ProxyOperator.OpenId 需要传递超管或者法人的OpenId)",
446
446
  "input": "DescribeExtendedServiceAuthInfoRequest",
447
447
  "name": "查询企业扩展服务授权信息",
448
448
  "output": "DescribeExtendedServiceAuthInfoResponse",
@@ -6803,7 +6803,7 @@
6803
6803
  },
6804
6804
  {
6805
6805
  "disabled": false,
6806
- "document": "电子印章类型 , 可选类型如下: \n<ul><li>**OFFICIAL**: (默认)公章</li>\n<li>**CONTRACT**: 合同专用章;</li>\n<li>**FINANCE**: 财务专用章;</li>\n<li>**PERSONNEL**: 人事专用章</li>\n<li>**INVOICE**: 发票专用章</li>\n</ul>\n注: `同企业下只能有一个公章, 重复创建会报错`",
6806
+ "document": "电子印章类型 , 可选类型如下: <ul><li>**OFFICIAL**: (默认)公章</li><li>**CONTRACT**: 合同专用章;</li><li>**FINANCE**: 财务专用章;</li><li>**PERSONNEL**: 人事专用章</li><li>**INVOICE**: 发票专用章</li></ul>注: `同企业下只能有<font color=\"red\">一个</font>公章, 重复创建会报错`",
6807
6807
  "example": "OFFICIAL",
6808
6808
  "member": "string",
6809
6809
  "name": "SealType",
@@ -179,7 +179,7 @@
179
179
  },
180
180
  {
181
181
  "document": "在B2C签署中,双方签署方未指定具体签署人时,需要进行补充。 \n注:`补充动态签署人时FillApproverType传值为1 `",
182
- "input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChannelCreateFlowApprovers\n<公共请求参数>\n\n{\n \"Operator\": {\n \"OpenId\": \"\",\n \"ClientIp\": \"\",\n \"CustomUserId\": \"\",\n \"ProxyIp\": \"\",\n \"Channel\": \"\"\n },\n \"Agent\": {\n \"ProxyAppId\": \"c17bdf9c2a7bdcb32611f4d0200fef3d\",\n \"ProxyOrganizationOpenId\": \"d7c13a8b81340cce9e3968c0ee248f04\",\n \"ProxyOperator\": {\n \"OpenId\": \"00498cc8500be9cxxxxxxx3aff766cac\"\n },\n \"AppId\": \"65fb0c591044be8a1f60aa382cc5ed0e\"\n },\n \"FlowGroupId\": \"111111***22222\",\n \"FillApproverType\": 1,\n \"Approvers\": [\n {\n \"RecipientId\": \"yDRS4UUgygqdcj51UuO4zjEyWTmzsIAR\",\n \"ApproverName\": \"典子谦\",\n \"ApproverMobile\": \"13200000000\",\n \"OrganizationName\": \"***有限公司\",\n \"FlowId\": \"yDCVMUUckpwytrk2UE1RW1FSR2BqdoGS\"\n },\n {\n \"RecipientId\": \"yDCVMUUckpwytrksUE1RW1FRR08t7Lxf\",\n \"ApproverName\": \"典子谦\",\n \"ApproverMobile\": \"13200000000\",\n \"OrganizationName\": \"***有限公司\",\n \"FlowId\": \"yDCVMUUckpwytrk2UE1RW1FSR2BqdoGS\"\n }\n ]\n}",
182
+ "input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChannelCreateFlowApprovers\n<公共请求参数>\n\n{\n \"Operator\": {\n \"OpenId\": \"\",\n \"ClientIp\": \"\",\n \"CustomUserId\": \"\",\n \"ProxyIp\": \"\",\n \"Channel\": \"\"\n },\n \"Agent\": {\n \"ProxyAppId\": \"c17bdf9c2a7bdcb32611f4d0200fef3d\",\n \"ProxyOrganizationOpenId\": \"d7c13a8b81340cce9e3968c0ee248f04\",\n \"ProxyOperator\": {\n \"OpenId\": \"00498cc8500be9cxxxxxxx3aff766cac\"\n },\n \"AppId\": \"65fb0c591044be8a1f60aa382cc5ed0e\"\n },\n \"FlowGroupId\": \"111111***22222\",\n \"FillApproverType\": 1,\n \"Approvers\": [\n {\n \"RecipientId\": \"yDRS4UUgygqdcj51UuO4zjEyWTmzsIAR\",\n \"ApproverName\": \"典子谦\",\n \"ApproverMobile\": \"13200000000\",\n \"OrganizationName\": \"***有限公司\",\n \"FlowId\": \"yDCVMUUckpwytrk2UE1RW1FSR2BqdoGS\"\n },\n {\n \"RecipientId\": \"yDCVMUUckpwytrksUE1RW1FRR08t7Lxf\",\n \"ApproverName\": \"典子谦\",\n \"ApproverMobile\": \"13200000000\",\n \"OrganizationName\": \"***有限公司\",\n \"FlowId\": \"yDC5BUUckpypucutUETpDyAwpDJckfDR\"\n }\n ]\n}",
183
183
  "output": "{\n \"Response\": {\n \"RequestId\": \"5beb5f54-cf3d-4c26-a4ee-a97c85196a3e\"\n }\n}",
184
184
  "title": "B2C签署,补充合同组两方动态签署人信息"
185
185
  },
@@ -638,17 +638,17 @@
638
638
  "example": "string",
639
639
  "member": "string",
640
640
  "name": "MaterialId",
641
- "required": true,
641
+ "output_required": true,
642
642
  "type": "string",
643
643
  "value_allowed_null": false
644
644
  },
645
645
  {
646
646
  "disabled": false,
647
- "document": "素材状态",
647
+ "document": "素材状态\n\n字段取值: \n0 审核中\n1 人工审核通过\n2 人工审核失败\n3 申诉中\n11 申诉成功\n12 申诉失败\n21 机器审核通过\n22 机器审核失败\n31 视频素材预处理成功,素材可用\n32 视频素材预处理失败\n33 角色不在视频中",
648
648
  "example": "1",
649
649
  "member": "int64",
650
650
  "name": "MaterialStatus",
651
- "required": true,
651
+ "output_required": true,
652
652
  "type": "int",
653
653
  "value_allowed_null": false
654
654
  },
@@ -658,7 +658,7 @@
658
658
  "example": "string",
659
659
  "member": "string",
660
660
  "name": "CreateTime",
661
- "required": true,
661
+ "output_required": true,
662
662
  "type": "string",
663
663
  "value_allowed_null": false
664
664
  },
@@ -668,7 +668,7 @@
668
668
  "example": "string",
669
669
  "member": "string",
670
670
  "name": "UpdateTime",
671
- "required": true,
671
+ "output_required": true,
672
672
  "type": "string",
673
673
  "value_allowed_null": false
674
674
  },
@@ -678,7 +678,7 @@
678
678
  "example": "string",
679
679
  "member": "MaterialFaces",
680
680
  "name": "MaterialFaceList",
681
- "required": true,
681
+ "output_required": true,
682
682
  "type": "list",
683
683
  "value_allowed_null": false
684
684
  },
@@ -688,7 +688,7 @@
688
688
  "example": "string",
689
689
  "member": "string",
690
690
  "name": "MaterialName",
691
- "required": true,
691
+ "output_required": true,
692
692
  "type": "string",
693
693
  "value_allowed_null": false
694
694
  },
@@ -698,7 +698,7 @@
698
698
  "example": "string",
699
699
  "member": "string",
700
700
  "name": "AuditResult",
701
- "required": false,
701
+ "output_required": true,
702
702
  "type": "string",
703
703
  "value_allowed_null": true
704
704
  }
@@ -6238,6 +6238,26 @@
6238
6238
  "DescribeTaskStatusResponse": {
6239
6239
  "document": "DescribeTaskStatus返回参数结构体",
6240
6240
  "members": [
6241
+ {
6242
+ "disabled": false,
6243
+ "document": "任务状态:RUNNING,FAIL,SUCCESS",
6244
+ "example": "无",
6245
+ "member": "string",
6246
+ "name": "Status",
6247
+ "output_required": false,
6248
+ "type": "string",
6249
+ "value_allowed_null": false
6250
+ },
6251
+ {
6252
+ "disabled": false,
6253
+ "document": "任务ID\n注意:此字段可能返回 null,表示取不到有效值。",
6254
+ "example": "无",
6255
+ "member": "string",
6256
+ "name": "TaskId",
6257
+ "output_required": false,
6258
+ "type": "string",
6259
+ "value_allowed_null": true
6260
+ },
6241
6261
  {
6242
6262
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
6243
6263
  "member": "string",
@@ -7097,7 +7117,7 @@
7097
7117
  {
7098
7118
  "disabled": false,
7099
7119
  "document": "过滤条件",
7100
- "example": "",
7120
+ "example": "",
7101
7121
  "member": "string",
7102
7122
  "name": "Name",
7103
7123
  "required": true,
@@ -7107,7 +7127,7 @@
7107
7127
  {
7108
7128
  "disabled": false,
7109
7129
  "document": "过滤值",
7110
- "example": "",
7130
+ "example": "",
7111
7131
  "member": "string",
7112
7132
  "name": "Values",
7113
7133
  "required": true,
@@ -660,7 +660,7 @@
660
660
  {
661
661
  "document": "查询异步任务执行状态",
662
662
  "input": "POST / HTTP/1.1\nHost: gaap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskStatus\n<公共请求参数>\n\n{\n \"TaskId\": \"08388e12-d2e2-4376-ade0-1a59fdd9f4d2\"\n}",
663
- "output": "{\n \"Response\": {\n \"RequestId\": \"766d83c7-c0b1-4973-bdf3-effeeffa34d7\"\n }\n}",
663
+ "output": "{\n \"Response\": {\n \"RequestId\": \"766d83c7-c0b1-4973-bdf3-effeeffa34d7\",\n \"Status\": \"RUNNING\",\n \"TaskId\": \"08388e12-d2e2-4376-ade0-1a59fdd9f4d2\"\n }\n}",
664
664
  "title": "查询异步任务执行状态"
665
665
  }
666
666
  ],
@@ -17,7 +17,7 @@ from tencentcloud.hunyuan.v20230901 import models as models_v20230901
17
17
  from jmespath import search
18
18
  import time
19
19
 
20
- def doChatCompletions(args, parsed_globals):
20
+ def doSubmitHunyuanImageJob(args, parsed_globals):
21
21
  g_param = parse_global_arg(parsed_globals)
22
22
 
23
23
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -46,11 +46,11 @@ def doChatCompletions(args, parsed_globals):
46
46
  client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
47
47
  client._sdkVersion += ("_CLI_" + __version__)
48
48
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
- model = models.ChatCompletionsRequest()
49
+ model = models.SubmitHunyuanImageJobRequest()
50
50
  model.from_json_string(json.dumps(args))
51
51
  start_time = time.time()
52
52
  while True:
53
- rsp = client.ChatCompletions(model)
53
+ rsp = client.SubmitHunyuanImageJob(model)
54
54
  result = rsp.to_json_string()
55
55
  try:
56
56
  json_obj = json.loads(result)
@@ -121,7 +121,7 @@ def doQueryHunyuanImageJob(args, parsed_globals):
121
121
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
122
 
123
123
 
124
- def doGetEmbedding(args, parsed_globals):
124
+ def doChatCompletions(args, parsed_globals):
125
125
  g_param = parse_global_arg(parsed_globals)
126
126
 
127
127
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -150,11 +150,11 @@ def doGetEmbedding(args, parsed_globals):
150
150
  client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
151
151
  client._sdkVersion += ("_CLI_" + __version__)
152
152
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
153
- model = models.GetEmbeddingRequest()
153
+ model = models.ChatCompletionsRequest()
154
154
  model.from_json_string(json.dumps(args))
155
155
  start_time = time.time()
156
156
  while True:
157
- rsp = client.GetEmbedding(model)
157
+ rsp = client.ChatCompletions(model)
158
158
  result = rsp.to_json_string()
159
159
  try:
160
160
  json_obj = json.loads(result)
@@ -225,7 +225,7 @@ def doGetTokenCount(args, parsed_globals):
225
225
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
226
 
227
227
 
228
- def doSubmitHunyuanImageJob(args, parsed_globals):
228
+ def doTextToImageLite(args, parsed_globals):
229
229
  g_param = parse_global_arg(parsed_globals)
230
230
 
231
231
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -254,11 +254,63 @@ def doSubmitHunyuanImageJob(args, parsed_globals):
254
254
  client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
255
255
  client._sdkVersion += ("_CLI_" + __version__)
256
256
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
- model = models.SubmitHunyuanImageJobRequest()
257
+ model = models.TextToImageLiteRequest()
258
258
  model.from_json_string(json.dumps(args))
259
259
  start_time = time.time()
260
260
  while True:
261
- rsp = client.SubmitHunyuanImageJob(model)
261
+ rsp = client.TextToImageLite(model)
262
+ result = rsp.to_json_string()
263
+ try:
264
+ json_obj = json.loads(result)
265
+ except TypeError as e:
266
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
267
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
268
+ break
269
+ cur_time = time.time()
270
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
271
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
272
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
273
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
274
+ else:
275
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
276
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
277
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
+
279
+
280
+ def doGetEmbedding(args, parsed_globals):
281
+ g_param = parse_global_arg(parsed_globals)
282
+
283
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
284
+ cred = credential.CVMRoleCredential()
285
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
286
+ cred = credential.STSAssumeRoleCredential(
287
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
288
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
289
+ )
290
+ 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):
291
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
292
+ else:
293
+ cred = credential.Credential(
294
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
295
+ )
296
+ http_profile = HttpProfile(
297
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
298
+ reqMethod="POST",
299
+ endpoint=g_param[OptionsDefine.Endpoint],
300
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
301
+ )
302
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
303
+ if g_param[OptionsDefine.Language]:
304
+ profile.language = g_param[OptionsDefine.Language]
305
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
306
+ client = mod.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
307
+ client._sdkVersion += ("_CLI_" + __version__)
308
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
309
+ model = models.GetEmbeddingRequest()
310
+ model.from_json_string(json.dumps(args))
311
+ start_time = time.time()
312
+ while True:
313
+ rsp = client.GetEmbedding(model)
262
314
  result = rsp.to_json_string()
263
315
  try:
264
316
  json_obj = json.loads(result)
@@ -288,11 +340,12 @@ MODELS_MAP = {
288
340
  }
289
341
 
290
342
  ACTION_MAP = {
291
- "ChatCompletions": doChatCompletions,
343
+ "SubmitHunyuanImageJob": doSubmitHunyuanImageJob,
292
344
  "QueryHunyuanImageJob": doQueryHunyuanImageJob,
293
- "GetEmbedding": doGetEmbedding,
345
+ "ChatCompletions": doChatCompletions,
294
346
  "GetTokenCount": doGetTokenCount,
295
- "SubmitHunyuanImageJob": doSubmitHunyuanImageJob,
347
+ "TextToImageLite": doTextToImageLite,
348
+ "GetEmbedding": doGetEmbedding,
296
349
 
297
350
  }
298
351