tccli 3.0.909.1__py2.py3-none-any.whl → 3.0.910.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 (57) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cdn/v20180606/DescribeHttpsPackages.md +19 -18
  3. tccli/examples/cdn/v20180606/DescribeTrafficPackages.md +16 -14
  4. tccli/examples/cfs/v20190719/DescribeCfsFileSystems.md +31 -31
  5. tccli/examples/cfs/v20190719/UpdateCfsPGroup.md +1 -1
  6. tccli/examples/emr/v20190103/InquiryPriceRenewInstance.md +32 -1
  7. tccli/examples/es/v20180416/ModifyEsVipSecurityGroup.md +21 -0
  8. tccli/examples/ess/v20201111/CreateFlowReminds.md +3 -3
  9. tccli/examples/ess/v20201111/CreateFlowSignReview.md +2 -2
  10. tccli/examples/lcic/v20220817/DescribeDocument.md +52 -16
  11. tccli/examples/live/v20180801/DeleteLiveTranscodeTemplate.md +1 -1
  12. tccli/examples/monitor/v20180724/DeletePrometheusScrapeJobs.md +4 -4
  13. tccli/examples/monitor/v20180724/DescribeExporterIntegrations.md +5 -5
  14. tccli/examples/monitor/v20180724/DescribePrometheusAgents.md +10 -10
  15. tccli/examples/monitor/v20180724/DescribePrometheusScrapeJobs.md +8 -8
  16. tccli/examples/ocr/v20181119/DriverLicenseOCR.md +2 -2
  17. tccli/examples/vod/v20180717/DescribeRebuildMediaTemplates.md +2 -2
  18. tccli/examples/vod/v20180717/ModifyRebuildMediaTemplate.md +2 -2
  19. tccli/examples/vod/v20180717/RebuildMedia.md +2 -2
  20. tccli/examples/vod/v20180717/RebuildMediaByTemplate.md +2 -2
  21. tccli/examples/vpc/v20170312/DescribeSecurityGroups.md +1 -1
  22. tccli/examples/wedata/v20210820/DescribeColumnLineage.md +77 -0
  23. tccli/examples/wedata/v20210820/DescribeTableLineage.md +79 -0
  24. tccli/services/cdn/v20180606/api.json +49 -67
  25. tccli/services/cdn/v20180606/examples.json +3 -3
  26. tccli/services/cfs/v20190719/api.json +65 -26
  27. tccli/services/cfs/v20190719/examples.json +3 -3
  28. tccli/services/emr/v20190103/api.json +5 -12
  29. tccli/services/emr/v20190103/examples.json +7 -1
  30. tccli/services/es/es_client.py +65 -12
  31. tccli/services/es/v20180416/api.json +43 -0
  32. tccli/services/es/v20180416/examples.json +8 -0
  33. tccli/services/ess/v20201111/api.json +1 -1
  34. tccli/services/ess/v20201111/examples.json +3 -3
  35. tccli/services/essbasic/v20210526/api.json +9 -0
  36. tccli/services/lcic/v20220817/api.json +27 -16
  37. tccli/services/lcic/v20220817/examples.json +10 -4
  38. tccli/services/live/v20180801/api.json +3 -3
  39. tccli/services/live/v20180801/examples.json +1 -1
  40. tccli/services/monitor/v20180724/api.json +20 -24
  41. tccli/services/monitor/v20180724/examples.json +11 -11
  42. tccli/services/ocr/v20181119/api.json +22 -5
  43. tccli/services/ocr/v20181119/examples.json +1 -1
  44. tccli/services/tke/v20180525/api.json +14 -1
  45. tccli/services/tse/v20201207/api.json +20 -39
  46. tccli/services/vod/v20180717/api.json +33 -30
  47. tccli/services/vod/v20180717/examples.json +8 -8
  48. tccli/services/vpc/v20170312/api.json +21 -7
  49. tccli/services/vpc/v20170312/examples.json +1 -1
  50. tccli/services/wedata/v20210820/api.json +1146 -211
  51. tccli/services/wedata/v20210820/examples.json +16 -0
  52. tccli/services/wedata/wedata_client.py +106 -0
  53. {tccli-3.0.909.1.dist-info → tccli-3.0.910.1.dist-info}/METADATA +82 -3
  54. {tccli-3.0.909.1.dist-info → tccli-3.0.910.1.dist-info}/RECORD +57 -54
  55. {tccli-3.0.909.1.dist-info → tccli-3.0.910.1.dist-info}/WHEEL +0 -0
  56. {tccli-3.0.909.1.dist-info → tccli-3.0.910.1.dist-info}/entry_points.txt +0 -0
  57. {tccli-3.0.909.1.dist-info → tccli-3.0.910.1.dist-info}/license_files/LICENSE +0 -0
@@ -924,6 +924,33 @@
924
924
  "name": "Capacity",
925
925
  "required": false,
926
926
  "type": "int"
927
+ },
928
+ {
929
+ "disabled": false,
930
+ "document": "文件系统快照ID",
931
+ "example": "snapcfs-xx",
932
+ "member": "string",
933
+ "name": "SnapshotId",
934
+ "required": false,
935
+ "type": "string"
936
+ },
937
+ {
938
+ "disabled": false,
939
+ "document": "定期快照策略ID",
940
+ "example": "asp-xx",
941
+ "member": "string",
942
+ "name": "AutoSnapshotPolicyId",
943
+ "required": false,
944
+ "type": "string"
945
+ },
946
+ {
947
+ "disabled": false,
948
+ "document": "是否开启默认扩容,仅Turbo类型文件存储支持",
949
+ "example": "False",
950
+ "member": "bool",
951
+ "name": "EnableAutoScaleUp",
952
+ "required": false,
953
+ "type": "bool"
927
954
  }
928
955
  ],
929
956
  "type": "object"
@@ -937,6 +964,7 @@
937
964
  "example": "2017-02-24 11:28:12",
938
965
  "member": "string",
939
966
  "name": "CreationTime",
967
+ "output_required": true,
940
968
  "type": "string",
941
969
  "value_allowed_null": false
942
970
  },
@@ -946,6 +974,7 @@
946
974
  "example": "QcloudCfs",
947
975
  "member": "string",
948
976
  "name": "CreationToken",
977
+ "output_required": true,
949
978
  "type": "string",
950
979
  "value_allowed_null": false
951
980
  },
@@ -955,6 +984,7 @@
955
984
  "example": "cfs-abc",
956
985
  "member": "string",
957
986
  "name": "FileSystemId",
987
+ "output_required": true,
958
988
  "type": "string",
959
989
  "value_allowed_null": false
960
990
  },
@@ -964,6 +994,7 @@
964
994
  "example": "AVAILABLE",
965
995
  "member": "string",
966
996
  "name": "LifeCycleState",
997
+ "output_required": true,
967
998
  "type": "string",
968
999
  "value_allowed_null": false
969
1000
  },
@@ -973,6 +1004,7 @@
973
1004
  "example": "1000",
974
1005
  "member": "uint64",
975
1006
  "name": "SizeByte",
1007
+ "output_required": true,
976
1008
  "type": "int",
977
1009
  "value_allowed_null": false
978
1010
  },
@@ -982,6 +1014,7 @@
982
1014
  "example": "800001",
983
1015
  "member": "uint64",
984
1016
  "name": "ZoneId",
1017
+ "output_required": true,
985
1018
  "type": "int",
986
1019
  "value_allowed_null": false
987
1020
  },
@@ -991,6 +1024,7 @@
991
1024
  "example": "QcloudCfs",
992
1025
  "member": "string",
993
1026
  "name": "FsName",
1027
+ "output_required": true,
994
1028
  "type": "string",
995
1029
  "value_allowed_null": false
996
1030
  },
@@ -1000,6 +1034,7 @@
1000
1034
  "example": "False",
1001
1035
  "member": "bool",
1002
1036
  "name": "Encrypted",
1037
+ "output_required": true,
1003
1038
  "type": "bool",
1004
1039
  "value_allowed_null": false
1005
1040
  },
@@ -2012,7 +2047,6 @@
2012
2047
  "document": "DescribeCfsFileSystems请求参数结构体",
2013
2048
  "members": [
2014
2049
  {
2015
- "default": "",
2016
2050
  "disabled": false,
2017
2051
  "document": "文件系统 ID",
2018
2052
  "example": "cfs-12345",
@@ -2022,7 +2056,6 @@
2022
2056
  "type": "string"
2023
2057
  },
2024
2058
  {
2025
- "default": "",
2026
2059
  "disabled": false,
2027
2060
  "document": "私有网络(VPC) ID",
2028
2061
  "example": "vpc-12345",
@@ -2032,7 +2065,6 @@
2032
2065
  "type": "string"
2033
2066
  },
2034
2067
  {
2035
- "default": "",
2036
2068
  "disabled": false,
2037
2069
  "document": "子网 ID",
2038
2070
  "example": "subnet-12345",
@@ -2053,7 +2085,7 @@
2053
2085
  "example": "无",
2054
2086
  "member": "FileSystemInfo",
2055
2087
  "name": "FileSystems",
2056
- "required": true,
2088
+ "output_required": true,
2057
2089
  "type": "list",
2058
2090
  "value_allowed_null": false
2059
2091
  },
@@ -2063,7 +2095,7 @@
2063
2095
  "example": "1",
2064
2096
  "member": "uint64",
2065
2097
  "name": "TotalCount",
2066
- "required": true,
2098
+ "output_required": true,
2067
2099
  "type": "int",
2068
2100
  "value_allowed_null": false
2069
2101
  },
@@ -3784,7 +3816,7 @@
3784
3816
  "example": "xx",
3785
3817
  "member": "string",
3786
3818
  "name": "CreationTime",
3787
- "required": true,
3819
+ "output_required": true,
3788
3820
  "type": "string",
3789
3821
  "value_allowed_null": false
3790
3822
  },
@@ -3794,7 +3826,7 @@
3794
3826
  "example": "xx",
3795
3827
  "member": "string",
3796
3828
  "name": "SnapshotName",
3797
- "required": true,
3829
+ "output_required": true,
3798
3830
  "type": "string",
3799
3831
  "value_allowed_null": false
3800
3832
  },
@@ -3804,7 +3836,7 @@
3804
3836
  "example": "snapcfs-xx",
3805
3837
  "member": "string",
3806
3838
  "name": "SnapshotId",
3807
- "required": true,
3839
+ "output_required": true,
3808
3840
  "type": "string",
3809
3841
  "value_allowed_null": false
3810
3842
  },
@@ -3814,7 +3846,7 @@
3814
3846
  "example": "available ",
3815
3847
  "member": "string",
3816
3848
  "name": "Status",
3817
- "required": true,
3849
+ "output_required": true,
3818
3850
  "type": "string",
3819
3851
  "value_allowed_null": false
3820
3852
  },
@@ -3824,7 +3856,7 @@
3824
3856
  "example": "beijing",
3825
3857
  "member": "string",
3826
3858
  "name": "RegionName",
3827
- "required": true,
3859
+ "output_required": true,
3828
3860
  "type": "string",
3829
3861
  "value_allowed_null": false
3830
3862
  },
@@ -3834,7 +3866,7 @@
3834
3866
  "example": "cfs-xx",
3835
3867
  "member": "string",
3836
3868
  "name": "FileSystemId",
3837
- "required": true,
3869
+ "output_required": true,
3838
3870
  "type": "string",
3839
3871
  "value_allowed_null": false
3840
3872
  },
@@ -3844,7 +3876,7 @@
3844
3876
  "example": "11",
3845
3877
  "member": "uint64",
3846
3878
  "name": "Size",
3847
- "required": true,
3879
+ "output_required": true,
3848
3880
  "type": "int",
3849
3881
  "value_allowed_null": false
3850
3882
  },
@@ -3854,7 +3886,7 @@
3854
3886
  "example": "12",
3855
3887
  "member": "uint64",
3856
3888
  "name": "AliveDay",
3857
- "required": true,
3889
+ "output_required": true,
3858
3890
  "type": "int",
3859
3891
  "value_allowed_null": false
3860
3892
  },
@@ -3864,7 +3896,7 @@
3864
3896
  "example": "1",
3865
3897
  "member": "uint64",
3866
3898
  "name": "Percent",
3867
- "required": true,
3899
+ "output_required": true,
3868
3900
  "type": "int",
3869
3901
  "value_allowed_null": false
3870
3902
  },
@@ -3874,7 +3906,7 @@
3874
3906
  "example": "21211",
3875
3907
  "member": "uint64",
3876
3908
  "name": "AppId",
3877
- "required": true,
3909
+ "output_required": true,
3878
3910
  "type": "int",
3879
3911
  "value_allowed_null": false
3880
3912
  },
@@ -3884,7 +3916,7 @@
3884
3916
  "example": "xx",
3885
3917
  "member": "string",
3886
3918
  "name": "DeleteTime",
3887
- "required": true,
3919
+ "output_required": true,
3888
3920
  "type": "string",
3889
3921
  "value_allowed_null": false
3890
3922
  },
@@ -3894,7 +3926,7 @@
3894
3926
  "example": "xx",
3895
3927
  "member": "string",
3896
3928
  "name": "FsName",
3897
- "required": true,
3929
+ "output_required": true,
3898
3930
  "type": "string",
3899
3931
  "value_allowed_null": false
3900
3932
  },
@@ -3904,7 +3936,7 @@
3904
3936
  "example": "无",
3905
3937
  "member": "TagInfo",
3906
3938
  "name": "Tags",
3907
- "required": true,
3939
+ "output_required": true,
3908
3940
  "type": "list",
3909
3941
  "value_allowed_null": false
3910
3942
  },
@@ -3914,7 +3946,17 @@
3914
3946
  "example": "Turbo",
3915
3947
  "member": "string",
3916
3948
  "name": "SnapshotType",
3917
- "required": false,
3949
+ "output_required": true,
3950
+ "type": "string",
3951
+ "value_allowed_null": true
3952
+ },
3953
+ {
3954
+ "disabled": false,
3955
+ "document": "实际快照时间,这里主要是为了标识跨地域复制快照的时间快照时间\n注意:此字段可能返回 null,表示取不到有效值。",
3956
+ "example": "2023-05-16 14:45:15",
3957
+ "member": "string",
3958
+ "name": "SnapshotTime",
3959
+ "output_required": true,
3918
3960
  "type": "string",
3919
3961
  "value_allowed_null": true
3920
3962
  }
@@ -4423,7 +4465,6 @@
4423
4465
  "document": "UpdateCfsPGroup请求参数结构体",
4424
4466
  "members": [
4425
4467
  {
4426
- "default": "",
4427
4468
  "disabled": false,
4428
4469
  "document": "权限组 ID",
4429
4470
  "example": "pgroup-12345",
@@ -4433,7 +4474,6 @@
4433
4474
  "type": "string"
4434
4475
  },
4435
4476
  {
4436
- "default": "",
4437
4477
  "disabled": false,
4438
4478
  "document": "权限组名称,1-64个字符且只能为中文,字母,数字,下划线或横线",
4439
4479
  "example": "test",
@@ -4443,9 +4483,8 @@
4443
4483
  "type": "string"
4444
4484
  },
4445
4485
  {
4446
- "default": "",
4447
4486
  "disabled": false,
4448
- "document": "权限组描述信息,1-255个字符",
4487
+ "document": "权限组描述信息,1-255个字符。 Name和Descinfo不能同时为空",
4449
4488
  "example": "test",
4450
4489
  "member": "string",
4451
4490
  "name": "DescInfo",
@@ -4464,7 +4503,7 @@
4464
4503
  "example": "pgroup-12345",
4465
4504
  "member": "string",
4466
4505
  "name": "PGroupId",
4467
- "required": true,
4506
+ "output_required": true,
4468
4507
  "type": "string",
4469
4508
  "value_allowed_null": false
4470
4509
  },
@@ -4474,7 +4513,7 @@
4474
4513
  "example": "test",
4475
4514
  "member": "string",
4476
4515
  "name": "Name",
4477
- "required": true,
4516
+ "output_required": true,
4478
4517
  "type": "string",
4479
4518
  "value_allowed_null": false
4480
4519
  },
@@ -4484,7 +4523,7 @@
4484
4523
  "example": "test",
4485
4524
  "member": "string",
4486
4525
  "name": "DescInfo",
4487
- "required": true,
4526
+ "output_required": true,
4488
4527
  "type": "string",
4489
4528
  "value_allowed_null": false
4490
4529
  },
@@ -154,9 +154,9 @@
154
154
  ],
155
155
  "DescribeCfsFileSystems": [
156
156
  {
157
- "document": "",
157
+ "document": "查询文件系统",
158
158
  "input": "POST / HTTP/1.1\nHost: cfs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCfsFileSystems\n<公共请求参数>\n\n{\n \"FileSystemId\": \"cfs-12345\"\n}",
159
- "output": "{\n \"Response\": {\n \"RequestId\": \"fjo8aejo-fjei-32eu-2je9-fhue83nd81\",\n \"TotalCount\": 1,\n \"FileSystems\": [\n {\n \"Protocol\": \"NFS\",\n \"Zone\": \"ap-guangzhou-3\",\n \"CreationToken\": \"test_fs\",\n \"StorageType\": \"SD\",\n \"Encrypted\": false,\n \"CreationTime\": \"2019-07-29 18:57:17\",\n \"StorageResourcePkg\": \"\",\n \"ZoneId\": 100003,\n \"SizeByte\": 0,\n \"FileSystemId\": \"cfs-12345\",\n \"KmsKeyId\": \"\",\n \"LifeCycleState\": \"mounting\",\n \"Capacity\": 1000,\n \"PGroup\": {\n \"PGroupId\": \"pgroupbasic\",\n \"Name\": \"默认权限组\"\n },\n \"SizeLimit\": 0,\n \"BandwidthResourcePkg\": \"\",\n \"FsName\": \"test_fs\",\n \"AppId\": 12700000,\n \"BandwidthLimit\": 200,\n \"TieringDetail\": {\n \"TieringSizeInBytes\": 0\n },\n \"TieringState\": \"xx\",\n \"Tags\": [\n {\n \"TagKey\": \"xx\",\n \"TagValue\": \"xx\"\n }\n ]\n }\n ]\n }\n}",
159
+ "output": "{\n \"Response\": {\n \"FileSystems\": [\n {\n \"CreationTime\": \"abc\",\n \"CreationToken\": \"abc\",\n \"FileSystemId\": \"abc\",\n \"LifeCycleState\": \"abc\",\n \"SizeByte\": 1,\n \"SizeLimit\": 1,\n \"ZoneId\": 1,\n \"Zone\": \"abc\",\n \"Protocol\": \"abc\",\n \"StorageType\": \"abc\",\n \"StorageResourcePkg\": \"abc\",\n \"BandwidthResourcePkg\": \"abc\",\n \"PGroup\": {\n \"PGroupId\": \"abc\",\n \"Name\": \"abc\"\n },\n \"FsName\": \"abc\",\n \"Encrypted\": true,\n \"KmsKeyId\": \"abc\",\n \"AppId\": 0,\n \"BandwidthLimit\": 0,\n \"Capacity\": 1,\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"TieringState\": \"abc\",\n \"TieringDetail\": {\n \"TieringSizeInBytes\": 0\n }\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"abc\"\n }\n}",
160
160
  "title": "查询文件系统"
161
161
  }
162
162
  ],
@@ -314,7 +314,7 @@
314
314
  ],
315
315
  "UpdateCfsPGroup": [
316
316
  {
317
- "document": "",
317
+ "document": "更新权限组信息",
318
318
  "input": "POST / HTTP/1.1\nHost: cfs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateCfsPGroup\n<公共请求参数>\n\n{\n \"PGroupId\": \"pgroup-12345\",\n \"DescInfo\": \"test\",\n \"Name\": \"test\"\n}",
319
319
  "output": "{\n \"Response\": {\n \"RequestId\": \"fjo8aejo-fjei-32eu-2je9-fhue83nd81\",\n \"PGroupId\": \"pgroup-12345\",\n \"Name\": \"test\",\n \"DescInfo\": \"test\"\n }\n}",
320
320
  "title": "更新权限组信息"
@@ -4862,9 +4862,8 @@
4862
4862
  "document": "InquiryPriceRenewInstance请求参数结构体",
4863
4863
  "members": [
4864
4864
  {
4865
- "default": "",
4866
4865
  "disabled": false,
4867
- "document": "实例续费的时长。需要结合TimeUnit一起使用。1表示续费1一个月",
4866
+ "document": "实例续费的时长。需要结合TimeUnit一起使用。1表示续费一个月",
4868
4867
  "example": "1",
4869
4868
  "member": "uint64",
4870
4869
  "name": "TimeSpan",
@@ -4872,7 +4871,6 @@
4872
4871
  "type": "int"
4873
4872
  },
4874
4873
  {
4875
- "default": "",
4876
4874
  "disabled": false,
4877
4875
  "document": "待续费节点的资源ID列表。资源ID形如:emr-vm-xxxxxxxx。有效的资源ID可通过登录[控制台](https://console.cloud.tencent.com/emr/static/hardware)查询。",
4878
4876
  "example": "[\"emr-vm-jv1s4zas\\r\\n\"]",
@@ -4882,7 +4880,6 @@
4882
4880
  "type": "list"
4883
4881
  },
4884
4882
  {
4885
- "default": "",
4886
4883
  "disabled": false,
4887
4884
  "document": "实例所在的位置。通过该参数可以指定实例所属可用区,所属项目等属性。",
4888
4885
  "example": "无",
@@ -4892,7 +4889,6 @@
4892
4889
  "type": "object"
4893
4890
  },
4894
4891
  {
4895
- "default": "",
4896
4892
  "disabled": false,
4897
4893
  "document": "实例计费模式。此处只支持取值为1,表示包年包月。",
4898
4894
  "example": "1",
@@ -4902,7 +4898,6 @@
4902
4898
  "type": "int"
4903
4899
  },
4904
4900
  {
4905
- "default": "",
4906
4901
  "disabled": false,
4907
4902
  "document": "实例续费的时间单位。取值范围:\n<li>m:表示月份。</li>",
4908
4903
  "example": "m",
@@ -4912,7 +4907,6 @@
4912
4907
  "type": "string"
4913
4908
  },
4914
4909
  {
4915
- "default": "",
4916
4910
  "disabled": false,
4917
4911
  "document": "货币种类。取值范围:\n<li>CNY:表示人民币。\u0007</li>",
4918
4912
  "example": "CNY",
@@ -4922,7 +4916,6 @@
4922
4916
  "type": "string"
4923
4917
  },
4924
4918
  {
4925
- "default": "",
4926
4919
  "disabled": false,
4927
4920
  "document": "是否按量转包年包月。0:否,1:是。",
4928
4921
  "example": "1",
@@ -4943,7 +4936,7 @@
4943
4936
  "example": "898.9",
4944
4937
  "member": "float",
4945
4938
  "name": "OriginalCost",
4946
- "required": true,
4939
+ "output_required": true,
4947
4940
  "type": "float",
4948
4941
  "value_allowed_null": true
4949
4942
  },
@@ -4953,7 +4946,7 @@
4953
4946
  "example": "596.54",
4954
4947
  "member": "float",
4955
4948
  "name": "DiscountCost",
4956
- "required": true,
4949
+ "output_required": true,
4957
4950
  "type": "float",
4958
4951
  "value_allowed_null": true
4959
4952
  },
@@ -4963,7 +4956,7 @@
4963
4956
  "example": "m",
4964
4957
  "member": "string",
4965
4958
  "name": "TimeUnit",
4966
- "required": true,
4959
+ "output_required": true,
4967
4960
  "type": "string",
4968
4961
  "value_allowed_null": true
4969
4962
  },
@@ -4973,7 +4966,7 @@
4973
4966
  "example": "1",
4974
4967
  "member": "int64",
4975
4968
  "name": "TimeSpan",
4976
- "required": true,
4969
+ "output_required": true,
4977
4970
  "type": "int",
4978
4971
  "value_allowed_null": true
4979
4972
  },
@@ -146,10 +146,16 @@
146
146
  ],
147
147
  "InquiryPriceRenewInstance": [
148
148
  {
149
- "document": "",
149
+ "document": "续费询价示例",
150
150
  "input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRenewInstance\n<公共请求参数>\n\n{\n \"Placement\": {\n \"ProjectId\": \"0\",\n \"Zone\": \"ap-guangzhou-4\"\n },\n \"Currency\": \"CNY\",\n \"TimeSpan\": \"1\",\n \"PayMode\": \"1\",\n \"ResourceIds\": [\n \"emr-vm-jv1s4zas\"\n ],\n \"TimeUnit\": \"m\"\n}",
151
151
  "output": "{\n \"Response\": {\n \"DiscountCost\": 596.54,\n \"OriginalCost\": 898.9,\n \"RequestId\": \"223c838e-ce27-4adf-9a41-89661fe7ad21\",\n \"TimeSpan\": 1,\n \"TimeUnit\": \"m\"\n }\n}",
152
152
  "title": "续费询价示例"
153
+ },
154
+ {
155
+ "document": "续费询价",
156
+ "input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquiryPriceRenewInstance\n<公共请求参数>\n\n{\n \"TimeUnit\": \"abc\",\n \"TimeSpan\": 1,\n \"ResourceIds\": [\n \"abc\"\n ],\n \"Currency\": \"abc\",\n \"Placement\": {\n \"ProjectId\": 0,\n \"Zone\": \"abc\"\n },\n \"PayMode\": 0,\n \"ModifyPayMode\": 0\n}",
157
+ "output": "{\n \"Response\": {\n \"OriginalCost\": 0,\n \"DiscountCost\": 0,\n \"TimeUnit\": \"abc\",\n \"TimeSpan\": 0,\n \"RequestId\": \"abc\"\n }\n}",
158
+ "title": "续费询价"
153
159
  }
154
160
  ],
155
161
  "InquiryPriceScaleOutInstance": [
@@ -953,7 +953,7 @@ def doRestartKibana(args, parsed_globals):
953
953
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
954
954
 
955
955
 
956
- def doSaveAndDeployLogstashPipeline(args, parsed_globals):
956
+ def doUpdateLogstashPipelineDesc(args, parsed_globals):
957
957
  g_param = parse_global_arg(parsed_globals)
958
958
 
959
959
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -982,11 +982,11 @@ def doSaveAndDeployLogstashPipeline(args, parsed_globals):
982
982
  client = mod.EsClient(cred, g_param[OptionsDefine.Region], profile)
983
983
  client._sdkVersion += ("_CLI_" + __version__)
984
984
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
985
- model = models.SaveAndDeployLogstashPipelineRequest()
985
+ model = models.UpdateLogstashPipelineDescRequest()
986
986
  model.from_json_string(json.dumps(args))
987
987
  start_time = time.time()
988
988
  while True:
989
- rsp = client.SaveAndDeployLogstashPipeline(model)
989
+ rsp = client.UpdateLogstashPipelineDesc(model)
990
990
  result = rsp.to_json_string()
991
991
  try:
992
992
  json_obj = json.loads(result)
@@ -1057,6 +1057,58 @@ def doDescribeLogstashInstanceOperations(args, parsed_globals):
1057
1057
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1058
1058
 
1059
1059
 
1060
+ def doDescribeViews(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('-', '_')]
1069
+ )
1070
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_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.EsClient(cred, g_param[OptionsDefine.Region], profile)
1087
+ client._sdkVersion += ("_CLI_" + __version__)
1088
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1089
+ model = models.DescribeViewsRequest()
1090
+ model.from_json_string(json.dumps(args))
1091
+ start_time = time.time()
1092
+ while True:
1093
+ rsp = client.DescribeViews(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
+
1060
1112
  def doUpdateLogstashInstance(args, parsed_globals):
1061
1113
  g_param = parse_global_arg(parsed_globals)
1062
1114
 
@@ -1265,7 +1317,7 @@ def doDescribeLogstashInstances(args, parsed_globals):
1265
1317
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1266
1318
 
1267
1319
 
1268
- def doDescribeViews(args, parsed_globals):
1320
+ def doModifyEsVipSecurityGroup(args, parsed_globals):
1269
1321
  g_param = parse_global_arg(parsed_globals)
1270
1322
 
1271
1323
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1294,11 +1346,11 @@ def doDescribeViews(args, parsed_globals):
1294
1346
  client = mod.EsClient(cred, g_param[OptionsDefine.Region], profile)
1295
1347
  client._sdkVersion += ("_CLI_" + __version__)
1296
1348
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1297
- model = models.DescribeViewsRequest()
1349
+ model = models.ModifyEsVipSecurityGroupRequest()
1298
1350
  model.from_json_string(json.dumps(args))
1299
1351
  start_time = time.time()
1300
1352
  while True:
1301
- rsp = client.DescribeViews(model)
1353
+ rsp = client.ModifyEsVipSecurityGroup(model)
1302
1354
  result = rsp.to_json_string()
1303
1355
  try:
1304
1356
  json_obj = json.loads(result)
@@ -1733,7 +1785,7 @@ def doDeleteIndex(args, parsed_globals):
1733
1785
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1734
1786
 
1735
1787
 
1736
- def doUpdateLogstashPipelineDesc(args, parsed_globals):
1788
+ def doSaveAndDeployLogstashPipeline(args, parsed_globals):
1737
1789
  g_param = parse_global_arg(parsed_globals)
1738
1790
 
1739
1791
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1762,11 +1814,11 @@ def doUpdateLogstashPipelineDesc(args, parsed_globals):
1762
1814
  client = mod.EsClient(cred, g_param[OptionsDefine.Region], profile)
1763
1815
  client._sdkVersion += ("_CLI_" + __version__)
1764
1816
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1765
- model = models.UpdateLogstashPipelineDescRequest()
1817
+ model = models.SaveAndDeployLogstashPipelineRequest()
1766
1818
  model.from_json_string(json.dumps(args))
1767
1819
  start_time = time.time()
1768
1820
  while True:
1769
- rsp = client.UpdateLogstashPipelineDesc(model)
1821
+ rsp = client.SaveAndDeployLogstashPipeline(model)
1770
1822
  result = rsp.to_json_string()
1771
1823
  try:
1772
1824
  json_obj = json.loads(result)
@@ -1970,13 +2022,14 @@ ACTION_MAP = {
1970
2022
  "RestartInstance": doRestartInstance,
1971
2023
  "DescribeInstanceLogs": doDescribeInstanceLogs,
1972
2024
  "RestartKibana": doRestartKibana,
1973
- "SaveAndDeployLogstashPipeline": doSaveAndDeployLogstashPipeline,
2025
+ "UpdateLogstashPipelineDesc": doUpdateLogstashPipelineDesc,
1974
2026
  "DescribeLogstashInstanceOperations": doDescribeLogstashInstanceOperations,
2027
+ "DescribeViews": doDescribeViews,
1975
2028
  "UpdateLogstashInstance": doUpdateLogstashInstance,
1976
2029
  "DescribeInstanceOperations": doDescribeInstanceOperations,
1977
2030
  "DescribeLogstashPipelines": doDescribeLogstashPipelines,
1978
2031
  "DescribeLogstashInstances": doDescribeLogstashInstances,
1979
- "DescribeViews": doDescribeViews,
2032
+ "ModifyEsVipSecurityGroup": doModifyEsVipSecurityGroup,
1980
2033
  "CreateInstance": doCreateInstance,
1981
2034
  "RestartLogstashInstance": doRestartLogstashInstance,
1982
2035
  "UpdateIndex": doUpdateIndex,
@@ -1985,7 +2038,7 @@ ACTION_MAP = {
1985
2038
  "UpgradeInstance": doUpgradeInstance,
1986
2039
  "DescribeLogstashInstanceLogs": doDescribeLogstashInstanceLogs,
1987
2040
  "DeleteIndex": doDeleteIndex,
1988
- "UpdateLogstashPipelineDesc": doUpdateLogstashPipelineDesc,
2041
+ "SaveAndDeployLogstashPipeline": doSaveAndDeployLogstashPipeline,
1989
2042
  "UpdateDictionaries": doUpdateDictionaries,
1990
2043
  "UpgradeLicense": doUpgradeLicense,
1991
2044
  "DescribeIndexMeta": doDescribeIndexMeta,
@@ -133,6 +133,13 @@
133
133
  "output": "GetRequestTargetNodeTypesResponse",
134
134
  "status": "online"
135
135
  },
136
+ "ModifyEsVipSecurityGroup": {
137
+ "document": "修改绑定VIP的安全组,传安全组id列表",
138
+ "input": "ModifyEsVipSecurityGroupRequest",
139
+ "name": "修改集群VIP绑定的安全组",
140
+ "output": "ModifyEsVipSecurityGroupResponse",
141
+ "status": "online"
142
+ },
136
143
  "RestartInstance": {
137
144
  "document": "重启ES集群实例(用于系统版本更新等操作) ",
138
145
  "input": "RestartInstanceRequest",
@@ -4955,6 +4962,42 @@
4955
4962
  ],
4956
4963
  "usage": "out"
4957
4964
  },
4965
+ "ModifyEsVipSecurityGroupRequest": {
4966
+ "document": "ModifyEsVipSecurityGroup请求参数结构体",
4967
+ "members": [
4968
+ {
4969
+ "disabled": false,
4970
+ "document": "es集群的实例id",
4971
+ "example": "es-3p7lkxxx",
4972
+ "member": "string",
4973
+ "name": "InstanceId",
4974
+ "required": true,
4975
+ "type": "string"
4976
+ },
4977
+ {
4978
+ "disabled": false,
4979
+ "document": "安全组id列表",
4980
+ "example": "[\"sg-cyc7u0pp\", \"sg-k3jsu0jf\"]",
4981
+ "member": "string",
4982
+ "name": "SecurityGroupIds",
4983
+ "required": false,
4984
+ "type": "list"
4985
+ }
4986
+ ],
4987
+ "type": "object"
4988
+ },
4989
+ "ModifyEsVipSecurityGroupResponse": {
4990
+ "document": "ModifyEsVipSecurityGroup返回参数结构体",
4991
+ "members": [
4992
+ {
4993
+ "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
4994
+ "member": "string",
4995
+ "name": "RequestId",
4996
+ "type": "string"
4997
+ }
4998
+ ],
4999
+ "type": "object"
5000
+ },
4958
5001
  "NodeInfo": {
4959
5002
  "document": "集群中一种节点类型(如热数据节点,冷数据节点,专用主节点等)的规格描述信息,包括节点类型,节点个数,节点规格,磁盘类型,磁盘大小等, Type不指定时默认为热数据节点;如果节点为master节点,则DiskType和DiskSize参数会被忽略(主节点无数据盘)",
4960
5003
  "members": [