tccli 3.0.1207.1__py2.py3-none-any.whl → 3.0.1209.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 (45) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/advisor/v20200721/api.json +1 -1
  4. tccli/services/batch/v20170312/api.json +20 -2
  5. tccli/services/bma/v20221115/examples.json +1 -1
  6. tccli/services/ccc/v20200210/api.json +28 -1
  7. tccli/services/cls/cls_client.py +216 -4
  8. tccli/services/cls/v20201016/api.json +475 -0
  9. tccli/services/cls/v20201016/examples.json +39 -7
  10. tccli/services/cynosdb/v20190107/api.json +11 -0
  11. tccli/services/dc/dc_client.py +126 -73
  12. tccli/services/dc/v20180410/api.json +300 -0
  13. tccli/services/dc/v20180410/examples.json +8 -0
  14. tccli/services/dlc/dlc_client.py +53 -0
  15. tccli/services/dlc/v20210125/api.json +273 -0
  16. tccli/services/dlc/v20210125/examples.json +8 -0
  17. tccli/services/emr/v20190103/api.json +2 -2
  18. tccli/services/ess/v20201111/api.json +13 -13
  19. tccli/services/ess/v20201111/examples.json +10 -10
  20. tccli/services/essbasic/v20210526/api.json +2 -2
  21. tccli/services/faceid/v20180301/api.json +11 -1
  22. tccli/services/gwlb/__init__.py +4 -0
  23. tccli/services/gwlb/gwlb_client.py +1096 -0
  24. tccli/services/gwlb/v20240906/api.json +1807 -0
  25. tccli/services/gwlb/v20240906/examples.json +155 -0
  26. tccli/services/ioa/v20220601/api.json +18 -1
  27. tccli/services/oceanus/v20190422/api.json +4 -4
  28. tccli/services/privatedns/privatedns_client.py +57 -4
  29. tccli/services/privatedns/v20201028/api.json +101 -0
  30. tccli/services/privatedns/v20201028/examples.json +8 -0
  31. tccli/services/teo/v20220901/api.json +4 -4
  32. tccli/services/tke/tke_client.py +4 -57
  33. tccli/services/tke/v20180525/api.json +2 -74
  34. tccli/services/tke/v20180525/examples.json +0 -8
  35. tccli/services/trtc/v20190722/api.json +1 -1
  36. tccli/services/vclm/v20240523/api.json +9 -0
  37. tccli/services/vod/v20180717/api.json +1 -1
  38. tccli/services/vpc/v20170312/api.json +23 -14
  39. tccli/services/vpc/v20170312/examples.json +1 -1
  40. tccli/services/vtc/v20240223/api.json +9 -0
  41. {tccli-3.0.1207.1.dist-info → tccli-3.0.1209.1.dist-info}/METADATA +2 -2
  42. {tccli-3.0.1207.1.dist-info → tccli-3.0.1209.1.dist-info}/RECORD +45 -41
  43. {tccli-3.0.1207.1.dist-info → tccli-3.0.1209.1.dist-info}/WHEEL +0 -0
  44. {tccli-3.0.1207.1.dist-info → tccli-3.0.1209.1.dist-info}/entry_points.txt +0 -0
  45. {tccli-3.0.1207.1.dist-info → tccli-3.0.1209.1.dist-info}/license_files/LICENSE +0 -0
@@ -14,6 +14,13 @@
14
14
  "output": "ApplyInternetAddressResponse",
15
15
  "status": "online"
16
16
  },
17
+ "CreateCloudAttachService": {
18
+ "document": "创建敏捷上云服务",
19
+ "input": "CreateCloudAttachServiceRequest",
20
+ "name": "创建敏捷上云服务",
21
+ "output": "CreateCloudAttachServiceResponse",
22
+ "status": "online"
23
+ },
17
24
  "CreateDirectConnect": {
18
25
  "document": "申请物理专线接入。\n调用该接口时,请注意:\n账号要进行实名认证,否则不允许申请物理专线;\n若账户下存在欠费状态的物理专线,则不能申请更多的物理专线。",
19
26
  "input": "CreateDirectConnectRequest",
@@ -433,6 +440,202 @@
433
440
  ],
434
441
  "usage": "both"
435
442
  },
443
+ "CloudAttachInfo": {
444
+ "document": "敏捷上云服务信息",
445
+ "members": [
446
+ {
447
+ "disabled": false,
448
+ "document": "敏捷上云实例id",
449
+ "example": "cas-xxxxxxxx",
450
+ "member": "string",
451
+ "name": "InstanceId",
452
+ "output_required": true,
453
+ "type": "string",
454
+ "value_allowed_null": false
455
+ },
456
+ {
457
+ "disabled": false,
458
+ "document": "敏捷上云名称",
459
+ "example": "名称",
460
+ "member": "string",
461
+ "name": "Name",
462
+ "output_required": true,
463
+ "type": "string",
464
+ "value_allowed_null": false
465
+ },
466
+ {
467
+ "disabled": false,
468
+ "document": "合作伙伴的AppId",
469
+ "example": "1234353",
470
+ "member": "string",
471
+ "name": "IapId",
472
+ "output_required": true,
473
+ "type": "string",
474
+ "value_allowed_null": false
475
+ },
476
+ {
477
+ "disabled": false,
478
+ "document": "需要接入敏捷上云的IDC的地址",
479
+ "example": "中国",
480
+ "member": "string",
481
+ "name": "IdcAddress",
482
+ "output_required": true,
483
+ "type": "string",
484
+ "value_allowed_null": false
485
+ },
486
+ {
487
+ "disabled": false,
488
+ "document": "需要接入敏捷上云的IDC的互联网服务提供商类型",
489
+ "example": "CMCC",
490
+ "member": "string",
491
+ "name": "IdcType",
492
+ "output_required": true,
493
+ "type": "string",
494
+ "value_allowed_null": false
495
+ },
496
+ {
497
+ "disabled": false,
498
+ "document": "敏捷上云的带宽,单位为MB",
499
+ "example": "1000",
500
+ "member": "uint64",
501
+ "name": "Bandwidth",
502
+ "output_required": true,
503
+ "type": "int",
504
+ "value_allowed_null": false
505
+ },
506
+ {
507
+ "disabled": false,
508
+ "document": "联系电话",
509
+ "example": "18600530023",
510
+ "member": "string",
511
+ "name": "Telephone",
512
+ "output_required": true,
513
+ "type": "string",
514
+ "value_allowed_null": false
515
+ },
516
+ {
517
+ "disabled": false,
518
+ "document": "敏捷上云的状态\navailable:就绪状态\napplying:申请,待审核状态\npendingpay:代付款状态\nbuilding:建设中状态\nconfirming:待确认状态\nisolate: 隔离状态\nstoped:终止状态",
519
+ "example": "pendingpay",
520
+ "member": "string",
521
+ "name": "Status",
522
+ "output_required": true,
523
+ "type": "string",
524
+ "value_allowed_null": false
525
+ },
526
+ {
527
+ "disabled": false,
528
+ "document": "敏捷上云申请的时间",
529
+ "example": "2020-01-12 12:12:23",
530
+ "member": "datetime",
531
+ "name": "ApplyTime",
532
+ "output_required": true,
533
+ "type": "string",
534
+ "value_allowed_null": false
535
+ },
536
+ {
537
+ "disabled": false,
538
+ "document": "敏捷上云建设完成的时间\n注意:此字段可能返回 null,表示取不到有效值。",
539
+ "example": "2020-01-12 12:12:23",
540
+ "member": "datetime",
541
+ "name": "ReadyTime",
542
+ "output_required": true,
543
+ "type": "string",
544
+ "value_allowed_null": true
545
+ },
546
+ {
547
+ "disabled": false,
548
+ "document": "敏捷上云过期时间",
549
+ "example": "2020-01-12 12:12:23",
550
+ "member": "datetime",
551
+ "name": "ExpireTime",
552
+ "output_required": true,
553
+ "type": "string",
554
+ "value_allowed_null": false
555
+ },
556
+ {
557
+ "disabled": false,
558
+ "document": "备注信息",
559
+ "example": "备注",
560
+ "member": "string",
561
+ "name": "Remarks",
562
+ "output_required": true,
563
+ "type": "string",
564
+ "value_allowed_null": false
565
+ },
566
+ {
567
+ "disabled": false,
568
+ "document": "敏捷上云的地域状态。\nsame-region:同地域\ncross-region:跨地域",
569
+ "example": "cross-region",
570
+ "member": "string",
571
+ "name": "RegionStatus",
572
+ "output_required": true,
573
+ "type": "string",
574
+ "value_allowed_null": false
575
+ },
576
+ {
577
+ "disabled": false,
578
+ "document": "用户的AppId",
579
+ "example": "1235464",
580
+ "member": "string",
581
+ "name": "AppId",
582
+ "output_required": true,
583
+ "type": "string",
584
+ "value_allowed_null": false
585
+ },
586
+ {
587
+ "disabled": false,
588
+ "document": "用户的Uin",
589
+ "example": "1234544",
590
+ "member": "string",
591
+ "name": "Uin",
592
+ "output_required": true,
593
+ "type": "string",
594
+ "value_allowed_null": false
595
+ },
596
+ {
597
+ "disabled": false,
598
+ "document": "用户注册名称",
599
+ "example": "用户注册名称",
600
+ "member": "string",
601
+ "name": "CustomerAuthName",
602
+ "output_required": true,
603
+ "type": "string",
604
+ "value_allowed_null": false
605
+ },
606
+ {
607
+ "disabled": false,
608
+ "document": "物理专线实例ID",
609
+ "example": "dc-xxxxxxxx",
610
+ "member": "string",
611
+ "name": "DirectConnectId",
612
+ "output_required": true,
613
+ "type": "string",
614
+ "value_allowed_null": false
615
+ },
616
+ {
617
+ "disabled": false,
618
+ "document": "敏捷上云是否支持创建高速上云专线网关",
619
+ "example": "true",
620
+ "member": "bool",
621
+ "name": "CloudAttachServiceGatewaysSupport",
622
+ "output_required": true,
623
+ "type": "bool",
624
+ "value_allowed_null": false
625
+ },
626
+ {
627
+ "disabled": false,
628
+ "document": "敏捷上云服务是否处于升降配中",
629
+ "example": "true",
630
+ "member": "bool",
631
+ "name": "BUpdateBandwidth",
632
+ "output_required": true,
633
+ "type": "bool",
634
+ "value_allowed_null": false
635
+ }
636
+ ],
637
+ "usage": "out"
638
+ },
436
639
  "Coordinate": {
437
640
  "document": "坐标,经维度描述",
438
641
  "members": [
@@ -459,6 +662,103 @@
459
662
  ],
460
663
  "usage": "out"
461
664
  },
665
+ "CreateCasInput": {
666
+ "document": "创建敏捷上云入参",
667
+ "members": [
668
+ {
669
+ "disabled": false,
670
+ "document": "敏捷上云名称",
671
+ "example": "测试线路名",
672
+ "member": "string",
673
+ "name": "Name",
674
+ "required": true,
675
+ "type": "string"
676
+ },
677
+ {
678
+ "disabled": false,
679
+ "document": "需要接入敏捷上云的IDC的地址",
680
+ "example": "湖北省武汉市高薪大道xx机房xxx地址",
681
+ "member": "string",
682
+ "name": "IdcAddress",
683
+ "required": true,
684
+ "type": "string"
685
+ },
686
+ {
687
+ "disabled": false,
688
+ "document": "需要接入敏捷上云的IDC的互联网服务提供商类型",
689
+ "example": "CUCC",
690
+ "member": "string",
691
+ "name": "IdcType",
692
+ "required": true,
693
+ "type": "string"
694
+ },
695
+ {
696
+ "disabled": false,
697
+ "document": "敏捷上云的带宽,单位为MB",
698
+ "example": "100",
699
+ "member": "uint64",
700
+ "name": "Bandwidth",
701
+ "required": true,
702
+ "type": "int"
703
+ },
704
+ {
705
+ "disabled": false,
706
+ "document": "联系电话",
707
+ "example": "13888888888",
708
+ "member": "string",
709
+ "name": "Telephone",
710
+ "required": true,
711
+ "type": "string"
712
+ },
713
+ {
714
+ "disabled": false,
715
+ "document": "备注信息",
716
+ "example": "购买时长6个月",
717
+ "member": "string",
718
+ "name": "Remarks",
719
+ "required": true,
720
+ "type": "string"
721
+ }
722
+ ],
723
+ "usage": "in"
724
+ },
725
+ "CreateCloudAttachServiceRequest": {
726
+ "document": "CreateCloudAttachService请求参数结构体",
727
+ "members": [
728
+ {
729
+ "disabled": false,
730
+ "document": "创建敏捷上云入参",
731
+ "example": "无",
732
+ "member": "CreateCasInput",
733
+ "name": "Data",
734
+ "required": true,
735
+ "type": "object"
736
+ }
737
+ ],
738
+ "type": "object"
739
+ },
740
+ "CreateCloudAttachServiceResponse": {
741
+ "document": "CreateCloudAttachService返回参数结构体",
742
+ "members": [
743
+ {
744
+ "disabled": false,
745
+ "document": "敏捷上云服务详情",
746
+ "example": "无",
747
+ "member": "CloudAttachInfo",
748
+ "name": "CloudAttach",
749
+ "output_required": true,
750
+ "type": "object",
751
+ "value_allowed_null": false
752
+ },
753
+ {
754
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
755
+ "member": "string",
756
+ "name": "RequestId",
757
+ "type": "string"
758
+ }
759
+ ],
760
+ "type": "object"
761
+ },
462
762
  "CreateDirectConnectRequest": {
463
763
  "document": "CreateDirectConnect请求参数结构体",
464
764
  "members": [
@@ -22,6 +22,14 @@
22
22
  "title": "远程出口公网IP申请示例"
23
23
  }
24
24
  ],
25
+ "CreateCloudAttachService": [
26
+ {
27
+ "document": "创建敏捷上云服务",
28
+ "input": "https://dc.tencentcloudapi.com/?Action=CreateCloudAttachService\n&Data.Name=test\n&Data.IdcAddress=北京东城区IDC地址\n&Data.IdcType=CUCC\n&Data.Bandwidth=100\n&Data.Telephone=18888888888\n&Data.Remarks=字符串\n&<公共请求参数>",
29
+ "output": "{\n \"Response\": {\n \"CloudAttach\": {\n \"Uin\": \"100001332514\",\n \"CustomerAuthName\": \"网测技术\",\n \"InstanceId\": \"cas-3vocyz07\",\n \"Name\": \"test\",\n \"AppId\": \"1254277469\",\n \"IapId\": \"\",\n \"IdcAddress\": \"北京东城区IDC地址\",\n \"IdcType\": \"CUCC\",\n \"DirectConnectId\": \"\",\n \"CloudAttachServiceGatewaysSupport\": false,\n \"BUpdateBandwidth\": false,\n \"Bandwidth\": 100,\n \"RegionStatus\": \"same-region\",\n \"Status\": \"applying\",\n \"ApplyTime\": \"2024-10-14 13:04:33\",\n \"ReadyTime\": null,\n \"ExpireTime\": \"2038-01-08 23:59:59\",\n \"Telephone\": \"18888888888\",\n \"Remarks\": \"6个月,其他\"\n },\n \"RequestId\": \"4fb676d2-3100-4018-aa07-73008eaa135d\"\n }\n}",
30
+ "title": "创建敏捷上云服务"
31
+ }
32
+ ],
25
33
  "CreateDirectConnect": [
26
34
  {
27
35
  "document": "申请物理专线,接入点为北京航信,中国移动线路,云端端口为千兆单模光口(1000Base-LX)。",
@@ -6205,6 +6205,58 @@ def doRegisterThirdPartyAccessUser(args, parsed_globals):
6205
6205
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6206
6206
 
6207
6207
 
6208
+ def doDescribeTasksAnalysis(args, parsed_globals):
6209
+ g_param = parse_global_arg(parsed_globals)
6210
+
6211
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6212
+ cred = credential.CVMRoleCredential()
6213
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6214
+ cred = credential.STSAssumeRoleCredential(
6215
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6216
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6217
+ )
6218
+ 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):
6219
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6220
+ else:
6221
+ cred = credential.Credential(
6222
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6223
+ )
6224
+ http_profile = HttpProfile(
6225
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6226
+ reqMethod="POST",
6227
+ endpoint=g_param[OptionsDefine.Endpoint],
6228
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6229
+ )
6230
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6231
+ if g_param[OptionsDefine.Language]:
6232
+ profile.language = g_param[OptionsDefine.Language]
6233
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6234
+ client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
6235
+ client._sdkVersion += ("_CLI_" + __version__)
6236
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6237
+ model = models.DescribeTasksAnalysisRequest()
6238
+ model.from_json_string(json.dumps(args))
6239
+ start_time = time.time()
6240
+ while True:
6241
+ rsp = client.DescribeTasksAnalysis(model)
6242
+ result = rsp.to_json_string()
6243
+ try:
6244
+ json_obj = json.loads(result)
6245
+ except TypeError as e:
6246
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6247
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6248
+ break
6249
+ cur_time = time.time()
6250
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6251
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6252
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6253
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6254
+ else:
6255
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6256
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6257
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6258
+
6259
+
6208
6260
  def doDeleteUsersFromWorkGroup(args, parsed_globals):
6209
6261
  g_param = parse_global_arg(parsed_globals)
6210
6262
 
@@ -7583,6 +7635,7 @@ ACTION_MAP = {
7583
7635
  "DescribeTaskResult": doDescribeTaskResult,
7584
7636
  "CreateExportTask": doCreateExportTask,
7585
7637
  "RegisterThirdPartyAccessUser": doRegisterThirdPartyAccessUser,
7638
+ "DescribeTasksAnalysis": doDescribeTasksAnalysis,
7586
7639
  "DeleteUsersFromWorkGroup": doDeleteUsersFromWorkGroup,
7587
7640
  "DescribeSparkAppTasks": doDescribeSparkAppTasks,
7588
7641
  "UnbindWorkGroupsFromUser": doUnbindWorkGroupsFromUser,