tccli 3.0.1289.1__py2.py3-none-any.whl → 3.0.1291.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 (88) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/antiddos/v20200309/api.json +132 -103
  3. tccli/services/antiddos/v20200309/examples.json +5 -5
  4. tccli/services/bi/v20220105/api.json +1 -1
  5. tccli/services/bi/v20220105/examples.json +1 -1
  6. tccli/services/billing/v20180709/api.json +16 -16
  7. tccli/services/billing/v20180709/examples.json +1 -1
  8. tccli/services/cam/v20190116/api.json +39 -33
  9. tccli/services/cam/v20190116/examples.json +1 -1
  10. tccli/services/cbs/v20170312/api.json +24 -20
  11. tccli/services/cdb/cdb_client.py +53 -0
  12. tccli/services/cdb/v20170320/api.json +64 -0
  13. tccli/services/cdb/v20170320/examples.json +8 -0
  14. tccli/services/cdwch/v20200915/api.json +204 -199
  15. tccli/services/cdwch/v20200915/examples.json +11 -11
  16. tccli/services/ckafka/v20190819/api.json +273 -268
  17. tccli/services/clb/v20180317/api.json +31 -22
  18. tccli/services/cls/cls_client.py +18 -230
  19. tccli/services/cls/v20201016/api.json +285 -687
  20. tccli/services/cls/v20201016/examples.json +2 -34
  21. tccli/services/cvm/v20170312/api.json +10 -0
  22. tccli/services/cynosdb/v20190107/api.json +97 -97
  23. tccli/services/dbbrain/v20191016/api.json +54 -51
  24. tccli/services/dbbrain/v20210527/api.json +125 -125
  25. tccli/services/dcdb/v20180411/api.json +48 -48
  26. tccli/services/dnspod/dnspod_client.py +466 -307
  27. tccli/services/dnspod/v20210323/api.json +391 -0
  28. tccli/services/dnspod/v20210323/examples.json +24 -0
  29. tccli/services/domain/v20180808/api.json +8 -8
  30. tccli/services/dsgc/dsgc_client.py +0 -53
  31. tccli/services/dsgc/v20190723/api.json +0 -24
  32. tccli/services/dsgc/v20190723/examples.json +0 -8
  33. tccli/services/ess/v20201111/api.json +1 -1
  34. tccli/services/essbasic/v20210526/api.json +1 -1
  35. tccli/services/fmu/v20191213/api.json +2 -2
  36. tccli/services/goosefs/v20220519/api.json +2 -2
  37. tccli/services/gwlb/v20240906/api.json +1 -1
  38. tccli/services/iotcloud/v20210408/api.json +66 -66
  39. tccli/services/iotcloud/v20210408/examples.json +13 -13
  40. tccli/services/iotvideoindustry/v20201201/api.json +542 -523
  41. tccli/services/iotvideoindustry/v20201201/examples.json +15 -15
  42. tccli/services/lighthouse/v20200324/api.json +8 -8
  43. tccli/services/lke/v20231130/api.json +10 -0
  44. tccli/services/lowcode/v20210108/api.json +2 -2
  45. tccli/services/mariadb/v20170312/api.json +42 -42
  46. tccli/services/mariadb/v20170312/examples.json +12 -0
  47. tccli/services/mmps/v20200710/api.json +95 -95
  48. tccli/services/monitor/monitor_client.py +53 -0
  49. tccli/services/monitor/v20180724/api.json +144 -0
  50. tccli/services/monitor/v20180724/examples.json +8 -0
  51. tccli/services/mps/mps_client.py +501 -24
  52. tccli/services/mps/v20190612/api.json +2071 -282
  53. tccli/services/mps/v20190612/examples.json +72 -0
  54. tccli/services/mqtt/v20240516/api.json +1 -1
  55. tccli/services/mqtt/v20240516/examples.json +1 -1
  56. tccli/services/postgres/v20170312/api.json +308 -283
  57. tccli/services/redis/redis_client.py +53 -0
  58. tccli/services/redis/v20180412/api.json +34 -0
  59. tccli/services/redis/v20180412/examples.json +8 -0
  60. tccli/services/svp/v20240125/api.json +66 -66
  61. tccli/services/svp/v20240125/examples.json +1 -1
  62. tccli/services/tcb/tcb_client.py +53 -53
  63. tccli/services/tcb/v20180608/api.json +220 -263
  64. tccli/services/tcb/v20180608/examples.json +8 -8
  65. tccli/services/tcbr/v20220217/examples.json +1 -1
  66. tccli/services/tcss/tcss_client.py +224 -277
  67. tccli/services/tcss/v20201101/api.json +4618 -4329
  68. tccli/services/tcss/v20201101/examples.json +207 -221
  69. tccli/services/tdmq/tdmq_client.py +0 -53
  70. tccli/services/tdmq/v20200217/api.json +379 -374
  71. tccli/services/tdmq/v20200217/examples.json +1 -9
  72. tccli/services/teo/teo_client.py +53 -0
  73. tccli/services/teo/v20220901/api.json +82 -11
  74. tccli/services/teo/v20220901/examples.json +8 -0
  75. tccli/services/thpc/v20211109/api.json +8 -8
  76. tccli/services/thpc/v20220401/api.json +8 -8
  77. tccli/services/thpc/v20230321/api.json +11 -10
  78. tccli/services/tke/v20180525/api.json +60 -60
  79. tccli/services/tke/v20220501/api.json +34 -34
  80. tccli/services/vpc/v20170312/api.json +44 -44
  81. tccli/services/waf/v20180125/api.json +9 -0
  82. tccli/services/wedata/v20210820/api.json +73 -0
  83. tccli/services/weilingwith/v20230427/api.json +997 -997
  84. {tccli-3.0.1289.1.dist-info → tccli-3.0.1291.1.dist-info}/METADATA +2 -2
  85. {tccli-3.0.1289.1.dist-info → tccli-3.0.1291.1.dist-info}/RECORD +88 -88
  86. {tccli-3.0.1289.1.dist-info → tccli-3.0.1291.1.dist-info}/WHEEL +0 -0
  87. {tccli-3.0.1289.1.dist-info → tccli-3.0.1291.1.dist-info}/entry_points.txt +0 -0
  88. {tccli-3.0.1289.1.dist-info → tccli-3.0.1291.1.dist-info}/license_files/LICENSE +0 -0
@@ -4801,6 +4801,58 @@ def doDescribeInstances(args, parsed_globals):
4801
4801
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4802
4802
 
4803
4803
 
4804
+ def doRemoveReplicationGroup(args, parsed_globals):
4805
+ g_param = parse_global_arg(parsed_globals)
4806
+
4807
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4808
+ cred = credential.CVMRoleCredential()
4809
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4810
+ cred = credential.STSAssumeRoleCredential(
4811
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4812
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4813
+ )
4814
+ 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):
4815
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4816
+ else:
4817
+ cred = credential.Credential(
4818
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4819
+ )
4820
+ http_profile = HttpProfile(
4821
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4822
+ reqMethod="POST",
4823
+ endpoint=g_param[OptionsDefine.Endpoint],
4824
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4825
+ )
4826
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4827
+ if g_param[OptionsDefine.Language]:
4828
+ profile.language = g_param[OptionsDefine.Language]
4829
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4830
+ client = mod.RedisClient(cred, g_param[OptionsDefine.Region], profile)
4831
+ client._sdkVersion += ("_CLI_" + __version__)
4832
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4833
+ model = models.RemoveReplicationGroupRequest()
4834
+ model.from_json_string(json.dumps(args))
4835
+ start_time = time.time()
4836
+ while True:
4837
+ rsp = client.RemoveReplicationGroup(model)
4838
+ result = rsp.to_json_string()
4839
+ try:
4840
+ json_obj = json.loads(result)
4841
+ except TypeError as e:
4842
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4843
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4844
+ break
4845
+ cur_time = time.time()
4846
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4847
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4848
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4849
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4850
+ else:
4851
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4852
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4853
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4854
+
4855
+
4804
4856
  def doOpenSSL(args, parsed_globals):
4805
4857
  g_param = parse_global_arg(parsed_globals)
4806
4858
 
@@ -5788,6 +5840,7 @@ ACTION_MAP = {
5788
5840
  "DescribeInstanceShards": doDescribeInstanceShards,
5789
5841
  "RestoreInstance": doRestoreInstance,
5790
5842
  "DescribeInstances": doDescribeInstances,
5843
+ "RemoveReplicationGroup": doRemoveReplicationGroup,
5791
5844
  "OpenSSL": doOpenSSL,
5792
5845
  "DescribeAutoBackupConfig": doDescribeAutoBackupConfig,
5793
5846
  "DescribeBandwidthRange": doDescribeBandwidthRange,
@@ -672,6 +672,13 @@
672
672
  "output": "ReleaseWanAddressResponse",
673
673
  "status": "online"
674
674
  },
675
+ "RemoveReplicationGroup": {
676
+ "document": "删除复制组",
677
+ "input": "RemoveReplicationGroupRequest",
678
+ "name": "删除复制组",
679
+ "output": "RemoveReplicationGroupResponse",
680
+ "status": "online"
681
+ },
675
682
  "RemoveReplicationInstance": {
676
683
  "document": "本接口(RemoveReplicationInstance)用于移除复制组中的实例。",
677
684
  "input": "RemoveReplicationInstanceRequest",
@@ -11160,6 +11167,33 @@
11160
11167
  ],
11161
11168
  "type": "object"
11162
11169
  },
11170
+ "RemoveReplicationGroupRequest": {
11171
+ "document": "RemoveReplicationGroup请求参数结构体",
11172
+ "members": [
11173
+ {
11174
+ "disabled": false,
11175
+ "document": "复制组ID",
11176
+ "example": "crs-rpl-xxx",
11177
+ "member": "string",
11178
+ "name": "GroupId",
11179
+ "required": true,
11180
+ "type": "string"
11181
+ }
11182
+ ],
11183
+ "type": "object"
11184
+ },
11185
+ "RemoveReplicationGroupResponse": {
11186
+ "document": "RemoveReplicationGroup返回参数结构体",
11187
+ "members": [
11188
+ {
11189
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
11190
+ "member": "string",
11191
+ "name": "RequestId",
11192
+ "type": "string"
11193
+ }
11194
+ ],
11195
+ "type": "object"
11196
+ },
11163
11197
  "RemoveReplicationInstanceRequest": {
11164
11198
  "document": "RemoveReplicationInstance请求参数结构体",
11165
11199
  "members": [
@@ -774,6 +774,14 @@
774
774
  "title": "关闭外网实例"
775
775
  }
776
776
  ],
777
+ "RemoveReplicationGroup": [
778
+ {
779
+ "document": "当复制组内没有实例时,删除复制组",
780
+ "input": "POST / HTTP/1.1\nHost: redis.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RemoveReplicationGroup\n<公共请求参数>\n\n{\n \"GroupId\": \"crs-rpl-oxsincthdd\"\n}",
781
+ "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
782
+ "title": "删除复制组"
783
+ }
784
+ ],
777
785
  "RemoveReplicationInstance": [
778
786
  {
779
787
  "document": "移除复制组的实例,数据同步类型为强同步。",
@@ -406,7 +406,7 @@
406
406
  {
407
407
  "disabled": false,
408
408
  "document": "分页偏移量",
409
- "example": "0",
409
+ "example": "1",
410
410
  "member": "uint64",
411
411
  "name": "Offset",
412
412
  "required": true,
@@ -429,13 +429,13 @@
429
429
  "members": [
430
430
  {
431
431
  "disabled": false,
432
- "document": "节省计划总览明细数据\t\n注意:此字段可能返回 null,表示取不到有效值。",
433
- "example": "[{\"EndTime\":\"2028-03-30 14:59:59\",\"PayAmount\":\"0\",\"Region\":[\"*\"],\"SavingAmount\":\"600\",\"SpId\":\"svp-ivm000e-D4l9f66\",\"SpType\":\"svp_common\",\"StartTime\":\"2023-03-30 14:00:00\",\"Status\":1,\"PayType\":1}]",
432
+ "document": "节省计划总览明细数据\t",
433
+ "example": "[{\"EndTime\":\"2028-03-30 14:59:59\",\"PayAmount\":\"0\",\"Region\":[\"33\"],\"SavingAmount\":\"600\",\"SpId\":\"svp-ivm000e-D4l9f66\",\"SpType\":\"svp_common\",\"StartTime\":\"2023-03-30 14:00:00\",\"Status\":1,\"PayType\":1}]",
434
434
  "member": "SavingPlanOverviewDetail",
435
435
  "name": "Overviews",
436
- "output_required": false,
436
+ "output_required": true,
437
437
  "type": "list",
438
- "value_allowed_null": true
438
+ "value_allowed_null": false
439
439
  },
440
440
  {
441
441
  "disabled": false,
@@ -763,203 +763,203 @@
763
763
  "members": [
764
764
  {
765
765
  "disabled": false,
766
- "document": "账号id\n注意:此字段可能返回 null,表示取不到有效值。",
766
+ "document": "账号id",
767
767
  "example": "909619400",
768
768
  "member": "string",
769
769
  "name": "OwnerUin",
770
- "output_required": false,
770
+ "output_required": true,
771
771
  "type": "string",
772
- "value_allowed_null": true
772
+ "value_allowed_null": false
773
773
  },
774
774
  {
775
775
  "disabled": false,
776
- "document": "账号名称\n注意:此字段可能返回 null,表示取不到有效值。",
776
+ "document": "账号名称",
777
777
  "example": "深圳市腾讯计算机系统有限公司",
778
778
  "member": "string",
779
779
  "name": "OwnerUinName",
780
- "output_required": false,
780
+ "output_required": true,
781
781
  "type": "string",
782
- "value_allowed_null": true
782
+ "value_allowed_null": false
783
783
  },
784
784
  {
785
785
  "disabled": false,
786
- "document": "抵扣账号id\n注意:此字段可能返回 null,表示取不到有效值。",
786
+ "document": "抵扣账号id",
787
787
  "example": "909619400",
788
788
  "member": "string",
789
789
  "name": "PayerUin",
790
- "output_required": false,
790
+ "output_required": true,
791
791
  "type": "string",
792
- "value_allowed_null": true
792
+ "value_allowed_null": false
793
793
  },
794
794
  {
795
795
  "disabled": false,
796
- "document": "抵扣账号名称\n注意:此字段可能返回 null,表示取不到有效值。",
796
+ "document": "抵扣账号名称",
797
797
  "example": "深圳市腾讯计算机系统有限公司",
798
798
  "member": "string",
799
799
  "name": "PayerUinName",
800
- "output_required": false,
800
+ "output_required": true,
801
801
  "type": "string",
802
- "value_allowed_null": true
802
+ "value_allowed_null": false
803
803
  },
804
804
  {
805
805
  "disabled": false,
806
- "document": "节省计划资源id\n注意:此字段可能返回 null,表示取不到有效值。",
806
+ "document": "节省计划资源id",
807
807
  "example": "svp-jf1000fuY_gME1p",
808
808
  "member": "string",
809
809
  "name": "SpId",
810
- "output_required": false,
810
+ "output_required": true,
811
811
  "type": "string",
812
- "value_allowed_null": true
812
+ "value_allowed_null": false
813
813
  },
814
814
  {
815
815
  "disabled": false,
816
- "document": "产品编码\n注意:此字段可能返回 null,表示取不到有效值。",
816
+ "document": "产品编码",
817
817
  "example": "p_cvm",
818
818
  "member": "string",
819
819
  "name": "ProductCode",
820
- "output_required": false,
820
+ "output_required": true,
821
821
  "type": "string",
822
- "value_allowed_null": true
822
+ "value_allowed_null": false
823
823
  },
824
824
  {
825
825
  "disabled": false,
826
- "document": "产品名称\n注意:此字段可能返回 null,表示取不到有效值。",
826
+ "document": "产品名称",
827
827
  "example": "云服务器CVM",
828
828
  "member": "string",
829
829
  "name": "ProductName",
830
- "output_required": false,
830
+ "output_required": true,
831
831
  "type": "string",
832
- "value_allowed_null": true
832
+ "value_allowed_null": false
833
833
  },
834
834
  {
835
835
  "disabled": false,
836
- "document": "子产品编码\n注意:此字段可能返回 null,表示取不到有效值。",
836
+ "document": "子产品编码",
837
837
  "example": "sp_cvm_s4",
838
838
  "member": "string",
839
839
  "name": "SubProductCode",
840
- "output_required": false,
840
+ "output_required": true,
841
841
  "type": "string",
842
- "value_allowed_null": true
842
+ "value_allowed_null": false
843
843
  },
844
844
  {
845
845
  "disabled": false,
846
- "document": "子产品名称\n注意:此字段可能返回 null,表示取不到有效值。",
846
+ "document": "子产品名称",
847
847
  "example": "云服务器CVM-标准型S4",
848
848
  "member": "string",
849
849
  "name": "SubProductName",
850
- "output_required": false,
850
+ "output_required": true,
851
851
  "type": "string",
852
- "value_allowed_null": true
852
+ "value_allowed_null": false
853
853
  },
854
854
  {
855
855
  "disabled": false,
856
- "document": "交易ID\n注意:此字段可能返回 null,表示取不到有效值。",
856
+ "document": "交易ID",
857
857
  "example": "20241118400246988192100",
858
858
  "member": "string",
859
859
  "name": "OutTradeNo",
860
- "output_required": false,
860
+ "output_required": true,
861
861
  "type": "string",
862
- "value_allowed_null": true
862
+ "value_allowed_null": false
863
863
  },
864
864
  {
865
865
  "disabled": false,
866
- "document": "地域id\n注意:此字段可能返回 null,表示取不到有效值。",
866
+ "document": "地域id",
867
867
  "example": "4",
868
868
  "member": "int64",
869
869
  "name": "RegionId",
870
- "output_required": false,
870
+ "output_required": true,
871
871
  "type": "int",
872
- "value_allowed_null": true
872
+ "value_allowed_null": false
873
873
  },
874
874
  {
875
875
  "disabled": false,
876
- "document": "地域名称\n注意:此字段可能返回 null,表示取不到有效值。",
876
+ "document": "地域名称",
877
877
  "example": "华东地区(上海)",
878
878
  "member": "string",
879
879
  "name": "RegionName",
880
- "output_required": false,
880
+ "output_required": true,
881
881
  "type": "string",
882
- "value_allowed_null": true
882
+ "value_allowed_null": false
883
883
  },
884
884
  {
885
885
  "disabled": false,
886
- "document": "地区id\n注意:此字段可能返回 null,表示取不到有效值。",
886
+ "document": "地区id",
887
887
  "example": "200002",
888
888
  "member": "int64",
889
889
  "name": "ZoneId",
890
- "output_required": false,
890
+ "output_required": true,
891
891
  "type": "int",
892
- "value_allowed_null": true
892
+ "value_allowed_null": false
893
893
  },
894
894
  {
895
895
  "disabled": false,
896
- "document": "地区名称\n注意:此字段可能返回 null,表示取不到有效值。",
896
+ "document": "地区名称",
897
897
  "example": "上海二区",
898
898
  "member": "string",
899
899
  "name": "ZoneName",
900
- "output_required": false,
900
+ "output_required": true,
901
901
  "type": "string",
902
- "value_allowed_null": true
902
+ "value_allowed_null": false
903
903
  },
904
904
  {
905
905
  "disabled": false,
906
- "document": "开始使用时间\n注意:此字段可能返回 null,表示取不到有效值。",
906
+ "document": "开始使用时间",
907
907
  "example": "2024-11-18 13:00:00",
908
908
  "member": "string",
909
909
  "name": "SpStartTime",
910
- "output_required": false,
910
+ "output_required": true,
911
911
  "type": "string",
912
- "value_allowed_null": true
912
+ "value_allowed_null": false
913
913
  },
914
914
  {
915
915
  "disabled": false,
916
- "document": "结束使用时间\n注意:此字段可能返回 null,表示取不到有效值。",
916
+ "document": "结束使用时间",
917
917
  "example": "2024-11-18 14:00:00",
918
918
  "member": "string",
919
919
  "name": "SpEndTime",
920
- "output_required": false,
920
+ "output_required": true,
921
921
  "type": "string",
922
- "value_allowed_null": true
922
+ "value_allowed_null": false
923
923
  },
924
924
  {
925
925
  "disabled": false,
926
- "document": "折扣时间\n注意:此字段可能返回 null,表示取不到有效值。",
926
+ "document": "折扣时间",
927
927
  "example": "2024-11-18 14:16:11",
928
928
  "member": "string",
929
929
  "name": "DeductTime",
930
- "output_required": false,
930
+ "output_required": true,
931
931
  "type": "string",
932
- "value_allowed_null": true
932
+ "value_allowed_null": false
933
933
  },
934
934
  {
935
935
  "disabled": false,
936
- "document": "抵扣金额,单位分\n注意:此字段可能返回 null,表示取不到有效值。",
936
+ "document": "抵扣金额,单位分",
937
937
  "example": "0.04",
938
938
  "member": "string",
939
939
  "name": "DeductAmount",
940
- "output_required": false,
940
+ "output_required": true,
941
941
  "type": "string",
942
- "value_allowed_null": true
942
+ "value_allowed_null": false
943
943
  },
944
944
  {
945
945
  "disabled": false,
946
- "document": "抵扣折扣率\n注意:此字段可能返回 null,表示取不到有效值。",
946
+ "document": "抵扣折扣率",
947
947
  "example": "0.86",
948
948
  "member": "string",
949
949
  "name": "DeductDiscount",
950
- "output_required": false,
950
+ "output_required": true,
951
951
  "type": "string",
952
- "value_allowed_null": true
952
+ "value_allowed_null": false
953
953
  },
954
954
  {
955
955
  "disabled": false,
956
- "document": "抵扣比率\n注意:此字段可能返回 null,表示取不到有效值。",
956
+ "document": "抵扣比率",
957
957
  "example": "0.44",
958
958
  "member": "string",
959
959
  "name": "DeductRate",
960
- "output_required": false,
960
+ "output_required": true,
961
961
  "type": "string",
962
- "value_allowed_null": true
962
+ "value_allowed_null": false
963
963
  }
964
964
  ],
965
965
  "usage": "out"
@@ -1156,7 +1156,7 @@
1156
1156
  {
1157
1157
  "disabled": false,
1158
1158
  "document": "地域",
1159
- "example": "[\"*\"]",
1159
+ "example": "[\"15\"]",
1160
1160
  "member": "string",
1161
1161
  "name": "Region",
1162
1162
  "output_required": true,
@@ -28,7 +28,7 @@
28
28
  {
29
29
  "document": "",
30
30
  "input": "POST / HTTP/1.1\nHost: svp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSavingPlanOverview\n<公共请求参数>\n\n{\n \"StartDate\": \"2024-03-01\",\n \"EndDate\": \"2024-05-01\",\n \"Offset\": 0,\n \"Limit\": 1\n}",
31
- "output": "{\n \"Response\": {\n \"Overviews\": [\n {\n \"EndTime\": \"2028-03-30 14:59:59\",\n \"PayAmount\": \"0\",\n \"Region\": [\n \"*\"\n ],\n \"SavingAmount\": \"600\",\n \"SpType\": \"svp_common\",\n \"StartTime\": \"2023-03-30 14:00:00\",\n \"Status\": 1,\n \"PayType\": 1\n }\n ],\n \"RequestId\": \"aa36e003-786e-47aa-aefe-e717d749f964\",\n \"Total\": 1\n }\n}",
31
+ "output": "{\n \"Response\": {\n \"Overviews\": [\n {\n \"EndTime\": \"2028-03-30 14:59:59\",\n \"PayAmount\": \"0\",\n \"Region\": [\n \"33\"\n ],\n \"SavingAmount\": \"600\",\n \"SpType\": \"svp_common\",\n \"StartTime\": \"2023-03-30 14:00:00\",\n \"Status\": 1,\n \"PayType\": 1\n }\n ],\n \"RequestId\": \"aa36e003-786e-47aa-aefe-e717d749f964\",\n \"Total\": 1\n }\n}",
32
32
  "title": "查询节省计划总览明细示例"
33
33
  }
34
34
  ],
@@ -1317,6 +1317,58 @@ def doCreateStaticStore(args, parsed_globals):
1317
1317
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1318
1318
 
1319
1319
 
1320
+ def doEditAuthConfig(args, parsed_globals):
1321
+ g_param = parse_global_arg(parsed_globals)
1322
+
1323
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1324
+ cred = credential.CVMRoleCredential()
1325
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1326
+ cred = credential.STSAssumeRoleCredential(
1327
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1328
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1329
+ )
1330
+ 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):
1331
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1332
+ else:
1333
+ cred = credential.Credential(
1334
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1335
+ )
1336
+ http_profile = HttpProfile(
1337
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1338
+ reqMethod="POST",
1339
+ endpoint=g_param[OptionsDefine.Endpoint],
1340
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1341
+ )
1342
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1343
+ if g_param[OptionsDefine.Language]:
1344
+ profile.language = g_param[OptionsDefine.Language]
1345
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1346
+ client = mod.TcbClient(cred, g_param[OptionsDefine.Region], profile)
1347
+ client._sdkVersion += ("_CLI_" + __version__)
1348
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1349
+ model = models.EditAuthConfigRequest()
1350
+ model.from_json_string(json.dumps(args))
1351
+ start_time = time.time()
1352
+ while True:
1353
+ rsp = client.EditAuthConfig(model)
1354
+ result = rsp.to_json_string()
1355
+ try:
1356
+ json_obj = json.loads(result)
1357
+ except TypeError as e:
1358
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1359
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1360
+ break
1361
+ cur_time = time.time()
1362
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1363
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1364
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1365
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1366
+ else:
1367
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1368
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1369
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1370
+
1371
+
1320
1372
  def doDescribeSpecialCostItems(args, parsed_globals):
1321
1373
  g_param = parse_global_arg(parsed_globals)
1322
1374
 
@@ -3345,58 +3397,6 @@ def doDestroyEnv(args, parsed_globals):
3345
3397
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3346
3398
 
3347
3399
 
3348
- def doDescribeActivityInfo(args, parsed_globals):
3349
- g_param = parse_global_arg(parsed_globals)
3350
-
3351
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3352
- cred = credential.CVMRoleCredential()
3353
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3354
- cred = credential.STSAssumeRoleCredential(
3355
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3356
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3357
- )
3358
- 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):
3359
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3360
- else:
3361
- cred = credential.Credential(
3362
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3363
- )
3364
- http_profile = HttpProfile(
3365
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3366
- reqMethod="POST",
3367
- endpoint=g_param[OptionsDefine.Endpoint],
3368
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3369
- )
3370
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3371
- if g_param[OptionsDefine.Language]:
3372
- profile.language = g_param[OptionsDefine.Language]
3373
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3374
- client = mod.TcbClient(cred, g_param[OptionsDefine.Region], profile)
3375
- client._sdkVersion += ("_CLI_" + __version__)
3376
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
3377
- model = models.DescribeActivityInfoRequest()
3378
- model.from_json_string(json.dumps(args))
3379
- start_time = time.time()
3380
- while True:
3381
- rsp = client.DescribeActivityInfo(model)
3382
- result = rsp.to_json_string()
3383
- try:
3384
- json_obj = json.loads(result)
3385
- except TypeError as e:
3386
- json_obj = json.loads(result.decode('utf-8')) # python3.3
3387
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3388
- break
3389
- cur_time = time.time()
3390
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3391
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3392
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3393
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3394
- else:
3395
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3396
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3397
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3398
-
3399
-
3400
3400
  def doDescribeCloudBaseRunOneClickTaskExternal(args, parsed_globals):
3401
3401
  g_param = parse_global_arg(parsed_globals)
3402
3402
 
@@ -4681,6 +4681,7 @@ ACTION_MAP = {
4681
4681
  "DescribeStandaloneGatewayPackage": doDescribeStandaloneGatewayPackage,
4682
4682
  "BindEnvGateway": doBindEnvGateway,
4683
4683
  "CreateStaticStore": doCreateStaticStore,
4684
+ "EditAuthConfig": doEditAuthConfig,
4684
4685
  "DescribeSpecialCostItems": doDescribeSpecialCostItems,
4685
4686
  "DeleteGatewayVersion": doDeleteGatewayVersion,
4686
4687
  "ModifyClsTopic": doModifyClsTopic,
@@ -4720,7 +4721,6 @@ ACTION_MAP = {
4720
4721
  "DescribeEndUserLoginStatistic": doDescribeEndUserLoginStatistic,
4721
4722
  "DescribeCloudBaseRunOperationTypes": doDescribeCloudBaseRunOperationTypes,
4722
4723
  "DestroyEnv": doDestroyEnv,
4723
- "DescribeActivityInfo": doDescribeActivityInfo,
4724
4724
  "DescribeCloudBaseRunOneClickTaskExternal": doDescribeCloudBaseRunOneClickTaskExternal,
4725
4725
  "DescribeCloudBaseRunVersionRsByCondition": doDescribeCloudBaseRunVersionRsByCondition,
4726
4726
  "DescribePostpayFreeQuotas": doDescribePostpayFreeQuotas,