tccli 3.0.1283.1__py2.py3-none-any.whl → 3.0.1285.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.
- tccli/__init__.py +1 -1
- tccli/services/acp/v20220105/api.json +23 -23
- tccli/services/acp/v20220105/examples.json +2 -8
- tccli/services/advisor/v20200721/api.json +4 -2
- tccli/services/apm/v20210622/api.json +1 -1
- tccli/services/autoscaling/v20180419/api.json +88 -86
- tccli/services/bh/bh_client.py +53 -0
- tccli/services/bh/v20230418/api.json +199 -0
- tccli/services/bh/v20230418/examples.json +8 -0
- tccli/services/cdn/v20180606/api.json +4 -2
- tccli/services/cdwch/v20200915/api.json +19 -9
- tccli/services/cdwch/v20200915/examples.json +1 -1
- tccli/services/cdwdoris/v20211228/api.json +18 -0
- tccli/services/cfg/v20210820/api.json +48 -24
- tccli/services/cfg/v20210820/examples.json +8 -2
- tccli/services/clb/v20180317/api.json +21 -3
- tccli/services/cmq/v20190304/api.json +92 -92
- tccli/services/cynosdb/v20190107/api.json +389 -379
- tccli/services/dbbrain/v20191016/api.json +17 -17
- tccli/services/dbbrain/v20210527/api.json +22 -22
- tccli/services/dcdb/v20180411/api.json +14 -4
- tccli/services/dcdb/v20180411/examples.json +1 -1
- tccli/services/dlc/v20210125/api.json +130 -58
- tccli/services/dlc/v20210125/examples.json +5 -5
- tccli/services/domain/v20180808/api.json +160 -160
- tccli/services/dsgc/v20190723/api.json +2 -2
- tccli/services/dts/v20180330/api.json +19 -19
- tccli/services/dts/v20211206/api.json +829 -818
- tccli/services/emr/emr_client.py +53 -0
- tccli/services/emr/v20190103/api.json +247 -0
- tccli/services/emr/v20190103/examples.json +8 -0
- tccli/services/es/v20180416/api.json +13 -3
- tccli/services/es/v20180416/examples.json +2 -2
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +122 -1
- tccli/services/ess/v20201111/examples.json +26 -0
- tccli/services/essbasic/essbasic_client.py +57 -4
- tccli/services/essbasic/v20210526/api.json +163 -0
- tccli/services/essbasic/v20210526/examples.json +26 -0
- tccli/services/fmu/fmu_client.py +8 -167
- tccli/services/fmu/v20191213/api.json +0 -292
- tccli/services/fmu/v20191213/examples.json +0 -24
- tccli/services/goosefs/v20220519/api.json +26 -24
- tccli/services/goosefs/v20220519/examples.json +2 -2
- tccli/services/iotcloud/v20210408/api.json +27 -27
- tccli/services/iotcloud/v20210408/examples.json +6 -6
- tccli/services/iotexplorer/iotexplorer_client.py +0 -106
- tccli/services/iotexplorer/v20190423/api.json +0 -274
- tccli/services/iotexplorer/v20190423/examples.json +0 -16
- tccli/services/iss/v20230517/api.json +547 -537
- tccli/services/iss/v20230517/examples.json +2 -2
- tccli/services/kms/v20190118/api.json +20 -0
- tccli/services/lcic/lcic_client.py +114 -8
- tccli/services/lcic/v20220817/api.json +108 -0
- tccli/services/lcic/v20220817/examples.json +16 -0
- tccli/services/lke/v20231130/api.json +8 -8
- tccli/services/lke/v20231130/examples.json +1 -1
- tccli/services/lowcode/v20210108/api.json +165 -165
- tccli/services/lowcode/v20210108/examples.json +5 -5
- tccli/services/mariadb/v20170312/api.json +12 -2
- tccli/services/mariadb/v20170312/examples.json +4 -4
- tccli/services/mongodb/mongodb_client.py +57 -4
- tccli/services/mongodb/v20190725/api.json +63 -0
- tccli/services/mongodb/v20190725/examples.json +14 -0
- tccli/services/monitor/v20180724/api.json +36 -36
- tccli/services/monitor/v20180724/examples.json +10 -10
- tccli/services/ocr/v20181119/api.json +2 -2
- tccli/services/ocr/v20181119/examples.json +2 -2
- tccli/services/organization/organization_client.py +53 -0
- tccli/services/organization/v20210331/api.json +61 -0
- tccli/services/organization/v20210331/examples.json +8 -0
- tccli/services/redis/v20180412/api.json +11 -2
- tccli/services/redis/v20180412/examples.json +1 -1
- tccli/services/scf/v20180416/api.json +40 -0
- tccli/services/svp/svp_client.py +57 -4
- tccli/services/svp/v20240125/api.json +319 -0
- tccli/services/svp/v20240125/examples.json +8 -0
- tccli/services/tdmq/tdmq_client.py +4 -57
- tccli/services/tdmq/v20200217/api.json +118 -212
- tccli/services/tdmq/v20200217/examples.json +0 -8
- tccli/services/tds/v20220801/api.json +2 -2
- tccli/services/tione/v20211111/api.json +41 -1
- tccli/services/trtc/v20190722/api.json +16 -5
- tccli/services/tse/v20201207/api.json +207 -104
- tccli/services/tsf/tsf_client.py +53 -0
- tccli/services/tsf/v20180326/api.json +48 -4
- tccli/services/tsf/v20180326/examples.json +8 -0
- tccli/services/vclm/v20240523/api.json +20 -2
- tccli/services/vdb/v20230616/api.json +62 -62
- tccli/services/vdb/v20230616/examples.json +2 -2
- tccli/services/vpc/v20170312/api.json +54 -0
- tccli/services/vpc/v20170312/examples.json +8 -0
- tccli/services/vpc/vpc_client.py +53 -0
- tccli/services/waf/v20180125/api.json +143 -0
- tccli/services/waf/v20180125/examples.json +16 -0
- tccli/services/waf/waf_client.py +106 -0
- tccli/services/wedata/v20210820/api.json +1220 -5
- tccli/services/wedata/v20210820/examples.json +32 -8
- tccli/services/wedata/wedata_client.py +159 -0
- {tccli-3.0.1283.1.dist-info → tccli-3.0.1285.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1283.1.dist-info → tccli-3.0.1285.1.dist-info}/RECORD +104 -104
- {tccli-3.0.1283.1.dist-info → tccli-3.0.1285.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1283.1.dist-info → tccli-3.0.1285.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1283.1.dist-info → tccli-3.0.1285.1.dist-info}/license_files/LICENSE +0 -0
@@ -7,6 +7,13 @@
|
|
7
7
|
"output": "CreateSavingPlanOrderResponse",
|
8
8
|
"status": "online"
|
9
9
|
},
|
10
|
+
"DescribeSavingPlanCoverage": {
|
11
|
+
"document": "查询当前用户节省计划覆盖率明细数据,如无特别说明,金额单位均为元(国内站)或者美元(国际站)。",
|
12
|
+
"input": "DescribeSavingPlanCoverageRequest",
|
13
|
+
"name": "查询节省计划覆盖率数据",
|
14
|
+
"output": "DescribeSavingPlanCoverageResponse",
|
15
|
+
"status": "online"
|
16
|
+
},
|
10
17
|
"DescribeSavingPlanDeduct": {
|
11
18
|
"document": "查询节省计划抵扣明细",
|
12
19
|
"input": "DescribeSavingPlanDeductRequest",
|
@@ -145,6 +152,99 @@
|
|
145
152
|
],
|
146
153
|
"type": "object"
|
147
154
|
},
|
155
|
+
"DescribeSavingPlanCoverageRequest": {
|
156
|
+
"document": "DescribeSavingPlanCoverage请求参数结构体",
|
157
|
+
"members": [
|
158
|
+
{
|
159
|
+
"disabled": false,
|
160
|
+
"document": "费用起始日期,格式yyyy-MM-dd",
|
161
|
+
"example": "2023-06-01",
|
162
|
+
"member": "string",
|
163
|
+
"name": "StartDate",
|
164
|
+
"required": true,
|
165
|
+
"type": "string"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"disabled": false,
|
169
|
+
"document": "费用结束日期,格式yyyy-MM-dd",
|
170
|
+
"example": "2023-06-30",
|
171
|
+
"member": "string",
|
172
|
+
"name": "EndDate",
|
173
|
+
"required": true,
|
174
|
+
"type": "string"
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"disabled": false,
|
178
|
+
"document": "分页偏移量,Offset=0表示第一页,如果Limit=100,则Offset=100表示第二页,Offset=200表示第三页,以此类推",
|
179
|
+
"example": "0",
|
180
|
+
"member": "uint64",
|
181
|
+
"name": "Offset",
|
182
|
+
"required": true,
|
183
|
+
"type": "int"
|
184
|
+
},
|
185
|
+
{
|
186
|
+
"disabled": false,
|
187
|
+
"document": "数量,最大值为200",
|
188
|
+
"example": "200",
|
189
|
+
"member": "uint64",
|
190
|
+
"name": "Limit",
|
191
|
+
"required": true,
|
192
|
+
"type": "int"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"disabled": false,
|
196
|
+
"document": "取值包括1(缺省值)和2,1表示按天统计覆盖率,2表示按月统计覆盖率,此参数仅影响返回的RateSet聚合粒度,不影响返回的DetailSet",
|
197
|
+
"example": "1",
|
198
|
+
"member": "uint64",
|
199
|
+
"name": "PeriodType",
|
200
|
+
"required": false,
|
201
|
+
"type": "int"
|
202
|
+
}
|
203
|
+
],
|
204
|
+
"type": "object"
|
205
|
+
},
|
206
|
+
"DescribeSavingPlanCoverageResponse": {
|
207
|
+
"document": "DescribeSavingPlanCoverage返回参数结构体",
|
208
|
+
"members": [
|
209
|
+
{
|
210
|
+
"disabled": false,
|
211
|
+
"document": "节省计划覆盖率明细数据",
|
212
|
+
"example": "无",
|
213
|
+
"member": "SavingPlanCoverageDetail",
|
214
|
+
"name": "DetailSet",
|
215
|
+
"output_required": false,
|
216
|
+
"type": "list",
|
217
|
+
"value_allowed_null": false
|
218
|
+
},
|
219
|
+
{
|
220
|
+
"disabled": false,
|
221
|
+
"document": "节省计划覆盖率聚合数据",
|
222
|
+
"example": "无",
|
223
|
+
"member": "SavingPlanCoverageRate",
|
224
|
+
"name": "RateSet",
|
225
|
+
"output_required": false,
|
226
|
+
"type": "list",
|
227
|
+
"value_allowed_null": false
|
228
|
+
},
|
229
|
+
{
|
230
|
+
"disabled": false,
|
231
|
+
"document": "查询命中的节省计划覆盖率明细数据总条数",
|
232
|
+
"example": "1000",
|
233
|
+
"member": "uint64",
|
234
|
+
"name": "TotalCount",
|
235
|
+
"output_required": false,
|
236
|
+
"type": "int",
|
237
|
+
"value_allowed_null": false
|
238
|
+
},
|
239
|
+
{
|
240
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
241
|
+
"member": "string",
|
242
|
+
"name": "RequestId",
|
243
|
+
"type": "string"
|
244
|
+
}
|
245
|
+
],
|
246
|
+
"type": "object"
|
247
|
+
},
|
148
248
|
"DescribeSavingPlanDeductRequest": {
|
149
249
|
"document": "DescribeSavingPlanDeduct请求参数结构体",
|
150
250
|
"members": [
|
@@ -439,6 +539,225 @@
|
|
439
539
|
],
|
440
540
|
"type": "object"
|
441
541
|
},
|
542
|
+
"SavingPlanCoverageDetail": {
|
543
|
+
"document": "节省计划覆盖率数据",
|
544
|
+
"members": [
|
545
|
+
{
|
546
|
+
"disabled": false,
|
547
|
+
"document": "资源 ID:账单中出账对象 ID,不同产品因资源形态不同,资源内容不完全相同,如云服务器 CVM 为对应的实例 ID",
|
548
|
+
"example": "disk-3t7fhog0",
|
549
|
+
"member": "string",
|
550
|
+
"name": "ResourceId",
|
551
|
+
"output_required": true,
|
552
|
+
"required": false,
|
553
|
+
"type": "string",
|
554
|
+
"value_allowed_null": false
|
555
|
+
},
|
556
|
+
{
|
557
|
+
"disabled": false,
|
558
|
+
"document": "地域ID",
|
559
|
+
"example": "1",
|
560
|
+
"member": "uint64",
|
561
|
+
"name": "RegionId",
|
562
|
+
"output_required": true,
|
563
|
+
"required": false,
|
564
|
+
"type": "int",
|
565
|
+
"value_allowed_null": false
|
566
|
+
},
|
567
|
+
{
|
568
|
+
"disabled": false,
|
569
|
+
"document": "产品编码",
|
570
|
+
"example": "p_cynosdb",
|
571
|
+
"member": "string",
|
572
|
+
"name": "ProductCode",
|
573
|
+
"output_required": false,
|
574
|
+
"required": false,
|
575
|
+
"type": "string",
|
576
|
+
"value_allowed_null": false
|
577
|
+
},
|
578
|
+
{
|
579
|
+
"disabled": false,
|
580
|
+
"document": "子产品编码",
|
581
|
+
"example": "sp_cynosdb_mysql",
|
582
|
+
"member": "string",
|
583
|
+
"name": "SubProductCode",
|
584
|
+
"output_required": false,
|
585
|
+
"required": false,
|
586
|
+
"type": "string",
|
587
|
+
"value_allowed_null": false
|
588
|
+
},
|
589
|
+
{
|
590
|
+
"disabled": false,
|
591
|
+
"document": "费用起始日期,格式yyyy-MM-dd",
|
592
|
+
"example": "2023-06-01",
|
593
|
+
"member": "string",
|
594
|
+
"name": "StartDate",
|
595
|
+
"output_required": false,
|
596
|
+
"required": false,
|
597
|
+
"type": "string",
|
598
|
+
"value_allowed_null": false
|
599
|
+
},
|
600
|
+
{
|
601
|
+
"disabled": false,
|
602
|
+
"document": "费用结束日期,格式yyyy-MM-dd,目前与StartDate相等",
|
603
|
+
"example": "2023-06-01",
|
604
|
+
"member": "string",
|
605
|
+
"name": "EndDate",
|
606
|
+
"output_required": false,
|
607
|
+
"required": false,
|
608
|
+
"type": "string",
|
609
|
+
"value_allowed_null": false
|
610
|
+
},
|
611
|
+
{
|
612
|
+
"disabled": false,
|
613
|
+
"document": "节省计划覆盖金额(即节省计划支付金额)",
|
614
|
+
"example": "1.0",
|
615
|
+
"member": "float",
|
616
|
+
"name": "SpCoveredAmount",
|
617
|
+
"output_required": false,
|
618
|
+
"required": false,
|
619
|
+
"type": "float",
|
620
|
+
"value_allowed_null": false
|
621
|
+
},
|
622
|
+
{
|
623
|
+
"disabled": false,
|
624
|
+
"document": "节省计划未覆盖金额(即优惠后总价)",
|
625
|
+
"example": "2.0",
|
626
|
+
"member": "float",
|
627
|
+
"name": "SpUncoveredAmount",
|
628
|
+
"output_required": false,
|
629
|
+
"required": false,
|
630
|
+
"type": "float",
|
631
|
+
"value_allowed_null": false
|
632
|
+
},
|
633
|
+
{
|
634
|
+
"disabled": false,
|
635
|
+
"document": "总支出(即节省计划未覆盖金额 + 节省计划覆盖金额)",
|
636
|
+
"example": "3.0",
|
637
|
+
"member": "float",
|
638
|
+
"name": "TotalRealAmount",
|
639
|
+
"output_required": false,
|
640
|
+
"required": false,
|
641
|
+
"type": "float",
|
642
|
+
"value_allowed_null": false
|
643
|
+
},
|
644
|
+
{
|
645
|
+
"disabled": false,
|
646
|
+
"document": "按量计费预期金额(即折前价 * 折扣)",
|
647
|
+
"example": "3.0",
|
648
|
+
"member": "float",
|
649
|
+
"name": "ExpectedAmount",
|
650
|
+
"output_required": false,
|
651
|
+
"required": false,
|
652
|
+
"type": "float",
|
653
|
+
"value_allowed_null": false
|
654
|
+
},
|
655
|
+
{
|
656
|
+
"disabled": false,
|
657
|
+
"document": "覆盖率结果,取值[0, 100]",
|
658
|
+
"example": "30.0",
|
659
|
+
"member": "float",
|
660
|
+
"name": "SpCoverage",
|
661
|
+
"output_required": false,
|
662
|
+
"required": false,
|
663
|
+
"type": "float",
|
664
|
+
"value_allowed_null": false
|
665
|
+
},
|
666
|
+
{
|
667
|
+
"disabled": false,
|
668
|
+
"document": "支付者昵称",
|
669
|
+
"example": "腾讯",
|
670
|
+
"member": "string",
|
671
|
+
"name": "PayerUinName",
|
672
|
+
"output_required": false,
|
673
|
+
"required": false,
|
674
|
+
"type": "string",
|
675
|
+
"value_allowed_null": false
|
676
|
+
},
|
677
|
+
{
|
678
|
+
"disabled": false,
|
679
|
+
"document": "使用者昵称",
|
680
|
+
"example": "腾讯",
|
681
|
+
"member": "string",
|
682
|
+
"name": "OwnerUinName",
|
683
|
+
"output_required": false,
|
684
|
+
"required": false,
|
685
|
+
"type": "string",
|
686
|
+
"value_allowed_null": false
|
687
|
+
},
|
688
|
+
{
|
689
|
+
"disabled": false,
|
690
|
+
"document": "支付者uin",
|
691
|
+
"example": "9091",
|
692
|
+
"member": "string",
|
693
|
+
"name": "PayerUin",
|
694
|
+
"output_required": false,
|
695
|
+
"required": false,
|
696
|
+
"type": "string",
|
697
|
+
"value_allowed_null": false
|
698
|
+
},
|
699
|
+
{
|
700
|
+
"disabled": false,
|
701
|
+
"document": "计费项名称",
|
702
|
+
"example": "存储",
|
703
|
+
"member": "string",
|
704
|
+
"name": "SubBillingItemName",
|
705
|
+
"output_required": false,
|
706
|
+
"required": false,
|
707
|
+
"type": "string",
|
708
|
+
"value_allowed_null": false
|
709
|
+
},
|
710
|
+
{
|
711
|
+
"disabled": false,
|
712
|
+
"document": "计费细项名称",
|
713
|
+
"example": "cynosdb_存储_mysql\t",
|
714
|
+
"member": "string",
|
715
|
+
"name": "BillingItemName",
|
716
|
+
"output_required": false,
|
717
|
+
"required": false,
|
718
|
+
"type": "string",
|
719
|
+
"value_allowed_null": false
|
720
|
+
},
|
721
|
+
{
|
722
|
+
"disabled": false,
|
723
|
+
"document": "子产品名称",
|
724
|
+
"example": "TDSQL-C MySQL版",
|
725
|
+
"member": "string",
|
726
|
+
"name": "SubProductName",
|
727
|
+
"output_required": false,
|
728
|
+
"required": false,
|
729
|
+
"type": "string",
|
730
|
+
"value_allowed_null": false
|
731
|
+
}
|
732
|
+
],
|
733
|
+
"usage": "both"
|
734
|
+
},
|
735
|
+
"SavingPlanCoverageRate": {
|
736
|
+
"document": "节省计划覆盖率聚合数据",
|
737
|
+
"members": [
|
738
|
+
{
|
739
|
+
"disabled": false,
|
740
|
+
"document": "聚合时间维度,按天聚合格式为yyyy-MM-dd,按月聚合格式为yyyy-MM",
|
741
|
+
"example": "2023-06-01",
|
742
|
+
"member": "string",
|
743
|
+
"name": "DatePoint",
|
744
|
+
"output_required": false,
|
745
|
+
"type": "string",
|
746
|
+
"value_allowed_null": false
|
747
|
+
},
|
748
|
+
{
|
749
|
+
"disabled": false,
|
750
|
+
"document": "覆盖率结果,取值[0, 100]",
|
751
|
+
"example": "10.0",
|
752
|
+
"member": "float",
|
753
|
+
"name": "Rate",
|
754
|
+
"output_required": false,
|
755
|
+
"type": "float",
|
756
|
+
"value_allowed_null": false
|
757
|
+
}
|
758
|
+
],
|
759
|
+
"usage": "out"
|
760
|
+
},
|
442
761
|
"SavingPlanDeductDetail": {
|
443
762
|
"document": "节省计划抵扣明细",
|
444
763
|
"members": [
|
@@ -8,6 +8,14 @@
|
|
8
8
|
"title": "节省计划下单"
|
9
9
|
}
|
10
10
|
],
|
11
|
+
"DescribeSavingPlanCoverage": [
|
12
|
+
{
|
13
|
+
"document": "示例",
|
14
|
+
"input": "POST / HTTP/1.1\nHost: svp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSavingPlanCoverage\n<公共请求参数>\n\n{\n \"StartDate\": \"2024-12-01\",\n \"EndDate\": \"2024-12-30\",\n \"Offset\": 0,\n \"Limit\": 1\n}",
|
15
|
+
"output": "{\n \"Response\": {\n \"DetailSet\": [\n {\n \"BillingItemName\": \"计费项\",\n \"EndDate\": \"2024-12-30\",\n \"ExpectedAmount\": -4.550174,\n \"OwnerUinName\": \"9099账号\",\n \"PayerUin\": \"9099\",\n \"PayerUinName\": \"9099账号\",\n \"ProductCode\": \"p_cbs\",\n \"RegionId\": 1,\n \"ResourceId\": \"billingVirtualHighPrecisionFlatAccountId_\",\n \"SpCoverage\": 0,\n \"SpCoveredAmount\": 0,\n \"SpUncoveredAmount\": -4.550174,\n \"StartDate\": \"2024-12-01\",\n \"SubBillingItemName\": \"计费细项\",\n \"SubProductCode\": \"sp_cbs_bssd\",\n \"SubProductName\": \"通用型SSD云硬盘\",\n \"TotalRealAmount\": -4.550174\n }\n ],\n \"RateSet\": [\n {\n \"DatePoint\": \"2024-12-01\",\n \"Rate\": 10.05\n }\n ],\n \"RequestId\": \"7816cba1-60d9-4a07-8556-5b62ab8d3641\",\n \"TotalCount\": 25\n }\n}",
|
16
|
+
"title": "示例"
|
17
|
+
}
|
18
|
+
],
|
11
19
|
"DescribeSavingPlanDeduct": [
|
12
20
|
{
|
13
21
|
"document": "",
|
@@ -2513,58 +2513,6 @@ def doDeleteCluster(args, parsed_globals):
|
|
2513
2513
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2514
2514
|
|
2515
2515
|
|
2516
|
-
def doCreateRocketMQVipInstance(args, parsed_globals):
|
2517
|
-
g_param = parse_global_arg(parsed_globals)
|
2518
|
-
|
2519
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2520
|
-
cred = credential.CVMRoleCredential()
|
2521
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2522
|
-
cred = credential.STSAssumeRoleCredential(
|
2523
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2524
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2525
|
-
)
|
2526
|
-
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):
|
2527
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2528
|
-
else:
|
2529
|
-
cred = credential.Credential(
|
2530
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2531
|
-
)
|
2532
|
-
http_profile = HttpProfile(
|
2533
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2534
|
-
reqMethod="POST",
|
2535
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
2536
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2537
|
-
)
|
2538
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2539
|
-
if g_param[OptionsDefine.Language]:
|
2540
|
-
profile.language = g_param[OptionsDefine.Language]
|
2541
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2542
|
-
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
|
2543
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
2544
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2545
|
-
model = models.CreateRocketMQVipInstanceRequest()
|
2546
|
-
model.from_json_string(json.dumps(args))
|
2547
|
-
start_time = time.time()
|
2548
|
-
while True:
|
2549
|
-
rsp = client.CreateRocketMQVipInstance(model)
|
2550
|
-
result = rsp.to_json_string()
|
2551
|
-
try:
|
2552
|
-
json_obj = json.loads(result)
|
2553
|
-
except TypeError as e:
|
2554
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2555
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2556
|
-
break
|
2557
|
-
cur_time = time.time()
|
2558
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2559
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2560
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2561
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2562
|
-
else:
|
2563
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2564
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2565
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2566
|
-
|
2567
|
-
|
2568
2516
|
def doResetRocketMQConsumerOffSet(args, parsed_globals):
|
2569
2517
|
g_param = parse_global_arg(parsed_globals)
|
2570
2518
|
|
@@ -7557,7 +7505,7 @@ def doModifyRole(args, parsed_globals):
|
|
7557
7505
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7558
7506
|
|
7559
7507
|
|
7560
|
-
def
|
7508
|
+
def doCreateRocketMQVipInstance(args, parsed_globals):
|
7561
7509
|
g_param = parse_global_arg(parsed_globals)
|
7562
7510
|
|
7563
7511
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -7586,11 +7534,11 @@ def doDescribeRabbitMQVirtualHostList(args, parsed_globals):
|
|
7586
7534
|
client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
|
7587
7535
|
client._sdkVersion += ("_CLI_" + __version__)
|
7588
7536
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7589
|
-
model = models.
|
7537
|
+
model = models.CreateRocketMQVipInstanceRequest()
|
7590
7538
|
model.from_json_string(json.dumps(args))
|
7591
7539
|
start_time = time.time()
|
7592
7540
|
while True:
|
7593
|
-
rsp = client.
|
7541
|
+
rsp = client.CreateRocketMQVipInstance(model)
|
7594
7542
|
result = rsp.to_json_string()
|
7595
7543
|
try:
|
7596
7544
|
json_obj = json.loads(result)
|
@@ -7928,7 +7876,6 @@ ACTION_MAP = {
|
|
7928
7876
|
"DescribeCmqSubscriptionDetail": doDescribeCmqSubscriptionDetail,
|
7929
7877
|
"DescribeRabbitMQVirtualHost": doDescribeRabbitMQVirtualHost,
|
7930
7878
|
"DeleteCluster": doDeleteCluster,
|
7931
|
-
"CreateRocketMQVipInstance": doCreateRocketMQVipInstance,
|
7932
7879
|
"ResetRocketMQConsumerOffSet": doResetRocketMQConsumerOffSet,
|
7933
7880
|
"DescribeRabbitMQPermission": doDescribeRabbitMQPermission,
|
7934
7881
|
"DeleteRabbitMQPermission": doDeleteRabbitMQPermission,
|
@@ -8025,7 +7972,7 @@ ACTION_MAP = {
|
|
8025
7972
|
"DescribeRocketMQPublicAccessPoint": doDescribeRocketMQPublicAccessPoint,
|
8026
7973
|
"DeleteRabbitMQBinding": doDeleteRabbitMQBinding,
|
8027
7974
|
"ModifyRole": doModifyRole,
|
8028
|
-
"
|
7975
|
+
"CreateRocketMQVipInstance": doCreateRocketMQVipInstance,
|
8029
7976
|
"DeleteRocketMQEnvironmentRoles": doDeleteRocketMQEnvironmentRoles,
|
8030
7977
|
"DeleteCmqSubscribe": doDeleteCmqSubscribe,
|
8031
7978
|
"DescribeAllTenants": doDescribeAllTenants,
|