tccli 3.0.1147.1__py2.py3-none-any.whl → 3.0.1149.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 (54) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/aiart_client.py +53 -0
  3. tccli/services/aiart/v20221229/api.json +80 -0
  4. tccli/services/aiart/v20221229/examples.json +8 -0
  5. tccli/services/asr/v20190614/api.json +6 -6
  6. tccli/services/cam/v20190116/api.json +4 -4
  7. tccli/services/cam/v20190116/examples.json +1 -1
  8. tccli/services/clb/v20180317/api.json +1 -1
  9. tccli/services/cwp/v20180228/api.json +63 -16
  10. tccli/services/cwp/v20180228/examples.json +1 -1
  11. tccli/services/dcdb/v20180411/api.json +2 -0
  12. tccli/services/dnspod/v20210323/api.json +9 -0
  13. tccli/services/ess/ess_client.py +53 -0
  14. tccli/services/ess/v20201111/api.json +67 -5
  15. tccli/services/ess/v20201111/examples.json +14 -0
  16. tccli/services/essbasic/essbasic_client.py +57 -4
  17. tccli/services/essbasic/v20210526/api.json +56 -3
  18. tccli/services/essbasic/v20210526/examples.json +8 -0
  19. tccli/services/gaap/gaap_client.py +53 -0
  20. tccli/services/gaap/v20180529/api.json +24 -0
  21. tccli/services/gaap/v20180529/examples.json +8 -0
  22. tccli/services/lighthouse/v20200324/api.json +33 -31
  23. tccli/services/lighthouse/v20200324/examples.json +3 -3
  24. tccli/services/live/v20180801/api.json +6 -0
  25. tccli/services/live/v20180801/examples.json +1 -1
  26. tccli/services/lke/lke_client.py +53 -0
  27. tccli/services/lke/v20231130/api.json +160 -1
  28. tccli/services/lke/v20231130/examples.json +8 -0
  29. tccli/services/mariadb/mariadb_client.py +53 -0
  30. tccli/services/mariadb/v20170312/api.json +88 -0
  31. tccli/services/mariadb/v20170312/examples.json +8 -0
  32. tccli/services/mna/mna_client.py +485 -8
  33. tccli/services/mna/v20210119/api.json +743 -21
  34. tccli/services/mna/v20210119/examples.json +72 -0
  35. tccli/services/mongodb/v20190725/api.json +35 -35
  36. tccli/services/monitor/v20180724/api.json +1 -1
  37. tccli/services/mps/v20190612/api.json +31 -10
  38. tccli/services/oceanus/v20190422/api.json +24 -0
  39. tccli/services/organization/v20210331/api.json +1 -1
  40. tccli/services/rum/v20210622/api.json +9 -0
  41. tccli/services/tdmq/v20200217/api.json +12 -10
  42. tccli/services/tdmq/v20200217/examples.json +1 -1
  43. tccli/services/thpc/v20230321/api.json +11 -3
  44. tccli/services/tke/v20180525/api.json +3 -3
  45. tccli/services/trtc/v20190722/api.json +15 -5
  46. tccli/services/tsf/tsf_client.py +110 -4
  47. tccli/services/tsf/v20180326/api.json +142 -0
  48. tccli/services/tsf/v20180326/examples.json +16 -0
  49. tccli/services/vpc/v20170312/api.json +1 -1
  50. {tccli-3.0.1147.1.dist-info → tccli-3.0.1149.1.dist-info}/METADATA +2 -2
  51. {tccli-3.0.1147.1.dist-info → tccli-3.0.1149.1.dist-info}/RECORD +54 -54
  52. {tccli-3.0.1147.1.dist-info → tccli-3.0.1149.1.dist-info}/WHEEL +0 -0
  53. {tccli-3.0.1147.1.dist-info → tccli-3.0.1149.1.dist-info}/entry_points.txt +0 -0
  54. {tccli-3.0.1147.1.dist-info → tccli-3.0.1149.1.dist-info}/license_files/LICENSE +0 -0
@@ -3293,6 +3293,58 @@ def doDescribePrice(args, parsed_globals):
3293
3293
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3294
3294
 
3295
3295
 
3296
+ def doUpgradeHourDBInstance(args, parsed_globals):
3297
+ g_param = parse_global_arg(parsed_globals)
3298
+
3299
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3300
+ cred = credential.CVMRoleCredential()
3301
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3302
+ cred = credential.STSAssumeRoleCredential(
3303
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3304
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3305
+ )
3306
+ 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):
3307
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3308
+ else:
3309
+ cred = credential.Credential(
3310
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3311
+ )
3312
+ http_profile = HttpProfile(
3313
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3314
+ reqMethod="POST",
3315
+ endpoint=g_param[OptionsDefine.Endpoint],
3316
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3317
+ )
3318
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3319
+ if g_param[OptionsDefine.Language]:
3320
+ profile.language = g_param[OptionsDefine.Language]
3321
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3322
+ client = mod.MariadbClient(cred, g_param[OptionsDefine.Region], profile)
3323
+ client._sdkVersion += ("_CLI_" + __version__)
3324
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3325
+ model = models.UpgradeHourDBInstanceRequest()
3326
+ model.from_json_string(json.dumps(args))
3327
+ start_time = time.time()
3328
+ while True:
3329
+ rsp = client.UpgradeHourDBInstance(model)
3330
+ result = rsp.to_json_string()
3331
+ try:
3332
+ json_obj = json.loads(result)
3333
+ except TypeError as e:
3334
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3335
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3336
+ break
3337
+ cur_time = time.time()
3338
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3339
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3340
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3341
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3342
+ else:
3343
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3344
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3345
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3346
+
3347
+
3296
3348
  def doDescribeDatabaseTable(args, parsed_globals):
3297
3349
  g_param = parse_global_arg(parsed_globals)
3298
3350
 
@@ -3835,6 +3887,7 @@ ACTION_MAP = {
3835
3887
  "ModifyInstanceVport": doModifyInstanceVport,
3836
3888
  "UpgradeDedicatedDBInstance": doUpgradeDedicatedDBInstance,
3837
3889
  "DescribePrice": doDescribePrice,
3890
+ "UpgradeHourDBInstance": doUpgradeHourDBInstance,
3838
3891
  "DescribeDatabaseTable": doDescribeDatabaseTable,
3839
3892
  "CancelDcnJob": doCancelDcnJob,
3840
3893
  "TerminateDedicatedDBInstance": doTerminateDedicatedDBInstance,
@@ -503,6 +503,13 @@
503
503
  "name": "升级独享云数据库实例",
504
504
  "output": "UpgradeDedicatedDBInstanceResponse",
505
505
  "status": "online"
506
+ },
507
+ "UpgradeHourDBInstance": {
508
+ "document": "升级MariaDB按量计费实例",
509
+ "input": "UpgradeHourDBInstanceRequest",
510
+ "name": "升级MariaDB按量计费实例",
511
+ "output": "UpgradeHourDBInstanceResponse",
512
+ "status": "online"
506
513
  }
507
514
  },
508
515
  "metadata": {
@@ -8578,6 +8585,87 @@
8578
8585
  ],
8579
8586
  "type": "object"
8580
8587
  },
8588
+ "UpgradeHourDBInstanceRequest": {
8589
+ "document": "UpgradeHourDBInstance请求参数结构体",
8590
+ "members": [
8591
+ {
8592
+ "disabled": false,
8593
+ "document": "实例ID",
8594
+ "example": "tdsql-cq3ndzu7",
8595
+ "member": "string",
8596
+ "name": "InstanceId",
8597
+ "required": true,
8598
+ "type": "string"
8599
+ },
8600
+ {
8601
+ "disabled": false,
8602
+ "document": "内存大小,单位:GB",
8603
+ "example": "2",
8604
+ "member": "int64",
8605
+ "name": "Memory",
8606
+ "required": true,
8607
+ "type": "int"
8608
+ },
8609
+ {
8610
+ "disabled": false,
8611
+ "document": "存储大小,单位:GB",
8612
+ "example": "10",
8613
+ "member": "int64",
8614
+ "name": "Storage",
8615
+ "required": true,
8616
+ "type": "int"
8617
+ },
8618
+ {
8619
+ "disabled": false,
8620
+ "document": "切换开始时间,格式如: \"2019-12-12 07:00:00\"。开始时间必须在当前时间一个小时以后,3天以内。",
8621
+ "example": "2019-12-12 07:00:00",
8622
+ "member": "datetime",
8623
+ "name": "SwitchStartTime",
8624
+ "required": false,
8625
+ "type": "string"
8626
+ },
8627
+ {
8628
+ "disabled": false,
8629
+ "document": "切换结束时间, 格式如: \"2019-12-12 07:15:00\",结束时间必须大于开始时间。",
8630
+ "example": "2019-12-12 07:15:00",
8631
+ "member": "datetime",
8632
+ "name": "SwitchEndTime",
8633
+ "required": false,
8634
+ "type": "string"
8635
+ },
8636
+ {
8637
+ "disabled": false,
8638
+ "document": "是否自动重试。 0:不自动重试 1:自动重试",
8639
+ "example": "1",
8640
+ "member": "int64",
8641
+ "name": "SwitchAutoRetry",
8642
+ "required": false,
8643
+ "type": "int"
8644
+ },
8645
+ {
8646
+ "disabled": false,
8647
+ "document": "变更部署时指定的新可用区列表,第1个为主可用区,其余为从可用区",
8648
+ "example": "[]",
8649
+ "member": "string",
8650
+ "name": "Zones",
8651
+ "required": false,
8652
+ "type": "list"
8653
+ }
8654
+ ],
8655
+ "type": "object"
8656
+ },
8657
+ "UpgradeHourDBInstanceResponse": {
8658
+ "document": "UpgradeHourDBInstance返回参数结构体",
8659
+ "members": [
8660
+ {
8661
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
8662
+ "member": "string",
8663
+ "name": "RequestId",
8664
+ "type": "string"
8665
+ }
8666
+ ],
8667
+ "type": "object"
8668
+ },
8581
8669
  "ViewPrivileges": {
8582
8670
  "document": "视图权限信息",
8583
8671
  "members": [
@@ -575,6 +575,14 @@
575
575
  "output": "{\n \"Response\": {\n \"RequestId\": \"14f6980a-7fe1-11ea-b896-525400542aa6\",\n \"FlowId\": 1122\n }\n}",
576
576
  "title": "无"
577
577
  }
578
+ ],
579
+ "UpgradeHourDBInstance": [
580
+ {
581
+ "document": "升级MariaDB按量计费实例",
582
+ "input": "https://mariadb.tencentcloudapi.com/?Action=UpgradeHourDBInstance\n&InstanceId=tdsql-cq3ndzu7\n&Memory=2\n&Storage=10\n&<公共请求参数>",
583
+ "output": "{\n \"Response\": {\n \"RequestId\": \"b3d8965f-5124-451d-be87-499ea75eb3a4\"\n }\n}",
584
+ "title": "升级MariaDB按量计费实例"
585
+ }
578
586
  ]
579
587
  },
580
588
  "version": "1.0"