tccli 3.0.1300.3__py2.py3-none-any.whl → 3.0.1302.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 (187) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +2 -1
  3. tccli/services/asr/v20190614/api.json +18 -18
  4. tccli/services/batch/v20170312/api.json +14 -14
  5. tccli/services/bh/bh_client.py +623 -93
  6. tccli/services/bh/v20230418/api.json +1054 -32
  7. tccli/services/bh/v20230418/examples.json +93 -1
  8. tccli/services/billing/billing_client.py +4 -57
  9. tccli/services/billing/v20180709/api.json +3 -305
  10. tccli/services/billing/v20180709/examples.json +2 -10
  11. tccli/services/bpaas/v20181217/api.json +56 -56
  12. tccli/services/cat/cat_client.py +61 -8
  13. tccli/services/cat/v20180409/api.json +115 -0
  14. tccli/services/cat/v20180409/examples.json +20 -0
  15. tccli/services/cbs/v20170312/api.json +9 -7
  16. tccli/services/cbs/v20170312/examples.json +2 -2
  17. tccli/services/ccc/ccc_client.py +216 -4
  18. tccli/services/ccc/v20200210/api.json +364 -6
  19. tccli/services/ccc/v20200210/examples.json +32 -0
  20. tccli/services/cdb/v20170320/api.json +23 -14
  21. tccli/services/cdb/v20170320/examples.json +3 -3
  22. tccli/services/cdc/cdc_client.py +173 -67
  23. tccli/services/cdc/v20201214/api.json +96 -0
  24. tccli/services/cdc/v20201214/examples.json +16 -0
  25. tccli/services/cdn/v20180606/api.json +365 -279
  26. tccli/services/cdwch/v20200915/api.json +21 -21
  27. tccli/services/cdwdoris/v20211228/api.json +21 -1
  28. tccli/services/cdwdoris/v20211228/examples.json +4 -4
  29. tccli/services/cdwpg/v20201230/api.json +375 -360
  30. tccli/services/cdwpg/v20201230/examples.json +1 -1
  31. tccli/services/cfw/cfw_client.py +53 -0
  32. tccli/services/cfw/v20190904/api.json +201 -5
  33. tccli/services/cfw/v20190904/examples.json +8 -0
  34. tccli/services/chc/chc_client.py +57 -4
  35. tccli/services/chc/v20230418/api.json +108 -1
  36. tccli/services/chc/v20230418/examples.json +8 -0
  37. tccli/services/ckafka/ckafka_client.py +408 -302
  38. tccli/services/ckafka/v20190819/api.json +197 -2
  39. tccli/services/ckafka/v20190819/examples.json +16 -0
  40. tccli/services/clb/v20180317/api.json +439 -379
  41. tccli/services/clb/v20180317/examples.json +7 -7
  42. tccli/services/cls/cls_client.py +53 -0
  43. tccli/services/cls/v20201016/api.json +86 -3
  44. tccli/services/cls/v20201016/examples.json +11 -3
  45. tccli/services/cvm/v20170312/api.json +165 -147
  46. tccli/services/cvm/v20170312/examples.json +6 -6
  47. tccli/services/cwp/v20180228/api.json +93 -14
  48. tccli/services/cwp/v20180228/examples.json +7 -7
  49. tccli/services/cynosdb/cynosdb_client.py +171 -12
  50. tccli/services/cynosdb/v20190107/api.json +252 -3
  51. tccli/services/cynosdb/v20190107/examples.json +24 -0
  52. tccli/services/dbbrain/dbbrain_client.py +57 -4
  53. tccli/services/dbbrain/v20210527/api.json +62 -0
  54. tccli/services/dbbrain/v20210527/examples.json +8 -0
  55. tccli/services/dc/v20180410/api.json +1 -1
  56. tccli/services/dlc/dlc_client.py +53 -0
  57. tccli/services/dlc/v20210125/api.json +816 -655
  58. tccli/services/dlc/v20210125/examples.json +73 -59
  59. tccli/services/dsgc/v20190723/api.json +18 -0
  60. tccli/services/dts/v20211206/api.json +4 -4
  61. tccli/services/dts/v20211206/examples.json +6 -0
  62. tccli/services/emr/emr_client.py +53 -0
  63. tccli/services/emr/v20190103/api.json +127 -0
  64. tccli/services/emr/v20190103/examples.json +8 -0
  65. tccli/services/es/es_client.py +686 -151
  66. tccli/services/es/v20180416/api.json +509 -436
  67. tccli/services/es/v20180416/examples.json +43 -49
  68. tccli/services/es/v20250101/api.json +1391 -0
  69. tccli/services/es/v20250101/examples.json +85 -0
  70. tccli/services/ess/ess_client.py +53 -0
  71. tccli/services/ess/v20201111/api.json +142 -21
  72. tccli/services/ess/v20201111/examples.json +14 -0
  73. tccli/services/essbasic/essbasic_client.py +53 -0
  74. tccli/services/essbasic/v20210526/api.json +112 -9
  75. tccli/services/essbasic/v20210526/examples.json +8 -0
  76. tccli/services/gaap/v20180529/api.json +321 -312
  77. tccli/services/gaap/v20180529/examples.json +2 -2
  78. tccli/services/gs/gs_client.py +538 -8
  79. tccli/services/gs/v20191118/api.json +947 -44
  80. tccli/services/gs/v20191118/examples.json +87 -1
  81. tccli/services/gwlb/v20240906/api.json +56 -37
  82. tccli/services/gwlb/v20240906/examples.json +11 -5
  83. tccli/services/hunyuan/hunyuan_client.py +175 -69
  84. tccli/services/hunyuan/v20230901/api.json +191 -1
  85. tccli/services/hunyuan/v20230901/examples.json +17 -1
  86. tccli/services/ioa/ioa_client.py +227 -15
  87. tccli/services/ioa/v20220601/api.json +479 -0
  88. tccli/services/ioa/v20220601/examples.json +44 -0
  89. tccli/services/iotexplorer/iotexplorer_client.py +322 -4
  90. tccli/services/iotexplorer/v20190423/api.json +865 -52
  91. tccli/services/iotexplorer/v20190423/examples.json +64 -16
  92. tccli/services/iotvideo/iotvideo_client.py +57 -4
  93. tccli/services/iotvideo/v20211125/api.json +146 -0
  94. tccli/services/iotvideo/v20211125/examples.json +8 -0
  95. tccli/services/iotvideoindustry/v20201201/api.json +1 -1
  96. tccli/services/kms/v20190118/api.json +38 -2
  97. tccli/services/lcic/v20220817/api.json +66 -1
  98. tccli/services/lcic/v20220817/examples.json +1 -1
  99. tccli/services/lighthouse/lighthouse_client.py +0 -106
  100. tccli/services/lighthouse/v20200324/api.json +11 -98
  101. tccli/services/lighthouse/v20200324/examples.json +0 -16
  102. tccli/services/live/v20180801/api.json +1 -1
  103. tccli/services/lke/v20231130/api.json +208 -10
  104. tccli/services/lke/v20231130/examples.json +10 -10
  105. tccli/services/lkeap/lkeap_client.py +53 -0
  106. tccli/services/lkeap/v20240522/api.json +48 -4
  107. tccli/services/lkeap/v20240522/examples.json +8 -0
  108. tccli/services/mna/mna_client.py +4 -163
  109. tccli/services/mna/v20210119/api.json +0 -524
  110. tccli/services/mna/v20210119/examples.json +0 -24
  111. tccli/services/monitor/monitor_client.py +114 -8
  112. tccli/services/monitor/v20180724/api.json +129 -18
  113. tccli/services/monitor/v20180724/examples.json +17 -1
  114. tccli/services/mps/v20190612/api.json +1223 -1031
  115. tccli/services/mps/v20190612/examples.json +1 -1
  116. tccli/services/nlp/v20190408/examples.json +1 -1
  117. tccli/services/oceanus/v20190422/api.json +12 -12
  118. tccli/services/oceanus/v20190422/examples.json +15 -3
  119. tccli/services/ocr/v20181119/api.json +13 -3
  120. tccli/services/postgres/v20170312/api.json +2 -2
  121. tccli/services/privatedns/v20201028/api.json +30 -11
  122. tccli/services/privatedns/v20201028/examples.json +10 -10
  123. tccli/services/rce/v20201103/api.json +3 -3
  124. tccli/services/ses/v20201002/api.json +10 -1
  125. tccli/services/smop/v20201203/api.json +2 -2
  126. tccli/services/sqlserver/v20180328/api.json +1 -1
  127. tccli/services/ssm/v20190923/api.json +27 -0
  128. tccli/services/sts/sts_client.py +53 -0
  129. tccli/services/sts/v20180813/api.json +101 -1
  130. tccli/services/sts/v20180813/examples.json +8 -0
  131. tccli/services/taf/taf_client.py +0 -53
  132. tccli/services/taf/v20200210/api.json +0 -138
  133. tccli/services/taf/v20200210/examples.json +0 -8
  134. tccli/services/tan/v20220420/api.json +2 -2
  135. tccli/services/tat/v20201028/api.json +2 -2
  136. tccli/services/tcb/v20180608/api.json +29 -1
  137. tccli/services/tcbr/v20220217/api.json +32 -0
  138. tccli/services/tccatalog/v20241024/api.json +1 -1
  139. tccli/services/tccatalog/v20241024/examples.json +1 -1
  140. tccli/services/tcr/v20190924/api.json +5 -5
  141. tccli/services/tcr/v20190924/examples.json +2 -2
  142. tccli/services/tcss/v20201101/api.json +84 -34
  143. tccli/services/tcss/v20201101/examples.json +2809 -0
  144. tccli/services/tdmq/v20200217/api.json +40 -0
  145. tccli/services/tdmq/v20200217/examples.json +1 -1
  146. tccli/services/tds/tds_client.py +53 -0
  147. tccli/services/tds/v20220801/api.json +265 -0
  148. tccli/services/tds/v20220801/examples.json +8 -0
  149. tccli/services/tem/v20210701/api.json +664 -575
  150. tccli/services/tem/v20210701/examples.json +2 -2
  151. tccli/services/teo/v20220901/api.json +236 -208
  152. tccli/services/teo/v20220901/examples.json +13 -13
  153. tccli/services/tione/tione_client.py +53 -0
  154. tccli/services/tione/v20211111/api.json +256 -0
  155. tccli/services/tione/v20211111/examples.json +8 -0
  156. tccli/services/tke/v20180525/api.json +1 -1
  157. tccli/services/trocket/trocket_client.py +489 -12
  158. tccli/services/trocket/v20230308/api.json +925 -146
  159. tccli/services/trocket/v20230308/examples.json +72 -0
  160. tccli/services/trtc/v20190722/api.json +13 -19
  161. tccli/services/trtc/v20190722/examples.json +8 -8
  162. tccli/services/tse/v20201207/api.json +1016 -995
  163. tccli/services/tse/v20201207/examples.json +2 -2
  164. tccli/services/tsf/v20180326/api.json +510 -465
  165. tccli/services/tsf/v20180326/examples.json +4 -4
  166. tccli/services/tts/v20190823/api.json +10 -10
  167. tccli/services/vclm/v20240523/api.json +2 -2
  168. tccli/services/vcube/v20220410/api.json +10 -0
  169. tccli/services/vdb/v20230616/api.json +10 -0
  170. tccli/services/vdb/v20230616/examples.json +1 -1
  171. tccli/services/vpc/v20170312/api.json +824 -254
  172. tccli/services/vpc/v20170312/examples.json +66 -10
  173. tccli/services/vpc/vpc_client.py +383 -12
  174. tccli/services/vrs/v20200824/api.json +9 -0
  175. tccli/services/waf/v20180125/api.json +8113 -5814
  176. tccli/services/waf/v20180125/examples.json +90 -0
  177. tccli/services/waf/waf_client.py +559 -82
  178. tccli/services/wedata/v20210820/api.json +1379 -24
  179. tccli/services/wedata/v20210820/examples.json +25 -1
  180. tccli/services/wedata/wedata_client.py +171 -12
  181. tccli/services/weilingwith/v20230427/api.json +1 -1
  182. tccli/services/weilingwith/v20230427/examples.json +3 -3
  183. {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/METADATA +2 -2
  184. {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/RECORD +187 -184
  185. {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/WHEEL +0 -0
  186. {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/entry_points.txt +0 -0
  187. {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/license_files/LICENSE +0 -0
@@ -1609,7 +1609,7 @@
1609
1609
  },
1610
1610
  {
1611
1611
  "disabled": false,
1612
- "document": "头像区域,摄像头视频画面的分辨率。可以有如下取值:\n1 标清\n2 高清\n3 全高清",
1612
+ "document": "头像区域,摄像头视频画面的分辨率。可以有如下取值:\n1 标清\n2 高清\n3 全高清\n注意:连麦人数(MaxMicNumber)>6时,仅可使用标清",
1613
1613
  "example": "1",
1614
1614
  "member": "uint64",
1615
1615
  "name": "Resolution",
@@ -1849,6 +1849,15 @@
1849
1849
  "name": "WhiteBoardSnapshotMode",
1850
1850
  "required": false,
1851
1851
  "type": "int"
1852
+ },
1853
+ {
1854
+ "disabled": false,
1855
+ "document": "字幕转写功能开关:0关闭,1开启,默认关闭",
1856
+ "example": "0",
1857
+ "member": "uint64",
1858
+ "name": "SubtitlesTranscription",
1859
+ "required": false,
1860
+ "type": "int"
1852
1861
  }
1853
1862
  ],
1854
1863
  "type": "object"
@@ -4017,6 +4026,16 @@
4017
4026
  "type": "int",
4018
4027
  "value_allowed_null": false
4019
4028
  },
4029
+ {
4030
+ "disabled": false,
4031
+ "document": "字幕转写功能开关:0关闭,1开启,默认关闭",
4032
+ "example": "0",
4033
+ "member": "uint64",
4034
+ "name": "SubtitlesTranscription",
4035
+ "output_required": false,
4036
+ "type": "int",
4037
+ "value_allowed_null": false
4038
+ },
4020
4039
  {
4021
4040
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4022
4041
  "member": "string",
@@ -5063,6 +5082,15 @@
5063
5082
  "name": "Limit",
5064
5083
  "required": false,
5065
5084
  "type": "int"
5085
+ },
5086
+ {
5087
+ "disabled": false,
5088
+ "document": "请求消息的userId",
5089
+ "example": "xxxxxxx",
5090
+ "member": "string",
5091
+ "name": "UserId",
5092
+ "required": false,
5093
+ "type": "string"
5066
5094
  }
5067
5095
  ],
5068
5096
  "type": "object"
@@ -6248,6 +6276,15 @@
6248
6276
  "name": "WhiteBoardSnapshotMode",
6249
6277
  "required": false,
6250
6278
  "type": "int"
6279
+ },
6280
+ {
6281
+ "disabled": false,
6282
+ "document": "字幕转写功能开关:0关闭,1开启,默认关闭",
6283
+ "example": "0",
6284
+ "member": "uint64",
6285
+ "name": "SubtitlesTranscription",
6286
+ "required": false,
6287
+ "type": "int"
6251
6288
  }
6252
6289
  ],
6253
6290
  "type": "object"
@@ -6788,6 +6825,15 @@
6788
6825
  "name": "WhiteBoardSnapshotMode",
6789
6826
  "required": false,
6790
6827
  "type": "int"
6828
+ },
6829
+ {
6830
+ "disabled": false,
6831
+ "document": "字幕转写功能开关:0关闭,1开启,默认关闭",
6832
+ "example": "0",
6833
+ "member": "uint64",
6834
+ "name": "SubtitlesTranscription",
6835
+ "required": false,
6836
+ "type": "int"
6791
6837
  }
6792
6838
  ],
6793
6839
  "usage": "in"
@@ -7044,6 +7090,16 @@
7044
7090
  "output_required": false,
7045
7091
  "type": "int",
7046
7092
  "value_allowed_null": false
7093
+ },
7094
+ {
7095
+ "disabled": false,
7096
+ "document": "字幕转写功能开关:0关闭,1开启,默认关闭",
7097
+ "example": "0",
7098
+ "member": "uint64",
7099
+ "name": "SubtitlesTranscription",
7100
+ "output_required": false,
7101
+ "type": "int",
7102
+ "value_allowed_null": false
7047
7103
  }
7048
7104
  ],
7049
7105
  "usage": "out"
@@ -7160,6 +7216,15 @@
7160
7216
  "name": "NickName",
7161
7217
  "required": false,
7162
7218
  "type": "string"
7219
+ },
7220
+ {
7221
+ "disabled": false,
7222
+ "document": "消息的优先级,默认优先级 Normal。\n可以指定3种优先级,从高到低依次为 High、Normal 和 Low,区分大小写。",
7223
+ "example": "Normal",
7224
+ "member": "string",
7225
+ "name": "Priority",
7226
+ "required": false,
7227
+ "type": "string"
7163
7228
  }
7164
7229
  ],
7165
7230
  "type": "object"
@@ -332,7 +332,7 @@
332
332
  {
333
333
  "document": "获取课堂房间信息",
334
334
  "input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRoom\n<公共请求参数>\n\n{\n \"RoomId\": 1\n}",
335
- "output": "{\n \"Response\": {\n \"AutoMic\": 1,\n \"RecordUrl\": \"https://example.com/test.mp4\",\n \"Name\": \"sdsdsdf\",\n \"AudioQuality\": 1,\n \"MaxMicNumber\": 1,\n \"SubType\": \"videodoc\",\n \"SdkAppId\": 1,\n \"RequestId\": \"sdfgsdfg\",\n \"StartTime\": 1,\n \"AudienceType\": 1,\n \"TeacherId\": \"sdfgsdefg\",\n \"Assistants\": [\n \"test\"\n ],\n \"EndTime\": 1,\n \"Resolution\": 1,\n \"DisableRecord\": 1,\n \"Status\": 0,\n \"EnableDirectControl\": 0,\n \"GroupId\": \"afdg\"\n }\n}",
335
+ "output": "{\n \"Response\": {\n \"AutoMic\": 1,\n \"RecordUrl\": \"https://example.com/test.mp4\",\n \"Name\": \"sdsdsdf\",\n \"AudioQuality\": 1,\n \"MaxMicNumber\": 1,\n \"SubType\": \"videodoc\",\n \"SdkAppId\": 1,\n \"RequestId\": \"sdfgsdfg\",\n \"StartTime\": 1,\n \"AudienceType\": 1,\n \"TeacherId\": \"sdfgsdefg\",\n \"Assistants\": [\n \"sdfgsdefg\"\n ],\n \"EndTime\": 1,\n \"Resolution\": 1,\n \"DisableRecord\": 1,\n \"Status\": 0,\n \"EnableDirectControl\": 0,\n \"GroupId\": \"afdg\"\n }\n}",
336
336
  "title": "房间信息"
337
337
  }
338
338
  ],
@@ -1057,58 +1057,6 @@ def doModifyDisksAttribute(args, parsed_globals):
1057
1057
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1058
1058
 
1059
1059
 
1060
- def doModifyInstancesLoginKeyPairAttribute(args, parsed_globals):
1061
- g_param = parse_global_arg(parsed_globals)
1062
-
1063
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1064
- cred = credential.CVMRoleCredential()
1065
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1066
- cred = credential.STSAssumeRoleCredential(
1067
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1068
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1069
- )
1070
- 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):
1071
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1072
- else:
1073
- cred = credential.Credential(
1074
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1075
- )
1076
- http_profile = HttpProfile(
1077
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1078
- reqMethod="POST",
1079
- endpoint=g_param[OptionsDefine.Endpoint],
1080
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1081
- )
1082
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1083
- if g_param[OptionsDefine.Language]:
1084
- profile.language = g_param[OptionsDefine.Language]
1085
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1086
- client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
1087
- client._sdkVersion += ("_CLI_" + __version__)
1088
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
1089
- model = models.ModifyInstancesLoginKeyPairAttributeRequest()
1090
- model.from_json_string(json.dumps(args))
1091
- start_time = time.time()
1092
- while True:
1093
- rsp = client.ModifyInstancesLoginKeyPairAttribute(model)
1094
- result = rsp.to_json_string()
1095
- try:
1096
- json_obj = json.loads(result)
1097
- except TypeError as e:
1098
- json_obj = json.loads(result.decode('utf-8')) # python3.3
1099
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1100
- break
1101
- cur_time = time.time()
1102
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1103
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1104
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1105
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1106
- else:
1107
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1108
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1109
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1110
-
1111
-
1112
1060
  def doRerunDockerContainer(args, parsed_globals):
1113
1061
  g_param = parse_global_arg(parsed_globals)
1114
1062
 
@@ -1941,58 +1889,6 @@ def doModifyDockerContainer(args, parsed_globals):
1941
1889
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1942
1890
 
1943
1891
 
1944
- def doDescribeInstanceLoginKeyPairAttribute(args, parsed_globals):
1945
- g_param = parse_global_arg(parsed_globals)
1946
-
1947
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1948
- cred = credential.CVMRoleCredential()
1949
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1950
- cred = credential.STSAssumeRoleCredential(
1951
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1952
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1953
- )
1954
- 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):
1955
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1956
- else:
1957
- cred = credential.Credential(
1958
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1959
- )
1960
- http_profile = HttpProfile(
1961
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1962
- reqMethod="POST",
1963
- endpoint=g_param[OptionsDefine.Endpoint],
1964
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1965
- )
1966
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1967
- if g_param[OptionsDefine.Language]:
1968
- profile.language = g_param[OptionsDefine.Language]
1969
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1970
- client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
1971
- client._sdkVersion += ("_CLI_" + __version__)
1972
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
1973
- model = models.DescribeInstanceLoginKeyPairAttributeRequest()
1974
- model.from_json_string(json.dumps(args))
1975
- start_time = time.time()
1976
- while True:
1977
- rsp = client.DescribeInstanceLoginKeyPairAttribute(model)
1978
- result = rsp.to_json_string()
1979
- try:
1980
- json_obj = json.loads(result)
1981
- except TypeError as e:
1982
- json_obj = json.loads(result.decode('utf-8')) # python3.3
1983
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1984
- break
1985
- cur_time = time.time()
1986
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1987
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1988
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1989
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1990
- else:
1991
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1992
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1993
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1994
-
1995
-
1996
1892
  def doCreateInstanceSnapshot(args, parsed_globals):
1997
1893
  g_param = parse_global_arg(parsed_globals)
1998
1894
 
@@ -5716,7 +5612,6 @@ ACTION_MAP = {
5716
5612
  "DescribeDockerContainerConfiguration": doDescribeDockerContainerConfiguration,
5717
5613
  "InquirePriceRenewDisks": doInquirePriceRenewDisks,
5718
5614
  "ModifyDisksAttribute": doModifyDisksAttribute,
5719
- "ModifyInstancesLoginKeyPairAttribute": doModifyInstancesLoginKeyPairAttribute,
5720
5615
  "RerunDockerContainer": doRerunDockerContainer,
5721
5616
  "DescribeDisksReturnable": doDescribeDisksReturnable,
5722
5617
  "ModifyFirewallRules": doModifyFirewallRules,
@@ -5733,7 +5628,6 @@ ACTION_MAP = {
5733
5628
  "DisassociateInstancesKeyPairs": doDisassociateInstancesKeyPairs,
5734
5629
  "DescribeBlueprints": doDescribeBlueprints,
5735
5630
  "ModifyDockerContainer": doModifyDockerContainer,
5736
- "DescribeInstanceLoginKeyPairAttribute": doDescribeInstanceLoginKeyPairAttribute,
5737
5631
  "CreateInstanceSnapshot": doCreateInstanceSnapshot,
5738
5632
  "InquirePriceCreateInstances": doInquirePriceCreateInstances,
5739
5633
  "DescribeInstancesDeniedActions": doDescribeInstancesDeniedActions,
@@ -36,7 +36,7 @@
36
36
  "status": "online"
37
37
  },
38
38
  "AttachDisks": {
39
- "document": "本接口(AttachDisks)用于挂载一个或多个云硬盘。\n<li>只能挂载处于待挂载状态的云硬盘</li>",
39
+ "document": "本接口(AttachDisks)用于挂载一个或多个云硬盘。\n<li>只能挂载磁盘状态(DiskState)处于待挂载(UNATTACHED)状态的云硬盘,磁盘状态可通过接口查询云硬盘(DescribeDisks)获取</li>",
40
40
  "input": "AttachDisksRequest",
41
41
  "name": "挂载云硬盘",
42
42
  "output": "AttachDisksResponse",
@@ -336,13 +336,6 @@
336
336
  "output": "DescribeGeneralResourceQuotasResponse",
337
337
  "status": "online"
338
338
  },
339
- "DescribeInstanceLoginKeyPairAttribute": {
340
- "document": "后端代码已与23年2月4号下线\n近90天无调用记录\n经评估,下线无风险,操作下线\n\n本接口用于查询实例默认登录密钥属性。",
341
- "input": "DescribeInstanceLoginKeyPairAttributeRequest",
342
- "name": "查询实例默认登录密钥属性",
343
- "output": "DescribeInstanceLoginKeyPairAttributeResponse",
344
- "status": "deprecated"
345
- },
346
339
  "DescribeInstanceVncUrl": {
347
340
  "document": "本接口 ( DescribeInstanceVncUrl ) 用于查询实例管理终端地址,获取的地址可用于实例的 VNC 登录。\n\n* 仅处于 `RUNNING`,`RESCUE_MODE` 状态的机器,且当前机器无变更中操作,才可使用此功能。\n* 管理终端地址的有效期为 15 秒,调用接口成功后如果 15 秒内不使用该链接进行访问,管理终端地址自动失效,您需要重新查询。\n* 管理终端地址一旦被访问,将自动失效,您需要重新查询。\n* 如果连接断开,每分钟内重新连接的次数不能超过 30 次。\n* 参数 `InstanceVncUrl` :调用接口成功后会返回的 `InstanceVncUrl` 的值。\n获取到 `InstanceVncUrl` 后,您需要在链接 `https://img.qcloud.com/qcloud/app/active_vnc/index.html?` 末尾加上参数 `InstanceVncUrl=xxxx`。\n 最后组成的 URL 格式如下:\n\n```\nhttps://img.qcloud.com/qcloud/app/active_vnc/index.html?InstanceVncUrl=wss%3A%2F%2Fbjvnc.qcloud.com%3A26789%2Fvnc%3Fs%3DaHpjWnRVMFNhYmxKdDM5MjRHNlVTSVQwajNUSW0wb2tBbmFtREFCTmFrcy8vUUNPMG0wSHZNOUUxRm5PMmUzWmFDcWlOdDJIbUJxSTZDL0RXcHZxYnZZMmRkWWZWcEZia2lyb09XMzdKNmM9\n```",
348
341
  "input": "DescribeInstanceVncUrlRequest",
@@ -533,7 +526,7 @@
533
526
  "status": "online"
534
527
  },
535
528
  "ModifyDisksAttribute": {
536
- "document": "本接口(ModifyDisksAttribute)用于修改云硬盘属性。",
529
+ "document": "本接口(ModifyDisksAttribute)用于修改云硬盘属性。\n云硬盘必须处于以下状态:\n<li> ATTACHED(已挂载)</li>\n<li> UNATTACHED(待挂载)</li>",
537
530
  "input": "ModifyDisksAttributeRequest",
538
531
  "name": "修改云硬盘属性",
539
532
  "output": "ModifyDisksAttributeResponse",
@@ -595,13 +588,6 @@
595
588
  "output": "ModifyInstancesBundleResponse",
596
589
  "status": "online"
597
590
  },
598
- "ModifyInstancesLoginKeyPairAttribute": {
599
- "document": "后端代码已与23年2月4号下线\n近90天只有一次调用记录,且明确返回前端接口下线错误信息\n\n经评估无风险,操作接口下线\n\n本接口用于设置实例默认登录密钥对属性。\n\n",
600
- "input": "ModifyInstancesLoginKeyPairAttributeRequest",
601
- "name": "修改实例默认登录密钥对属性",
602
- "output": "ModifyInstancesLoginKeyPairAttributeResponse",
603
- "status": "deprecated"
604
- },
605
591
  "ModifyInstancesRenewFlag": {
606
592
  "document": "本接口 (ModifyInstancesRenewFlag) 用于修改包年包月实例续费标识。\n\n* 实例被标识为自动续费后,每次在实例到期时,会自动续费一个月。\n* 支持批量操作。每次请求批量实例的上限为100。",
607
593
  "input": "ModifyInstancesRenewFlagRequest",
@@ -1144,7 +1130,7 @@
1144
1130
  },
1145
1131
  {
1146
1132
  "disabled": false,
1147
- "document": "镜像类型,如 APP_OSPURE_OSPRIVATE",
1133
+ "document": "镜像类型,如 APP_OS(应用镜像), PURE_OS(系统镜像), DOCKER(容器), PRIVATE(私有镜像), SHARED(共享镜像), GAME_PORTAL(游戏专区镜像)。",
1148
1134
  "example": "APP_OS",
1149
1135
  "member": "string",
1150
1136
  "name": "BlueprintType",
@@ -1174,7 +1160,7 @@
1174
1160
  },
1175
1161
  {
1176
1162
  "disabled": false,
1177
- "document": "镜像状态。",
1163
+ "document": "镜像状态,镜镜像状态,NORMAL(正常)、SYNCING(同步中)、OFFLINE(下线)、ISOLATED(已隔离)、CREATEFAILED(创建失败)、SYNCING_FAILED(目的地域同步失败)、ISOLATING(隔离中)、ISOLATED(已隔离)、DELETING(删除中)、DESTROYING(销毁中)。",
1178
1164
  "example": "NORMAL",
1179
1165
  "member": "string",
1180
1166
  "name": "BlueprintState",
@@ -2758,7 +2744,7 @@
2758
2744
  },
2759
2745
  {
2760
2746
  "disabled": false,
2761
- "document": "过滤器列表。\n<li>blueprint-id</li>按照【镜像 ID】进行过滤。\n类型:String\n必选:否\n镜像 ID ,可通过[DescribeBlueprints](https://cloud.tencent.com/document/product/1207/47689)接口返回值字段BlueprintSet获取。\n<li>blueprint-type</li>按照【镜像类型】进行过滤。\n取值:APP_OS(应用镜像 );PURE_OS(系统镜像);DOCKER(Docker容器镜像);PRIVATE(自定义镜像);SHARED(共享镜像)。\n类型:String\n必选:否\n<li>platform-type</li>按照【镜像平台类型】进行过滤。\n取值: LINUX_UNIX(Linux/Unix系统);WINDOWS(Windows 系统)。\n类型:String\n必选:否\n<li>blueprint-name</li>按照【镜像名称】进行过滤。\n类型:String\n必选:否\n<li>blueprint-state</li>按照【镜像状态】进行过滤。\n类型:String\n必选:否\n<li>scene-id</li>按照【使用场景Id】进行过滤。\n类型:String\n必选:否\n场景Id,可通过[查看使用场景列表](https://cloud.tencent.com/document/product/1207/83512)接口获取。\n\n每次请求的 Filters 的上限为 10,Filter.Values 的上限为 100。参数不支持同时指定 BlueprintIds (可通过[DescribeBlueprints](https://cloud.tencent.com/document/product/1207/47689)接口返回值字段BlueprintSet获取BlueprintId)和 Filters 。",
2747
+ "document": "过滤器列表。\n<li>blueprint-id</li>按照【镜像 ID】进行过滤。\n类型:String\n必选:否\n镜像 ID ,可通过[DescribeBlueprints](https://cloud.tencent.com/document/product/1207/47689)接口返回值字段BlueprintSet获取。\n<li>blueprint-type</li>按照【镜像类型】进行过滤。\n取值:APP_OS(应用镜像 );PURE_OS(系统镜像);DOCKER(Docker容器镜像);PRIVATE(自定义镜像);SHARED(共享镜像)。\n类型:String\n必选:否\n<li>platform-type</li>按照【镜像平台类型】进行过滤。\n取值: LINUX_UNIX(Linux/Unix系统);WINDOWS(Windows 系统)。\n类型:String\n必选:否\n<li>blueprint-name</li>按照【镜像名称】进行过滤。\n类型:String\n必选:否\n<li>blueprint-state</li>按照【镜像状态】进行过滤。\n类型:String\n必选:否\n镜像状态,可通过[数据结构Blueprint](https://cloud.tencent.com/document/api/1207/47576#Blueprint)中的BlueprintState来获取。\n<li>scene-id</li>按照【使用场景Id】进行过滤。\n类型:String\n必选:否\n场景Id,可通过[查看使用场景列表](https://cloud.tencent.com/document/product/1207/83512)接口获取。\n\n每次请求的 Filters 的上限为 10,Filter.Values 的上限为 100。参数不支持同时指定 BlueprintIds (可通过[DescribeBlueprints](https://cloud.tencent.com/document/product/1207/47689)接口返回值字段BlueprintSet获取BlueprintId)和 Filters 。",
2762
2748
  "example": "无",
2763
2749
  "member": "Filter",
2764
2750
  "name": "Filters",
@@ -4058,43 +4044,6 @@
4058
4044
  ],
4059
4045
  "type": "object"
4060
4046
  },
4061
- "DescribeInstanceLoginKeyPairAttributeRequest": {
4062
- "document": "DescribeInstanceLoginKeyPairAttribute请求参数结构体",
4063
- "members": [
4064
- {
4065
- "disabled": false,
4066
- "document": "实例ID。",
4067
- "example": "lhins-j4liwha8",
4068
- "member": "string",
4069
- "name": "InstanceId",
4070
- "required": true,
4071
- "type": "string"
4072
- }
4073
- ],
4074
- "type": "object"
4075
- },
4076
- "DescribeInstanceLoginKeyPairAttributeResponse": {
4077
- "document": "DescribeInstanceLoginKeyPairAttribute返回参数结构体",
4078
- "members": [
4079
- {
4080
- "disabled": false,
4081
- "document": "是否允许使用默认密钥对登录,YES:允许登录 NO:禁止登录。",
4082
- "example": "NO",
4083
- "member": "string",
4084
- "name": "PermitLogin",
4085
- "required": true,
4086
- "type": "string",
4087
- "value_allowed_null": false
4088
- },
4089
- {
4090
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4091
- "member": "string",
4092
- "name": "RequestId",
4093
- "type": "string"
4094
- }
4095
- ],
4096
- "type": "object"
4097
- },
4098
4047
  "DescribeInstanceVncUrlRequest": {
4099
4048
  "document": "DescribeInstanceVncUrl请求参数结构体",
4100
4049
  "members": [
@@ -6226,8 +6175,8 @@
6226
6175
  "members": [
6227
6176
  {
6228
6177
  "disabled": false,
6229
- "document": "模板Id。",
6230
- "example": "lhft-xxxxxx",
6178
+ "document": "模板ID。",
6179
+ "example": "lhft-p1mlufa9",
6231
6180
  "member": "string",
6232
6181
  "name": "TemplateId",
6233
6182
  "output_required": true,
@@ -6246,8 +6195,8 @@
6246
6195
  },
6247
6196
  {
6248
6197
  "disabled": false,
6249
- "document": "模板类型。",
6250
- "example": "PUBLIC",
6198
+ "document": "模板类型。取值: \"PRIVATE\"(个人模版)",
6199
+ "example": "PRIVATE",
6251
6200
  "member": "string",
6252
6201
  "name": "TemplateType",
6253
6202
  "output_required": true,
@@ -6256,7 +6205,7 @@
6256
6205
  },
6257
6206
  {
6258
6207
  "disabled": false,
6259
- "document": "模板状态。",
6208
+ "document": "模板状态。取值: \"NORMAL\"(正常)",
6260
6209
  "example": "NORMAL",
6261
6210
  "member": "string",
6262
6211
  "name": "TemplateState",
@@ -6378,7 +6327,7 @@
6378
6327
  },
6379
6328
  {
6380
6329
  "disabled": false,
6381
- "document": "防火墙模板应用状态。\n\n- SUCCESS:成功\n- FAILED:失败",
6330
+ "document": "防火墙模板应用状态。\n\n- SUCCESS:成功\n- FAILED:失败\n- RUNNING:运行中",
6382
6331
  "example": "FAILED",
6383
6332
  "member": "string",
6384
6333
  "name": "ApplyState",
@@ -8208,42 +8157,6 @@
8208
8157
  ],
8209
8158
  "type": "object"
8210
8159
  },
8211
- "ModifyInstancesLoginKeyPairAttributeRequest": {
8212
- "document": "ModifyInstancesLoginKeyPairAttribute请求参数结构体",
8213
- "members": [
8214
- {
8215
- "disabled": false,
8216
- "document": "实例 ID 列表。每次请求批量实例的上限为 100。",
8217
- "example": "[\"lhins-ruy9d2tw\\r\\n\"]",
8218
- "member": "string",
8219
- "name": "InstanceIds",
8220
- "required": true,
8221
- "type": "list"
8222
- },
8223
- {
8224
- "disabled": false,
8225
- "document": "是否允许使用默认密钥对登录,YES:允许登录;NO:禁止登录",
8226
- "example": "NO",
8227
- "member": "string",
8228
- "name": "PermitLogin",
8229
- "required": false,
8230
- "type": "string"
8231
- }
8232
- ],
8233
- "type": "object"
8234
- },
8235
- "ModifyInstancesLoginKeyPairAttributeResponse": {
8236
- "document": "ModifyInstancesLoginKeyPairAttribute返回参数结构体",
8237
- "members": [
8238
- {
8239
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
8240
- "member": "string",
8241
- "name": "RequestId",
8242
- "type": "string"
8243
- }
8244
- ],
8245
- "type": "object"
8246
- },
8247
8160
  "ModifyInstancesRenewFlagRequest": {
8248
8161
  "document": "ModifyInstancesRenewFlag请求参数结构体",
8249
8162
  "members": [
@@ -390,14 +390,6 @@
390
390
  "title": "查询通用资源配额信息"
391
391
  }
392
392
  ],
393
- "DescribeInstanceLoginKeyPairAttribute": [
394
- {
395
- "document": "",
396
- "input": "https://lighthouse.tencentcloudapi.com/?Action=DescribeInstanceLoginKeyPairAttribute\n&InstanceId=lhins-j4liwha8\n&<公共请求参数>",
397
- "output": "{\n \"Response\": {\n \"PermitLogin\": \"NO\",\n \"RequestId\": \"17a8c37b-0901-402a-b7b2-357998b2bcd8\"\n }\n}",
398
- "title": "查询实例默认登录密钥属性"
399
- }
400
- ],
401
393
  "DescribeInstanceVncUrl": [
402
394
  {
403
395
  "document": "本示例用于查询实例管理终端地址。",
@@ -686,14 +678,6 @@
686
678
  "title": "变更实例套餐"
687
679
  }
688
680
  ],
689
- "ModifyInstancesLoginKeyPairAttribute": [
690
- {
691
- "document": "",
692
- "input": "https://lighthouse.tencentcloudapi.com/?Action=ModifyInstancesLoginKeyPairAttribute\n&InstanceIds.0=lhins-ruy9d2tw\n&PermitLogin=NO\n&<公共请求参数>",
693
- "output": "{\n \"Response\": {\n \"RequestId\": \"fb3c565c-1ce9-43de-9b4e-58855716b16d\"\n }\n}",
694
- "title": "禁止使用默认密钥对登录实例"
695
- }
696
- ],
697
681
  "ModifyInstancesRenewFlag": [
698
682
  {
699
683
  "document": "修改实例的续费标识",
@@ -4814,7 +4814,7 @@
4814
4814
  },
4815
4815
  {
4816
4816
  "disabled": false,
4817
- "document": "结束时间,注意:\n1. 结束时间必须大于开始时间;\n2. 结束时间必须大于当前时间;\n3. 结束时间 和 开始时间 间隔必须小于七天。\n使用 UTC 格式时间,\n例如:2019-01-08T10:00:00Z。\n注意:北京时间值为 UTC 时间值 + 8 小时。",
4817
+ "document": "结束时间,注意:1. 结束时间必须大于开始时间;2. 结束时间必须大于当前时间;3. 结束时间 和 开始时间 间隔必须小于30天。使用 UTC 格式时间,例如:2019-01-08T10:00:00Z。注意:北京时间值为 UTC 时间值 + 8 小时。",
4818
4818
  "example": "2021-02-09T08:00:00Z",
4819
4819
  "member": "string",
4820
4820
  "name": "EndTime",