tccli 3.0.1393.1__py2.py3-none-any.whl → 3.0.1394.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.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +2 -1
- tccli/services/ai3d/v20250513/api.json +4 -4
- tccli/services/apm/apm_client.py +53 -0
- tccli/services/apm/v20210622/api.json +354 -0
- tccli/services/apm/v20210622/examples.json +8 -0
- tccli/services/billing/billing_client.py +326 -8
- tccli/services/billing/v20180709/api.json +2120 -187
- tccli/services/billing/v20180709/examples.json +48 -0
- tccli/services/ccc/v20200210/api.json +88 -10
- tccli/services/cvm/cvm_client.py +0 -212
- tccli/services/cvm/v20170312/api.json +80 -842
- tccli/services/cvm/v20170312/examples.json +24 -56
- tccli/services/gs/gs_client.py +216 -4
- tccli/services/gs/v20191118/api.json +201 -0
- tccli/services/gs/v20191118/examples.json +32 -0
- tccli/services/iai/v20180301/api.json +33 -24
- tccli/services/iai/v20180301/examples.json +4 -4
- tccli/services/lke/v20231130/api.json +34 -1
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/mna/v20210119/api.json +10 -1
- tccli/services/mna/v20210119/examples.json +1 -1
- tccli/services/ocr/v20181119/api.json +2 -2
- tccli/services/redis/v20180412/api.json +1 -1
- tccli/services/sqlserver/v20180328/api.json +15 -5
- tccli/services/sqlserver/v20180328/examples.json +1 -1
- tccli/services/trocket/v20230308/api.json +4 -4
- tccli/services/tsf/v20180326/api.json +2 -2
- tccli/services/vod/v20180717/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +3 -3
- tccli/services/vtc/v20240223/api.json +1 -1
- tccli/services/waf/v20180125/api.json +8 -8
- tccli/services/waf/v20180125/examples.json +1 -1
- tccli/services/wedata/v20250806/api.json +13645 -0
- tccli/services/wedata/v20250806/examples.json +621 -0
- tccli/services/wedata/wedata_client.py +5031 -1157
- {tccli-3.0.1393.1.dist-info → tccli-3.0.1394.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1393.1.dist-info → tccli-3.0.1394.1.dist-info}/RECORD +41 -39
- {tccli-3.0.1393.1.dist-info → tccli-3.0.1394.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1393.1.dist-info → tccli-3.0.1394.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1393.1.dist-info → tccli-3.0.1394.1.dist-info}/license_files/LICENSE +0 -0
@@ -30,6 +30,14 @@
|
|
30
30
|
"title": "创建分账目录树根结点"
|
31
31
|
}
|
32
32
|
],
|
33
|
+
"CreateBudget": [
|
34
|
+
{
|
35
|
+
"document": "",
|
36
|
+
"input": "POST / HTTP/1.1\nHost: billing.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action:CreateBudget\n<公共请求参数>\n\n{\n \"BudgetName\": \"testapi111\",\n \"CycleType\": \"DAY\",\n \"PeriodBegin\": \"2025-01-01\",\n \"PeriodEnd\": \"2025-12-01\",\n \"PlanType\": \"FIX\",\n \"BudgetQuota\": \"1000\",\n \"BillType\": \"BILL\",\n \"FeeType\": \"COST\",\n \"WarnJson\": [\n {\n \"WarnType\": \"ACTUAL\",\n \"CalType\": \"PERCENTAGE\",\n \"ThresholdValue\": \"100\"\n }\n ],\n \"BudgetNote\": \"使用api创建预算信息\",\n \"DimensionsRange\": {\n \"Business\": [\n null\n ],\n \"PayMode\": [\n null\n ],\n \"ProductCodes\": [\n null\n ],\n \"ComponentCodes\": [\n null\n ],\n \"ZoneIds\": [\n null\n ],\n \"RegionIds\": [\n null\n ],\n \"ProjectIds\": [\n null\n ],\n \"ActionTypes\": [\n null\n ],\n \"ConsumptionTypes\": [\n null\n ],\n \"Tags\": [\n {\n \"TagKey\": null,\n \"TagValue\": [\n null\n ]\n }\n ],\n \"PayerUins\": [\n null\n ],\n \"OwnerUins\": [\n null\n ],\n \"TreeNodeUniqKeys\": [\n null\n ]\n },\n \"WaveThresholdJson\": [\n {\n \"WarnType\": null,\n \"Threshold\": null,\n \"MetaType\": null,\n \"PeriodType\": null\n }\n ]\n}",
|
37
|
+
"output": "{\n \"Response\": {\n \"Code\": 0,\n \"Data\": {\n \"BudgetId\": \"1963509727611474000\",\n \"UpdateTime\": \"2025-09-04 15:49:33\"\n },\n \"Message\": \"create success\",\n \"RequestId\": \"922dcc4b-55b2-401d-8eb8-9160117d07d4\"\n }\n}",
|
38
|
+
"title": "创建预算项目"
|
39
|
+
}
|
40
|
+
],
|
33
41
|
"CreateGatherRule": [
|
34
42
|
{
|
35
43
|
"document": "",
|
@@ -68,6 +76,14 @@
|
|
68
76
|
"title": "删除分账单元"
|
69
77
|
}
|
70
78
|
],
|
79
|
+
"DeleteBudget": [
|
80
|
+
{
|
81
|
+
"document": "",
|
82
|
+
"input": "POST / HTTP/1.1\nHost: billing.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action:DeleteBudget\n<公共请求参数>\n\n{\n \"BudgetIds\": [\n \"1960309822252269569\"\n ]\n}",
|
83
|
+
"output": "{\n \"Response\": {\n \"Code\": 0,\n \"Data\": [\n \"1960309822252269569\"\n ],\n \"Message\": \"delete success\",\n \"RequestId\": \"eb7161c4-4025-466d-834f-1707d6933459\"\n }\n}",
|
84
|
+
"title": "删除预算项目"
|
85
|
+
}
|
86
|
+
],
|
71
87
|
"DeleteGatherRule": [
|
72
88
|
{
|
73
89
|
"document": "",
|
@@ -348,6 +364,30 @@
|
|
348
364
|
"title": "获取按计费模式汇总费用明细"
|
349
365
|
}
|
350
366
|
],
|
367
|
+
"DescribeBudget": [
|
368
|
+
{
|
369
|
+
"document": "",
|
370
|
+
"input": "POST / HTTP/1.1\nHost: billing.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action:DescribeBudget\n<公共请求参数>\n\n{\n \"PageNo\": 1,\n \"PageSize\": 1,\n \"BudgetId\": \"1963509727611473921\",\n \"BudgetName\": null,\n \"BudgetStatus\": null,\n \"CycleTypes\": [\n null\n ]\n}",
|
371
|
+
"output": "{\n \"Response\": {\n \"Code\": 0,\n \"Data\": {\n \"Current\": 1,\n \"Pages\": 1,\n \"Records\": [\n {\n \"BillType\": \"BILL\",\n \"BudgetId\": \"1963509727611473921\",\n \"BudgetName\": \"API创建预算计划\",\n \"BudgetNote\": \"使用使用api创建预算信息\",\n \"BudgetProgress\": \"0.00\",\n \"BudgetQuota\": \"1200\",\n \"BudgetQuotaJson\": null,\n \"BudgetSendInfoForm\": [\n {\n \"BudgetId\": null,\n \"EndTime\": \"23:59:59\",\n \"Id\": null,\n \"NoticeWays\": [\n \"EMAIL\",\n \"SMS\",\n \"SITE\"\n ],\n \"ReceiverIds\": [],\n \"ReceiverType\": \"UIN\",\n \"StartTime\": \"10:00:00\",\n \"WeekDays\": [\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7\n ]\n }\n ],\n \"BudgetStatus\": \"ACTIVE\",\n \"CreateTime\": \"2025-09-04 15:49:34\",\n \"CurDateDesc\": \"2025-09-11\",\n \"CycleType\": \"DAY\",\n \"DefaultMode\": 0,\n \"Dimensions\": \"COST\",\n \"DimensionsRange\": {\n \"ActionTypes\": null,\n \"Business\": [\n \"p_cvm\"\n ],\n \"ComponentCodes\": null,\n \"ConsumptionTypes\": null,\n \"OwnerUins\": null,\n \"PayMode\": null,\n \"PayerUins\": null,\n \"ProductCodes\": null,\n \"ProjectIds\": null,\n \"RegionIds\": null,\n \"Tags\": null,\n \"TreeNodeUniqKeys\": null,\n \"ZoneIds\": null\n },\n \"FeeType\": \"COST\",\n \"ForecastCost\": null,\n \"ForecastProgress\": null,\n \"HasForecast\": \"1\",\n \"MoneyStatus\": 1,\n \"PayerUin\": 909619400,\n \"PeriodBegin\": \"2025-01-01\",\n \"PeriodEnd\": \"2025-12-01\",\n \"PlanType\": \"FIX\",\n \"RealCost\": \"0.00\",\n \"RemindTimes\": 0,\n \"TemplateType\": null,\n \"UpdateTime\": \"2025-09-04 15:59:14\",\n \"WarnJson\": [\n {\n \"CalType\": \"PERCENTAGE\",\n \"ThresholdValue\": \"100\",\n \"WarnType\": \"ACTUAL\"\n }\n ],\n \"WaveThresholdJson\": [\n {\n \"MetaType\": \"chain\",\n \"PeriodType\": \"day\",\n \"Threshold\": \"100\",\n \"WarnType\": \"ACTUAL\"\n }\n ]\n }\n ],\n \"Size\": 1,\n \"Total\": 1\n },\n \"Message\": \"query success\",\n \"RequestId\": \"9844721a-b6c5-4566-906c-41b88bf976f8\"\n }\n}",
|
372
|
+
"title": "依据BudgetId获取预算信息"
|
373
|
+
}
|
374
|
+
],
|
375
|
+
"DescribeBudgetOperationLog": [
|
376
|
+
{
|
377
|
+
"document": "",
|
378
|
+
"input": "POST / HTTP/1.1\nHost: billing.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBudgetOperationLog\n<公共请求参数>\n\n{\n \"PageNo\": 1,\n \"PageSize\": 4,\n \"BudgetId\": \"1967417069344325634\"\n}",
|
379
|
+
"output": "{\n \"Response\": {\n \"Code\": 0,\n \"Data\": {\n \"Current\": 1,\n \"Pages\": 1,\n \"Records\": [\n {\n \"Action\": \"ADD\",\n \"BillDay\": 20250915,\n \"BillMonth\": \"2025-09-01 00:00:00\",\n \"BudgetId\": \"1967417069344325634\",\n \"CreateTime\": \"2025-09-15 10:35:56\",\n \"DiffValue\": [\n {\n \"After\": \"测试创建记录111222\",\n \"Before\": null,\n \"Property\": \"budgetName\"\n },\n {\n \"After\": \"记录\",\n \"Before\": null,\n \"Property\": \"budgetNote\"\n },\n {\n \"After\": \"BILL\",\n \"Before\": null,\n \"Property\": \"billType\"\n },\n {\n \"After\": \"COST\",\n \"Before\": null,\n \"Property\": \"feeType\"\n },\n {\n \"After\": \"DAY\",\n \"Before\": null,\n \"Property\": \"cycleType\"\n },\n {\n \"After\": \"2025-01-01\",\n \"Before\": null,\n \"Property\": \"periodBegin\"\n },\n {\n \"After\": \"2025-12-01\",\n \"Before\": null,\n \"Property\": \"periodEnd\"\n },\n {\n \"After\": \"COST\",\n \"Before\": null,\n \"Property\": \"dimensions\"\n },\n {\n \"After\": \"{\\\"business\\\":[\\\"p_cvm\\\"]}\",\n \"Before\": null,\n \"Property\": \"dimensionsRange\"\n },\n {\n \"After\": \"FIX\",\n \"Before\": null,\n \"Property\": \"planType\"\n },\n {\n \"After\": \"1000\",\n \"Before\": null,\n \"Property\": \"budgetQuota\"\n },\n {\n \"After\": \"api修改\",\n \"Before\": null,\n \"Property\": \"operationChannel\"\n },\n {\n \"After\": \"[{\\\"warnType\\\":\\\"ACTUAL\\\",\\\"threshold\\\":\\\"22\\\",\\\"metaType\\\":\\\"yoy\\\",\\\"periodType\\\":\\\"day\\\"}]\",\n \"Before\": \"null\",\n \"Property\": \"waveThresholdJson\"\n },\n {\n \"After\": \"[{\\\"warnType\\\":\\\"ACTUAL\\\",\\\"calType\\\":\\\"ABS\\\",\\\"thresholdValue\\\":\\\"33\\\"}]\",\n \"Before\": \"null\",\n \"Property\": \"warnJson\"\n }\n ],\n \"OperateUin\": 103628347,\n \"OperationChannel\": \"api修改\",\n \"OwnerUin\": 103628347,\n \"PayerUin\": 103628347,\n \"UpdateTime\": \"2025-09-15 10:35:56\"\n }\n ],\n \"Size\": 4,\n \"Total\": 1\n },\n \"Message\": \"query success\",\n \"RequestId\": \"4c1a5821-241d-44dc-b132-929bd648ddb3\"\n }\n}",
|
380
|
+
"title": "根据BudgetId查询预算修改记录"
|
381
|
+
}
|
382
|
+
],
|
383
|
+
"DescribeBudgetRemindRecordList": [
|
384
|
+
{
|
385
|
+
"document": "成功示例",
|
386
|
+
"input": "POST / HTTP/1.1\nHost: billing.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBudgetRemindRecordList\n<公共请求参数>\n\n{\n \"PageNo\": 1,\n \"PageSize\": 1,\n \"BudgetId\": \"123\"\n}",
|
387
|
+
"output": "{\n \"Response\": {\n \"Code\": 0,\n \"Data\": {\n \"CountId\": null,\n \"Current\": 1,\n \"MaxLimit\": null,\n \"OptimizeCountSql\": true,\n \"Orders\": [],\n \"Pages\": 12,\n \"Records\": [\n {\n \"AlarmType\": \"BUDGET\",\n \"BudgetQuota\": \"\",\n \"CreateTime\": 1640048401000,\n \"DateDesc\": \"month\",\n \"MessageContent\": \"\\r\\n预算名称: CVM预算, 预算周期: 月度, 预算类型: 费用预算, 预算金额: 0.0, 提醒类型: 预测金额, 条件: 预算金额的百分比, 阈值: 大于等于10%, 金额: 0元\\r\\n\",\n \"RealCost\": \"100.00\",\n \"SendTime\": 1640048400000\n }\n ],\n \"SearchCount\": true,\n \"Size\": 1,\n \"Total\": 12\n },\n \"Message\": null,\n \"RequestId\": \"b6862d8d-ad0d-488b-9900-e046d3e2a736\"\n }\n}",
|
388
|
+
"title": "预算提醒记录"
|
389
|
+
}
|
390
|
+
],
|
351
391
|
"DescribeCostDetail": [
|
352
392
|
{
|
353
393
|
"document": "",
|
@@ -504,6 +544,14 @@
|
|
504
544
|
"title": "编辑分账单元信息"
|
505
545
|
}
|
506
546
|
],
|
547
|
+
"ModifyBudget": [
|
548
|
+
{
|
549
|
+
"document": "",
|
550
|
+
"input": "POST / HTTP/1.1\nHost: billing.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action:ModifyBudget\n\n{\n \"BudgetId\": \"1963509727611473921\",\n \"BudgetName\": \"API创建预算计划\",\n \"CycleType\": \"DAY\",\n \"PeriodBegin\": \"2025-01-01\",\n \"PeriodEnd\": \"2025-12-01\",\n \"PlanType\": \"FIX\",\n \"BudgetQuota\": \"1200\",\n \"BillType\": \"BILL\",\n \"FeeType\": \"COST\",\n \"WarnJson\": [\n {\n \"WarnType\": \"ACTUAL\",\n \"CalType\": \"PERCENTAGE\",\n \"ThresholdValue\": \"100\"\n }\n ],\n \"BudgetNote\": \"使用使用api创建预算信息\",\n \"DimensionsRange\": {\n \"Business\": [\n \"p_cvm\"\n ]\n },\n \"WaveThresholdJson\": [\n {\n \"WarnType\": \"ACTUAL\",\n \"Threshold\": \"100\",\n \"MetaType\": \"chain\",\n \"PeriodType\": \"day\"\n }\n ]\n}",
|
551
|
+
"output": "{\n \"Response\": {\n \"Code\": 0,\n \"Data\": {\n \"BudgetId\": \"1963509727611473921\",\n \"UpdateTime\": \"2025-09-04 15:59:14\"\n },\n \"Message\": \"update success\",\n \"RequestId\": \"59e79af4-68cb-4bb3-9b18-194acf3952fe\"\n }\n}",
|
552
|
+
"title": "更新预算信息"
|
553
|
+
}
|
554
|
+
],
|
507
555
|
"ModifyGatherRule": [
|
508
556
|
{
|
509
557
|
"document": "",
|
@@ -2053,7 +2053,7 @@
|
|
2053
2053
|
{
|
2054
2054
|
"disabled": false,
|
2055
2055
|
"document": "会话 ID",
|
2056
|
-
"example": "
|
2056
|
+
"example": "7cb26a84-83b2-42d8-a19b-7dae78e9b78e",
|
2057
2057
|
"member": "string",
|
2058
2058
|
"name": "SessionId",
|
2059
2059
|
"required": true,
|
@@ -2070,8 +2070,8 @@
|
|
2070
2070
|
},
|
2071
2071
|
{
|
2072
2072
|
"disabled": false,
|
2073
|
-
"document": "控制命令,目前支持命令如下:\n\n- ServerPushText,服务端发送文本给AI机器人,AI
|
2074
|
-
"example": "
|
2073
|
+
"document": "控制命令,目前支持命令如下:\n\n- ServerPushText,服务端发送文本给AI机器人,AI机器人会播报该文本\n- InvokeLLM,服务端发送文本给大模型,触发对话",
|
2074
|
+
"example": "ServerPushText",
|
2075
2075
|
"member": "string",
|
2076
2076
|
"name": "Command",
|
2077
2077
|
"required": false,
|
@@ -2085,6 +2085,15 @@
|
|
2085
2085
|
"name": "ServerPushText",
|
2086
2086
|
"required": false,
|
2087
2087
|
"type": "object"
|
2088
|
+
},
|
2089
|
+
{
|
2090
|
+
"disabled": false,
|
2091
|
+
"document": "服务端发送命令主动请求大模型,当Command为InvokeLLM时会把content请求到大模型,头部增加X-Invoke-LLM=\"1\"",
|
2092
|
+
"example": "无",
|
2093
|
+
"member": "InvokeLLM",
|
2094
|
+
"name": "InvokeLLM",
|
2095
|
+
"required": false,
|
2096
|
+
"type": "object"
|
2088
2097
|
}
|
2089
2098
|
],
|
2090
2099
|
"type": "object"
|
@@ -2696,7 +2705,7 @@
|
|
2696
2705
|
{
|
2697
2706
|
"disabled": false,
|
2698
2707
|
"document": "被叫号码列表",
|
2699
|
-
"example": "[
|
2708
|
+
"example": "[\"0086139xxxxxxxx\",\"0086130xxxxxxxxx\"]",
|
2700
2709
|
"member": "string",
|
2701
2710
|
"name": "Callees",
|
2702
2711
|
"required": true,
|
@@ -2705,7 +2714,7 @@
|
|
2705
2714
|
{
|
2706
2715
|
"disabled": false,
|
2707
2716
|
"document": "主叫号码列表",
|
2708
|
-
"example": "[
|
2717
|
+
"example": "[\"0086010xxxxxxxx\"]",
|
2709
2718
|
"member": "string",
|
2710
2719
|
"name": "Callers",
|
2711
2720
|
"required": true,
|
@@ -2758,8 +2767,8 @@
|
|
2758
2767
|
},
|
2759
2768
|
{
|
2760
2769
|
"disabled": false,
|
2761
|
-
"document": "
|
2762
|
-
"example": "
|
2770
|
+
"document": "自定义变量(仅高级版支持),CalleeAttributes 字段中使用相同变量会覆盖此处",
|
2771
|
+
"example": "无",
|
2763
2772
|
"member": "Variable",
|
2764
2773
|
"name": "Variables",
|
2765
2774
|
"required": false,
|
@@ -2767,7 +2776,7 @@
|
|
2767
2776
|
},
|
2768
2777
|
{
|
2769
2778
|
"disabled": false,
|
2770
|
-
"document": "UUI",
|
2779
|
+
"document": "用户自定义数据,CalleeAttributes 字段中使用 UUI 会覆盖此处",
|
2771
2780
|
"example": "foobar",
|
2772
2781
|
"member": "string",
|
2773
2782
|
"name": "UUI",
|
@@ -2777,7 +2786,7 @@
|
|
2777
2786
|
{
|
2778
2787
|
"disabled": false,
|
2779
2788
|
"document": "被叫属性",
|
2780
|
-
"example": "
|
2789
|
+
"example": "无",
|
2781
2790
|
"member": "CalleeAttribute",
|
2782
2791
|
"name": "CalleeAttributes",
|
2783
2792
|
"required": false,
|
@@ -2795,7 +2804,7 @@
|
|
2795
2804
|
{
|
2796
2805
|
"disabled": false,
|
2797
2806
|
"document": "可用时间段",
|
2798
|
-
"example": "
|
2807
|
+
"example": "无",
|
2799
2808
|
"member": "TimeRange",
|
2800
2809
|
"name": "AvailableTime",
|
2801
2810
|
"required": false,
|
@@ -3283,6 +3292,24 @@
|
|
3283
3292
|
"name": "Prefix",
|
3284
3293
|
"required": false,
|
3285
3294
|
"type": "string"
|
3295
|
+
},
|
3296
|
+
{
|
3297
|
+
"disabled": false,
|
3298
|
+
"document": "国内长途手机前缀码",
|
3299
|
+
"example": "0",
|
3300
|
+
"member": "string",
|
3301
|
+
"name": "MobileNddPrefix",
|
3302
|
+
"required": false,
|
3303
|
+
"type": "string"
|
3304
|
+
},
|
3305
|
+
{
|
3306
|
+
"disabled": false,
|
3307
|
+
"document": "同市固话去掉区号",
|
3308
|
+
"example": "false",
|
3309
|
+
"member": "bool",
|
3310
|
+
"name": "LocalNumberTrimAC",
|
3311
|
+
"required": false,
|
3312
|
+
"type": "bool"
|
3286
3313
|
}
|
3287
3314
|
],
|
3288
3315
|
"type": "object"
|
@@ -7503,6 +7530,30 @@
|
|
7503
7530
|
],
|
7504
7531
|
"usage": "both"
|
7505
7532
|
},
|
7533
|
+
"InvokeLLM": {
|
7534
|
+
"document": "调用服务端主动发起请求到LLM",
|
7535
|
+
"members": [
|
7536
|
+
{
|
7537
|
+
"disabled": false,
|
7538
|
+
"document": "请求LLM的内容",
|
7539
|
+
"example": "今天天气怎么样",
|
7540
|
+
"member": "string",
|
7541
|
+
"name": "Content",
|
7542
|
+
"required": false,
|
7543
|
+
"type": "string"
|
7544
|
+
},
|
7545
|
+
{
|
7546
|
+
"disabled": false,
|
7547
|
+
"document": "是否允许该文本打断机器人说话",
|
7548
|
+
"example": "false",
|
7549
|
+
"member": "bool",
|
7550
|
+
"name": "Interrupt",
|
7551
|
+
"required": false,
|
7552
|
+
"type": "bool"
|
7553
|
+
}
|
7554
|
+
],
|
7555
|
+
"usage": "in"
|
7556
|
+
},
|
7506
7557
|
"Message": {
|
7507
7558
|
"document": "单条消息",
|
7508
7559
|
"members": [
|
@@ -7702,6 +7753,24 @@
|
|
7702
7753
|
"name": "Prefix",
|
7703
7754
|
"required": false,
|
7704
7755
|
"type": "string"
|
7756
|
+
},
|
7757
|
+
{
|
7758
|
+
"disabled": false,
|
7759
|
+
"document": "国内长途手机前缀码",
|
7760
|
+
"example": "0",
|
7761
|
+
"member": "string",
|
7762
|
+
"name": "MobileNddPrefix",
|
7763
|
+
"required": false,
|
7764
|
+
"type": "string"
|
7765
|
+
},
|
7766
|
+
{
|
7767
|
+
"disabled": false,
|
7768
|
+
"document": "同市固话去掉区号",
|
7769
|
+
"example": "false",
|
7770
|
+
"member": "bool",
|
7771
|
+
"name": "LocalNumberTrimAC",
|
7772
|
+
"required": false,
|
7773
|
+
"type": "bool"
|
7705
7774
|
}
|
7706
7775
|
],
|
7707
7776
|
"type": "object"
|
@@ -7963,6 +8032,15 @@
|
|
7963
8032
|
"name": "OutboundCalleeFormat",
|
7964
8033
|
"required": false,
|
7965
8034
|
"type": "string"
|
8035
|
+
},
|
8036
|
+
{
|
8037
|
+
"disabled": false,
|
8038
|
+
"document": "运营商号码",
|
8039
|
+
"example": "66660000",
|
8040
|
+
"member": "string",
|
8041
|
+
"name": "CarrierPhoneNumber",
|
8042
|
+
"required": false,
|
8043
|
+
"type": "string"
|
7966
8044
|
}
|
7967
8045
|
],
|
7968
8046
|
"usage": "in"
|
tccli/services/cvm/cvm_client.py
CHANGED
@@ -693,58 +693,6 @@ def doResetInstancesType(args, parsed_globals):
|
|
693
693
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
694
694
|
|
695
695
|
|
696
|
-
def doDescribeReservedInstancesConfigInfos(args, parsed_globals):
|
697
|
-
g_param = parse_global_arg(parsed_globals)
|
698
|
-
|
699
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
700
|
-
cred = credential.CVMRoleCredential()
|
701
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
702
|
-
cred = credential.STSAssumeRoleCredential(
|
703
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
704
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
705
|
-
)
|
706
|
-
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):
|
707
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
708
|
-
else:
|
709
|
-
cred = credential.Credential(
|
710
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
711
|
-
)
|
712
|
-
http_profile = HttpProfile(
|
713
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
714
|
-
reqMethod="POST",
|
715
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
716
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
717
|
-
)
|
718
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
719
|
-
if g_param[OptionsDefine.Language]:
|
720
|
-
profile.language = g_param[OptionsDefine.Language]
|
721
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
722
|
-
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
723
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
724
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
725
|
-
model = models.DescribeReservedInstancesConfigInfosRequest()
|
726
|
-
model.from_json_string(json.dumps(args))
|
727
|
-
start_time = time.time()
|
728
|
-
while True:
|
729
|
-
rsp = client.DescribeReservedInstancesConfigInfos(model)
|
730
|
-
result = rsp.to_json_string()
|
731
|
-
try:
|
732
|
-
json_obj = json.loads(result)
|
733
|
-
except TypeError as e:
|
734
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
735
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
736
|
-
break
|
737
|
-
cur_time = time.time()
|
738
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
739
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
740
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
741
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
742
|
-
else:
|
743
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
744
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
745
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
746
|
-
|
747
|
-
|
748
696
|
def doDescribeInstanceVncUrl(args, parsed_globals):
|
749
697
|
g_param = parse_global_arg(parsed_globals)
|
750
698
|
|
@@ -797,58 +745,6 @@ def doDescribeInstanceVncUrl(args, parsed_globals):
|
|
797
745
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
798
746
|
|
799
747
|
|
800
|
-
def doInquirePricePurchaseReservedInstancesOffering(args, parsed_globals):
|
801
|
-
g_param = parse_global_arg(parsed_globals)
|
802
|
-
|
803
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
804
|
-
cred = credential.CVMRoleCredential()
|
805
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
806
|
-
cred = credential.STSAssumeRoleCredential(
|
807
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
808
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
809
|
-
)
|
810
|
-
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):
|
811
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
812
|
-
else:
|
813
|
-
cred = credential.Credential(
|
814
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
815
|
-
)
|
816
|
-
http_profile = HttpProfile(
|
817
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
818
|
-
reqMethod="POST",
|
819
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
820
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
821
|
-
)
|
822
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
823
|
-
if g_param[OptionsDefine.Language]:
|
824
|
-
profile.language = g_param[OptionsDefine.Language]
|
825
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
826
|
-
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
827
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
828
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
829
|
-
model = models.InquirePricePurchaseReservedInstancesOfferingRequest()
|
830
|
-
model.from_json_string(json.dumps(args))
|
831
|
-
start_time = time.time()
|
832
|
-
while True:
|
833
|
-
rsp = client.InquirePricePurchaseReservedInstancesOffering(model)
|
834
|
-
result = rsp.to_json_string()
|
835
|
-
try:
|
836
|
-
json_obj = json.loads(result)
|
837
|
-
except TypeError as e:
|
838
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
839
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
840
|
-
break
|
841
|
-
cur_time = time.time()
|
842
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
843
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
844
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
845
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
846
|
-
else:
|
847
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
848
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
849
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
850
|
-
|
851
|
-
|
852
748
|
def doSyncImages(args, parsed_globals):
|
853
749
|
g_param = parse_global_arg(parsed_globals)
|
854
750
|
|
@@ -2877,58 +2773,6 @@ def doInquiryPriceResetInstance(args, parsed_globals):
|
|
2877
2773
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2878
2774
|
|
2879
2775
|
|
2880
|
-
def doPurchaseReservedInstancesOffering(args, parsed_globals):
|
2881
|
-
g_param = parse_global_arg(parsed_globals)
|
2882
|
-
|
2883
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2884
|
-
cred = credential.CVMRoleCredential()
|
2885
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2886
|
-
cred = credential.STSAssumeRoleCredential(
|
2887
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2888
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2889
|
-
)
|
2890
|
-
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):
|
2891
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2892
|
-
else:
|
2893
|
-
cred = credential.Credential(
|
2894
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2895
|
-
)
|
2896
|
-
http_profile = HttpProfile(
|
2897
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2898
|
-
reqMethod="POST",
|
2899
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
2900
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2901
|
-
)
|
2902
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2903
|
-
if g_param[OptionsDefine.Language]:
|
2904
|
-
profile.language = g_param[OptionsDefine.Language]
|
2905
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2906
|
-
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
2907
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
2908
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2909
|
-
model = models.PurchaseReservedInstancesOfferingRequest()
|
2910
|
-
model.from_json_string(json.dumps(args))
|
2911
|
-
start_time = time.time()
|
2912
|
-
while True:
|
2913
|
-
rsp = client.PurchaseReservedInstancesOffering(model)
|
2914
|
-
result = rsp.to_json_string()
|
2915
|
-
try:
|
2916
|
-
json_obj = json.loads(result)
|
2917
|
-
except TypeError as e:
|
2918
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2919
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2920
|
-
break
|
2921
|
-
cur_time = time.time()
|
2922
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2923
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2924
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2925
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2926
|
-
else:
|
2927
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2928
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2929
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2930
|
-
|
2931
|
-
|
2932
2776
|
def doModifyInstancesRenewFlag(args, parsed_globals):
|
2933
2777
|
g_param = parse_global_arg(parsed_globals)
|
2934
2778
|
|
@@ -3605,58 +3449,6 @@ def doDescribeKeyPairs(args, parsed_globals):
|
|
3605
3449
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3606
3450
|
|
3607
3451
|
|
3608
|
-
def doDescribeReservedInstancesOfferings(args, parsed_globals):
|
3609
|
-
g_param = parse_global_arg(parsed_globals)
|
3610
|
-
|
3611
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3612
|
-
cred = credential.CVMRoleCredential()
|
3613
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3614
|
-
cred = credential.STSAssumeRoleCredential(
|
3615
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3616
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3617
|
-
)
|
3618
|
-
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):
|
3619
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3620
|
-
else:
|
3621
|
-
cred = credential.Credential(
|
3622
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3623
|
-
)
|
3624
|
-
http_profile = HttpProfile(
|
3625
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3626
|
-
reqMethod="POST",
|
3627
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
3628
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3629
|
-
)
|
3630
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3631
|
-
if g_param[OptionsDefine.Language]:
|
3632
|
-
profile.language = g_param[OptionsDefine.Language]
|
3633
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3634
|
-
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
3635
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
3636
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3637
|
-
model = models.DescribeReservedInstancesOfferingsRequest()
|
3638
|
-
model.from_json_string(json.dumps(args))
|
3639
|
-
start_time = time.time()
|
3640
|
-
while True:
|
3641
|
-
rsp = client.DescribeReservedInstancesOfferings(model)
|
3642
|
-
result = rsp.to_json_string()
|
3643
|
-
try:
|
3644
|
-
json_obj = json.loads(result)
|
3645
|
-
except TypeError as e:
|
3646
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3647
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3648
|
-
break
|
3649
|
-
cur_time = time.time()
|
3650
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3651
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3652
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3653
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3654
|
-
else:
|
3655
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3656
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3657
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3658
|
-
|
3659
|
-
|
3660
3452
|
def doInquiryPriceModifyInstancesChargeType(args, parsed_globals):
|
3661
3453
|
g_param = parse_global_arg(parsed_globals)
|
3662
3454
|
|
@@ -5345,9 +5137,7 @@ ACTION_MAP = {
|
|
5345
5137
|
"CreateImage": doCreateImage,
|
5346
5138
|
"ConfigureChcAssistVpc": doConfigureChcAssistVpc,
|
5347
5139
|
"ResetInstancesType": doResetInstancesType,
|
5348
|
-
"DescribeReservedInstancesConfigInfos": doDescribeReservedInstancesConfigInfos,
|
5349
5140
|
"DescribeInstanceVncUrl": doDescribeInstanceVncUrl,
|
5350
|
-
"InquirePricePurchaseReservedInstancesOffering": doInquirePricePurchaseReservedInstancesOffering,
|
5351
5141
|
"SyncImages": doSyncImages,
|
5352
5142
|
"ImportImage": doImportImage,
|
5353
5143
|
"DescribeZoneInstanceConfigInfos": doDescribeZoneInstanceConfigInfos,
|
@@ -5387,7 +5177,6 @@ ACTION_MAP = {
|
|
5387
5177
|
"DescribeInstancesActionTimer": doDescribeInstancesActionTimer,
|
5388
5178
|
"InquiryPriceResizeInstanceDisks": doInquiryPriceResizeInstanceDisks,
|
5389
5179
|
"InquiryPriceResetInstance": doInquiryPriceResetInstance,
|
5390
|
-
"PurchaseReservedInstancesOffering": doPurchaseReservedInstancesOffering,
|
5391
5180
|
"ModifyInstancesRenewFlag": doModifyInstancesRenewFlag,
|
5392
5181
|
"ResetInstance": doResetInstance,
|
5393
5182
|
"StartInstances": doStartInstances,
|
@@ -5401,7 +5190,6 @@ ACTION_MAP = {
|
|
5401
5190
|
"DescribeInstanceFamilyConfigs": doDescribeInstanceFamilyConfigs,
|
5402
5191
|
"ModifyInstancesProject": doModifyInstancesProject,
|
5403
5192
|
"DescribeKeyPairs": doDescribeKeyPairs,
|
5404
|
-
"DescribeReservedInstancesOfferings": doDescribeReservedInstancesOfferings,
|
5405
5193
|
"InquiryPriceModifyInstancesChargeType": doInquiryPriceModifyInstancesChargeType,
|
5406
5194
|
"DescribeInternetChargeTypeConfigs": doDescribeInternetChargeTypeConfigs,
|
5407
5195
|
"RebootInstances": doRebootInstances,
|