tccli 3.0.1027.1__py2.py3-none-any.whl → 3.0.1029.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 (59) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/asr/v20190614/CreateAsyncRecognitionTask.md +1 -1
  3. tccli/examples/cls/v20201016/CreateCosRecharge.md +1 -1
  4. tccli/examples/cls/v20201016/CreateKafkaRecharge.md +9 -8
  5. tccli/examples/cls/v20201016/CreateScheduledSql.md +1 -1
  6. tccli/examples/cls/v20201016/GetAlarmLog.md +108 -15
  7. tccli/examples/cls/v20201016/SearchCosRechargeInfo.md +4 -4
  8. tccli/examples/oceanus/v20190422/DescribeJobEvents.md +36 -0
  9. tccli/examples/ocr/v20181119/VatInvoiceVerifyNew.md +56 -0
  10. tccli/examples/tdmq/v20200217/DescribeNamespaceBundlesOpt.md +1 -23
  11. tccli/examples/tem/v20210701/CreateCosToken.md +5 -5
  12. tccli/examples/teo/v20220901/ModifyAccelerationDomainStatuses.md +1 -1
  13. tccli/examples/tione/v20211111/DescribeBillingResourceGroups.md +72 -22
  14. tccli/examples/tione/v20211111/DescribeModelAccelerateVersions.md +76 -0
  15. tccli/examples/tse/v20201207/CreateEngine.md +2 -2
  16. tccli/examples/vod/v20180717/EnhanceMediaQuality.md +22 -0
  17. tccli/examples/waf/v20180125/GetAttackHistogram.md +5 -4
  18. tccli/loaders.py +1 -1
  19. tccli/services/asr/v20190614/api.json +2 -2
  20. tccli/services/asr/v20190614/examples.json +1 -1
  21. tccli/services/cdwdoris/v20211228/api.json +11 -1
  22. tccli/services/cls/v20201016/api.json +52 -43
  23. tccli/services/cls/v20201016/examples.json +13 -7
  24. tccli/services/dlc/v20210125/api.json +7 -4
  25. tccli/services/ecm/v20190719/api.json +17 -17
  26. tccli/services/ess/v20201111/api.json +58 -49
  27. tccli/services/essbasic/v20210526/api.json +18 -18
  28. tccli/services/essbasic/v20210526/examples.json +1 -1
  29. tccli/services/lcic/v20220817/api.json +13 -4
  30. tccli/services/lighthouse/v20200324/api.json +55 -50
  31. tccli/services/oceanus/oceanus_client.py +57 -4
  32. tccli/services/oceanus/v20190422/api.json +175 -0
  33. tccli/services/oceanus/v20190422/examples.json +8 -0
  34. tccli/services/ocr/v20181119/api.json +548 -10
  35. tccli/services/ocr/v20181119/examples.json +1 -1
  36. tccli/services/ssl/v20191205/api.json +54 -11
  37. tccli/services/tat/v20201028/api.json +1 -1
  38. tccli/services/tdmq/v20200217/api.json +2 -15
  39. tccli/services/tdmq/v20200217/examples.json +1 -1
  40. tccli/services/tem/v20210701/api.json +3 -3
  41. tccli/services/tem/v20210701/examples.json +3 -3
  42. tccli/services/teo/v20220901/api.json +4 -2
  43. tccli/services/teo/v20220901/examples.json +1 -1
  44. tccli/services/tione/tione_client.py +53 -0
  45. tccli/services/tione/v20211111/api.json +389 -18
  46. tccli/services/tione/v20211111/examples.json +10 -2
  47. tccli/services/tse/v20201207/api.json +7 -3
  48. tccli/services/tse/v20201207/examples.json +1 -1
  49. tccli/services/vod/v20180717/api.json +131 -0
  50. tccli/services/vod/v20180717/examples.json +8 -0
  51. tccli/services/vod/vod_client.py +53 -0
  52. tccli/services/waf/v20180125/api.json +10 -7
  53. tccli/services/waf/v20180125/examples.json +2 -2
  54. tccli/services/wedata/v20210820/api.json +22 -12
  55. {tccli-3.0.1027.1.dist-info → tccli-3.0.1029.1.dist-info}/METADATA +2 -2
  56. {tccli-3.0.1027.1.dist-info → tccli-3.0.1029.1.dist-info}/RECORD +59 -56
  57. {tccli-3.0.1027.1.dist-info → tccli-3.0.1029.1.dist-info}/WHEEL +0 -0
  58. {tccli-3.0.1027.1.dist-info → tccli-3.0.1029.1.dist-info}/entry_points.txt +0 -0
  59. {tccli-3.0.1027.1.dist-info → tccli-3.0.1029.1.dist-info}/license_files/LICENSE +0 -0
@@ -1869,7 +1869,7 @@
1869
1869
  {
1870
1870
  "disabled": false,
1871
1871
  "document": "防火墙当前版本。用户每次更新防火墙规则时版本会自动加1,防止规则已过期,不填不考虑冲突。",
1872
- "example": "",
1872
+ "example": "5",
1873
1873
  "member": "uint64",
1874
1874
  "name": "FirewallVersion",
1875
1875
  "required": false,
@@ -2096,7 +2096,7 @@
2096
2096
  {
2097
2097
  "disabled": false,
2098
2098
  "document": "用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。",
2099
- "example": "",
2099
+ "example": "test-create-instance-client-token",
2100
2100
  "member": "string",
2101
2101
  "name": "ClientToken",
2102
2102
  "required": false,
@@ -2132,7 +2132,7 @@
2132
2132
  {
2133
2133
  "disabled": false,
2134
2134
  "document": "防火墙模板ID。若不指定该参数,则使用默认防火墙策略。",
2135
- "example": "lhft-xxxxxxxx",
2135
+ "example": "lhft-abcd1234",
2136
2136
  "member": "string",
2137
2137
  "name": "FirewallTemplateId",
2138
2138
  "required": false,
@@ -3655,7 +3655,7 @@
3655
3655
  {
3656
3656
  "disabled": false,
3657
3657
  "document": "防火墙模板ID。",
3658
- "example": "lhft-xxxxxxxx",
3658
+ "example": "lhft-abcd1234",
3659
3659
  "member": "string",
3660
3660
  "name": "TemplateId",
3661
3661
  "required": true,
@@ -3664,7 +3664,7 @@
3664
3664
  {
3665
3665
  "disabled": false,
3666
3666
  "document": "应用任务ID列表。",
3667
- "example": "",
3667
+ "example": "lgtk-abcd1234",
3668
3668
  "member": "string",
3669
3669
  "name": "TaskIds",
3670
3670
  "required": false,
@@ -3785,7 +3785,7 @@
3785
3785
  {
3786
3786
  "disabled": false,
3787
3787
  "document": "防火墙模板ID。",
3788
- "example": "lhft-xxxxxxxx",
3788
+ "example": "lhft-abcd1234",
3789
3789
  "member": "string",
3790
3790
  "name": "TemplateId",
3791
3791
  "required": true,
@@ -3794,7 +3794,7 @@
3794
3794
  {
3795
3795
  "disabled": false,
3796
3796
  "document": "防火墙模板规则ID列表。",
3797
- "example": "",
3797
+ "example": "[\"lhftr-gexf7cmvpq\"]",
3798
3798
  "member": "string",
3799
3799
  "name": "TemplateRuleIds",
3800
3800
  "required": false,
@@ -3837,7 +3837,7 @@
3837
3837
  {
3838
3838
  "disabled": false,
3839
3839
  "document": "防火墙模板规则信息列表。",
3840
- "example": "",
3840
+ "example": "[{\"FirewallRuleInfo\": {\"Action\": \"ACCEPT\",\"AppType\": \"user-defined\",\"CidrBlock\": \"0.0.0.0/0\",\"FirewallRuleDescription\": \"tcp 80\",\"Port\": \"81\",\"Protocol\": \"TCP\"},\"TemplateRuleId\": \"lhftr-gexf7cmvpq\"}]",
3841
3841
  "member": "FirewallTemplateRuleInfo",
3842
3842
  "name": "TemplateRuleSet",
3843
3843
  "output_required": true,
@@ -5966,6 +5966,7 @@
5966
5966
  "example": "TCP",
5967
5967
  "member": "string",
5968
5968
  "name": "Protocol",
5969
+ "output_required": true,
5969
5970
  "required": true,
5970
5971
  "type": "string",
5971
5972
  "value_allowed_null": false
@@ -5976,16 +5977,18 @@
5976
5977
  "example": "80",
5977
5978
  "member": "string",
5978
5979
  "name": "Port",
5980
+ "output_required": true,
5979
5981
  "required": false,
5980
5982
  "type": "string",
5981
5983
  "value_allowed_null": false
5982
5984
  },
5983
5985
  {
5984
5986
  "disabled": false,
5985
- "document": "网段或 IP (互斥)。默认为 0.0.0.0/0,表示所有来源。",
5987
+ "document": "IPv4网段或 IPv4地址(互斥)。\n示例值:0.0.0.0/0。\n\n和Ipv6CidrBlock互斥,两者都不指定时,如果Protocol不是ICMPv6,则取默认值0.0.0.0/0。",
5986
5988
  "example": "0.0.0.0/0",
5987
5989
  "member": "string",
5988
5990
  "name": "CidrBlock",
5991
+ "output_required": true,
5989
5992
  "required": false,
5990
5993
  "type": "string",
5991
5994
  "value_allowed_null": false
@@ -5996,6 +5999,7 @@
5996
5999
  "example": "ACCEPT",
5997
6000
  "member": "string",
5998
6001
  "name": "Action",
6002
+ "output_required": true,
5999
6003
  "required": false,
6000
6004
  "type": "string",
6001
6005
  "value_allowed_null": false
@@ -6006,6 +6010,7 @@
6006
6010
  "example": "''",
6007
6011
  "member": "string",
6008
6012
  "name": "FirewallRuleDescription",
6013
+ "output_required": true,
6009
6014
  "required": false,
6010
6015
  "type": "string",
6011
6016
  "value_allowed_null": false
@@ -6022,7 +6027,7 @@
6022
6027
  "example": "HTTP(80)",
6023
6028
  "member": "string",
6024
6029
  "name": "AppType",
6025
- "required": true,
6030
+ "output_required": true,
6026
6031
  "type": "string",
6027
6032
  "value_allowed_null": false
6028
6033
  },
@@ -6032,7 +6037,7 @@
6032
6037
  "example": "TCP",
6033
6038
  "member": "string",
6034
6039
  "name": "Protocol",
6035
- "required": true,
6040
+ "output_required": true,
6036
6041
  "type": "string",
6037
6042
  "value_allowed_null": false
6038
6043
  },
@@ -6042,17 +6047,17 @@
6042
6047
  "example": "80",
6043
6048
  "member": "string",
6044
6049
  "name": "Port",
6045
- "required": true,
6050
+ "output_required": true,
6046
6051
  "type": "string",
6047
6052
  "value_allowed_null": false
6048
6053
  },
6049
6054
  {
6050
6055
  "disabled": false,
6051
- "document": "网段或 IP (互斥)。默认为 0.0.0.0/0,表示所有来源。",
6056
+ "document": "IPv4网段或 IPv4地址(互斥)。\n示例值:0.0.0.0/0。\n\n和Ipv6CidrBlock互斥,两者都不指定时,如果Protocol不是ICMPv6,则取默认值0.0.0.0/0。",
6052
6057
  "example": "0.0.0.0/0",
6053
6058
  "member": "string",
6054
6059
  "name": "CidrBlock",
6055
- "required": true,
6060
+ "output_required": true,
6056
6061
  "type": "string",
6057
6062
  "value_allowed_null": false
6058
6063
  },
@@ -6062,7 +6067,7 @@
6062
6067
  "example": "ACCEPT",
6063
6068
  "member": "string",
6064
6069
  "name": "Action",
6065
- "required": true,
6070
+ "output_required": true,
6066
6071
  "type": "string",
6067
6072
  "value_allowed_null": false
6068
6073
  },
@@ -6072,7 +6077,7 @@
6072
6077
  "example": "''",
6073
6078
  "member": "string",
6074
6079
  "name": "FirewallRuleDescription",
6075
- "required": true,
6080
+ "output_required": true,
6076
6081
  "type": "string",
6077
6082
  "value_allowed_null": false
6078
6083
  }
@@ -6151,7 +6156,7 @@
6151
6156
  {
6152
6157
  "disabled": false,
6153
6158
  "document": "应用模板的时间。",
6154
- "example": "",
6159
+ "example": "2023-06-21T02:47:42Z",
6155
6160
  "member": "datetime_iso",
6156
6161
  "name": "ApplyTime",
6157
6162
  "output_required": true,
@@ -6289,7 +6294,7 @@
6289
6294
  {
6290
6295
  "disabled": false,
6291
6296
  "document": "防火墙模板规则ID。",
6292
- "example": "lhftr-xxxxxxxxxx",
6297
+ "example": "lhftr-abcde12345",
6293
6298
  "member": "string",
6294
6299
  "name": "TemplateRuleId",
6295
6300
  "output_required": true,
@@ -6706,7 +6711,7 @@
6706
6711
  {
6707
6712
  "disabled": false,
6708
6713
  "document": "实例 ID。",
6709
- "example": "",
6714
+ "example": "lhins-muuz7kis",
6710
6715
  "member": "string",
6711
6716
  "name": "InstanceId",
6712
6717
  "output_required": true,
@@ -6716,7 +6721,7 @@
6716
6721
  {
6717
6722
  "disabled": false,
6718
6723
  "document": "套餐 ID。",
6719
- "example": "",
6724
+ "example": "bundle_bw_small1_1",
6720
6725
  "member": "string",
6721
6726
  "name": "BundleId",
6722
6727
  "output_required": true,
@@ -6726,7 +6731,7 @@
6726
6731
  {
6727
6732
  "disabled": false,
6728
6733
  "document": "镜像 ID。",
6729
- "example": "",
6734
+ "example": "lhbp-abcd1234",
6730
6735
  "member": "string",
6731
6736
  "name": "BlueprintId",
6732
6737
  "output_required": true,
@@ -6736,7 +6741,7 @@
6736
6741
  {
6737
6742
  "disabled": false,
6738
6743
  "document": "实例的 CPU 核数,单位:核。",
6739
- "example": "",
6744
+ "example": "2",
6740
6745
  "member": "int64",
6741
6746
  "name": "CPU",
6742
6747
  "output_required": true,
@@ -6746,7 +6751,7 @@
6746
6751
  {
6747
6752
  "disabled": false,
6748
6753
  "document": "实例内存容量,单位:GB 。",
6749
- "example": "",
6754
+ "example": "2",
6750
6755
  "member": "int64",
6751
6756
  "name": "Memory",
6752
6757
  "output_required": true,
@@ -6756,7 +6761,7 @@
6756
6761
  {
6757
6762
  "disabled": false,
6758
6763
  "document": "实例名称。",
6759
- "example": "",
6764
+ "example": "green-lh-test",
6760
6765
  "member": "string",
6761
6766
  "name": "InstanceName",
6762
6767
  "output_required": true,
@@ -6766,7 +6771,7 @@
6766
6771
  {
6767
6772
  "disabled": false,
6768
6773
  "document": "实例计费模式。取值范围: \nPREPAID:表示预付费,即包年包月。",
6769
- "example": "",
6774
+ "example": "PREPAID",
6770
6775
  "member": "string",
6771
6776
  "name": "InstanceChargeType",
6772
6777
  "output_required": true,
@@ -6786,7 +6791,7 @@
6786
6791
  {
6787
6792
  "disabled": false,
6788
6793
  "document": "实例主网卡的内网 IP。 \n注意:此字段可能返回 空,表示取不到有效值。",
6789
- "example": "",
6794
+ "example": "[\"10.0.2.13\"]",
6790
6795
  "member": "string",
6791
6796
  "name": "PrivateAddresses",
6792
6797
  "output_required": true,
@@ -6796,7 +6801,7 @@
6796
6801
  {
6797
6802
  "disabled": false,
6798
6803
  "document": "实例主网卡的公网 IP。 \n注意:此字段可能返回 空,表示取不到有效值。",
6799
- "example": "",
6804
+ "example": "[\"43.128.117.26\"]",
6800
6805
  "member": "string",
6801
6806
  "name": "PublicAddresses",
6802
6807
  "output_required": true,
@@ -6816,7 +6821,7 @@
6816
6821
  {
6817
6822
  "disabled": false,
6818
6823
  "document": "自动续费标识。取值范围: \nNOTIFY_AND_MANUAL_RENEW:表示通知即将过期,但不自动续费 \nNOTIFY_AND_AUTO_RENEW:表示通知即将过期,而且自动续费 。",
6819
- "example": "",
6824
+ "example": "NOTIFY_AND_MANUAL_RENEW",
6820
6825
  "member": "string",
6821
6826
  "name": "RenewFlag",
6822
6827
  "output_required": true,
@@ -6836,7 +6841,7 @@
6836
6841
  {
6837
6842
  "disabled": false,
6838
6843
  "document": "实例状态。取值范围: \n<li>PENDING:表示创建中</li><li>LAUNCH_FAILED:表示创建失败</li><li>RUNNING:表示运行中</li><li>STOPPED:表示关机</li><li>STARTING:表示开机中</li><li>STOPPING:表示关机中</li><li>REBOOTING:表示重启中</li><li>SHUTDOWN:表示停止待销毁</li><li>TERMINATING:表示销毁中</li><li>DELETING:表示删除中</li><li>FREEZING:表示冻结中</li><li>ENTER_RESCUE_MODE:表示进入救援模式中</li><li>RESCUE_MODE:表示救援模式</li><li>EXIT_RESCUE_MODE:表示退出救援模式中</li>",
6839
- "example": "",
6844
+ "example": "RUNNING",
6840
6845
  "member": "string",
6841
6846
  "name": "InstanceState",
6842
6847
  "output_required": true,
@@ -6846,7 +6851,7 @@
6846
6851
  {
6847
6852
  "disabled": false,
6848
6853
  "document": "实例全局唯一 ID。",
6849
- "example": "",
6854
+ "example": "1db916fc-ac02-498c-9fe0-ce60003ebcbf",
6850
6855
  "member": "string",
6851
6856
  "name": "Uuid",
6852
6857
  "output_required": true,
@@ -6856,7 +6861,7 @@
6856
6861
  {
6857
6862
  "disabled": false,
6858
6863
  "document": "实例的最新操作。例:StopInstances、ResetInstance。注意:此字段可能返回 空值,表示取不到有效值。",
6859
- "example": "",
6864
+ "example": "StartInstances",
6860
6865
  "member": "string",
6861
6866
  "name": "LatestOperation",
6862
6867
  "output_required": true,
@@ -6866,7 +6871,7 @@
6866
6871
  {
6867
6872
  "disabled": false,
6868
6873
  "document": "实例的最新操作状态。取值范围: \nSUCCESS:表示操作成功 \nOPERATING:表示操作执行中 \nFAILED:表示操作失败 \n注意:此字段可能返回 空值,表示取不到有效值。",
6869
- "example": "",
6874
+ "example": "SUCCESS",
6870
6875
  "member": "string",
6871
6876
  "name": "LatestOperationState",
6872
6877
  "output_required": true,
@@ -6876,7 +6881,7 @@
6876
6881
  {
6877
6882
  "disabled": false,
6878
6883
  "document": "实例最新操作的唯一请求 ID。 \n注意:此字段可能返回 空值,表示取不到有效值。",
6879
- "example": "",
6884
+ "example": "f498d99d-2647-4c1c-a234-36f0e082e7ba",
6880
6885
  "member": "string",
6881
6886
  "name": "LatestOperationRequestId",
6882
6887
  "output_required": true,
@@ -6896,7 +6901,7 @@
6896
6901
  {
6897
6902
  "disabled": false,
6898
6903
  "document": "创建时间。按照 ISO8601 标准表示,并且使用 UTC 时间。 \n格式为: YYYY-MM-DDThh:mm:ssZ。\n注意:此字段可能返回 null,表示取不到有效值。",
6899
- "example": "",
6904
+ "example": "2023-12-01T06:34:59Z",
6900
6905
  "member": "datetime_iso",
6901
6906
  "name": "CreatedTime",
6902
6907
  "output_required": true,
@@ -6906,7 +6911,7 @@
6906
6911
  {
6907
6912
  "disabled": false,
6908
6913
  "document": "到期时间。按照 ISO8601 标准表示,并且使用 UTC 时间。 \n格式为: YYYY-MM-DDThh:mm:ssZ 。\n注意:此字段可能返回 null,表示取不到有效值。",
6909
- "example": "",
6914
+ "example": "2024-01-01T06:34:59Z",
6910
6915
  "member": "datetime_iso",
6911
6916
  "name": "ExpiredTime",
6912
6917
  "output_required": true,
@@ -6916,7 +6921,7 @@
6916
6921
  {
6917
6922
  "disabled": false,
6918
6923
  "document": "操作系统平台类型,如 LINUX_UNIX、WINDOWS。",
6919
- "example": "",
6924
+ "example": "LINUX_UNIX",
6920
6925
  "member": "string",
6921
6926
  "name": "PlatformType",
6922
6927
  "output_required": true,
@@ -6926,7 +6931,7 @@
6926
6931
  {
6927
6932
  "disabled": false,
6928
6933
  "document": "操作系统平台。",
6929
- "example": "",
6934
+ "example": "CENTOS",
6930
6935
  "member": "string",
6931
6936
  "name": "Platform",
6932
6937
  "output_required": true,
@@ -6936,7 +6941,7 @@
6936
6941
  {
6937
6942
  "disabled": false,
6938
6943
  "document": "操作系统名称。",
6939
- "example": "",
6944
+ "example": "CentOS 7.6 64bit",
6940
6945
  "member": "string",
6941
6946
  "name": "OsName",
6942
6947
  "output_required": true,
@@ -6946,7 +6951,7 @@
6946
6951
  {
6947
6952
  "disabled": false,
6948
6953
  "document": "可用区。",
6949
- "example": "",
6954
+ "example": "ap-singapore-3",
6950
6955
  "member": "string",
6951
6956
  "name": "Zone",
6952
6957
  "output_required": true,
@@ -7422,10 +7427,10 @@
7422
7427
  {
7423
7428
  "disabled": false,
7424
7429
  "document": "密钥 ID 列表。关联密钥后,就可以通过对应的私钥来访问实例。注意:此字段可能返回 [],表示取不到有效值。",
7425
- "example": "",
7430
+ "example": "[]",
7426
7431
  "member": "string",
7427
7432
  "name": "KeyIds",
7428
- "required": true,
7433
+ "output_required": true,
7429
7434
  "type": "list",
7430
7435
  "value_allowed_null": false
7431
7436
  }
@@ -8557,7 +8562,7 @@
8557
8562
  {
8558
8563
  "disabled": false,
8559
8564
  "document": "模板ID。",
8560
- "example": "lhft-xxxxxxxx",
8565
+ "example": "lhft-abcd1234",
8561
8566
  "member": "string",
8562
8567
  "name": "TemplateId",
8563
8568
  "required": true,
@@ -9318,30 +9323,30 @@
9318
9323
  {
9319
9324
  "disabled": false,
9320
9325
  "document": "系统盘类型。\n取值范围: \n<li> LOCAL_BASIC:本地硬盘</li><li> LOCAL_SSD:本地 SSD 硬盘</li><li> CLOUD_BASIC:普通云硬盘</li><li> CLOUD_SSD:SSD 云硬盘</li><li> CLOUD_PREMIUM:高性能云硬盘</li>",
9321
- "example": "",
9326
+ "example": "CLOUD_PREMIUM",
9322
9327
  "member": "string",
9323
9328
  "name": "DiskType",
9324
- "required": true,
9329
+ "output_required": true,
9325
9330
  "type": "string",
9326
9331
  "value_allowed_null": false
9327
9332
  },
9328
9333
  {
9329
9334
  "disabled": false,
9330
9335
  "document": "系统盘大小,单位:GB。",
9331
- "example": "",
9336
+ "example": "20",
9332
9337
  "member": "int64",
9333
9338
  "name": "DiskSize",
9334
- "required": true,
9339
+ "output_required": true,
9335
9340
  "type": "int",
9336
9341
  "value_allowed_null": false
9337
9342
  },
9338
9343
  {
9339
9344
  "disabled": false,
9340
9345
  "document": "系统盘ID。\n注意:此字段可能返回 null,表示取不到有效值。",
9341
- "example": "",
9346
+ "example": "lhdisk-jxj6qnpo",
9342
9347
  "member": "string",
9343
9348
  "name": "DiskId",
9344
- "required": true,
9349
+ "output_required": true,
9345
9350
  "type": "string",
9346
9351
  "value_allowed_null": true
9347
9352
  }
@@ -9354,7 +9359,7 @@
9354
9359
  {
9355
9360
  "disabled": false,
9356
9361
  "document": "标签键",
9357
- "example": "xxx",
9362
+ "example": "Owner",
9358
9363
  "member": "string",
9359
9364
  "name": "Key",
9360
9365
  "output_required": true,
@@ -9365,7 +9370,7 @@
9365
9370
  {
9366
9371
  "disabled": false,
9367
9372
  "document": "标签值",
9368
- "example": "xxx",
9373
+ "example": "Green",
9369
9374
  "member": "string",
9370
9375
  "name": "Value",
9371
9376
  "output_required": true,
@@ -797,7 +797,7 @@ def doFetchSqlGatewayStatementResult(args, parsed_globals):
797
797
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
798
798
 
799
799
 
800
- def doDescribeClusters(args, parsed_globals):
800
+ def doDescribeJobEvents(args, parsed_globals):
801
801
  g_param = parse_global_arg(parsed_globals)
802
802
 
803
803
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -826,11 +826,11 @@ def doDescribeClusters(args, parsed_globals):
826
826
  client = mod.OceanusClient(cred, g_param[OptionsDefine.Region], profile)
827
827
  client._sdkVersion += ("_CLI_" + __version__)
828
828
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
829
- model = models.DescribeClustersRequest()
829
+ model = models.DescribeJobEventsRequest()
830
830
  model.from_json_string(json.dumps(args))
831
831
  start_time = time.time()
832
832
  while True:
833
- rsp = client.DescribeClusters(model)
833
+ rsp = client.DescribeJobEvents(model)
834
834
  result = rsp.to_json_string()
835
835
  try:
836
836
  json_obj = json.loads(result)
@@ -1369,6 +1369,58 @@ def doCreateJobConfig(args, parsed_globals):
1369
1369
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1370
1370
 
1371
1371
 
1372
+ def doDescribeClusters(args, parsed_globals):
1373
+ g_param = parse_global_arg(parsed_globals)
1374
+
1375
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1376
+ cred = credential.CVMRoleCredential()
1377
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1378
+ cred = credential.STSAssumeRoleCredential(
1379
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1380
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1381
+ )
1382
+ 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):
1383
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1384
+ else:
1385
+ cred = credential.Credential(
1386
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1387
+ )
1388
+ http_profile = HttpProfile(
1389
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1390
+ reqMethod="POST",
1391
+ endpoint=g_param[OptionsDefine.Endpoint],
1392
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1393
+ )
1394
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1395
+ if g_param[OptionsDefine.Language]:
1396
+ profile.language = g_param[OptionsDefine.Language]
1397
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1398
+ client = mod.OceanusClient(cred, g_param[OptionsDefine.Region], profile)
1399
+ client._sdkVersion += ("_CLI_" + __version__)
1400
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1401
+ model = models.DescribeClustersRequest()
1402
+ model.from_json_string(json.dumps(args))
1403
+ start_time = time.time()
1404
+ while True:
1405
+ rsp = client.DescribeClusters(model)
1406
+ result = rsp.to_json_string()
1407
+ try:
1408
+ json_obj = json.loads(result)
1409
+ except TypeError as e:
1410
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1411
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1412
+ break
1413
+ cur_time = time.time()
1414
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1415
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1416
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1417
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1418
+ else:
1419
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1420
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1421
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1422
+
1423
+
1372
1424
  def doDeleteJobConfigs(args, parsed_globals):
1373
1425
  g_param = parse_global_arg(parsed_globals)
1374
1426
 
@@ -1915,7 +1967,7 @@ ACTION_MAP = {
1915
1967
  "DescribeJobSubmissionLog": doDescribeJobSubmissionLog,
1916
1968
  "DescribeResources": doDescribeResources,
1917
1969
  "FetchSqlGatewayStatementResult": doFetchSqlGatewayStatementResult,
1918
- "DescribeClusters": doDescribeClusters,
1970
+ "DescribeJobEvents": doDescribeJobEvents,
1919
1971
  "DeleteWorkSpace": doDeleteWorkSpace,
1920
1972
  "DeleteFolders": doDeleteFolders,
1921
1973
  "DeleteJobs": doDeleteJobs,
@@ -1926,6 +1978,7 @@ ACTION_MAP = {
1926
1978
  "CreateFolder": doCreateFolder,
1927
1979
  "CheckSavepoint": doCheckSavepoint,
1928
1980
  "CreateJobConfig": doCreateJobConfig,
1981
+ "DescribeClusters": doDescribeClusters,
1929
1982
  "DeleteJobConfigs": doDeleteJobConfigs,
1930
1983
  "StopJobs": doStopJobs,
1931
1984
  "DescribeResourceRelatedJobs": doDescribeResourceRelatedJobs,