tccli 3.0.1398.1__py2.py3-none-any.whl → 3.0.1400.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 (50) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/ai3d/v20250513/api.json +19 -1
  3. tccli/services/apm/v20210622/api.json +1 -1
  4. tccli/services/ccc/v20200210/api.json +33 -0
  5. tccli/services/cdb/cdb_client.py +53 -0
  6. tccli/services/cdb/v20170320/api.json +76 -14
  7. tccli/services/cdb/v20170320/examples.json +8 -0
  8. tccli/services/cdwdoris/v20211228/api.json +31 -11
  9. tccli/services/cdwpg/v20201230/api.json +11 -1
  10. tccli/services/cdwpg/v20201230/examples.json +1 -1
  11. tccli/services/ckafka/v20190819/api.json +66 -0
  12. tccli/services/cls/v20201016/api.json +3 -3
  13. tccli/services/dbbrain/dbbrain_client.py +114 -61
  14. tccli/services/dbbrain/v20191016/api.json +63 -61
  15. tccli/services/dbbrain/v20210527/api.json +324 -163
  16. tccli/services/dbbrain/v20210527/examples.json +11 -3
  17. tccli/services/dts/v20180330/api.json +4 -4
  18. tccli/services/dts/v20211206/api.json +54 -54
  19. tccli/services/dts/v20211206/examples.json +2 -2
  20. tccli/services/emr/v20190103/examples.json +1 -1
  21. tccli/services/ess/v20201111/api.json +118 -3
  22. tccli/services/essbasic/v20210526/api.json +117 -2
  23. tccli/services/hai/v20230812/api.json +2 -2
  24. tccli/services/ioa/v20220601/api.json +11 -0
  25. tccli/services/lcic/v20220817/api.json +2 -2
  26. tccli/services/lke/v20231130/api.json +234 -71
  27. tccli/services/lke/v20231130/examples.json +23 -23
  28. tccli/services/lkeap/v20240522/api.json +1 -1
  29. tccli/services/lkeap/v20240522/examples.json +6 -0
  30. tccli/services/mongodb/v20190725/api.json +323 -314
  31. tccli/services/mongodb/v20190725/examples.json +17 -17
  32. tccli/services/monitor/v20180724/api.json +5 -4
  33. tccli/services/monitor/v20180724/examples.json +8 -2
  34. tccli/services/mps/v20190612/api.json +33 -2
  35. tccli/services/ocr/v20181119/api.json +3 -3
  36. tccli/services/postgres/v20170312/api.json +24 -14
  37. tccli/services/redis/v20180412/api.json +13 -13
  38. tccli/services/rum/v20210622/api.json +4 -4
  39. tccli/services/rum/v20210622/examples.json +2 -2
  40. tccli/services/teo/teo_client.py +166 -7
  41. tccli/services/teo/v20220901/api.json +341 -0
  42. tccli/services/teo/v20220901/examples.json +27 -3
  43. tccli/services/tke/v20180525/api.json +6 -6
  44. tccli/services/tke/v20180525/examples.json +1 -1
  45. tccli/services/waf/v20180125/api.json +20 -1
  46. {tccli-3.0.1398.1.dist-info → tccli-3.0.1400.1.dist-info}/METADATA +2 -2
  47. {tccli-3.0.1398.1.dist-info → tccli-3.0.1400.1.dist-info}/RECORD +50 -50
  48. {tccli-3.0.1398.1.dist-info → tccli-3.0.1400.1.dist-info}/WHEEL +0 -0
  49. {tccli-3.0.1398.1.dist-info → tccli-3.0.1400.1.dist-info}/entry_points.txt +0 -0
  50. {tccli-3.0.1398.1.dist-info → tccli-3.0.1400.1.dist-info}/license_files/LICENSE +0 -0
@@ -2527,7 +2527,7 @@
2527
2527
  "members": [
2528
2528
  {
2529
2529
  "disabled": false,
2530
- "document": "参数模板 ID。",
2530
+ "document": "参数模板 ID。请登录 [Redis 控制台的参数模版](https://console.cloud.tencent.com/redis/templates)页面获取模版 ID。",
2531
2531
  "example": "crs-cfg-rhlppeye",
2532
2532
  "member": "string",
2533
2533
  "name": "TemplateId",
@@ -4558,7 +4558,7 @@
4558
4558
  },
4559
4559
  {
4560
4560
  "disabled": false,
4561
- "document": "是否过滤掉从节信息。\n- true;过滤从节点。\n- false:不过滤。",
4561
+ "document": "指定是否过滤掉从节信息。\n- true;过滤从节点。\n- false:不过滤。默认为 false。",
4562
4562
  "example": "false",
4563
4563
  "member": "bool",
4564
4564
  "name": "FilterSlave",
@@ -6108,7 +6108,7 @@
6108
6108
  },
6109
6109
  {
6110
6110
  "disabled": false,
6111
- "document": "实例名称。",
6111
+ "document": "实例名称。请登录 [Redis 控制台](https://console.cloud.tencent.com/redis/instance/list)在实例列表复制实例名称。",
6112
6112
  "example": "crs-rhlppeye",
6113
6113
  "member": "string",
6114
6114
  "name": "InstanceName",
@@ -6126,7 +6126,7 @@
6126
6126
  },
6127
6127
  {
6128
6128
  "disabled": false,
6129
- "document": "分页偏移量,取Limit整数倍。计算公式:offset=limit*(页码-1)。",
6129
+ "document": "分页偏移量。取值需为 Limit 的整数倍:offset=limit*(页码-1),默认值为0。",
6130
6130
  "example": "0",
6131
6131
  "member": "int64",
6132
6132
  "name": "Offset",
@@ -6136,7 +6136,7 @@
6136
6136
  {
6137
6137
  "disabled": true,
6138
6138
  "document": "该字段已废弃, 请忽略, 项目 ID",
6139
- "example": "11322",
6139
+ "example": "[11322]",
6140
6140
  "member": "int64",
6141
6141
  "name": "ProjectIds",
6142
6142
  "required": false,
@@ -6145,7 +6145,7 @@
6145
6145
  {
6146
6146
  "disabled": false,
6147
6147
  "document": "任务类型。\n\n- FLOW_CREATE: \"001\",新建实例。\n- FLOW_RESIZE : \"002\",配置变更。\n- FLOW_CLOSE:\"003\",关闭实例。\n- FLOW_CLEAN: \"004\",清空实例。\n- FLOW_STARTUP:\"005\",实例启用。\n- FLOW_DELETE:\"006\",删除实例。\n- FLOW_SETPWD:\"007\",重置密码。\n- FLOW_EXPORTBACKUP:\"009\",导出备份文件。\n- FLOW_RESTOREBACKUP:\"010\",恢复备份。\n- FLOW_BACKUPINSTANCE:\"012\",备份实例。\n- FLOW_MIGRATEINSTANCE:\"013\",迁移实例。\n- FLOW_DELBACKUP:\"014\",删除备份。\n- FLOW_EXCHANGEINSTANCE: \"016\",切换实例流程。\n- FLOW_AUTOBACKUP:\"017\",自动备份实例。\n- FLOW_MIGRATECHECK: \"022\",迁移参数校验。\n- FLOW_MIGRATETASK:\"023\",数据迁移中。\n- FLOW_CLEANDB:\"025\",清空某个数据库。\n- FLOW_CLONEBACKUP:\"026\",克隆备份。\n- FLOW_CHANGEVIP: \"027\",改变vip地址。\n- FLOW_EXPORSHR :\"028\",扩缩容。\n- FLOW_ADDNODES:\"029\",加(减)节点。\n- FLOW_CHANGENET:\"031\",改变网络类型。\n- FLOW_MODIFYINSTACEREADONLY:\"033\",只读策略变更。\n- FLOW_MODIFYINSTANCEPARAMS:\"034\",修改实例参数。\n- FLOW_MODIFYINSTANCEPASSWORDFREE:\"035\",设置免密。\n- FLOW_SWITCHINSTANCEVIP:\"036\",实例VIP切换。\n- FLOW_MODIFYINSTANCEACCOUNT:\"037\",实例账号变更。\n- FLOW_MODIFYINSTANCEBANDWIDTH:\"038\",实例带宽变更。\n- FLOW_ENABLEINSTANCE_REPLICATE:\"039\",开启副本只读。\n- FLOW_DISABLEINSTANCE_REPLICATE:\"040\",关闭副本只读。\n- FLOW_UpgradeArch:\"041\",实例架构升级,主从升集群。\n- FLOW_DowngradeArch: \"042\",实例架构降级,集群降主从。\n- FLOW_UpgradeVersion: \"043\",版本升级。\n- FLOW_MODIFYCONNECTIONCONFIG:\"044\",带宽连接数调整,\n- FLOW_CLEARNETWORK:\"045\",更换网络,\n- FLOW_REMOVE_BACKUP_FILE:\"046\",删除备份。\n- FLOW_UPGRADE_SUPPORT_MULTI_AZ:\"047\",升级实例支持多可用区。\n- FLOW_SHUTDOWN_MASTER:\"048\",模拟故障。\n- FLOW_CHANGE_REPLICA_TO_MASTER:\"049\",手动提主。\n- FLOW_CODE_ADD_REPLICATION_INSTANCE:\"050\",新增复制组。\n- FLOW_OPEN_WAN:\"052\",开通外网。\n- FLOW_CLOSE_WAN:\"053\",关闭外网FLOW_UPDATE_WAN:\"054\",更新外网。\n- FLOW_CODE_DELETE_REPLICATION_INSTANCE:\"055\",解绑复制组。\n- FLOW_CODE_CHANGE_MASTER_INSTANCE:\"056\",复制组实例切主。\n- FLOW_CODE_CHANGE_INSTANCE_ROLE: \"057\",更改复制组实例角色。\n- FLOW_MIGRATE_NODE:\"058\",迁移节点。\n- FLOW_SWITCH_NODE:\"059\",切换节点。\n- FLOW_UPGRADE_SMALL_VERSION:\"060\",升级 Redis版本。\n- FLOW_UPGRADE_PROXY_VERSION:\"061\",升级 Proxy 版本。\n- FLOW_MODIFY_INSTANCE_NETWORK: \"062\",实例修改网络。\n- FLOW_MIGRATE_PROXY_NODE:\"063\",迁移proxy节点。\n- FLOW_MIGRATION_INSTANCE_ZONE:\"066\",实例可用区迁移中。\n- FLOW_UPGRADE_INSTANCE_CACHE_AND_PROXY: \"067\",实例版本升级中。\n- FLOW_MODIFY_PROXY_NUM:\"069\",加(减)Proxy 节点。\n- FLOW_MODIFYBACKUPMOD:\"070\",变更实例备份模式。",
6148
- "example": "037",
6148
+ "example": "[\"037\"]",
6149
6149
  "member": "string",
6150
6150
  "name": "TaskTypes",
6151
6151
  "required": false,
@@ -6172,7 +6172,7 @@
6172
6172
  {
6173
6173
  "disabled": false,
6174
6174
  "document": "该参数为内部使用,请忽略。",
6175
- "example": "[0.1.2]",
6175
+ "example": "[0,1,2]",
6176
6176
  "member": "int64",
6177
6177
  "name": "TaskStatus",
6178
6178
  "required": false,
@@ -6199,7 +6199,7 @@
6199
6199
  {
6200
6200
  "disabled": false,
6201
6201
  "document": "操作者账号 ID,UIN。",
6202
- "example": "[\"10002274123\"]",
6202
+ "example": "[\"12458915647\"]",
6203
6203
  "member": "string",
6204
6204
  "name": "OperateUin",
6205
6205
  "required": false,
@@ -6802,7 +6802,7 @@
6802
6802
  },
6803
6803
  {
6804
6804
  "disabled": false,
6805
- "document": "实例所属的可用区ID,可参考[地域和可用区](https://cloud.tencent.com/document/product/239/4106) ",
6805
+ "document": "实例所属的可用区 ID,可参考[地域和可用区](https://cloud.tencent.com/document/product/239/4106) 。\n**说明**:请在 **ZoneId** 与 **ZoneName** 中至少指定一个参数。",
6806
6806
  "example": "100002",
6807
6807
  "member": "uint64",
6808
6808
  "name": "ZoneId",
@@ -6811,7 +6811,7 @@
6811
6811
  },
6812
6812
  {
6813
6813
  "disabled": false,
6814
- "document": "实例分片数量。2.8 标准架构无需配置分片,其余版本标准架构需要配置分片数量为1。集群架构需指定需购买的分片数量。",
6814
+ "document": "实例分片数量。\n- 标准架构需要配置分片数量为1。\n- 集群架构分片数量支持设置为1、3、5、8、12、16、24、32、40、48、64、80、96、128。",
6815
6815
  "example": "1",
6816
6816
  "member": "int64",
6817
6817
  "name": "RedisShardNum",
@@ -6820,7 +6820,7 @@
6820
6820
  },
6821
6821
  {
6822
6822
  "disabled": false,
6823
- "document": "实例副本数量。2.8 标准架构无需配置副本数量。",
6823
+ "document": "实例副本数量。取值范围为:1、2、3、4、5。",
6824
6824
  "example": "1",
6825
6825
  "member": "int64",
6826
6826
  "name": "RedisReplicasNum",
@@ -6838,7 +6838,7 @@
6838
6838
  },
6839
6839
  {
6840
6840
  "disabled": false,
6841
- "document": "实例所属的可用区名称,可参考[地域和可用区](https://cloud.tencent.com/document/product/239/4106) ",
6841
+ "document": "实例所属的可用区名称,可参考[地域和可用区](https://cloud.tencent.com/document/product/239/4106) 。\n**说明**:请在 **ZoneId** 与 **ZoneName** 中至少指定一个参数。",
6842
6842
  "example": "ap-guangzhou",
6843
6843
  "member": "string",
6844
6844
  "name": "ZoneName",
@@ -6863,7 +6863,7 @@
6863
6863
  {
6864
6864
  "disabled": false,
6865
6865
  "document": "价格",
6866
- "example": "30400",
6866
+ "example": "30400.0",
6867
6867
  "member": "float",
6868
6868
  "name": "Price",
6869
6869
  "output_required": true,
@@ -2931,7 +2931,7 @@
2931
2931
  {
2932
2932
  "disabled": false,
2933
2933
  "document": "返回值",
2934
- "example": "\"{\\\"request_id\\\":\\\"4d50a7e7-cb3a-47af-a4ff-f545bfd54880\\\",\\\"results\\\":[{\\\"statement_id\\\":1,\\\"series\\\":[{\\\"name\\\":\\\"log_url_statistics\\\",\\\"columns\\\":[\\\"time\\\",\\\"allCount\\\"],\\\"values\\\":[],\\\"total\\\":1,\\\"offset\\\":\\\"\\\"}\"",
2934
+ "example": "\"{\\\"request_id\\\":\\\"dc0ca023-0c87-4ab2-aee2-fde2aa196e9e\\\",\\\"results\\\":[{\\\"statement_id\\\":0,\\\"total\\\":0,\\\"offset\\\":\\\"\\\"},{\\\"statement_id\\\":1,\\\"total\\\":0,\\\"offset\\\":\\\"\\\"}]}\"",
2935
2935
  "member": "string",
2936
2936
  "name": "Result",
2937
2937
  "output_required": true,
@@ -3700,7 +3700,7 @@
3700
3700
  {
3701
3701
  "disabled": false,
3702
3702
  "document": "返回值",
3703
- "example": "\"{\\\"request_id\\\":\\\"4d50a7e7-cb3a-47af-a4ff-f545bfd54880\\\",\\\"results\\\":[{\\\"statement_id\\\":1,\\\"series\\\":[{\\\"name\\\":\\\"log_url_statistics\\\",\\\"columns\\\":[\\\"time\\\",\\\"allCount\\\"],\\\"values\\\":[],\\\"total\\\":1,\\\"offset\\\":\\\"\\\"}\"",
3703
+ "example": "\"{\\\"request_id\\\":\\\"dc0ca023-0c87-4ab2-aee2-fde2aa196e9e\\\",\\\"results\\\":[{\\\"statement_id\\\":0,\\\"total\\\":0,\\\"offset\\\":\\\"\\\"},{\\\"statement_id\\\":1,\\\"total\\\":0,\\\"offset\\\":\\\"\\\"}]}\"",
3704
3704
  "member": "string",
3705
3705
  "name": "Result",
3706
3706
  "output_required": true,
@@ -5192,7 +5192,7 @@
5192
5192
  },
5193
5193
  {
5194
5194
  "disabled": false,
5195
- "document": "获取临时签名的bucket是国内站还是国际站(1表示国际站,其它表示国内站)",
5195
+ "document": "获取临时签名的bucket是境内还是境外(1表示境外,其它表示境内)",
5196
5196
  "example": "0",
5197
5197
  "member": "int64",
5198
5198
  "name": "Site",
@@ -5549,7 +5549,7 @@
5549
5549
  {
5550
5550
  "disabled": false,
5551
5551
  "document": "返回字符串",
5552
- "example": "\"{\"code\":0,\"data\":{\"page\\\":1,\"pageSize\":999,\"totalCount\":1}\"",
5552
+ "example": "\"{\\\"code\\\":0,\\\"data\\\":{\\\"page\\\":1,\\\"pageSize\\\":999,\\\"totalCount\\\":1}}\"",
5553
5553
  "member": "string",
5554
5554
  "name": "Result",
5555
5555
  "output_required": true,
@@ -196,7 +196,7 @@
196
196
  {
197
197
  "document": "",
198
198
  "input": "https://rum.tencentcloudapi.com/?Action=DescribeDataLogUrlStatistics\n&ID=1\n&StartTime=1625444040\n&EndTime=1625454840\n&Type=pagepv\n&Level=1\n&Isp=中国移动\n&Area=中国\n&NetType=2\n&Platform=2\n&Device=三星\n&VersionNum=版本\n&ExtFirst=自定义1\n&ExtSecond=自定义2\n&ExtThird=自定义3\n&IsAbroad=1\n&Browser=ie\n&Os=apple\n&Engine=ie2\n&Brand=apple\n&From=index.html\n&<公共请求参数>",
199
- "output": "{\n \"Response\": {\n \"Result\": \"{\\\"request_id\\\":\\\"4d50a7e7-cb3a-47af-a4ff-f545bfd54880\\\",\\\"results\\\":[{\\\"statement_id\\\":1,\\\"series\\\":[{\\\"name\\\":\\\"log_url_statistics\\\",\\\"columns\\\":[\\\"time\\\",\\\"allCount\\\"],\\\"values\\\":[],\\\"total\\\":1,\\\"offset\\\":\\\"\\\"},{\\\"statement_id\\\":2,\\\"total\\\":0,\\\"offset\\\":\\\"\\\"}]}\",\n \"RequestId\": \"4d50a7e7-cb3a-47af-a4ff-f545bfd54880\"\n }\n}",
199
+ "output": "{\n \"Response\": {\n \"Result\": \"{\\\"request_id\\\":\\\"4d50a7e7-cb3a-47af-a4ff-f545bfd54880\\\",\\\"results\\\":[{\\\"statement_id\\\":0,\\\"total\\\":0,\\\"offset\\\":\\\"\\\"},{\\\"statement_id\\\":1,\\\"total\\\":0,\\\"offset\\\":\\\"\\\"}]}\",\n \"RequestId\": \"4d50a7e7-cb3a-47af-a4ff-f545bfd54880\"\n }\n}",
200
200
  "title": "获取LogUrlStatistics信息"
201
201
  }
202
202
  ],
@@ -246,7 +246,7 @@
246
246
  {
247
247
  "document": "",
248
248
  "input": "POST / HTTP/1.1\nHost: rum.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDataReportCount\n<公共请求参数>\n\n{\n \"EndTime\": 1625454840,\n \"ReportType\": \"custom\",\n \"ID\": 1,\n \"StartTime\": 1625444040\n}",
249
- "output": "{\n \"Response\": {\n \"Result\": \"{\\\"request_id\\\":\\\"4d50a7e7-cb3a-47af-a4ff-f545bfd54880\\\",\\\"results\\\":[{\\\"statement_id\\\":1,\\\"series\\\":[{\\\"name\\\":\\\"log_url_statistics\\\",\\\"columns\\\":[\\\"time\\\",\\\"allCount\\\"],\\\"values\\\":[],\\\"total\\\":1,\\\"offset\\\":\\\"\\\"}\",\n \"RequestId\": \"65a8fec7-2b39-4b11-893f-3715279d235f\"\n }\n}",
249
+ "output": "{\n \"Response\": {\n \"Result\": \"{\\\"request_id\\\":\\\"65a8fec7-2b39-4b11-893f-3715279d235f\\\",\\\"results\\\":[{\\\"statement_id\\\":0,\\\"total\\\":0,\\\"offset\\\":\\\"\\\"},{\\\"statement_id\\\":1,\\\"total\\\":0,\\\"offset\\\":\\\"\\\"}]}\",\n \"RequestId\": \"65a8fec7-2b39-4b11-893f-3715279d235f\"\n }\n}",
250
250
  "title": "获取上报量"
251
251
  }
252
252
  ],
@@ -955,6 +955,58 @@ def doDeleteFunctionRules(args, parsed_globals):
955
955
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
956
956
 
957
957
 
958
+ def doModifyMultiPathGatewayStatus(args, parsed_globals):
959
+ g_param = parse_global_arg(parsed_globals)
960
+
961
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
962
+ cred = credential.CVMRoleCredential()
963
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
964
+ cred = credential.STSAssumeRoleCredential(
965
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
966
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
967
+ )
968
+ 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):
969
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
970
+ else:
971
+ cred = credential.Credential(
972
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
973
+ )
974
+ http_profile = HttpProfile(
975
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
976
+ reqMethod="POST",
977
+ endpoint=g_param[OptionsDefine.Endpoint],
978
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
979
+ )
980
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
981
+ if g_param[OptionsDefine.Language]:
982
+ profile.language = g_param[OptionsDefine.Language]
983
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
984
+ client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
985
+ client._sdkVersion += ("_CLI_" + __version__)
986
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
987
+ model = models.ModifyMultiPathGatewayStatusRequest()
988
+ model.from_json_string(json.dumps(args))
989
+ start_time = time.time()
990
+ while True:
991
+ rsp = client.ModifyMultiPathGatewayStatus(model)
992
+ result = rsp.to_json_string()
993
+ try:
994
+ json_obj = json.loads(result)
995
+ except TypeError as e:
996
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
997
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
998
+ break
999
+ cur_time = time.time()
1000
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1001
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1002
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1003
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1004
+ else:
1005
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1006
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1007
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1008
+
1009
+
958
1010
  def doIdentifyZone(args, parsed_globals):
959
1011
  g_param = parse_global_arg(parsed_globals)
960
1012
 
@@ -3815,7 +3867,7 @@ def doDescribeOriginGroup(args, parsed_globals):
3815
3867
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3816
3868
 
3817
3869
 
3818
- def doDescribeTopL7CacheData(args, parsed_globals):
3870
+ def doDescribeTimingL4Data(args, parsed_globals):
3819
3871
  g_param = parse_global_arg(parsed_globals)
3820
3872
 
3821
3873
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3844,11 +3896,11 @@ def doDescribeTopL7CacheData(args, parsed_globals):
3844
3896
  client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
3845
3897
  client._sdkVersion += ("_CLI_" + __version__)
3846
3898
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3847
- model = models.DescribeTopL7CacheDataRequest()
3899
+ model = models.DescribeTimingL4DataRequest()
3848
3900
  model.from_json_string(json.dumps(args))
3849
3901
  start_time = time.time()
3850
3902
  while True:
3851
- rsp = client.DescribeTopL7CacheData(model)
3903
+ rsp = client.DescribeTimingL4Data(model)
3852
3904
  result = rsp.to_json_string()
3853
3905
  try:
3854
3906
  json_obj = json.loads(result)
@@ -3867,7 +3919,7 @@ def doDescribeTopL7CacheData(args, parsed_globals):
3867
3919
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3868
3920
 
3869
3921
 
3870
- def doDescribeTimingL4Data(args, parsed_globals):
3922
+ def doDescribeTopL7CacheData(args, parsed_globals):
3871
3923
  g_param = parse_global_arg(parsed_globals)
3872
3924
 
3873
3925
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3896,11 +3948,11 @@ def doDescribeTimingL4Data(args, parsed_globals):
3896
3948
  client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
3897
3949
  client._sdkVersion += ("_CLI_" + __version__)
3898
3950
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3899
- model = models.DescribeTimingL4DataRequest()
3951
+ model = models.DescribeTopL7CacheDataRequest()
3900
3952
  model.from_json_string(json.dumps(args))
3901
3953
  start_time = time.time()
3902
3954
  while True:
3903
- rsp = client.DescribeTimingL4Data(model)
3955
+ rsp = client.DescribeTopL7CacheData(model)
3904
3956
  result = rsp.to_json_string()
3905
3957
  try:
3906
3958
  json_obj = json.loads(result)
@@ -5115,6 +5167,58 @@ def doCreateSharedCNAME(args, parsed_globals):
5115
5167
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5116
5168
 
5117
5169
 
5170
+ def doConfirmMultiPathGatewayOriginACL(args, parsed_globals):
5171
+ g_param = parse_global_arg(parsed_globals)
5172
+
5173
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5174
+ cred = credential.CVMRoleCredential()
5175
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5176
+ cred = credential.STSAssumeRoleCredential(
5177
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5178
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5179
+ )
5180
+ 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):
5181
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5182
+ else:
5183
+ cred = credential.Credential(
5184
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5185
+ )
5186
+ http_profile = HttpProfile(
5187
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5188
+ reqMethod="POST",
5189
+ endpoint=g_param[OptionsDefine.Endpoint],
5190
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5191
+ )
5192
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5193
+ if g_param[OptionsDefine.Language]:
5194
+ profile.language = g_param[OptionsDefine.Language]
5195
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5196
+ client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
5197
+ client._sdkVersion += ("_CLI_" + __version__)
5198
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5199
+ model = models.ConfirmMultiPathGatewayOriginACLRequest()
5200
+ model.from_json_string(json.dumps(args))
5201
+ start_time = time.time()
5202
+ while True:
5203
+ rsp = client.ConfirmMultiPathGatewayOriginACL(model)
5204
+ result = rsp.to_json_string()
5205
+ try:
5206
+ json_obj = json.loads(result)
5207
+ except TypeError as e:
5208
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5209
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5210
+ break
5211
+ cur_time = time.time()
5212
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5213
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5214
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5215
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5216
+ else:
5217
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5218
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5219
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5220
+
5221
+
5118
5222
  def doDescribeSecurityJSInjectionRule(args, parsed_globals):
5119
5223
  g_param = parse_global_arg(parsed_globals)
5120
5224
 
@@ -7611,6 +7715,58 @@ def doCreateLoadBalancer(args, parsed_globals):
7611
7715
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7612
7716
 
7613
7717
 
7718
+ def doDescribeMultiPathGatewayOriginACL(args, parsed_globals):
7719
+ g_param = parse_global_arg(parsed_globals)
7720
+
7721
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
7722
+ cred = credential.CVMRoleCredential()
7723
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
7724
+ cred = credential.STSAssumeRoleCredential(
7725
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7726
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7727
+ )
7728
+ 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):
7729
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7730
+ else:
7731
+ cred = credential.Credential(
7732
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
7733
+ )
7734
+ http_profile = HttpProfile(
7735
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
7736
+ reqMethod="POST",
7737
+ endpoint=g_param[OptionsDefine.Endpoint],
7738
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7739
+ )
7740
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7741
+ if g_param[OptionsDefine.Language]:
7742
+ profile.language = g_param[OptionsDefine.Language]
7743
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
7744
+ client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
7745
+ client._sdkVersion += ("_CLI_" + __version__)
7746
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
7747
+ model = models.DescribeMultiPathGatewayOriginACLRequest()
7748
+ model.from_json_string(json.dumps(args))
7749
+ start_time = time.time()
7750
+ while True:
7751
+ rsp = client.DescribeMultiPathGatewayOriginACL(model)
7752
+ result = rsp.to_json_string()
7753
+ try:
7754
+ json_obj = json.loads(result)
7755
+ except TypeError as e:
7756
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
7757
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
7758
+ break
7759
+ cur_time = time.time()
7760
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
7761
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
7762
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
7763
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
7764
+ else:
7765
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
7766
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
7767
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7768
+
7769
+
7614
7770
  def doDescribeJustInTimeTranscodeTemplates(args, parsed_globals):
7615
7771
  g_param = parse_global_arg(parsed_globals)
7616
7772
 
@@ -9930,6 +10086,7 @@ ACTION_MAP = {
9930
10086
  "DescribeWebSecurityTemplate": doDescribeWebSecurityTemplate,
9931
10087
  "CreateFunctionRule": doCreateFunctionRule,
9932
10088
  "DeleteFunctionRules": doDeleteFunctionRules,
10089
+ "ModifyMultiPathGatewayStatus": doModifyMultiPathGatewayStatus,
9933
10090
  "IdentifyZone": doIdentifyZone,
9934
10091
  "DescribeDefaultCertificates": doDescribeDefaultCertificates,
9935
10092
  "ModifyL7AccRule": doModifyL7AccRule,
@@ -9985,8 +10142,8 @@ ACTION_MAP = {
9985
10142
  "DescribeSecurityIPGroup": doDescribeSecurityIPGroup,
9986
10143
  "CreateL4ProxyRules": doCreateL4ProxyRules,
9987
10144
  "DescribeOriginGroup": doDescribeOriginGroup,
9988
- "DescribeTopL7CacheData": doDescribeTopL7CacheData,
9989
10145
  "DescribeTimingL4Data": doDescribeTimingL4Data,
10146
+ "DescribeTopL7CacheData": doDescribeTopL7CacheData,
9990
10147
  "ModifyRule": doModifyRule,
9991
10148
  "DescribeMultiPathGateways": doDescribeMultiPathGateways,
9992
10149
  "DescribeTopL7AnalysisData": doDescribeTopL7AnalysisData,
@@ -10010,6 +10167,7 @@ ACTION_MAP = {
10010
10167
  "DescribeApplicationProxies": doDescribeApplicationProxies,
10011
10168
  "ModifyMultiPathGateway": doModifyMultiPathGateway,
10012
10169
  "CreateSharedCNAME": doCreateSharedCNAME,
10170
+ "ConfirmMultiPathGatewayOriginACL": doConfirmMultiPathGatewayOriginACL,
10013
10171
  "DescribeSecurityJSInjectionRule": doDescribeSecurityJSInjectionRule,
10014
10172
  "CreateRule": doCreateRule,
10015
10173
  "CreateConfigGroupVersion": doCreateConfigGroupVersion,
@@ -10058,6 +10216,7 @@ ACTION_MAP = {
10058
10216
  "EnableOriginACL": doEnableOriginACL,
10059
10217
  "ModifyAliasDomain": doModifyAliasDomain,
10060
10218
  "CreateLoadBalancer": doCreateLoadBalancer,
10219
+ "DescribeMultiPathGatewayOriginACL": doDescribeMultiPathGatewayOriginACL,
10061
10220
  "DescribeJustInTimeTranscodeTemplates": doDescribeJustInTimeTranscodeTemplates,
10062
10221
  "ModifyApplicationProxyRule": doModifyApplicationProxyRule,
10063
10222
  "DescribeL7AccSetting": doDescribeL7AccSetting,