tccli 3.0.1371.1__py2.py3-none-any.whl → 3.0.1373.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 (73) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/batch/v20170312/api.json +59 -59
  3. tccli/services/batch/v20170312/examples.json +3 -3
  4. tccli/services/cfg/v20210820/api.json +5 -5
  5. tccli/services/cfg/v20210820/examples.json +1 -1
  6. tccli/services/cfs/v20190719/api.json +10 -10
  7. tccli/services/cfs/v20190719/examples.json +1 -1
  8. tccli/services/ckafka/v20190819/api.json +21 -21
  9. tccli/services/clb/v20180317/api.json +259 -10
  10. tccli/services/cls/v20201016/api.json +388 -282
  11. tccli/services/cls/v20201016/examples.json +33 -33
  12. tccli/services/csip/v20221121/examples.json +1 -1
  13. tccli/services/ctem/v20231128/api.json +104 -104
  14. tccli/services/ctem/v20231128/examples.json +8 -8
  15. tccli/services/dnspod/v20210323/api.json +14 -4
  16. tccli/services/dnspod/v20210323/examples.json +2 -2
  17. tccli/services/es/v20180416/api.json +23 -4
  18. tccli/services/ess/v20201111/api.json +3 -3
  19. tccli/services/essbasic/v20210526/api.json +4 -4
  20. tccli/services/iai/v20200303/api.json +9 -0
  21. tccli/services/keewidb/v20220308/api.json +24 -24
  22. tccli/services/lcic/v20220817/api.json +46 -18
  23. tccli/services/lighthouse/lighthouse_client.py +106 -0
  24. tccli/services/lighthouse/v20200324/api.json +280 -0
  25. tccli/services/lighthouse/v20200324/examples.json +22 -0
  26. tccli/services/live/v20180801/api.json +1 -1
  27. tccli/services/lke/lke_client.py +0 -53
  28. tccli/services/lke/v20231130/api.json +29 -79
  29. tccli/services/lke/v20231130/examples.json +0 -8
  30. tccli/services/mongodb/v20190725/api.json +4 -4
  31. tccli/services/monitor/v20180724/api.json +7 -7
  32. tccli/services/mps/v20190612/api.json +42 -2
  33. tccli/services/ocr/v20181119/api.json +43 -14
  34. tccli/services/organization/v20210331/api.json +25 -25
  35. tccli/services/organization/v20210331/examples.json +1 -1
  36. tccli/services/postgres/postgres_client.py +12 -171
  37. tccli/services/postgres/v20170312/api.json +20 -819
  38. tccli/services/postgres/v20170312/examples.json +6 -30
  39. tccli/services/scf/v20180416/api.json +2 -0
  40. tccli/services/ssl/v20191205/api.json +1 -1
  41. tccli/services/sts/v20180813/api.json +4 -4
  42. tccli/services/tcbr/v20220217/api.json +92 -0
  43. tccli/services/tcss/v20201101/api.json +32 -2
  44. tccli/services/tcss/v20201101/examples.json +3 -3
  45. tccli/services/teo/v20220901/api.json +12 -12
  46. tccli/services/tione/v20211111/api.json +18 -18
  47. tccli/services/tke/v20180525/api.json +10 -1
  48. tccli/services/tms/v20201229/api.json +6 -6
  49. tccli/services/trabbit/v20230418/api.json +41 -2
  50. tccli/services/trocket/trocket_client.py +65 -12
  51. tccli/services/trocket/v20230308/api.json +156 -0
  52. tccli/services/trocket/v20230308/examples.json +8 -0
  53. tccli/services/trtc/trtc_client.py +159 -0
  54. tccli/services/trtc/v20190722/api.json +273 -9
  55. tccli/services/trtc/v20190722/examples.json +24 -0
  56. tccli/services/tse/v20201207/api.json +23 -5
  57. tccli/services/tse/v20201207/examples.json +2 -2
  58. tccli/services/tsf/v20180326/api.json +907 -802
  59. tccli/services/tsf/v20180326/examples.json +29 -29
  60. tccli/services/vod/v20180717/api.json +73 -33
  61. tccli/services/vod/v20180717/examples.json +1 -1
  62. tccli/services/vpc/v20170312/api.json +12 -2
  63. tccli/services/vpc/v20170312/examples.json +2 -2
  64. tccli/services/waf/v20180125/api.json +717 -38
  65. tccli/services/waf/v20180125/examples.json +56 -0
  66. tccli/services/waf/waf_client.py +444 -73
  67. tccli/services/wedata/v20210820/api.json +138 -6
  68. tccli/services/wsa/v20250508/api.json +21 -3
  69. {tccli-3.0.1371.1.dist-info → tccli-3.0.1373.1.dist-info}/METADATA +2 -2
  70. {tccli-3.0.1371.1.dist-info → tccli-3.0.1373.1.dist-info}/RECORD +73 -73
  71. {tccli-3.0.1371.1.dist-info → tccli-3.0.1373.1.dist-info}/WHEEL +0 -0
  72. {tccli-3.0.1371.1.dist-info → tccli-3.0.1373.1.dist-info}/entry_points.txt +0 -0
  73. {tccli-3.0.1371.1.dist-info → tccli-3.0.1373.1.dist-info}/license_files/LICENSE +0 -0
@@ -1689,7 +1689,7 @@
1689
1689
  {
1690
1690
  "disabled": false,
1691
1691
  "document": "助教Id列表。通过[注册用户]接口获取的UserId。指定后该用户在房间内拥有助教权限。",
1692
- "example": "[azsdasfsdfsd,asefawefewf]]",
1692
+ "example": "[\"azsdasfsdfsd\",\"asefawefewf\"]",
1693
1693
  "member": "string",
1694
1694
  "name": "Assistants",
1695
1695
  "required": false,
@@ -1725,7 +1725,7 @@
1725
1725
  {
1726
1726
  "disabled": false,
1727
1727
  "document": "课堂绑定的群组ID,非空时限制组成员进入",
1728
- "example": "abcdfgd",
1728
+ "example": "98781273",
1729
1729
  "member": "string",
1730
1730
  "name": "GroupId",
1731
1731
  "required": false,
@@ -1769,13 +1769,22 @@
1769
1769
  },
1770
1770
  {
1771
1771
  "disabled": false,
1772
- "document": "课堂类型: 0 小班课(默认值); 1 大班课; 2 1V1 (预留参数,暂未开放)注:大班课的布局(layout)只有三分屏",
1772
+ "document": "课堂类型: 0 小班课(默认值); 1 大班课; 2 1V1 (预留参数,暂未开放); 3 圆桌会议 注:大班课的布局(layout)只有三分屏",
1773
1773
  "example": "0",
1774
1774
  "member": "int64",
1775
1775
  "name": "RoomType",
1776
1776
  "required": false,
1777
1777
  "type": "int"
1778
1778
  },
1779
+ {
1780
+ "disabled": false,
1781
+ "document": "嘉宾Id列表。当圆桌会议模式(RoomType==3)时生效",
1782
+ "example": "[\"azsdasfsdfsd\",\"asefawefewf\"]",
1783
+ "member": "string",
1784
+ "name": "Guests",
1785
+ "required": false,
1786
+ "type": "list"
1787
+ },
1779
1788
  {
1780
1789
  "disabled": false,
1781
1790
  "document": "拖堂时间:单位分钟,0为不限制(默认值), -1为不能拖堂,大于0为拖堂的时间,最大值120分钟",
@@ -1797,7 +1806,7 @@
1797
1806
  {
1798
1807
  "disabled": false,
1799
1808
  "document": "伪直播链接。 支持的协议以及格式: 协议:HTTP、HTTPS、RTMP、HLS 。格式:FLV、MP3、MP4、MPEG-TS、MOV、MKV、M4A。视频编码:H.264、VP8。音频编码:AAC、OPUS。",
1800
- "example": "https://1234221212.vod-qcloud.com/425sfabhhs7814/e99049456789ghjk7399827/1INCKHSY9QMA.mp4",
1809
+ "example": "https://791263.vod-qcloud.com/425sfabhs7814/e9049470840ghjk739827/1INCKHSY9QMA.mp4",
1801
1810
  "member": "string",
1802
1811
  "name": "RecordLiveUrl",
1803
1812
  "required": false,
@@ -1823,8 +1832,8 @@
1823
1832
  },
1824
1833
  {
1825
1834
  "disabled": false,
1826
- "document": "录制自定义场景。注意:仅recordlayout=9的时候此参数有效。需注意各类参数配置正确能够生效。不然会造成录制失败,失败后无法补救。\n数据内容为用户自定义场景参数,数据格式为json键值对方式,其中键值对的value为string类型。",
1827
- "example": "{\"scene\":\"test\",\"lng\":\"zh\",\"type\":\"h5\",\"subjectId\":\"57\",\"customToken\":\"sajdlfjasdglweqirouoiu\"}",
1835
+ "document": "录制自定义场景。注意:仅recordlayout=9的时候此参数有效。需注意各类参数配置正确能够生效。不然会造成录制失败,失败后无法补救。数据内容为用户自定义场景参数,数据格式为json键值对方式,其中键值对的value为string类型。\n\n自定义场景参数的含义。如下:\n scene:自定义js/css对应的场景值。如scene=recordScene,会加载 recordScene 场景对应的 js/css,这样就可以自定义录制页面的元素。 \n lng:录制页面对应的语种。如lng=en,则录制界面为en。(枚举值:en,zh,zh-TW,jp,ar,kr,vi)\n customToken:录制页面中涉及客户自己的服务需要鉴权时进行配置。一般情况下,无需配置。",
1836
+ "example": "{\"scene\":\"test\",\"lng\":\"zh\",\"customToken\":\"sajdlfjasdglweqirouoiu\"}",
1828
1837
  "member": "string",
1829
1838
  "name": "RecordScene",
1830
1839
  "required": false,
@@ -3826,7 +3835,7 @@
3826
3835
  {
3827
3836
  "disabled": false,
3828
3837
  "document": "助教UserId列表。",
3829
- "example": "\t[azsdasfsdfsd,asefawefew]",
3838
+ "example": "[\"azsdasfsdfsd\",\"asefawefewf\"]",
3830
3839
  "member": "string",
3831
3840
  "name": "Assistants",
3832
3841
  "output_required": true,
@@ -3836,7 +3845,7 @@
3836
3845
  {
3837
3846
  "disabled": false,
3838
3847
  "document": "录制地址(协议为https)。仅在房间结束后存在。",
3839
- "example": "https://abc.mp4",
3848
+ "example": "https://791263.vod-qcloud.com/425sfabhs7814/e9049470840ghjk739827/1INCKHSY9QMA.mp4",
3840
3849
  "member": "string",
3841
3850
  "name": "RecordUrl",
3842
3851
  "output_required": true,
@@ -3905,7 +3914,7 @@
3905
3914
  },
3906
3915
  {
3907
3916
  "disabled": false,
3908
- "document": "课堂类型: 0 小班课(默认值); 1 大班课; 2 1V1 (后续扩展)注:大班课的布局(layout)只有三分屏",
3917
+ "document": "课堂类型: 0 小班课(默认值); 1 大班课; 2 1V1 (预留参数,暂未开放); 3 圆桌会议 注:大班课的布局(layout)只有三分屏",
3909
3918
  "example": "0",
3910
3919
  "member": "int64",
3911
3920
  "name": "RoomType",
@@ -3946,7 +3955,7 @@
3946
3955
  {
3947
3956
  "disabled": false,
3948
3957
  "document": "伪直播链接",
3949
- "example": "https://1101910181.vod2.myqcloud.com/6casjaisjaidcq1101910181/d26589e12312512121842/f0.mp4",
3958
+ "example": "https://791263.vod-qcloud.com/425sfabhs7814/e9049470840ghjk739827/1INCKHSY9QMA.mp4",
3950
3959
  "member": "string",
3951
3960
  "name": "RecordLiveUrl",
3952
3961
  "output_required": false,
@@ -3976,7 +3985,7 @@
3976
3985
  {
3977
3986
  "disabled": false,
3978
3987
  "document": "RTMP推流链接",
3979
- "example": "rtmp://rtmp.rtc.qq.com/push/301234567?sdkappid=141234567&userid=abcdefg123456789&usersig=&use_number_room_id=1",
3988
+ "example": "rtmp://rtmp.rtc.com/push/30928374?sdkappid=9182537&userid=mpqhaijldaoqpnsd12&use_number_room_id=1&usersig=bsjkehdbfwie28102",
3980
3989
  "member": "string",
3981
3990
  "name": "RTMPStreamingURL",
3982
3991
  "output_required": false,
@@ -3985,8 +3994,8 @@
3985
3994
  },
3986
3995
  {
3987
3996
  "disabled": false,
3988
- "document": "录制自定义场景,仅recordlayout=9的时候此参数有效",
3989
- "example": "default",
3997
+ "document": "录制自定义场景。注意:仅recordlayout=9的时候此参数有效。需注意各类参数配置正确能够生效。不然会造成录制失败,失败后无法补救。数据内容为用户自定义场景参数,数据格式为json键值对方式,其中键值对的value为string类型。自定义场景参数的含义。如下: scene:自定义js/css对应的场景值。如scene=recordScene,会加载 recordScene 场景对应的 js/css,这样就可以自定义录制页面的元素。 lng:录制页面对应的语种。如lng=en,则录制界面为en。(枚举值:en,zh,zh-TW,jp,ar,kr,vi) customToken:录制页面中涉及客户自己的服务需要鉴权时进行配置。一般情况下,无需配置。",
3998
+ "example": "{\"scene\":\"test\",\"lng\":\"zh\",\"customToken\":\"sajdlfjasdglweqirouoiu\"}",
3990
3999
  "member": "string",
3991
4000
  "name": "RecordScene",
3992
4001
  "output_required": false,
@@ -4043,6 +4052,16 @@
4043
4052
  "type": "int",
4044
4053
  "value_allowed_null": false
4045
4054
  },
4055
+ {
4056
+ "disabled": false,
4057
+ "document": "嘉宾Id列表。当圆桌会议模式(RoomType==3)时生效",
4058
+ "example": "[\"azsdasfsdfsd\",\"asefawefewf\"]",
4059
+ "member": "string",
4060
+ "name": "Guests",
4061
+ "output_required": false,
4062
+ "type": "list",
4063
+ "value_allowed_null": false
4064
+ },
4046
4065
  {
4047
4066
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4048
4067
  "member": "string",
@@ -6711,7 +6730,7 @@
6711
6730
  {
6712
6731
  "disabled": false,
6713
6732
  "document": "助教Id列表。通过[注册用户]接口获取的UserId。",
6714
- "example": "[azsdasfsdfsd,asefawefew]",
6733
+ "example": "[\"azsdasfsdfsd\",\"asefawefewf\"]",
6715
6734
  "member": "string",
6716
6735
  "name": "Assistants",
6717
6736
  "required": false,
@@ -6791,7 +6810,7 @@
6791
6810
  },
6792
6811
  {
6793
6812
  "disabled": false,
6794
- "document": "房间类型: 0 小班课(默认值); 1 大班课; 2 1V1 (后续扩展)\n注:大班课的布局(layout)只有三分屏",
6813
+ "document": "课堂类型: 0 小班课(默认值); 1 大班课; 2 1V1 (预留参数,暂未开放); 3 圆桌会议 注:大班课的布局(layout)只有三分屏",
6795
6814
  "example": "0",
6796
6815
  "member": "int64",
6797
6816
  "name": "RoomType",
@@ -6819,7 +6838,7 @@
6819
6838
  {
6820
6839
  "disabled": false,
6821
6840
  "document": "伪直播回放链接",
6822
- "example": "https://1101910181.vod2.myqcloud.com/6casjaisjaidcq1101910181/d26589e12312512121842/f0.mp4",
6841
+ "example": "https://791263.vod-qcloud.com/425sfabhs7814/e9049470840ghjk739827/1INCKHSY9QMA.mp4",
6823
6842
  "member": "string",
6824
6843
  "name": "RecordLiveUrl",
6825
6844
  "required": false,
@@ -6845,8 +6864,8 @@
6845
6864
  },
6846
6865
  {
6847
6866
  "disabled": false,
6848
- "document": "录制自定义场景,仅recordlayout=9的时候此参数有效,数据内容为用户自定义场景参数,数据格式为json键值对方式,其中键值对的value为string类型。",
6849
- "example": "{\"scene\":\"test\",\"lng\":\"zh\",\"type\":\"h5\",\"subjectId\":\"57\",\"customToken\":\"sajdlfjasdglweqirouoiu\"}",
6867
+ "document": "录制自定义场景。注意:仅recordlayout=9的时候此参数有效。需注意各类参数配置正确能够生效。不然会造成录制失败,失败后无法补救。数据内容为用户自定义场景参数,数据格式为json键值对方式,其中键值对的value为string类型。自定义场景参数的含义。如下: scene:自定义js/css对应的场景值。如scene=recordScene,会加载 recordScene 场景对应的 js/css,这样就可以自定义录制页面的元素。 lng:录制页面对应的语种。如lng=en,则录制界面为en。(枚举值:en,zh,zh-TW,jp,ar,kr,vi) customToken:录制页面中涉及客户自己的服务需要鉴权时进行配置。一般情况下,无需配置。",
6868
+ "example": "{\"scene\":\"test\",\"lng\":\"zh\",\"customToken\":\"sajdlfjasdglweqirouoiu\"}",
6850
6869
  "member": "string",
6851
6870
  "name": "RecordScene",
6852
6871
  "required": false,
@@ -6887,6 +6906,15 @@
6887
6906
  "name": "SubtitlesTranscription",
6888
6907
  "required": false,
6889
6908
  "type": "int"
6909
+ },
6910
+ {
6911
+ "disabled": false,
6912
+ "document": "嘉宾Id列表。当圆桌会议模式(RoomType==3)时生效",
6913
+ "example": "[\"azsdasfsdfsd\",\"asefawefewf\"]",
6914
+ "member": "string",
6915
+ "name": "Guests",
6916
+ "required": false,
6917
+ "type": "list"
6890
6918
  }
6891
6919
  ],
6892
6920
  "usage": "in"
@@ -537,6 +537,58 @@ def doImportKeyPair(args, parsed_globals):
537
537
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
538
538
 
539
539
 
540
+ def doDescribeImagesToShare(args, parsed_globals):
541
+ g_param = parse_global_arg(parsed_globals)
542
+
543
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
544
+ cred = credential.CVMRoleCredential()
545
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
546
+ cred = credential.STSAssumeRoleCredential(
547
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
548
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
549
+ )
550
+ 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):
551
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
552
+ else:
553
+ cred = credential.Credential(
554
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
555
+ )
556
+ http_profile = HttpProfile(
557
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
558
+ reqMethod="POST",
559
+ endpoint=g_param[OptionsDefine.Endpoint],
560
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
561
+ )
562
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
563
+ if g_param[OptionsDefine.Language]:
564
+ profile.language = g_param[OptionsDefine.Language]
565
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
566
+ client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
567
+ client._sdkVersion += ("_CLI_" + __version__)
568
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
569
+ model = models.DescribeImagesToShareRequest()
570
+ model.from_json_string(json.dumps(args))
571
+ start_time = time.time()
572
+ while True:
573
+ rsp = client.DescribeImagesToShare(model)
574
+ result = rsp.to_json_string()
575
+ try:
576
+ json_obj = json.loads(result)
577
+ except TypeError as e:
578
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
579
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
580
+ break
581
+ cur_time = time.time()
582
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
583
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
584
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
585
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
586
+ else:
587
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
588
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
589
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
590
+
591
+
540
592
  def doInquirePriceCreateDisks(args, parsed_globals):
541
593
  g_param = parse_global_arg(parsed_globals)
542
594
 
@@ -2773,6 +2825,58 @@ def doDetachDisks(args, parsed_globals):
2773
2825
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2774
2826
 
2775
2827
 
2828
+ def doModifyImageSharePermission(args, parsed_globals):
2829
+ g_param = parse_global_arg(parsed_globals)
2830
+
2831
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2832
+ cred = credential.CVMRoleCredential()
2833
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2834
+ cred = credential.STSAssumeRoleCredential(
2835
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2836
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2837
+ )
2838
+ 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):
2839
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2840
+ else:
2841
+ cred = credential.Credential(
2842
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2843
+ )
2844
+ http_profile = HttpProfile(
2845
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2846
+ reqMethod="POST",
2847
+ endpoint=g_param[OptionsDefine.Endpoint],
2848
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2849
+ )
2850
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2851
+ if g_param[OptionsDefine.Language]:
2852
+ profile.language = g_param[OptionsDefine.Language]
2853
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2854
+ client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
2855
+ client._sdkVersion += ("_CLI_" + __version__)
2856
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2857
+ model = models.ModifyImageSharePermissionRequest()
2858
+ model.from_json_string(json.dumps(args))
2859
+ start_time = time.time()
2860
+ while True:
2861
+ rsp = client.ModifyImageSharePermission(model)
2862
+ result = rsp.to_json_string()
2863
+ try:
2864
+ json_obj = json.loads(result)
2865
+ except TypeError as e:
2866
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2867
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2868
+ break
2869
+ cur_time = time.time()
2870
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2871
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2872
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2873
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2874
+ else:
2875
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2876
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2877
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2878
+
2879
+
2776
2880
  def doStartDockerContainers(args, parsed_globals):
2777
2881
  g_param = parse_global_arg(parsed_globals)
2778
2882
 
@@ -5654,6 +5758,7 @@ ACTION_MAP = {
5654
5758
  "ModifyDisksRenewFlag": doModifyDisksRenewFlag,
5655
5759
  "RenameDockerContainer": doRenameDockerContainer,
5656
5760
  "ImportKeyPair": doImportKeyPair,
5761
+ "DescribeImagesToShare": doDescribeImagesToShare,
5657
5762
  "InquirePriceCreateDisks": doInquirePriceCreateDisks,
5658
5763
  "TerminateInstances": doTerminateInstances,
5659
5764
  "DescribeBundleDiscount": doDescribeBundleDiscount,
@@ -5697,6 +5802,7 @@ ACTION_MAP = {
5697
5802
  "CreateBlueprint": doCreateBlueprint,
5698
5803
  "DescribeDockerActivities": doDescribeDockerActivities,
5699
5804
  "DetachDisks": doDetachDisks,
5805
+ "ModifyImageSharePermission": doModifyImageSharePermission,
5700
5806
  "StartDockerContainers": doStartDockerContainers,
5701
5807
  "DescribeModifyInstanceBundles": doDescribeModifyInstanceBundles,
5702
5808
  "CreateKeyPair": doCreateKeyPair,
@@ -336,6 +336,13 @@
336
336
  "output": "DescribeGeneralResourceQuotasResponse",
337
337
  "status": "online"
338
338
  },
339
+ "DescribeImagesToShare": {
340
+ "document": "本接口 (DescribeImagesToShare) 用于查询CVM的自定义镜像列表共享到轻量应用服务器。",
341
+ "input": "DescribeImagesToShareRequest",
342
+ "name": "查询CVM镜像列表",
343
+ "output": "DescribeImagesToShareResponse",
344
+ "status": "online"
345
+ },
339
346
  "DescribeInstanceVncUrl": {
340
347
  "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```",
341
348
  "input": "DescribeInstanceVncUrlRequest",
@@ -574,6 +581,13 @@
574
581
  "output": "ModifyFirewallTemplateResponse",
575
582
  "status": "online"
576
583
  },
584
+ "ModifyImageSharePermission": {
585
+ "document": "本接口 (ModifyImageSharePermission) 用于共享和取消共享CVM自定义镜像到轻量应用服务器服务。\nCVM镜像共享到轻量应用服务器镜像需要满足如下条件:\n1.已共享过的镜像不支持再次共享。\n2.外部导入的镜像不支持共享。\n3.整机镜像不支持共享。\n4.镜像要支持Cloudinit才支持共享。\n5.镜像的Platform和OsName要满足。\n6.NORMAL状态的镜像才支持共享。",
586
+ "input": "ModifyImageSharePermissionRequest",
587
+ "name": "修改CVM镜像共享信息",
588
+ "output": "ModifyImageSharePermissionResponse",
589
+ "status": "online"
590
+ },
577
591
  "ModifyInstancesAttribute": {
578
592
  "document": "本接口(ModifyInstancesAttribute)用于修改实例的属性。\n* “实例名称”仅为方便用户自己管理之用。\n* 支持批量操作。每次请求批量实例的上限为 100。",
579
593
  "input": "ModifyInstancesAttributeRequest",
@@ -4061,6 +4075,80 @@
4061
4075
  ],
4062
4076
  "type": "object"
4063
4077
  },
4078
+ "DescribeImagesToShareRequest": {
4079
+ "document": "DescribeImagesToShare请求参数结构体",
4080
+ "members": [
4081
+ {
4082
+ "disabled": false,
4083
+ "document": "CVM镜像 ID 列表。可通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回值中的ImageId获取。",
4084
+ "example": "[\"img-xksdu822\"]",
4085
+ "member": "string",
4086
+ "name": "ImageIds",
4087
+ "required": false,
4088
+ "type": "list"
4089
+ },
4090
+ {
4091
+ "disabled": false,
4092
+ "document": "偏移量,默认为 0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/product/1207/47578)中的相关小节。",
4093
+ "example": "0",
4094
+ "member": "int64",
4095
+ "name": "Offset",
4096
+ "required": false,
4097
+ "type": "int"
4098
+ },
4099
+ {
4100
+ "disabled": false,
4101
+ "document": "返回数量,默认为 20,最大值为 100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/product/1207/47578)中的相关小节。",
4102
+ "example": "1",
4103
+ "member": "int64",
4104
+ "name": "Limit",
4105
+ "required": false,
4106
+ "type": "int"
4107
+ },
4108
+ {
4109
+ "disabled": false,
4110
+ "document": "过滤器列表。\n<li>image-id</li>按照【CVM镜像ID】进行过滤。\n类型:String\n必选:否\n\n<li>image-name</li>按照【CVM镜像名称】进行过滤。\n类型:String\n必选:否\n\n<li>image-type</li>按照【CVM镜像类型】进行过滤。\n类型:String\n必选:否\n取值范围:\nPRIVATE_IMAGE: 私有镜像 (本账户创建的镜像)\nPUBLIC_IMAGE: 公共镜像 (腾讯云官方镜像)\nSHARED_IMAGE: 共享镜像(其他账户共享给本账户的镜像) 。\n\n每次请求的 Filters 的上限为 10,Filter.Values 的上限为 5。\n参数不可以同时指定ImageIds和Filters。",
4111
+ "example": "无",
4112
+ "member": "Filter",
4113
+ "name": "Filters",
4114
+ "required": false,
4115
+ "type": "list"
4116
+ }
4117
+ ],
4118
+ "type": "object"
4119
+ },
4120
+ "DescribeImagesToShareResponse": {
4121
+ "document": "DescribeImagesToShare返回参数结构体",
4122
+ "members": [
4123
+ {
4124
+ "disabled": false,
4125
+ "document": "符合条件的镜像数量。",
4126
+ "example": "1",
4127
+ "member": "int64",
4128
+ "name": "TotalCount",
4129
+ "required": true,
4130
+ "type": "int",
4131
+ "value_allowed_null": false
4132
+ },
4133
+ {
4134
+ "disabled": false,
4135
+ "document": "CVM镜像详细信息列表。",
4136
+ "example": "无",
4137
+ "member": "Image",
4138
+ "name": "ImageSet",
4139
+ "required": true,
4140
+ "type": "list",
4141
+ "value_allowed_null": false
4142
+ },
4143
+ {
4144
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4145
+ "member": "string",
4146
+ "name": "RequestId",
4147
+ "type": "string"
4148
+ }
4149
+ ],
4150
+ "type": "object"
4151
+ },
4064
4152
  "DescribeInstanceVncUrlRequest": {
4065
4153
  "document": "DescribeInstanceVncUrl请求参数结构体",
4066
4154
  "members": [
@@ -6453,6 +6541,152 @@
6453
6541
  ],
6454
6542
  "usage": "out"
6455
6543
  },
6544
+ "Image": {
6545
+ "document": "CVM镜像信息。",
6546
+ "members": [
6547
+ {
6548
+ "disabled": false,
6549
+ "document": "CVM镜像 ID ,是Image的唯一标识。",
6550
+ "example": "img-cs2rrmp0",
6551
+ "member": "string",
6552
+ "name": "ImageId",
6553
+ "required": true,
6554
+ "type": "string",
6555
+ "value_allowed_null": false
6556
+ },
6557
+ {
6558
+ "disabled": false,
6559
+ "document": "镜像名称。",
6560
+ "example": "test-image",
6561
+ "member": "string",
6562
+ "name": "ImageName",
6563
+ "required": true,
6564
+ "type": "string",
6565
+ "value_allowed_null": false
6566
+ },
6567
+ {
6568
+ "disabled": false,
6569
+ "document": "镜像描述。",
6570
+ "example": "test-image",
6571
+ "member": "string",
6572
+ "name": "ImageDescription",
6573
+ "required": true,
6574
+ "type": "string",
6575
+ "value_allowed_null": false
6576
+ },
6577
+ {
6578
+ "disabled": false,
6579
+ "document": "镜像大小。单位GB。",
6580
+ "example": "50",
6581
+ "member": "int64",
6582
+ "name": "ImageSize",
6583
+ "required": true,
6584
+ "type": "int",
6585
+ "value_allowed_null": false
6586
+ },
6587
+ {
6588
+ "disabled": false,
6589
+ "document": "镜像来源。\n<li>CREATE_IMAGE:自定义镜像</li>\n<li>EXTERNAL_IMPORT:外部导入镜像</li>",
6590
+ "example": "CREATE_IMAGE",
6591
+ "member": "string",
6592
+ "name": "ImageSource",
6593
+ "required": true,
6594
+ "type": "string",
6595
+ "value_allowed_null": false
6596
+ },
6597
+ {
6598
+ "disabled": false,
6599
+ "document": "镜像分类\n<li>SystemImage:系统盘镜像</li>\n<li>InstanceImage:整机镜像</li>",
6600
+ "example": "SystemImage",
6601
+ "member": "string",
6602
+ "name": "ImageClass",
6603
+ "required": true,
6604
+ "type": "string",
6605
+ "value_allowed_null": false
6606
+ },
6607
+ {
6608
+ "disabled": false,
6609
+ "document": "镜像状态\nCREATING:创建中\nNORMAL:正常\nCREATEFAILED:创建失败\nUSING:使用中\nSYNCING:同步中\nIMPORTING:导入中\nIMPORTFAILED:导入失败",
6610
+ "example": "NORMAL",
6611
+ "member": "string",
6612
+ "name": "ImageState",
6613
+ "required": true,
6614
+ "type": "string",
6615
+ "value_allowed_null": false
6616
+ },
6617
+ {
6618
+ "disabled": false,
6619
+ "document": "镜像是否支持Cloudinit。",
6620
+ "example": "true",
6621
+ "member": "bool",
6622
+ "name": "IsSupportCloudinit",
6623
+ "required": true,
6624
+ "type": "bool",
6625
+ "value_allowed_null": false
6626
+ },
6627
+ {
6628
+ "disabled": false,
6629
+ "document": "镜像架构。",
6630
+ "example": "x86_64",
6631
+ "member": "string",
6632
+ "name": "Architecture",
6633
+ "required": true,
6634
+ "type": "string",
6635
+ "value_allowed_null": false
6636
+ },
6637
+ {
6638
+ "disabled": false,
6639
+ "document": "镜像操作系统。",
6640
+ "example": "Ubuntu Server 20.04 LTS 64bit",
6641
+ "member": "string",
6642
+ "name": "OsName",
6643
+ "required": true,
6644
+ "type": "string",
6645
+ "value_allowed_null": false
6646
+ },
6647
+ {
6648
+ "disabled": false,
6649
+ "document": "镜像来源平台。",
6650
+ "example": "Ubuntu",
6651
+ "member": "string",
6652
+ "name": "Platform",
6653
+ "required": true,
6654
+ "type": "string",
6655
+ "value_allowed_null": false
6656
+ },
6657
+ {
6658
+ "disabled": false,
6659
+ "document": "镜像创建时间。",
6660
+ "example": "2021-07-23T08:49:36Z",
6661
+ "member": "datetime_iso",
6662
+ "name": "CreatedTime",
6663
+ "required": true,
6664
+ "type": "string",
6665
+ "value_allowed_null": false
6666
+ },
6667
+ {
6668
+ "disabled": false,
6669
+ "document": "镜像是否可共享到轻量应用服务器。",
6670
+ "example": "true",
6671
+ "member": "bool",
6672
+ "name": "IsShareable",
6673
+ "required": true,
6674
+ "type": "bool",
6675
+ "value_allowed_null": false
6676
+ },
6677
+ {
6678
+ "disabled": false,
6679
+ "document": "不可共享的原因。",
6680
+ "example": "镜像已共享。",
6681
+ "member": "string",
6682
+ "name": "UnshareableReason",
6683
+ "required": true,
6684
+ "type": "string",
6685
+ "value_allowed_null": false
6686
+ }
6687
+ ],
6688
+ "usage": "out"
6689
+ },
6456
6690
  "ImportKeyPairRequest": {
6457
6691
  "document": "ImportKeyPair请求参数结构体",
6458
6692
  "members": [
@@ -8093,6 +8327,52 @@
8093
8327
  ],
8094
8328
  "type": "object"
8095
8329
  },
8330
+ "ModifyImageSharePermissionRequest": {
8331
+ "document": "ModifyImageSharePermission请求参数结构体",
8332
+ "members": [
8333
+ {
8334
+ "disabled": false,
8335
+ "document": "镜像 ID。可通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回值中的ImageId获取。",
8336
+ "example": "img-dw8adx",
8337
+ "member": "string",
8338
+ "name": "ImageId",
8339
+ "required": true,
8340
+ "type": "string"
8341
+ },
8342
+ {
8343
+ "disabled": false,
8344
+ "document": "共享属性,包括 SHARE,CANCEL。其中SHARE代表共享,CANCEL代表取消共享。",
8345
+ "example": "SHARE",
8346
+ "member": "string",
8347
+ "name": "Permission",
8348
+ "required": true,
8349
+ "type": "string"
8350
+ }
8351
+ ],
8352
+ "type": "object"
8353
+ },
8354
+ "ModifyImageSharePermissionResponse": {
8355
+ "document": "ModifyImageSharePermission返回参数结构体",
8356
+ "members": [
8357
+ {
8358
+ "disabled": false,
8359
+ "document": "CVM自定义镜像共享到轻量应用服务器后的镜像ID。\n注意:此字段可能返回 null,表示取不到有效值。",
8360
+ "example": "lhbp-xkeh87da",
8361
+ "member": "string",
8362
+ "name": "BlueprintId",
8363
+ "required": true,
8364
+ "type": "string",
8365
+ "value_allowed_null": true
8366
+ },
8367
+ {
8368
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
8369
+ "member": "string",
8370
+ "name": "RequestId",
8371
+ "type": "string"
8372
+ }
8373
+ ],
8374
+ "type": "object"
8375
+ },
8096
8376
  "ModifyInstancesAttributeRequest": {
8097
8377
  "document": "ModifyInstancesAttribute请求参数结构体",
8098
8378
  "members": [