tccli 3.0.1306.1__py2.py3-none-any.whl → 3.0.1308.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 (52) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/v20221229/api.json +34 -22
  3. tccli/services/apm/v20210622/api.json +38 -0
  4. tccli/services/asr/v20190614/api.json +64 -64
  5. tccli/services/asr/v20190614/examples.json +4 -4
  6. tccli/services/bh/v20230418/api.json +2 -2
  7. tccli/services/cbs/v20170312/api.json +26 -16
  8. tccli/services/cdwch/v20200915/api.json +3 -3
  9. tccli/services/chc/v20230418/api.json +46 -1
  10. tccli/services/ckafka/v20190819/api.json +24 -24
  11. tccli/services/ckafka/v20190819/examples.json +1 -1
  12. tccli/services/clb/v20180317/api.json +232 -181
  13. tccli/services/clb/v20180317/examples.json +38 -38
  14. tccli/services/cloudaudit/v20190319/api.json +67 -67
  15. tccli/services/cloudaudit/v20190319/examples.json +2 -2
  16. tccli/services/config/v20220802/api.json +184 -165
  17. tccli/services/cvm/v20170312/api.json +5 -5
  18. tccli/services/cynosdb/cynosdb_client.py +53 -0
  19. tccli/services/cynosdb/v20190107/api.json +72 -9
  20. tccli/services/cynosdb/v20190107/examples.json +8 -0
  21. tccli/services/dlc/v20210125/api.json +19 -0
  22. tccli/services/domain/v20180808/api.json +72 -72
  23. tccli/services/domain/v20180808/examples.json +4 -4
  24. tccli/services/dsgc/dsgc_client.py +53 -0
  25. tccli/services/dsgc/v20190723/api.json +221 -7
  26. tccli/services/dsgc/v20190723/examples.json +8 -0
  27. tccli/services/es/v20250101/api.json +45 -45
  28. tccli/services/essbasic/v20210526/examples.json +7 -1
  29. tccli/services/iss/v20230517/api.json +40 -40
  30. tccli/services/lowcode/v20210108/api.json +10 -1
  31. tccli/services/ocr/v20181119/api.json +13 -3
  32. tccli/services/organization/v20210331/api.json +12 -12
  33. tccli/services/tdmq/v20200217/api.json +118 -14
  34. tccli/services/tdmq/v20200217/examples.json +1 -1
  35. tccli/services/tke/v20180525/api.json +37 -37
  36. tccli/services/trocket/v20230308/api.json +123 -19
  37. tccli/services/trocket/v20230308/examples.json +1 -1
  38. tccli/services/tsf/v20180326/api.json +2 -2
  39. tccli/services/vod/v20180717/api.json +9 -0
  40. tccli/services/vpc/v20170312/api.json +173 -166
  41. tccli/services/vpc/v20170312/examples.json +5 -5
  42. tccli/services/waf/v20180125/api.json +24 -0
  43. tccli/services/waf/v20180125/examples.json +8 -0
  44. tccli/services/waf/waf_client.py +57 -4
  45. tccli/services/wedata/v20210820/api.json +972 -18
  46. tccli/services/wedata/v20210820/examples.json +44 -4
  47. tccli/services/wedata/wedata_client.py +297 -32
  48. {tccli-3.0.1306.1.dist-info → tccli-3.0.1308.1.dist-info}/METADATA +2 -2
  49. {tccli-3.0.1306.1.dist-info → tccli-3.0.1308.1.dist-info}/RECORD +52 -52
  50. {tccli-3.0.1306.1.dist-info → tccli-3.0.1308.1.dist-info}/WHEEL +0 -0
  51. {tccli-3.0.1306.1.dist-info → tccli-3.0.1308.1.dist-info}/entry_points.txt +0 -0
  52. {tccli-3.0.1306.1.dist-info → tccli-3.0.1308.1.dist-info}/license_files/LICENSE +0 -0
@@ -2103,7 +2103,7 @@
2103
2103
  "members": [
2104
2104
  {
2105
2105
  "disabled": false,
2106
- "document": "密钥对名称,可由数字,字母和下划线组成,长度不超过25个字符。",
2106
+ "document": "密钥对名称,可由数字、字母和下划线组成,长度不超过25个字符。密钥对名称不能和已经存在的密钥对名称重复。",
2107
2107
  "example": "Tencent",
2108
2108
  "member": "string",
2109
2109
  "name": "KeyName",
@@ -2420,7 +2420,7 @@
2420
2420
  {
2421
2421
  "disabled": false,
2422
2422
  "document": "只允许传递 Update 和 Replace 参数,在模板使用自定义 Metadata 且在 RunInstances 也传递 Metadata 时生效。默认采用 Replace。\n\n- Update:设模板 t含本参数值为Update、 metadata=[k1:v1, k2:v2] ,则RunInstances(给metadata=[k2:v3])+ t 创建的 cvm 使用metadata=[k1:v1, k2:v3] \n- Replace:模板 t含本参数值为Replace、 metadata=[k1:v1, k2:v2] ,则RunInstances(给metadata=[k2:v3])+ t 创建的 cvm 使用metadata=[k2:v3] \n**注:内测中**。",
2423
- "example": "",
2423
+ "example": "Update",
2424
2424
  "member": "string",
2425
2425
  "name": "TemplateDataModifyAction",
2426
2426
  "required": false,
@@ -2718,7 +2718,7 @@
2718
2718
  {
2719
2719
  "disabled": false,
2720
2720
  "document": "只允许传递 Update 和 Replace 参数,在模板使用自定义 Metadata 且在 RunInstances 也传递 Metadata 时生效。默认采用 Replace。\n\n- Update:设模板 t含本参数值为Update、 metadata=[k1:v1, k2:v2] ,则RunInstances(给metadata=[k2:v3])+ t 创建的 cvm 使用metadata=[k1:v1, k2:v3] \n- Replace:模板 t含本参数值为Replace、 metadata=[k1:v1, k2:v2] ,则RunInstances(给metadata=[k2:v3])+ t 创建的 cvm 使用metadata=[k2:v3] \n**注:内测中**。",
2721
- "example": "",
2721
+ "example": "Update",
2722
2722
  "member": "string",
2723
2723
  "name": "TemplateDataModifyAction",
2724
2724
  "required": false,
@@ -9269,7 +9269,7 @@
9269
9269
  {
9270
9270
  "disabled": false,
9271
9271
  "document": "一个或多个待操作的CDH实例ID。",
9272
- "example": "[\"host-ey16rkyg\\n\"]",
9272
+ "example": "[\"host-ey16rkyg\"]",
9273
9273
  "member": "string",
9274
9274
  "name": "HostIds",
9275
9275
  "required": true,
@@ -9286,7 +9286,7 @@
9286
9286
  },
9287
9287
  {
9288
9288
  "disabled": false,
9289
- "document": "自动续费标识。取值范围:<br><li>NOTIFY_AND_AUTO_RENEW:通知过期且自动续费<br><li>NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费<br><li>DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费<br><br>若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。",
9289
+ "document": "自动续费标识。取值范围:<br><li>NOTIFY_AND_AUTO_RENEW:通知过期且自动续费</li><li>NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费</li><li>DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费</li><br>若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。",
9290
9290
  "example": "NOTIFY_AND_AUTO_RENEW",
9291
9291
  "member": "string",
9292
9292
  "name": "RenewFlag",
@@ -8129,6 +8129,58 @@ def doRemoveClusterSlaveZone(args, parsed_globals):
8129
8129
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
8130
8130
 
8131
8131
 
8132
+ def doCloseSSL(args, parsed_globals):
8133
+ g_param = parse_global_arg(parsed_globals)
8134
+
8135
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
8136
+ cred = credential.CVMRoleCredential()
8137
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
8138
+ cred = credential.STSAssumeRoleCredential(
8139
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
8140
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
8141
+ )
8142
+ 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):
8143
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
8144
+ else:
8145
+ cred = credential.Credential(
8146
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
8147
+ )
8148
+ http_profile = HttpProfile(
8149
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
8150
+ reqMethod="POST",
8151
+ endpoint=g_param[OptionsDefine.Endpoint],
8152
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8153
+ )
8154
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8155
+ if g_param[OptionsDefine.Language]:
8156
+ profile.language = g_param[OptionsDefine.Language]
8157
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
8158
+ client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
8159
+ client._sdkVersion += ("_CLI_" + __version__)
8160
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
8161
+ model = models.CloseSSLRequest()
8162
+ model.from_json_string(json.dumps(args))
8163
+ start_time = time.time()
8164
+ while True:
8165
+ rsp = client.CloseSSL(model)
8166
+ result = rsp.to_json_string()
8167
+ try:
8168
+ json_obj = json.loads(result)
8169
+ except TypeError as e:
8170
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
8171
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
8172
+ break
8173
+ cur_time = time.time()
8174
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
8175
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
8176
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
8177
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
8178
+ else:
8179
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
8180
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
8181
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
8182
+
8183
+
8132
8184
  def doDescribeInstanceErrorLogs(args, parsed_globals):
8133
8185
  g_param = parse_global_arg(parsed_globals)
8134
8186
 
@@ -8400,6 +8452,7 @@ ACTION_MAP = {
8400
8452
  "OpenClusterPasswordComplexity": doOpenClusterPasswordComplexity,
8401
8453
  "OpenAuditService": doOpenAuditService,
8402
8454
  "RemoveClusterSlaveZone": doRemoveClusterSlaveZone,
8455
+ "CloseSSL": doCloseSSL,
8403
8456
  "DescribeInstanceErrorLogs": doDescribeInstanceErrorLogs,
8404
8457
  "IsolateInstance": doIsolateInstance,
8405
8458
 
@@ -63,6 +63,13 @@
63
63
  "output": "CloseProxyEndPointResponse",
64
64
  "status": "online"
65
65
  },
66
+ "CloseSSL": {
67
+ "document": "关闭SSL加密",
68
+ "input": "CloseSSLRequest",
69
+ "name": "关闭SSL加密",
70
+ "output": "CloseSSLResponse",
71
+ "status": "online"
72
+ },
66
73
  "CloseWan": {
67
74
  "document": "本接口(CloseWan)用于关闭外网。",
68
75
  "input": "CloseWanRequest",
@@ -3323,6 +3330,62 @@
3323
3330
  ],
3324
3331
  "type": "object"
3325
3332
  },
3333
+ "CloseSSLRequest": {
3334
+ "document": "CloseSSL请求参数结构体",
3335
+ "members": [
3336
+ {
3337
+ "disabled": false,
3338
+ "document": "集群ID",
3339
+ "example": "cynosdbmysql-bzxxrmtq",
3340
+ "member": "string",
3341
+ "name": "ClusterId",
3342
+ "required": true,
3343
+ "type": "string"
3344
+ },
3345
+ {
3346
+ "disabled": false,
3347
+ "document": "实例ID",
3348
+ "example": "cynosdbmysql-ins-bzxxrmtq",
3349
+ "member": "string",
3350
+ "name": "InstanceId",
3351
+ "required": false,
3352
+ "type": "string"
3353
+ }
3354
+ ],
3355
+ "type": "object"
3356
+ },
3357
+ "CloseSSLResponse": {
3358
+ "document": "CloseSSL返回参数结构体",
3359
+ "members": [
3360
+ {
3361
+ "disabled": false,
3362
+ "document": "流程ID\n注意:此字段可能返回 null,表示取不到有效值。",
3363
+ "example": "123",
3364
+ "member": "int64",
3365
+ "name": "FlowId",
3366
+ "output_required": false,
3367
+ "type": "int",
3368
+ "value_allowed_null": true
3369
+ },
3370
+ {
3371
+ "disabled": false,
3372
+ "document": "任务id\n注意:此字段可能返回 null,表示取不到有效值。",
3373
+ "example": "无",
3374
+ "member": "int64",
3375
+ "name": "TaskId",
3376
+ "output_required": false,
3377
+ "type": "int",
3378
+ "value_allowed_null": true
3379
+ },
3380
+ {
3381
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3382
+ "member": "string",
3383
+ "name": "RequestId",
3384
+ "type": "string"
3385
+ }
3386
+ ],
3387
+ "type": "object"
3388
+ },
3326
3389
  "CloseWanRequest": {
3327
3390
  "document": "CloseWan请求参数结构体",
3328
3391
  "members": [
@@ -4291,6 +4354,15 @@
4291
4354
  "required": false,
4292
4355
  "type": "int"
4293
4356
  },
4357
+ {
4358
+ "disabled": false,
4359
+ "document": "实例数量,数量范围为(0,16],默认值为2(即一个rw实例+一个ro实例),传递的n表示1个rw实例+n-1个ro实例(规格相同),如需要更精确的集群组成搭配,请使用InstanceInitInfos",
4360
+ "example": "1",
4361
+ "member": "int64",
4362
+ "name": "InstanceCount",
4363
+ "required": false,
4364
+ "type": "int"
4365
+ },
4294
4366
  {
4295
4367
  "disabled": false,
4296
4368
  "document": "该参数无实际意义,已废弃。\n存储大小,单位GB。",
@@ -4399,15 +4471,6 @@
4399
4471
  "required": false,
4400
4472
  "type": "int"
4401
4473
  },
4402
- {
4403
- "disabled": false,
4404
- "document": "实例数量,数量范围为(0,16]",
4405
- "example": "1",
4406
- "member": "int64",
4407
- "name": "InstanceCount",
4408
- "required": false,
4409
- "type": "int"
4410
- },
4411
4474
  {
4412
4475
  "disabled": false,
4413
4476
  "document": "包年包月购买时长",
@@ -72,6 +72,14 @@
72
72
  "title": "关闭数据库代理连接地址"
73
73
  }
74
74
  ],
75
+ "CloseSSL": [
76
+ {
77
+ "document": "关闭SSL加密",
78
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CloseSSL\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-jd510000\",\n \"InstanceId\": \"cynosdbmysql-ins-906n0000\"\n}",
79
+ "output": "{\n \"Response\": {\n \"FlowId\": 1,\n \"RequestId\": \"42d79173-6d36-4239-b7ad-5b993559a5c6\",\n \"TaskId\": 1\n }\n}",
80
+ "title": "关闭SSL加密"
81
+ }
82
+ ],
75
83
  "CloseWan": [
76
84
  {
77
85
  "document": "",
@@ -12353,6 +12353,15 @@
12353
12353
  "name": "Sorting",
12354
12354
  "required": false,
12355
12355
  "type": "string"
12356
+ },
12357
+ {
12358
+ "disabled": false,
12359
+ "document": "是否设置为常驻:1非常驻(默认)、2常驻(仅能设置一个常驻)",
12360
+ "example": "2",
12361
+ "member": "int64",
12362
+ "name": "IsDefault",
12363
+ "required": false,
12364
+ "type": "int"
12356
12365
  }
12357
12366
  ],
12358
12367
  "type": "object"
@@ -20669,6 +20678,16 @@
20669
20678
  "output_required": false,
20670
20679
  "type": "string",
20671
20680
  "value_allowed_null": false
20681
+ },
20682
+ {
20683
+ "disabled": false,
20684
+ "document": "是否设置为常驻:1非常驻(默认)、2常驻(仅能设置一个常驻)",
20685
+ "example": "2",
20686
+ "member": "int64",
20687
+ "name": "IsDefault",
20688
+ "output_required": false,
20689
+ "type": "int",
20690
+ "value_allowed_null": false
20672
20691
  }
20673
20692
  ],
20674
20693
  "usage": "out"