tccli 3.0.1120.1__py2.py3-none-any.whl → 3.0.1122.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/antiddos/v20200309/api.json +19 -0
  4. tccli/services/cdb/v20170320/api.json +127 -26
  5. tccli/services/cdb/v20170320/examples.json +2 -2
  6. tccli/services/domain/v20180808/api.json +18 -0
  7. tccli/services/ess/ess_client.py +53 -0
  8. tccli/services/ess/v20201111/api.json +127 -1
  9. tccli/services/ess/v20201111/examples.json +20 -0
  10. tccli/services/faceid/v20180301/api.json +2 -2
  11. tccli/services/iotexplorer/v20190423/api.json +2 -2
  12. tccli/services/lighthouse/v20200324/api.json +72 -64
  13. tccli/services/lighthouse/v20200324/examples.json +1 -1
  14. tccli/services/redis/v20180412/api.json +25 -25
  15. tccli/services/tcb/v20180608/api.json +5 -5
  16. tccli/services/tcr/v20190924/api.json +1 -1
  17. tccli/services/tcr/v20190924/examples.json +1 -1
  18. tccli/services/trocket/trocket_client.py +53 -0
  19. tccli/services/trocket/v20230308/api.json +393 -0
  20. tccli/services/trocket/v20230308/examples.json +8 -0
  21. tccli/services/trtc/v20190722/api.json +74 -18
  22. tccli/services/tse/v20201207/api.json +22 -0
  23. tccli/services/tsf/v20180326/api.json +77 -16
  24. tccli/services/vdb/__init__.py +4 -0
  25. tccli/services/vdb/v20230616/api.json +505 -0
  26. tccli/services/vdb/v20230616/examples.json +13 -0
  27. tccli/services/vdb/vdb_client.py +195 -0
  28. tccli/services/waf/v20180125/api.json +124 -0
  29. tccli/services/waf/v20180125/examples.json +8 -0
  30. tccli/services/waf/waf_client.py +53 -0
  31. tccli/services/wedata/v20210820/api.json +9 -0
  32. {tccli-3.0.1120.1.dist-info → tccli-3.0.1122.1.dist-info}/METADATA +2 -2
  33. {tccli-3.0.1120.1.dist-info → tccli-3.0.1122.1.dist-info}/RECORD +36 -32
  34. {tccli-3.0.1120.1.dist-info → tccli-3.0.1122.1.dist-info}/WHEEL +0 -0
  35. {tccli-3.0.1120.1.dist-info → tccli-3.0.1122.1.dist-info}/entry_points.txt +0 -0
  36. {tccli-3.0.1120.1.dist-info → tccli-3.0.1122.1.dist-info}/license_files/LICENSE +0 -0
@@ -6075,127 +6075,127 @@
6075
6075
  "example": "无",
6076
6076
  "member": "string",
6077
6077
  "name": "Name",
6078
- "required": true,
6078
+ "output_required": true,
6079
6079
  "type": "string",
6080
6080
  "value_allowed_null": false
6081
6081
  },
6082
6082
  {
6083
6083
  "disabled": false,
6084
6084
  "document": "实例运行时节点 ID。",
6085
- "example": "",
6085
+ "example": "e5966d041f179fcdd1dd91d0f57f105a073a52cb",
6086
6086
  "member": "string",
6087
6087
  "name": "RunId",
6088
- "required": true,
6088
+ "output_required": true,
6089
6089
  "type": "string",
6090
6090
  "value_allowed_null": false
6091
6091
  },
6092
6092
  {
6093
6093
  "disabled": false,
6094
6094
  "document": "集群角色。\n- 0:master。\n- 1:slave。",
6095
- "example": "",
6095
+ "example": "0",
6096
6096
  "member": "int64",
6097
6097
  "name": "Role",
6098
- "required": true,
6098
+ "output_required": true,
6099
6099
  "type": "int",
6100
6100
  "value_allowed_null": false
6101
6101
  },
6102
6102
  {
6103
6103
  "disabled": false,
6104
6104
  "document": "节点状态。\n- 0:readwrite,。\n- 1:read。\n- 2:backup。",
6105
- "example": "",
6105
+ "example": "1",
6106
6106
  "member": "int64",
6107
6107
  "name": "Status",
6108
- "required": true,
6108
+ "output_required": true,
6109
6109
  "type": "int",
6110
6110
  "value_allowed_null": false
6111
6111
  },
6112
6112
  {
6113
6113
  "disabled": false,
6114
6114
  "document": "服务状态。\n0-down。\n1-on",
6115
- "example": "",
6115
+ "example": "1",
6116
6116
  "member": "int64",
6117
6117
  "name": "Connected",
6118
- "required": true,
6118
+ "output_required": true,
6119
6119
  "type": "int",
6120
6120
  "value_allowed_null": false
6121
6121
  },
6122
6122
  {
6123
6123
  "disabled": false,
6124
6124
  "document": "节点创建时间。",
6125
- "example": "",
6125
+ "example": "1717138477",
6126
6126
  "member": "string",
6127
6127
  "name": "CreateTime",
6128
- "required": true,
6128
+ "output_required": true,
6129
6129
  "type": "string",
6130
6130
  "value_allowed_null": false
6131
6131
  },
6132
6132
  {
6133
6133
  "disabled": false,
6134
6134
  "document": "节点下线时间。",
6135
- "example": "",
6135
+ "example": "1717139065",
6136
6136
  "member": "string",
6137
6137
  "name": "DownTime",
6138
- "required": true,
6138
+ "output_required": true,
6139
6139
  "type": "string",
6140
6140
  "value_allowed_null": false
6141
6141
  },
6142
6142
  {
6143
6143
  "disabled": false,
6144
6144
  "document": "节点 Slot 分布区间。",
6145
- "example": "",
6145
+ "example": "[\"0-16383\"]",
6146
6146
  "member": "string",
6147
6147
  "name": "Slots",
6148
- "required": true,
6148
+ "output_required": true,
6149
6149
  "type": "string",
6150
6150
  "value_allowed_null": false
6151
6151
  },
6152
6152
  {
6153
6153
  "disabled": false,
6154
6154
  "document": "节点 Key分布。",
6155
- "example": "",
6155
+ "example": "35140102",
6156
6156
  "member": "int64",
6157
6157
  "name": "Keys",
6158
- "required": true,
6158
+ "output_required": true,
6159
6159
  "type": "int",
6160
6160
  "value_allowed_null": false
6161
6161
  },
6162
6162
  {
6163
6163
  "disabled": false,
6164
6164
  "document": "节点 QPS。分片节点每秒执行次数。单位:次/秒。",
6165
- "example": "",
6165
+ "example": "0",
6166
6166
  "member": "int64",
6167
6167
  "name": "Qps",
6168
- "required": true,
6168
+ "output_required": true,
6169
6169
  "type": "int",
6170
6170
  "value_allowed_null": false
6171
6171
  },
6172
6172
  {
6173
6173
  "disabled": false,
6174
6174
  "document": "节点 QPS 倾斜度。",
6175
- "example": "",
6175
+ "example": "0",
6176
6176
  "member": "float",
6177
6177
  "name": "QpsSlope",
6178
- "required": true,
6178
+ "output_required": true,
6179
6179
  "type": "float",
6180
6180
  "value_allowed_null": false
6181
6181
  },
6182
6182
  {
6183
6183
  "disabled": false,
6184
6184
  "document": "节点存储。",
6185
- "example": "",
6185
+ "example": "64",
6186
6186
  "member": "int64",
6187
6187
  "name": "Storage",
6188
- "required": true,
6188
+ "output_required": true,
6189
6189
  "type": "int",
6190
6190
  "value_allowed_null": false
6191
6191
  },
6192
6192
  {
6193
6193
  "disabled": false,
6194
6194
  "document": "节点存储倾斜度。",
6195
- "example": "",
6195
+ "example": "0",
6196
6196
  "member": "float",
6197
6197
  "name": "StorageSlope",
6198
- "required": true,
6198
+ "output_required": true,
6199
6199
  "type": "float",
6200
6200
  "value_allowed_null": false
6201
6201
  }
@@ -12539,7 +12539,7 @@
12539
12539
  "example": "2021-07-01",
12540
12540
  "member": "string",
12541
12541
  "name": "ReportDate",
12542
- "required": true,
12542
+ "output_required": true,
12543
12543
  "type": "string",
12544
12544
  "value_allowed_null": true
12545
12545
  },
@@ -12549,7 +12549,7 @@
12549
12549
  "example": "100008561789",
12550
12550
  "member": "string",
12551
12551
  "name": "Uin",
12552
- "required": true,
12552
+ "output_required": true,
12553
12553
  "type": "string",
12554
12554
  "value_allowed_null": true
12555
12555
  },
@@ -12559,17 +12559,17 @@
12559
12559
  "example": "lbvliu-5gfy5n4a0776401d",
12560
12560
  "member": "string",
12561
12561
  "name": "EnvId",
12562
- "required": true,
12562
+ "output_required": true,
12563
12563
  "type": "string",
12564
12564
  "value_allowed_null": true
12565
12565
  },
12566
12566
  {
12567
12567
  "disabled": false,
12568
12568
  "document": "上报任务状态\n注意:此字段可能返回 null,表示取不到有效值。",
12569
- "example": "[{\\\"Metric\\\":3,\\\"ResourceType\\\":\\\"COS\\\",\\\"MetricName\\\":\\\"Capacit",
12569
+ "example": "new",
12570
12570
  "member": "string",
12571
12571
  "name": "Status",
12572
- "required": true,
12572
+ "output_required": true,
12573
12573
  "type": "string",
12574
12574
  "value_allowed_null": true
12575
12575
  }
@@ -7498,7 +7498,7 @@
7498
7498
  {
7499
7499
  "disabled": false,
7500
7500
  "document": "更新后的密码",
7501
- "example": "",
7501
+ "example": "test",
7502
7502
  "member": "string",
7503
7503
  "name": "Password",
7504
7504
  "required": true,
@@ -878,7 +878,7 @@
878
878
  ],
879
879
  "ModifyUserPasswordPersonal": [
880
880
  {
881
- "document": "",
881
+ "document": "ccr修改个人用户登陆密码",
882
882
  "input": "https://tcr.tencentcloudapi.com/?Action=ModifyUserPasswordPersonal\r\n&Password=XXXXX\r\n&<公共请求参数>",
883
883
  "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
884
884
  "title": "修改个人用户登录密码"
@@ -1629,6 +1629,58 @@ def doDeleteTopic(args, parsed_globals):
1629
1629
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1630
1630
 
1631
1631
 
1632
+ def doDescribeFusionInstanceList(args, parsed_globals):
1633
+ g_param = parse_global_arg(parsed_globals)
1634
+
1635
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1636
+ cred = credential.CVMRoleCredential()
1637
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1638
+ cred = credential.STSAssumeRoleCredential(
1639
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1640
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1641
+ )
1642
+ 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):
1643
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1644
+ else:
1645
+ cred = credential.Credential(
1646
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1647
+ )
1648
+ http_profile = HttpProfile(
1649
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1650
+ reqMethod="POST",
1651
+ endpoint=g_param[OptionsDefine.Endpoint],
1652
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1653
+ )
1654
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1655
+ if g_param[OptionsDefine.Language]:
1656
+ profile.language = g_param[OptionsDefine.Language]
1657
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1658
+ client = mod.TrocketClient(cred, g_param[OptionsDefine.Region], profile)
1659
+ client._sdkVersion += ("_CLI_" + __version__)
1660
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1661
+ model = models.DescribeFusionInstanceListRequest()
1662
+ model.from_json_string(json.dumps(args))
1663
+ start_time = time.time()
1664
+ while True:
1665
+ rsp = client.DescribeFusionInstanceList(model)
1666
+ result = rsp.to_json_string()
1667
+ try:
1668
+ json_obj = json.loads(result)
1669
+ except TypeError as e:
1670
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1671
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1672
+ break
1673
+ cur_time = time.time()
1674
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1675
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1676
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1677
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1678
+ else:
1679
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1680
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1681
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1682
+
1683
+
1632
1684
  def doDescribeMQTTInstanceCert(args, parsed_globals):
1633
1685
  g_param = parse_global_arg(parsed_globals)
1634
1686
 
@@ -2451,6 +2503,7 @@ ACTION_MAP = {
2451
2503
  "DeleteMQTTTopic": doDeleteMQTTTopic,
2452
2504
  "DescribeInstance": doDescribeInstance,
2453
2505
  "DeleteTopic": doDeleteTopic,
2506
+ "DescribeFusionInstanceList": doDescribeFusionInstanceList,
2454
2507
  "DescribeMQTTInstanceCert": doDescribeMQTTInstanceCert,
2455
2508
  "ModifyMQTTInstanceCertBinding": doModifyMQTTInstanceCertBinding,
2456
2509
  "DescribeMQTTInstanceList": doDescribeMQTTInstanceList,