tccli 3.0.1064.1__py2.py3-none-any.whl → 3.0.1067.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 (83) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/ccc/v20200210/AbortPredictiveDialingCampaign.md +21 -0
  3. tccli/examples/ccc/v20200210/CreatePredictiveDialingCampaign.md +33 -0
  4. tccli/examples/ccc/v20200210/DeletePredictiveDialingCampaign.md +21 -0
  5. tccli/examples/ccc/v20200210/DescribePredictiveDialingCampaign.md +32 -0
  6. tccli/examples/ccc/v20200210/DescribePredictiveDialingCampaigns.md +55 -0
  7. tccli/examples/ccc/v20200210/DescribePredictiveDialingSessions.md +29 -0
  8. tccli/examples/ccc/v20200210/PausePredictiveDialingCampaign.md +21 -0
  9. tccli/examples/ccc/v20200210/ResumePredictiveDialingCampaign.md +21 -0
  10. tccli/examples/ccc/v20200210/UpdatePredictiveDialingCampaign.md +33 -0
  11. tccli/examples/cfw/v20190904/CreateBlockIgnoreRuleNew.md +25 -0
  12. tccli/examples/cfw/v20190904/DeleteBlockIgnoreRuleNew.md +23 -0
  13. tccli/examples/cfw/v20190904/ModifyBlockIgnoreRuleNew.md +24 -0
  14. tccli/examples/cls/v20201016/DescribeConfigMachineGroups.md +1 -0
  15. tccli/examples/cls/v20201016/DescribeMachineGroups.md +1 -0
  16. tccli/examples/csip/v20221121/DescribeTopAttackInfo.md +26 -0
  17. tccli/examples/ecm/v20190719/ModifyPrivateIpAddressesAttribute.md +1 -1
  18. tccli/examples/mna/v20210119/AddDevice.md +1 -1
  19. tccli/examples/mna/v20210119/GetMultiFlowStatistic.md +7 -1
  20. tccli/examples/mna/v20210119/GetNetMonitor.md +7 -49
  21. tccli/examples/mna/v20210119/GetStatisticData.md +5 -3
  22. tccli/examples/omics/v20221128/CreateVolume.md +25 -0
  23. tccli/examples/omics/v20221128/DeleteVolume.md +20 -0
  24. tccli/examples/omics/v20221128/DeleteVolumeData.md +21 -0
  25. tccli/examples/omics/v20221128/DescribeVolumes.md +37 -0
  26. tccli/examples/omics/v20221128/ModifyVolume.md +21 -0
  27. tccli/examples/postgres/v20170312/ModifyDBInstanceSpec.md +1 -0
  28. tccli/examples/tse/v20201207/CreateGovernanceInstances.md +32 -0
  29. tccli/examples/tse/v20201207/DeleteGovernanceInstances.md +35 -0
  30. tccli/examples/tse/v20201207/DescribeGovernanceInstances.md +56 -0
  31. tccli/examples/tse/v20201207/ModifyGovernanceInstances.md +35 -0
  32. tccli/examples/vod/v20180717/CreateDomainVerifyRecord.md +3 -1
  33. tccli/examples/vod/v20180717/DescribeDefaultDistributionConfig.md +22 -0
  34. tccli/examples/vod/v20180717/ModifyDefaultDistributionConfig.md +21 -0
  35. tccli/examples/waf/v20180125/CreateDeals.md +42 -0
  36. tccli/examples/wedata/v20210820/BatchStartIntegrationTasks.md +10 -7
  37. tccli/examples/wedata/v20210820/BatchStopIntegrationTasks.md +37 -6
  38. tccli/services/ccc/ccc_client.py +493 -16
  39. tccli/services/ccc/v20200210/api.json +927 -42
  40. tccli/services/ccc/v20200210/examples.json +72 -0
  41. tccli/services/cdb/v20170320/api.json +1 -1
  42. tccli/services/cfw/cfw_client.py +171 -12
  43. tccli/services/cfw/v20190904/api.json +258 -2
  44. tccli/services/cfw/v20190904/examples.json +24 -0
  45. tccli/services/ckafka/v20190819/api.json +17 -17
  46. tccli/services/cls/v20201016/api.json +45 -17
  47. tccli/services/cls/v20201016/examples.json +2 -2
  48. tccli/services/csip/csip_client.py +57 -4
  49. tccli/services/csip/v20221121/api.json +70 -0
  50. tccli/services/csip/v20221121/examples.json +8 -0
  51. tccli/services/cynosdb/v20190107/api.json +3 -3
  52. tccli/services/ecm/v20190719/api.json +3 -3
  53. tccli/services/ecm/v20190719/examples.json +1 -1
  54. tccli/services/ess/v20201111/api.json +3 -3
  55. tccli/services/essbasic/v20210526/api.json +5 -5
  56. tccli/services/iotvideo/v20211125/api.json +1 -1
  57. tccli/services/lighthouse/v20200324/api.json +1 -1
  58. tccli/services/mna/v20210119/api.json +144 -9
  59. tccli/services/mna/v20210119/examples.json +6 -6
  60. tccli/services/monitor/v20180724/api.json +20 -0
  61. tccli/services/omics/omics_client.py +277 -12
  62. tccli/services/omics/v20221128/api.json +425 -0
  63. tccli/services/omics/v20221128/examples.json +40 -0
  64. tccli/services/postgres/v20170312/api.json +27 -0
  65. tccli/services/postgres/v20170312/examples.json +1 -1
  66. tccli/services/trp/v20210515/api.json +18 -0
  67. tccli/services/trtc/v20190722/api.json +10 -1
  68. tccli/services/tse/tse_client.py +220 -8
  69. tccli/services/tse/v20201207/api.json +779 -42
  70. tccli/services/tse/v20201207/examples.json +32 -0
  71. tccli/services/vod/v20180717/api.json +146 -1
  72. tccli/services/vod/v20180717/examples.json +17 -1
  73. tccli/services/vod/vod_client.py +106 -0
  74. tccli/services/waf/v20180125/api.json +256 -1
  75. tccli/services/waf/v20180125/examples.json +8 -0
  76. tccli/services/waf/waf_client.py +57 -4
  77. tccli/services/wedata/v20210820/api.json +140 -15
  78. tccli/services/wedata/v20210820/examples.json +10 -4
  79. {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/METADATA +2 -2
  80. {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/RECORD +83 -58
  81. {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/WHEEL +0 -0
  82. {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/entry_points.txt +0 -0
  83. {tccli-3.0.1064.1.dist-info → tccli-3.0.1067.1.dist-info}/license_files/LICENSE +0 -0
@@ -56,6 +56,13 @@
56
56
  "output": "CreateAccessExportResponse",
57
57
  "status": "online"
58
58
  },
59
+ "CreateDeals": {
60
+ "document": "计费资源购买、续费下单接口",
61
+ "input": "CreateDealsRequest",
62
+ "name": "计费实例创建订单",
63
+ "output": "CreateDealsResponse",
64
+ "status": "online"
65
+ },
59
66
  "CreateHost": {
60
67
  "document": "clb-waf中添加防护域名",
61
68
  "input": "CreateHostRequest",
@@ -3817,6 +3824,251 @@
3817
3824
  ],
3818
3825
  "type": "object"
3819
3826
  },
3827
+ "CreateDealsGoods": {
3828
+ "document": "计费下单接口出入参Goods",
3829
+ "members": [
3830
+ {
3831
+ "disabled": false,
3832
+ "document": "商品数量",
3833
+ "example": "1",
3834
+ "member": "int64",
3835
+ "name": "GoodsNum",
3836
+ "output_required": true,
3837
+ "required": true,
3838
+ "type": "int",
3839
+ "value_allowed_null": false
3840
+ },
3841
+ {
3842
+ "disabled": false,
3843
+ "document": "商品明细",
3844
+ "example": "GoodsDetail",
3845
+ "member": "CreateDealsGoodsDetail",
3846
+ "name": "GoodsDetail",
3847
+ "output_required": true,
3848
+ "required": true,
3849
+ "type": "object",
3850
+ "value_allowed_null": false
3851
+ },
3852
+ {
3853
+ "disabled": false,
3854
+ "document": "订单类型ID,用来唯一标识一个业务的一种场景(总共三种场景:新购、配置变更、续费)\n高级版: 102375(新购),102376(续费),102377(变配)\n企业版 : 102378(新购),102379(续费),102380(变配)\n旗舰版 : 102369(新购),102370(续费),102371(变配)\n域名包 : 102372(新购),102373(续费),102374(变配)\n业务扩展包 : 101040(新购),101041(续费),101042(变配)\n\n高级版-CLB: 新购 101198 续费 101199 变配 101200\n企业版-CLB 101204(新购),101205(续费),101206(变配)\n旗舰版-CLB : 101201(新购),101202(续费),101203(变配)\n域名包-CLB: 101207(新购),101208(续费),101209(变配)\n业务扩展包-CLB: 101210(新购),101211(续费),101212(变配)\n\n注意:此字段可能返回 null,表示取不到有效值。",
3855
+ "example": "101201",
3856
+ "member": "int64",
3857
+ "name": "GoodsCategoryId",
3858
+ "output_required": true,
3859
+ "required": false,
3860
+ "type": "int",
3861
+ "value_allowed_null": true
3862
+ },
3863
+ {
3864
+ "disabled": false,
3865
+ "document": "购买waf实例区域ID\n1 表示购买大陆资源;\n9表示购买非中国大陆资源\n注意:此字段可能返回 null,表示取不到有效值。",
3866
+ "example": "1",
3867
+ "member": "int64",
3868
+ "name": "RegionId",
3869
+ "output_required": true,
3870
+ "required": false,
3871
+ "type": "int",
3872
+ "value_allowed_null": true
3873
+ }
3874
+ ],
3875
+ "usage": "both"
3876
+ },
3877
+ "CreateDealsGoodsDetail": {
3878
+ "document": "产品明细",
3879
+ "members": [
3880
+ {
3881
+ "disabled": false,
3882
+ "document": "时间间隔\n注意:此字段可能返回 null,表示取不到有效值。",
3883
+ "example": "1",
3884
+ "member": "int64",
3885
+ "name": "TimeSpan",
3886
+ "output_required": true,
3887
+ "required": false,
3888
+ "type": "int",
3889
+ "value_allowed_null": true
3890
+ },
3891
+ {
3892
+ "disabled": false,
3893
+ "document": "单位,支持购买d、m、y 即(日、月、年)\n注意:此字段可能返回 null,表示取不到有效值。",
3894
+ "example": "m",
3895
+ "member": "string",
3896
+ "name": "TimeUnit",
3897
+ "output_required": true,
3898
+ "required": false,
3899
+ "type": "string",
3900
+ "value_allowed_null": true
3901
+ },
3902
+ {
3903
+ "disabled": false,
3904
+ "document": "子产品标签,。新购,续费必传,变配时放在oldConfig newConfig里面\n\nSaas 高级版 :sp_wsm_waf_premium\nSaas企业版 :sp_wsm_waf_enterprise\nSaas旗舰版 :sp_wsm_waf_ultimate\nSaas 业务扩展包:sp_wsm_waf_qpsep\nSaas 域名扩展包:sp_wsm_waf_domain\n\n高级版-CLB:sp_wsm_waf_premium_clb\n企业版-CLB : sp_wsm_waf_enterprise_clb\n旗舰版-CLB:sp_wsm_waf_ultimate_clb\n 业务扩展包-CLB:sp_wsm_waf_qpsep_clb\n域名扩展包-CLB:sp_wsm_waf_domain_clb\n\n注意:此字段可能返回 null,表示取不到有效值。",
3905
+ "example": "sp_wsm_waf_ultimate_clb",
3906
+ "member": "string",
3907
+ "name": "SubProductCode",
3908
+ "output_required": true,
3909
+ "required": false,
3910
+ "type": "string",
3911
+ "value_allowed_null": true
3912
+ },
3913
+ {
3914
+ "disabled": false,
3915
+ "document": "业务产品申请的pid(对应一个定价公式),通过pid计费查询到定价模型\n高级版 :1000827\n企业版 :1000830\n旗舰版 :1000832\n域名包 : 1000834\n业务扩展包 : 1000481\n高级版-CLB:1001150\n企业版-CLB : 1001152\n旗舰版-CLB:1001154\n域名包-CLB: 1001156\n业务扩展包-CLB : 1001160\n\n注意:此字段可能返回 null,表示取不到有效值。",
3916
+ "example": "12345",
3917
+ "member": "int64",
3918
+ "name": "Pid",
3919
+ "output_required": true,
3920
+ "required": false,
3921
+ "type": "int",
3922
+ "value_allowed_null": true
3923
+ },
3924
+ {
3925
+ "disabled": false,
3926
+ "document": "waf实例名\n注意:此字段可能返回 null,表示取不到有效值。",
3927
+ "example": "waf_122345",
3928
+ "member": "string",
3929
+ "name": "InstanceName",
3930
+ "output_required": true,
3931
+ "required": false,
3932
+ "type": "string",
3933
+ "value_allowed_null": true
3934
+ },
3935
+ {
3936
+ "disabled": false,
3937
+ "document": "1:自动续费,0:不自动续费\n注意:此字段可能返回 null,表示取不到有效值。",
3938
+ "example": "1",
3939
+ "member": "int64",
3940
+ "name": "AutoRenewFlag",
3941
+ "output_required": true,
3942
+ "required": false,
3943
+ "type": "int",
3944
+ "value_allowed_null": true
3945
+ },
3946
+ {
3947
+ "disabled": false,
3948
+ "document": "waf购买的实际地域信息\n注意:此字段可能返回 null,表示取不到有效值。",
3949
+ "example": "9",
3950
+ "member": "int64",
3951
+ "name": "RealRegion",
3952
+ "output_required": true,
3953
+ "required": false,
3954
+ "type": "int",
3955
+ "value_allowed_null": true
3956
+ },
3957
+ {
3958
+ "disabled": false,
3959
+ "document": "计费细项标签数组\nSaas 高级版 sv_wsm_waf_package_premium \nSaas 企业版 sv_wsm_waf_package_enterprise\nSaas 旗舰版 sv_wsm_waf_package_ultimate \nSaas 非中国大陆高级版 sv_wsm_waf_package_premium_intl\nSaas 非中国大陆企业版 sv_wsm_waf_package_enterprise_intl\nSaas 非中国大陆旗舰版 sv_wsm_waf_package_ultimate _intl\nSaas 业务扩展包 sv_wsm_waf_qps_ep\nSaas 域名扩展包 sv_wsm_waf_domain\n\n高级版CLB sv_wsm_waf_package_premium_clb\n企业版CLB sv_wsm_waf_package_enterprise_clb\n旗舰版CLB sv_wsm_waf_package_ultimate_clb\n非中国大陆高级版 CLB sv_wsm_waf_package_premium_clb_intl\n非中国大陆企业版CLB sv_wsm_waf_package_premium_clb_intl\n非中国大陆旗舰版CLB sv_wsm_waf_package_ultimate_clb _intl\n业务扩展包CLB sv_wsm_waf_qps_ep_clb\n域名扩展包CLB sv_wsm_waf_domain_clb\n\n注意:此字段可能返回 null,表示取不到有效值。",
3960
+ "example": "[\"sv_wsm_waf_package_ultimate_clb\"]",
3961
+ "member": "string",
3962
+ "name": "LabelTypes",
3963
+ "output_required": true,
3964
+ "required": false,
3965
+ "type": "list",
3966
+ "value_allowed_null": true
3967
+ },
3968
+ {
3969
+ "disabled": false,
3970
+ "document": "计费细项标签数量,一般和SvLabelType一一对应\n注意:此字段可能返回 null,表示取不到有效值。",
3971
+ "example": "[1]",
3972
+ "member": "int64",
3973
+ "name": "LabelCounts",
3974
+ "output_required": true,
3975
+ "required": false,
3976
+ "type": "list",
3977
+ "value_allowed_null": true
3978
+ },
3979
+ {
3980
+ "disabled": false,
3981
+ "document": "变配使用,实例到期时间\n注意:此字段可能返回 null,表示取不到有效值。",
3982
+ "example": "2023-02-28 17:38:59",
3983
+ "member": "string",
3984
+ "name": "CurDeadline",
3985
+ "output_required": true,
3986
+ "required": false,
3987
+ "type": "string",
3988
+ "value_allowed_null": true
3989
+ },
3990
+ {
3991
+ "disabled": false,
3992
+ "document": "对存在的实例购买bot 或api 安全\n注意:此字段可能返回 null,表示取不到有效值。",
3993
+ "example": "waf_swdq23",
3994
+ "member": "string",
3995
+ "name": "InstanceId",
3996
+ "output_required": true,
3997
+ "required": false,
3998
+ "type": "string",
3999
+ "value_allowed_null": true
4000
+ },
4001
+ {
4002
+ "disabled": false,
4003
+ "document": "资源id\n注意:此字段可能返回 null,表示取不到有效值。",
4004
+ "example": "waf_2kxtlvk40hsvdnw7",
4005
+ "member": "string",
4006
+ "name": "ResourceId",
4007
+ "output_required": false,
4008
+ "required": false,
4009
+ "type": "string",
4010
+ "value_allowed_null": true
4011
+ }
4012
+ ],
4013
+ "usage": "both"
4014
+ },
4015
+ "CreateDealsRequest": {
4016
+ "document": "CreateDeals请求参数结构体",
4017
+ "members": [
4018
+ {
4019
+ "disabled": false,
4020
+ "document": "计费下单入参",
4021
+ "example": "详见Goods实体",
4022
+ "member": "CreateDealsGoods",
4023
+ "name": "Goods",
4024
+ "required": true,
4025
+ "type": "list"
4026
+ }
4027
+ ],
4028
+ "type": "object"
4029
+ },
4030
+ "CreateDealsResponse": {
4031
+ "document": "CreateDeals返回参数结构体",
4032
+ "members": [
4033
+ {
4034
+ "disabled": false,
4035
+ "document": "计费下单响应结构体\n注意:此字段可能返回 null,表示取不到有效值。",
4036
+ "example": "详见DealData实体",
4037
+ "member": "DealData",
4038
+ "name": "Data",
4039
+ "output_required": true,
4040
+ "type": "object",
4041
+ "value_allowed_null": true
4042
+ },
4043
+ {
4044
+ "disabled": false,
4045
+ "document": "1:成功,0:失败",
4046
+ "example": "1",
4047
+ "member": "int64",
4048
+ "name": "Status",
4049
+ "output_required": true,
4050
+ "type": "int",
4051
+ "value_allowed_null": false
4052
+ },
4053
+ {
4054
+ "disabled": false,
4055
+ "document": "返回message\n注意:此字段可能返回 null,表示取不到有效值。",
4056
+ "example": "返回message",
4057
+ "member": "string",
4058
+ "name": "ReturnMessage",
4059
+ "output_required": true,
4060
+ "type": "string",
4061
+ "value_allowed_null": true
4062
+ },
4063
+ {
4064
+ "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
4065
+ "member": "string",
4066
+ "name": "RequestId",
4067
+ "type": "string"
4068
+ }
4069
+ ],
4070
+ "type": "object"
4071
+ },
3820
4072
  "CreateHostRequest": {
3821
4073
  "document": "CreateHost请求参数结构体",
3822
4074
  "members": [
@@ -10325,10 +10577,11 @@
10325
10577
  "members": [
10326
10578
  {
10327
10579
  "disabled": false,
10328
- "document": "字段名",
10580
+ "document": "字段名; 过滤\n子订单号过滤通过name 为:DealName; value为子订单号",
10329
10581
  "example": "InstanceType",
10330
10582
  "member": "string",
10331
10583
  "name": "Name",
10584
+ "output_required": true,
10332
10585
  "required": true,
10333
10586
  "type": "string",
10334
10587
  "value_allowed_null": false
@@ -10339,6 +10592,7 @@
10339
10592
  "example": "[\"clb\",\"saas\"]",
10340
10593
  "member": "string",
10341
10594
  "name": "Values",
10595
+ "output_required": true,
10342
10596
  "required": true,
10343
10597
  "type": "list",
10344
10598
  "value_allowed_null": false
@@ -10349,6 +10603,7 @@
10349
10603
  "example": "true",
10350
10604
  "member": "bool",
10351
10605
  "name": "ExactMatch",
10606
+ "output_required": true,
10352
10607
  "required": true,
10353
10608
  "type": "bool",
10354
10609
  "value_allowed_null": false
@@ -88,6 +88,14 @@
88
88
  "title": "创建访问日志导出"
89
89
  }
90
90
  ],
91
+ "CreateDeals": [
92
+ {
93
+ "document": "",
94
+ "input": "POST / HTTP/1.1\nHost: waf.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDeals\n<公共请求参数>\n\n{\n \"Goods\": [\n {\n \"GoodsCategoryId\": 0,\n \"GoodsNum\": 0,\n \"GoodsDetail\": {\n \"TimeSpan\": 0,\n \"TimeUnit\": \"abc\",\n \"SubProductCode\": \"abc\",\n \"Pid\": 0,\n \"InstanceName\": \"abc\",\n \"AutoRenewFlag\": 0,\n \"RealRegion\": 0,\n \"LabelTypes\": [\n \"abc\"\n ],\n \"LabelCounts\": [\n 0\n ],\n \"CurDeadline\": \"abc\",\n \"InstanceId\": \"abc\",\n \"ResourceId\": \"abc\"\n },\n \"RegionId\": 0\n }\n ]\n}",
95
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"DealNames\": [\n \"abc\"\n ],\n \"BigDealId\": \"abc\"\n },\n \"Status\": 0,\n \"ReturnMessage\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
96
+ "title": "样例"
97
+ }
98
+ ],
91
99
  "CreateHost": [
92
100
  {
93
101
  "document": "",
@@ -1629,7 +1629,7 @@ def doDeleteAntiInfoLeakRule(args, parsed_globals):
1629
1629
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1630
1630
 
1631
1631
 
1632
- def doDescribeObjects(args, parsed_globals):
1632
+ def doCreateDeals(args, parsed_globals):
1633
1633
  g_param = parse_global_arg(parsed_globals)
1634
1634
 
1635
1635
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1658,11 +1658,11 @@ def doDescribeObjects(args, parsed_globals):
1658
1658
  client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
1659
1659
  client._sdkVersion += ("_CLI_" + __version__)
1660
1660
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1661
- model = models.DescribeObjectsRequest()
1661
+ model = models.CreateDealsRequest()
1662
1662
  model.from_json_string(json.dumps(args))
1663
1663
  start_time = time.time()
1664
1664
  while True:
1665
- rsp = client.DescribeObjects(model)
1665
+ rsp = client.CreateDeals(model)
1666
1666
  result = rsp.to_json_string()
1667
1667
  try:
1668
1668
  json_obj = json.loads(result)
@@ -4125,6 +4125,58 @@ def doDescribeUserClbWafRegions(args, parsed_globals):
4125
4125
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4126
4126
 
4127
4127
 
4128
+ def doDescribeObjects(args, parsed_globals):
4129
+ g_param = parse_global_arg(parsed_globals)
4130
+
4131
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4132
+ cred = credential.CVMRoleCredential()
4133
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4134
+ cred = credential.STSAssumeRoleCredential(
4135
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4136
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4137
+ )
4138
+ 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):
4139
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4140
+ else:
4141
+ cred = credential.Credential(
4142
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4143
+ )
4144
+ http_profile = HttpProfile(
4145
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4146
+ reqMethod="POST",
4147
+ endpoint=g_param[OptionsDefine.Endpoint],
4148
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4149
+ )
4150
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4151
+ if g_param[OptionsDefine.Language]:
4152
+ profile.language = g_param[OptionsDefine.Language]
4153
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4154
+ client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
4155
+ client._sdkVersion += ("_CLI_" + __version__)
4156
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4157
+ model = models.DescribeObjectsRequest()
4158
+ model.from_json_string(json.dumps(args))
4159
+ start_time = time.time()
4160
+ while True:
4161
+ rsp = client.DescribeObjects(model)
4162
+ result = rsp.to_json_string()
4163
+ try:
4164
+ json_obj = json.loads(result)
4165
+ except TypeError as e:
4166
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4167
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4168
+ break
4169
+ cur_time = time.time()
4170
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4171
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4172
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4173
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4174
+ else:
4175
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4176
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4177
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4178
+
4179
+
4128
4180
  def doModifyDomainWhiteRule(args, parsed_globals):
4129
4181
  g_param = parse_global_arg(parsed_globals)
4130
4182
 
@@ -6975,7 +7027,7 @@ ACTION_MAP = {
6975
7027
  "DescribeWebshellStatus": doDescribeWebshellStatus,
6976
7028
  "GenerateDealsAndPayNew": doGenerateDealsAndPayNew,
6977
7029
  "DeleteAntiInfoLeakRule": doDeleteAntiInfoLeakRule,
6978
- "DescribeObjects": doDescribeObjects,
7030
+ "CreateDeals": doCreateDeals,
6979
7031
  "UpsertCCAutoStatus": doUpsertCCAutoStatus,
6980
7032
  "DescribeRuleLimit": doDescribeRuleLimit,
6981
7033
  "DescribeDomains": doDescribeDomains,
@@ -7023,6 +7075,7 @@ ACTION_MAP = {
7023
7075
  "DescribeFlowTrend": doDescribeFlowTrend,
7024
7076
  "DescribeAntiFakeUrl": doDescribeAntiFakeUrl,
7025
7077
  "DescribeUserClbWafRegions": doDescribeUserClbWafRegions,
7078
+ "DescribeObjects": doDescribeObjects,
7026
7079
  "ModifyDomainWhiteRule": doModifyDomainWhiteRule,
7027
7080
  "ModifyCustomRuleStatus": doModifyCustomRuleStatus,
7028
7081
  "DeleteAttackWhiteRule": doDeleteAttackWhiteRule,
@@ -4883,6 +4883,24 @@
4883
4883
  "name": "DeleteKFFlag",
4884
4884
  "required": false,
4885
4885
  "type": "int"
4886
+ },
4887
+ {
4888
+ "disabled": false,
4889
+ "document": "操作名称",
4890
+ "example": "无",
4891
+ "member": "string",
4892
+ "name": "Name",
4893
+ "required": false,
4894
+ "type": "string"
4895
+ },
4896
+ {
4897
+ "disabled": false,
4898
+ "document": "本次批量操作涉及任务,用于审计",
4899
+ "example": "无",
4900
+ "member": "string",
4901
+ "name": "TaskNames",
4902
+ "required": false,
4903
+ "type": "list"
4886
4904
  }
4887
4905
  ],
4888
4906
  "type": "object"
@@ -5832,6 +5850,16 @@
5832
5850
  "type": "int",
5833
5851
  "value_allowed_null": false
5834
5852
  },
5853
+ {
5854
+ "disabled": false,
5855
+ "document": "本次批量操作涉及任务,用于审计",
5856
+ "example": "无",
5857
+ "member": "string",
5858
+ "name": "TaskNames",
5859
+ "output_required": false,
5860
+ "type": "list",
5861
+ "value_allowed_null": false
5862
+ },
5835
5863
  {
5836
5864
  "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
5837
5865
  "member": "string",
@@ -5934,15 +5962,6 @@
5934
5962
  "BatchStartIntegrationTasksRequest": {
5935
5963
  "document": "BatchStartIntegrationTasks请求参数结构体",
5936
5964
  "members": [
5937
- {
5938
- "disabled": false,
5939
- "document": "任务id",
5940
- "example": "无",
5941
- "member": "string",
5942
- "name": "TaskIds",
5943
- "required": true,
5944
- "type": "list"
5945
- },
5946
5965
  {
5947
5966
  "disabled": false,
5948
5967
  "document": "任务类型",
@@ -5960,6 +5979,24 @@
5960
5979
  "name": "ProjectId",
5961
5980
  "required": true,
5962
5981
  "type": "string"
5982
+ },
5983
+ {
5984
+ "disabled": false,
5985
+ "document": "任务id",
5986
+ "example": "无",
5987
+ "member": "string",
5988
+ "name": "TaskIds",
5989
+ "required": false,
5990
+ "type": "list"
5991
+ },
5992
+ {
5993
+ "disabled": false,
5994
+ "document": "批量运行集成任务,目前仅实时集成用到了这个参数",
5995
+ "example": "无",
5996
+ "member": "StartTaskInfo",
5997
+ "name": "StartTaskInfoSet",
5998
+ "required": false,
5999
+ "type": "list"
5963
6000
  }
5964
6001
  ],
5965
6002
  "type": "object"
@@ -5973,7 +6010,7 @@
5973
6010
  "example": "1",
5974
6011
  "member": "int64",
5975
6012
  "name": "SuccessCount",
5976
- "required": true,
6013
+ "output_required": true,
5977
6014
  "type": "int",
5978
6015
  "value_allowed_null": false
5979
6016
  },
@@ -5983,7 +6020,7 @@
5983
6020
  "example": "1",
5984
6021
  "member": "int64",
5985
6022
  "name": "FailedCount",
5986
- "required": true,
6023
+ "output_required": true,
5987
6024
  "type": "int",
5988
6025
  "value_allowed_null": false
5989
6026
  },
@@ -5993,10 +6030,20 @@
5993
6030
  "example": "2",
5994
6031
  "member": "int64",
5995
6032
  "name": "TotalCount",
5996
- "required": true,
6033
+ "output_required": true,
5997
6034
  "type": "int",
5998
6035
  "value_allowed_null": false
5999
6036
  },
6037
+ {
6038
+ "disabled": false,
6039
+ "document": "本次批量操作成功任务id,用于审计",
6040
+ "example": "无",
6041
+ "member": "string",
6042
+ "name": "TaskNames",
6043
+ "output_required": false,
6044
+ "type": "list",
6045
+ "value_allowed_null": false
6046
+ },
6000
6047
  {
6001
6048
  "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
6002
6049
  "member": "string",
@@ -6048,7 +6095,7 @@
6048
6095
  "example": "1",
6049
6096
  "member": "int64",
6050
6097
  "name": "SuccessCount",
6051
- "required": true,
6098
+ "output_required": true,
6052
6099
  "type": "int",
6053
6100
  "value_allowed_null": false
6054
6101
  },
@@ -6058,7 +6105,7 @@
6058
6105
  "example": "1",
6059
6106
  "member": "int64",
6060
6107
  "name": "FailedCount",
6061
- "required": true,
6108
+ "output_required": true,
6062
6109
  "type": "int",
6063
6110
  "value_allowed_null": false
6064
6111
  },
@@ -6068,10 +6115,20 @@
6068
6115
  "example": "2",
6069
6116
  "member": "int64",
6070
6117
  "name": "TotalCount",
6071
- "required": true,
6118
+ "output_required": true,
6072
6119
  "type": "int",
6073
6120
  "value_allowed_null": false
6074
6121
  },
6122
+ {
6123
+ "disabled": false,
6124
+ "document": "本次批量操作涉及成功任务,用于审计",
6125
+ "example": "无",
6126
+ "member": "string",
6127
+ "name": "TaskNames",
6128
+ "output_required": false,
6129
+ "type": "list",
6130
+ "value_allowed_null": false
6131
+ },
6075
6132
  {
6076
6133
  "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
6077
6134
  "member": "string",
@@ -6255,6 +6312,15 @@
6255
6312
  "name": "Event",
6256
6313
  "required": false,
6257
6314
  "type": "string"
6315
+ },
6316
+ {
6317
+ "disabled": false,
6318
+ "document": "本次批量操作涉及任务,用于审计",
6319
+ "example": "无",
6320
+ "member": "string",
6321
+ "name": "TaskNames",
6322
+ "required": false,
6323
+ "type": "list"
6258
6324
  }
6259
6325
  ],
6260
6326
  "type": "object"
@@ -6348,6 +6414,15 @@
6348
6414
  "name": "InchargeIds",
6349
6415
  "required": false,
6350
6416
  "type": "string"
6417
+ },
6418
+ {
6419
+ "disabled": false,
6420
+ "document": "本次批量操作涉及任务,用于审计",
6421
+ "example": "无",
6422
+ "member": "string",
6423
+ "name": "TaskNames",
6424
+ "required": false,
6425
+ "type": "list"
6351
6426
  }
6352
6427
  ],
6353
6428
  "type": "object"
@@ -45387,6 +45462,56 @@
45387
45462
  ],
45388
45463
  "type": "object"
45389
45464
  },
45465
+ "StartTaskInfo": {
45466
+ "document": "批量运行集成任务配置",
45467
+ "members": [
45468
+ {
45469
+ "disabled": false,
45470
+ "document": "批量运行任务类型,比如START,TIMESTAMP,RESTORE,RESUME等\n注意:此字段可能返回 null,表示取不到有效值。",
45471
+ "example": "START",
45472
+ "member": "string",
45473
+ "name": "Event",
45474
+ "output_required": false,
45475
+ "required": false,
45476
+ "type": "string",
45477
+ "value_allowed_null": true
45478
+ },
45479
+ {
45480
+ "disabled": false,
45481
+ "document": "任务Id列表\n注意:此字段可能返回 null,表示取不到有效值。",
45482
+ "example": "无",
45483
+ "member": "string",
45484
+ "name": "TaskIds",
45485
+ "output_required": false,
45486
+ "required": false,
45487
+ "type": "list",
45488
+ "value_allowed_null": true
45489
+ },
45490
+ {
45491
+ "disabled": false,
45492
+ "document": "批量运行任务配置,目前仅用与实时集成基于时间位点启动。基于时间位点启动,需要设置一个name=timestamp, value=具体时间戳的RecordField的配置\n注意:此字段可能返回 null,表示取不到有效值。",
45493
+ "example": "无",
45494
+ "member": "RecordField",
45495
+ "name": "Config",
45496
+ "output_required": false,
45497
+ "required": false,
45498
+ "type": "list",
45499
+ "value_allowed_null": true
45500
+ },
45501
+ {
45502
+ "disabled": false,
45503
+ "document": "操作类型\n注意:此字段可能返回 null,表示取不到有效值。",
45504
+ "example": "无",
45505
+ "member": "string",
45506
+ "name": "Description",
45507
+ "output_required": false,
45508
+ "required": false,
45509
+ "type": "string",
45510
+ "value_allowed_null": true
45511
+ }
45512
+ ],
45513
+ "usage": "both"
45514
+ },
45390
45515
  "StopBaselineRequest": {
45391
45516
  "document": "StopBaseline请求参数结构体",
45392
45517
  "members": [