tccli 3.0.1188.1__py2.py3-none-any.whl → 3.0.1190.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 (61) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +2 -1
  3. tccli/services/aiart/aiart_client.py +53 -0
  4. tccli/services/aiart/v20221229/api.json +107 -0
  5. tccli/services/aiart/v20221229/examples.json +8 -0
  6. tccli/services/apm/v20210622/api.json +3 -1
  7. tccli/services/billing/v20180709/api.json +3 -0
  8. tccli/services/billing/v20180709/examples.json +1 -1
  9. tccli/services/cfg/v20210820/api.json +20 -5
  10. tccli/services/cfw/v20190904/api.json +82 -2
  11. tccli/services/ckafka/v20190819/api.json +5 -5
  12. tccli/services/dcdb/dcdb_client.py +106 -0
  13. tccli/services/dcdb/v20180411/api.json +318 -0
  14. tccli/services/dcdb/v20180411/examples.json +28 -0
  15. tccli/services/dnspod/dnspod_client.py +53 -0
  16. tccli/services/dnspod/v20210323/api.json +118 -0
  17. tccli/services/dnspod/v20210323/examples.json +8 -0
  18. tccli/services/emr/emr_client.py +269 -4
  19. tccli/services/emr/v20190103/api.json +591 -0
  20. tccli/services/emr/v20190103/examples.json +46 -0
  21. tccli/services/es/es_client.py +53 -0
  22. tccli/services/es/v20180416/api.json +54 -0
  23. tccli/services/es/v20180416/examples.json +14 -0
  24. tccli/services/ess/v20201111/api.json +9 -9
  25. tccli/services/ess/v20201111/examples.json +7 -1
  26. tccli/services/essbasic/essbasic_client.py +53 -0
  27. tccli/services/essbasic/v20210526/api.json +120 -0
  28. tccli/services/essbasic/v20210526/examples.json +14 -0
  29. tccli/services/iotexplorer/v20190423/api.json +2 -2
  30. tccli/services/iss/iss_client.py +118 -65
  31. tccli/services/iss/v20230517/api.json +78 -0
  32. tccli/services/iss/v20230517/examples.json +8 -0
  33. tccli/services/mariadb/mariadb_client.py +110 -4
  34. tccli/services/mariadb/v20170312/api.json +318 -0
  35. tccli/services/mariadb/v20170312/examples.json +16 -0
  36. tccli/services/mps/v20190612/api.json +131 -3
  37. tccli/services/ocr/v20181119/api.json +22 -2
  38. tccli/services/redis/redis_client.py +110 -4
  39. tccli/services/redis/v20180412/api.json +209 -0
  40. tccli/services/redis/v20180412/examples.json +16 -0
  41. tccli/services/sms/v20210111/api.json +9 -9
  42. tccli/services/ssl/v20191205/api.json +3 -3
  43. tccli/services/ssl/v20191205/examples.json +2 -2
  44. tccli/services/teo/v20220901/api.json +14 -14
  45. tccli/services/tke/tke_client.py +364 -46
  46. tccli/services/tke/v20180525/api.json +9 -0
  47. tccli/services/tke/v20220501/api.json +525 -0
  48. tccli/services/tke/v20220501/examples.json +54 -0
  49. tccli/services/tsf/v20180326/api.json +74 -29
  50. tccli/services/vdb/v20230616/api.json +491 -0
  51. tccli/services/vdb/v20230616/examples.json +46 -0
  52. tccli/services/vdb/vdb_client.py +265 -0
  53. tccli/services/vod/v20240718/api.json +121 -0
  54. tccli/services/vod/v20240718/examples.json +31 -0
  55. tccli/services/vod/vod_client.py +58 -0
  56. tccli/services/vpc/v20170312/api.json +13 -4
  57. {tccli-3.0.1188.1.dist-info → tccli-3.0.1190.1.dist-info}/METADATA +2 -2
  58. {tccli-3.0.1188.1.dist-info → tccli-3.0.1190.1.dist-info}/RECORD +61 -59
  59. {tccli-3.0.1188.1.dist-info → tccli-3.0.1190.1.dist-info}/WHEEL +0 -0
  60. {tccli-3.0.1188.1.dist-info → tccli-3.0.1190.1.dist-info}/entry_points.txt +0 -0
  61. {tccli-3.0.1188.1.dist-info → tccli-3.0.1190.1.dist-info}/license_files/LICENSE +0 -0
@@ -2045,6 +2045,58 @@ def doRenewInstance(args, parsed_globals):
2045
2045
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2046
2046
 
2047
2047
 
2048
+ def doModifyInstanceLogDelivery(args, parsed_globals):
2049
+ g_param = parse_global_arg(parsed_globals)
2050
+
2051
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2052
+ cred = credential.CVMRoleCredential()
2053
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2054
+ cred = credential.STSAssumeRoleCredential(
2055
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2056
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2057
+ )
2058
+ 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):
2059
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2060
+ else:
2061
+ cred = credential.Credential(
2062
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2063
+ )
2064
+ http_profile = HttpProfile(
2065
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2066
+ reqMethod="POST",
2067
+ endpoint=g_param[OptionsDefine.Endpoint],
2068
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2069
+ )
2070
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2071
+ if g_param[OptionsDefine.Language]:
2072
+ profile.language = g_param[OptionsDefine.Language]
2073
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2074
+ client = mod.RedisClient(cred, g_param[OptionsDefine.Region], profile)
2075
+ client._sdkVersion += ("_CLI_" + __version__)
2076
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2077
+ model = models.ModifyInstanceLogDeliveryRequest()
2078
+ model.from_json_string(json.dumps(args))
2079
+ start_time = time.time()
2080
+ while True:
2081
+ rsp = client.ModifyInstanceLogDelivery(model)
2082
+ result = rsp.to_json_string()
2083
+ try:
2084
+ json_obj = json.loads(result)
2085
+ except TypeError as e:
2086
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2087
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2088
+ break
2089
+ cur_time = time.time()
2090
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2091
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2092
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2093
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2094
+ else:
2095
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2096
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2097
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2098
+
2099
+
2048
2100
  def doDescribeBackupUrl(args, parsed_globals):
2049
2101
  g_param = parse_global_arg(parsed_globals)
2050
2102
 
@@ -3761,6 +3813,58 @@ def doDescribeInstanceMonitorBigKey(args, parsed_globals):
3761
3813
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3762
3814
 
3763
3815
 
3816
+ def doDescribeReplicationGroupInstance(args, parsed_globals):
3817
+ g_param = parse_global_arg(parsed_globals)
3818
+
3819
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3820
+ cred = credential.CVMRoleCredential()
3821
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3822
+ cred = credential.STSAssumeRoleCredential(
3823
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3824
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3825
+ )
3826
+ 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):
3827
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3828
+ else:
3829
+ cred = credential.Credential(
3830
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3831
+ )
3832
+ http_profile = HttpProfile(
3833
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3834
+ reqMethod="POST",
3835
+ endpoint=g_param[OptionsDefine.Endpoint],
3836
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3837
+ )
3838
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3839
+ if g_param[OptionsDefine.Language]:
3840
+ profile.language = g_param[OptionsDefine.Language]
3841
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3842
+ client = mod.RedisClient(cred, g_param[OptionsDefine.Region], profile)
3843
+ client._sdkVersion += ("_CLI_" + __version__)
3844
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3845
+ model = models.DescribeReplicationGroupInstanceRequest()
3846
+ model.from_json_string(json.dumps(args))
3847
+ start_time = time.time()
3848
+ while True:
3849
+ rsp = client.DescribeReplicationGroupInstance(model)
3850
+ result = rsp.to_json_string()
3851
+ try:
3852
+ json_obj = json.loads(result)
3853
+ except TypeError as e:
3854
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3855
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3856
+ break
3857
+ cur_time = time.time()
3858
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3859
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3860
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3861
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3862
+ else:
3863
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3864
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3865
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3866
+
3867
+
3764
3868
  def doDescribeRedisClusters(args, parsed_globals):
3765
3869
  g_param = parse_global_arg(parsed_globals)
3766
3870
 
@@ -4697,7 +4801,7 @@ def doDescribeBandwidthRange(args, parsed_globals):
4697
4801
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4698
4802
 
4699
4803
 
4700
- def doDescribeReplicationGroupInstance(args, parsed_globals):
4804
+ def doDescribeInstanceLogDelivery(args, parsed_globals):
4701
4805
  g_param = parse_global_arg(parsed_globals)
4702
4806
 
4703
4807
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4726,11 +4830,11 @@ def doDescribeReplicationGroupInstance(args, parsed_globals):
4726
4830
  client = mod.RedisClient(cred, g_param[OptionsDefine.Region], profile)
4727
4831
  client._sdkVersion += ("_CLI_" + __version__)
4728
4832
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4729
- model = models.DescribeReplicationGroupInstanceRequest()
4833
+ model = models.DescribeInstanceLogDeliveryRequest()
4730
4834
  model.from_json_string(json.dumps(args))
4731
4835
  start_time = time.time()
4732
4836
  while True:
4733
- rsp = client.DescribeReplicationGroupInstance(model)
4837
+ rsp = client.DescribeInstanceLogDelivery(model)
4734
4838
  result = rsp.to_json_string()
4735
4839
  try:
4736
4840
  json_obj = json.loads(result)
@@ -5475,6 +5579,7 @@ ACTION_MAP = {
5475
5579
  "DescribeInstanceDTSInfo": doDescribeInstanceDTSInfo,
5476
5580
  "InquiryPriceUpgradeInstance": doInquiryPriceUpgradeInstance,
5477
5581
  "RenewInstance": doRenewInstance,
5582
+ "ModifyInstanceLogDelivery": doModifyInstanceLogDelivery,
5478
5583
  "DescribeBackupUrl": doDescribeBackupUrl,
5479
5584
  "DescribeProjectSecurityGroups": doDescribeProjectSecurityGroups,
5480
5585
  "DescribeTendisSlowLog": doDescribeTendisSlowLog,
@@ -5508,6 +5613,7 @@ ACTION_MAP = {
5508
5613
  "AssociateSecurityGroups": doAssociateSecurityGroups,
5509
5614
  "DescribeSSLStatus": doDescribeSSLStatus,
5510
5615
  "DescribeInstanceMonitorBigKey": doDescribeInstanceMonitorBigKey,
5616
+ "DescribeReplicationGroupInstance": doDescribeReplicationGroupInstance,
5511
5617
  "DescribeRedisClusters": doDescribeRedisClusters,
5512
5618
  "KillMasterGroup": doKillMasterGroup,
5513
5619
  "DescribeCommonDBInstances": doDescribeCommonDBInstances,
@@ -5526,7 +5632,7 @@ ACTION_MAP = {
5526
5632
  "OpenSSL": doOpenSSL,
5527
5633
  "DescribeAutoBackupConfig": doDescribeAutoBackupConfig,
5528
5634
  "DescribeBandwidthRange": doDescribeBandwidthRange,
5529
- "DescribeReplicationGroupInstance": doDescribeReplicationGroupInstance,
5635
+ "DescribeInstanceLogDelivery": doDescribeInstanceLogDelivery,
5530
5636
  "DescribeProxySlowLog": doDescribeProxySlowLog,
5531
5637
  "ModifyInstanceAvailabilityZones": doModifyInstanceAvailabilityZones,
5532
5638
  "DescribeInstanceDealDetail": doDescribeInstanceDealDetail,
@@ -217,6 +217,13 @@
217
217
  "output": "DescribeInstanceEventsResponse",
218
218
  "status": "online"
219
219
  },
220
+ "DescribeInstanceLogDelivery": {
221
+ "document": "本接口(DescribeInstanceLogDelivery)用于查询实例的日志投递配置。",
222
+ "input": "DescribeInstanceLogDeliveryRequest",
223
+ "name": "查询实例日志投递配置",
224
+ "output": "DescribeInstanceLogDeliveryResponse",
225
+ "status": "online"
226
+ },
220
227
  "DescribeInstanceMonitorBigKey": {
221
228
  "document": "腾讯云数据库 Redis 已经于2022年10月31日下线查询实例大 Key 接口。具体公告,请参见[查询实例大 Key 接口下线公告](https://cloud.tencent.com/document/product/239/81005)。",
222
229
  "input": "DescribeInstanceMonitorBigKeyRequest",
@@ -581,6 +588,13 @@
581
588
  "output": "ModifyInstanceEventResponse",
582
589
  "status": "online"
583
590
  },
591
+ "ModifyInstanceLogDelivery": {
592
+ "document": "本接口(ModifyInstanceLogDelivery)用于开启或关闭投递实例日志到CLS。",
593
+ "input": "ModifyInstanceLogDeliveryRequest",
594
+ "name": "修改实例日志投递配置",
595
+ "output": "ModifyInstanceLogDeliveryResponse",
596
+ "status": "online"
597
+ },
584
598
  "ModifyInstanceParams": {
585
599
  "document": "本接口(ModifyInstanceParams)用于修改Redis实例的参数配置。",
586
600
  "input": "ModifyInstanceParamsRequest",
@@ -3758,6 +3772,43 @@
3758
3772
  ],
3759
3773
  "type": "object"
3760
3774
  },
3775
+ "DescribeInstanceLogDeliveryRequest": {
3776
+ "document": "DescribeInstanceLogDelivery请求参数结构体",
3777
+ "members": [
3778
+ {
3779
+ "disabled": false,
3780
+ "document": "实例ID。",
3781
+ "example": "crs-d8ej0xn2",
3782
+ "member": "string",
3783
+ "name": "InstanceId",
3784
+ "required": true,
3785
+ "type": "string"
3786
+ }
3787
+ ],
3788
+ "type": "object"
3789
+ },
3790
+ "DescribeInstanceLogDeliveryResponse": {
3791
+ "document": "DescribeInstanceLogDelivery返回参数结构体",
3792
+ "members": [
3793
+ {
3794
+ "disabled": false,
3795
+ "document": "实例慢日志投递信息。",
3796
+ "example": "无",
3797
+ "member": "LogDeliveryInfo",
3798
+ "name": "SlowLog",
3799
+ "output_required": true,
3800
+ "type": "object",
3801
+ "value_allowed_null": false
3802
+ },
3803
+ {
3804
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3805
+ "member": "string",
3806
+ "name": "RequestId",
3807
+ "type": "string"
3808
+ }
3809
+ ],
3810
+ "type": "object"
3811
+ },
3761
3812
  "DescribeInstanceMonitorBigKeyRequest": {
3762
3813
  "document": "DescribeInstanceMonitorBigKey请求参数结构体",
3763
3814
  "members": [
@@ -8549,6 +8600,56 @@
8549
8600
  ],
8550
8601
  "type": "object"
8551
8602
  },
8603
+ "LogDeliveryInfo": {
8604
+ "document": "日志投递信息",
8605
+ "members": [
8606
+ {
8607
+ "disabled": false,
8608
+ "document": "日志投递开启状态,开启:true,关闭:false\n注意:此字段可能返回 null,表示取不到有效值。",
8609
+ "example": "true",
8610
+ "member": "bool",
8611
+ "name": "Enabled",
8612
+ "output_required": true,
8613
+ "required": false,
8614
+ "type": "bool",
8615
+ "value_allowed_null": true
8616
+ },
8617
+ {
8618
+ "disabled": false,
8619
+ "document": "日志集ID。\n注意:此字段可能返回 null,表示取不到有效值。",
8620
+ "example": "4ae3d686-0dcf-4db3-9867-482def442c9a",
8621
+ "member": "string",
8622
+ "name": "LogsetId",
8623
+ "output_required": true,
8624
+ "required": false,
8625
+ "type": "string",
8626
+ "value_allowed_null": true
8627
+ },
8628
+ {
8629
+ "disabled": false,
8630
+ "document": "日志主题ID。\n注意:此字段可能返回 null,表示取不到有效值。",
8631
+ "example": "27197b72-e1cb-4fc1-ab21-3865f589136f",
8632
+ "member": "string",
8633
+ "name": "TopicId",
8634
+ "output_required": true,
8635
+ "required": false,
8636
+ "type": "string",
8637
+ "value_allowed_null": true
8638
+ },
8639
+ {
8640
+ "disabled": false,
8641
+ "document": "日志集所在地域\n注意:此字段可能返回 null,表示取不到有效值。",
8642
+ "example": "ap-guangzhou",
8643
+ "member": "string",
8644
+ "name": "LogRegion",
8645
+ "output_required": true,
8646
+ "required": false,
8647
+ "type": "string",
8648
+ "value_allowed_null": true
8649
+ }
8650
+ ],
8651
+ "usage": "both"
8652
+ },
8552
8653
  "ManualBackupInstanceRequest": {
8553
8654
  "document": "ManualBackupInstance请求参数结构体",
8554
8655
  "members": [
@@ -9144,6 +9245,114 @@
9144
9245
  ],
9145
9246
  "type": "object"
9146
9247
  },
9248
+ "ModifyInstanceLogDeliveryRequest": {
9249
+ "document": "ModifyInstanceLogDelivery请求参数结构体",
9250
+ "members": [
9251
+ {
9252
+ "disabled": false,
9253
+ "document": "实例ID。",
9254
+ "example": "crs-d8ej0xn2",
9255
+ "member": "string",
9256
+ "name": "InstanceId",
9257
+ "required": true,
9258
+ "type": "string"
9259
+ },
9260
+ {
9261
+ "disabled": false,
9262
+ "document": "日志类型。当前仅支持设置为slowlog,指慢查询日志。",
9263
+ "example": "slowlog",
9264
+ "member": "string",
9265
+ "name": "LogType",
9266
+ "required": true,
9267
+ "type": "string"
9268
+ },
9269
+ {
9270
+ "disabled": false,
9271
+ "document": "日志投递开启状态。\n- true:开启。\n- false:关闭。",
9272
+ "example": "true",
9273
+ "member": "bool",
9274
+ "name": "Enabled",
9275
+ "required": true,
9276
+ "type": "bool"
9277
+ },
9278
+ {
9279
+ "disabled": false,
9280
+ "document": "投递的日志集ID。",
9281
+ "example": "4ae3d686-0dcf-4db3-9867-482def442c9a",
9282
+ "member": "string",
9283
+ "name": "LogsetId",
9284
+ "required": false,
9285
+ "type": "string"
9286
+ },
9287
+ {
9288
+ "disabled": false,
9289
+ "document": "投递的日志主题ID。",
9290
+ "example": "27197b72-e1cb-4fc1-ab21-3865f589136f",
9291
+ "member": "string",
9292
+ "name": "TopicId",
9293
+ "required": false,
9294
+ "type": "string"
9295
+ },
9296
+ {
9297
+ "disabled": false,
9298
+ "document": "日志集名称。若**LogsetId**未指定具体的日志集ID,请配置该参数,设置日志集名称,系统会以设置的日志集名称自动创建新的日志集。",
9299
+ "example": "test-set-name",
9300
+ "member": "string",
9301
+ "name": "LogsetName",
9302
+ "required": false,
9303
+ "type": "string"
9304
+ },
9305
+ {
9306
+ "disabled": false,
9307
+ "document": "日志主题名称,TopicId为空时必传,会自动创建新的日志主题。",
9308
+ "example": "test-topic-name",
9309
+ "member": "string",
9310
+ "name": "TopicName",
9311
+ "required": false,
9312
+ "type": "string"
9313
+ },
9314
+ {
9315
+ "disabled": false,
9316
+ "document": "日志集所在地域,不传默认使用实例所在地域。",
9317
+ "example": "无",
9318
+ "member": "string",
9319
+ "name": "LogRegion",
9320
+ "required": false,
9321
+ "type": "string"
9322
+ },
9323
+ {
9324
+ "disabled": false,
9325
+ "document": "日志存储时间,默认为30天,可选范围1-3600天。",
9326
+ "example": "30",
9327
+ "member": "int64",
9328
+ "name": "Period",
9329
+ "required": false,
9330
+ "type": "int"
9331
+ },
9332
+ {
9333
+ "disabled": false,
9334
+ "document": "创建日志主题时,是否创建索引。",
9335
+ "example": "true",
9336
+ "member": "bool",
9337
+ "name": "CreateIndex",
9338
+ "required": false,
9339
+ "type": "bool"
9340
+ }
9341
+ ],
9342
+ "type": "object"
9343
+ },
9344
+ "ModifyInstanceLogDeliveryResponse": {
9345
+ "document": "ModifyInstanceLogDelivery返回参数结构体",
9346
+ "members": [
9347
+ {
9348
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
9349
+ "member": "string",
9350
+ "name": "RequestId",
9351
+ "type": "string"
9352
+ }
9353
+ ],
9354
+ "type": "object"
9355
+ },
9147
9356
  "ModifyInstanceParamsRequest": {
9148
9357
  "document": "ModifyInstanceParams请求参数结构体",
9149
9358
  "members": [
@@ -254,6 +254,14 @@
254
254
  "title": "查询实例事件"
255
255
  }
256
256
  ],
257
+ "DescribeInstanceLogDelivery": [
258
+ {
259
+ "document": "查询实例日志投递配置",
260
+ "input": "POST / HTTP/1.1\nHost: redis.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstanceLogDelivery\n<公共请求参数>\n\n{\n \"InstanceId\": \"crs-ib4uuh7x\"\n}",
261
+ "output": "{\n \"Response\": {\n \"RequestId\": \"27d4627d-4cc7-4144-af33-ac9f52a36878\",\n \"SlowLog\": {\n \"Enabled\": true,\n \"LogRegion\": \"ap-guangzhou\",\n \"LogsetId\": \"5db981e1-473c-4f1b-a2ad-4f480c49698f\",\n \"TopicId\": \"a78808d4-df0a-44d4-b71d-a111b1ad9170\"\n }\n }\n}",
262
+ "title": "示例1"
263
+ }
264
+ ],
257
265
  "DescribeInstanceMonitorBigKey": [
258
266
  {
259
267
  "document": "请求示例",
@@ -670,6 +678,14 @@
670
678
  "title": "修改实例事件信息"
671
679
  }
672
680
  ],
681
+ "ModifyInstanceLogDelivery": [
682
+ {
683
+ "document": "开启实例日志投递,并使用新创建的日志集和日志主题",
684
+ "input": "POST / HTTP/1.1\nHost: redis.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstanceLogDelivery\n<公共请求参数>\n\n{\n \"InstanceId\": \"crs-ib4uuh7x\",\n \"LogType\": \"slowlog\",\n \"Enabled\": true,\n \"LogsetName\": \"test-logset-name\",\n \"TopicName\": \"test-topic-name\",\n \"CreateIndex\": true\n}",
685
+ "output": "{\n \"Response\": {\n \"RequestId\": \"ac46037a-57a0-4fe2-a99d-93c10ef20883\"\n }\n}",
686
+ "title": "示例1"
687
+ }
688
+ ],
673
689
  "ModifyInstanceParams": [
674
690
  {
675
691
  "document": "",
@@ -1437,7 +1437,7 @@
1437
1437
  "example": "1620734188",
1438
1438
  "member": "uint64",
1439
1439
  "name": "UserReceiveTime",
1440
- "required": true,
1440
+ "output_required": true,
1441
1441
  "type": "int",
1442
1442
  "value_allowed_null": false
1443
1443
  },
@@ -1447,7 +1447,7 @@
1447
1447
  "example": "86",
1448
1448
  "member": "string",
1449
1449
  "name": "CountryCode",
1450
- "required": true,
1450
+ "output_required": true,
1451
1451
  "type": "string",
1452
1452
  "value_allowed_null": false
1453
1453
  },
@@ -1457,7 +1457,7 @@
1457
1457
  "example": "13711112222",
1458
1458
  "member": "string",
1459
1459
  "name": "SubscriberNumber",
1460
- "required": true,
1460
+ "output_required": true,
1461
1461
  "type": "string",
1462
1462
  "value_allowed_null": false
1463
1463
  },
@@ -1467,7 +1467,7 @@
1467
1467
  "example": "+8613711112222",
1468
1468
  "member": "string",
1469
1469
  "name": "PhoneNumber",
1470
- "required": true,
1470
+ "output_required": true,
1471
1471
  "type": "string",
1472
1472
  "value_allowed_null": false
1473
1473
  },
@@ -1477,7 +1477,7 @@
1477
1477
  "example": "14:19325917feb3914eb78b50d6182d7e452e",
1478
1478
  "member": "string",
1479
1479
  "name": "SerialNo",
1480
- "required": true,
1480
+ "output_required": true,
1481
1481
  "type": "string",
1482
1482
  "value_allowed_null": false
1483
1483
  },
@@ -1487,7 +1487,7 @@
1487
1487
  "example": "SUCCESS",
1488
1488
  "member": "string",
1489
1489
  "name": "ReportStatus",
1490
- "required": true,
1490
+ "output_required": true,
1491
1491
  "type": "string",
1492
1492
  "value_allowed_null": false
1493
1493
  },
@@ -1497,17 +1497,17 @@
1497
1497
  "example": "DELIVRD",
1498
1498
  "member": "string",
1499
1499
  "name": "Description",
1500
- "required": true,
1500
+ "output_required": true,
1501
1501
  "type": "string",
1502
1502
  "value_allowed_null": false
1503
1503
  },
1504
1504
  {
1505
1505
  "disabled": false,
1506
- "document": "用户的 session 内容。与请求中的 SessionContext 一致,默认为空,如需开通请联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81)。\n注意:此字段可能返回 null,表示取不到有效值。",
1506
+ "document": "用户的 session 内容。与请求中的 SessionContext 一致,默认为空,如需开通请联系 [腾讯云短信小助手](https://cloud.tencent.com/document/product/382/3773#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81) 评估。\n注意:此字段可能返回 null,表示取不到有效值。",
1507
1507
  "example": "test",
1508
1508
  "member": "string",
1509
1509
  "name": "SessionContext",
1510
- "required": true,
1510
+ "output_required": true,
1511
1511
  "type": "string",
1512
1512
  "value_allowed_null": true
1513
1513
  }
@@ -6145,7 +6145,7 @@
6145
6145
  "example": "无",
6146
6146
  "member": "uint64",
6147
6147
  "name": "TotalCount",
6148
- "required": true,
6148
+ "output_required": true,
6149
6149
  "type": "int",
6150
6150
  "value_allowed_null": true
6151
6151
  },
@@ -6155,7 +6155,7 @@
6155
6155
  "example": "无",
6156
6156
  "member": "UpdateRecordInfo",
6157
6157
  "name": "DeployRecordList",
6158
- "required": true,
6158
+ "output_required": true,
6159
6159
  "type": "list",
6160
6160
  "value_allowed_null": true
6161
6161
  },
@@ -9905,7 +9905,7 @@
9905
9905
  "example": "无",
9906
9906
  "member": "int64",
9907
9907
  "name": "DeployRecordId",
9908
- "required": true,
9908
+ "output_required": true,
9909
9909
  "type": "int",
9910
9910
  "value_allowed_null": false
9911
9911
  },
@@ -318,7 +318,7 @@
318
318
  {
319
319
  "document": "查询证书云资源更新记录列表",
320
320
  "input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeHostUpdateRecord\n<公共请求参数>\n\n{\n \"OldCertificateId\": \"zYrIXwpu\"\n}",
321
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"DeployRecordList\": [\n {\n \"Id\": 1,\n \"CertId\": \"zXkBVP88\",\n \"OldCertId\": \"zYrIXwpu\",\n \"ResourceTypes\": [\n \"cdn\"\n ],\n \"Status\": 1,\n \"CreateTime\": \"2022-10-09 17:38:38\",\n \"UpdateTime\": \"2022-10-09 19:21:35\"\n }\n ],\n \"RequestId\": \"1111111111111\"\n }\n}",
321
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"DeployRecordList\": [\n {\n \"Id\": 1,\n \"CertId\": \"abc\",\n \"OldCertId\": \"abc\",\n \"ResourceTypes\": [\n \"abc\"\n ],\n \"Regions\": [\n \"abc\"\n ],\n \"Status\": 1,\n \"CreateTime\": \"abc\",\n \"UpdateTime\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
322
322
  "title": "查询证书云资源更新记录列表"
323
323
  }
324
324
  ],
@@ -462,7 +462,7 @@
462
462
  {
463
463
  "document": "云资源更新一键回滚",
464
464
  "input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateCertificateRecordRollback\n<公共请求参数>\n\n{\n \"DeployRecordId\": 1\n}",
465
- "output": "{\n \"Response\": {\n \"DeployRecordId\": 0,\n \"RequestId\": \"xx\"\n }\n}",
465
+ "output": "{\n \"Response\": {\n \"DeployRecordId\": 0,\n \"RequestId\": \"abc\"\n }\n}",
466
466
  "title": "云资源更新一键回滚"
467
467
  }
468
468
  ],