tencentcloud-sdk-cdb 1.0.347 → 1.0.348
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20170320/client.rb +24 -0
- data/lib/v20170320/models.rb +64 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 247feea5a32bc14fff209a9551375d17bbb813be
|
4
|
+
data.tar.gz: 313f608fbd9786efc1b87207057656dd84e96f85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a49e3273d1583f47d7f85f83097910d840fb4c61af083437406c649a537e74d7bb60a1b2f55f6606c22f093d0efd312a84f426d77e74f9b316e11827d1550c8b
|
7
|
+
data.tar.gz: fc24f405b1a1a201110abfaf6769e8568be46b176a60f2fd6d21fe1a353234a9afe354dc3eb9d80936de7abb515575cd13544b170e4cf387a2b48cd1bbe9af0c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.348
|
data/lib/v20170320/client.rb
CHANGED
@@ -2727,6 +2727,30 @@ module TencentCloud
|
|
2727
2727
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2728
2728
|
end
|
2729
2729
|
|
2730
|
+
# CDB实例开通审计服务
|
2731
|
+
|
2732
|
+
# @param request: Request instance for OpenAuditService.
|
2733
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::OpenAuditServiceRequest`
|
2734
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::OpenAuditServiceResponse`
|
2735
|
+
def OpenAuditService(request)
|
2736
|
+
body = send_request('OpenAuditService', request.serialize)
|
2737
|
+
response = JSON.parse(body)
|
2738
|
+
if response['Response'].key?('Error') == false
|
2739
|
+
model = OpenAuditServiceResponse.new
|
2740
|
+
model.deserialize(response['Response'])
|
2741
|
+
model
|
2742
|
+
else
|
2743
|
+
code = response['Response']['Error']['Code']
|
2744
|
+
message = response['Response']['Error']['Message']
|
2745
|
+
reqid = response['Response']['RequestId']
|
2746
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2747
|
+
end
|
2748
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2749
|
+
raise e
|
2750
|
+
rescue StandardError => e
|
2751
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2752
|
+
end
|
2753
|
+
|
2730
2754
|
# 本接口(OpenDBInstanceGTID)用于开启云数据库实例的 GTID,只支持版本为 5.6 以及以上的实例。
|
2731
2755
|
|
2732
2756
|
# @param request: Request instance for OpenDBInstanceGTID.
|
data/lib/v20170320/models.rb
CHANGED
@@ -7052,19 +7052,29 @@ module TencentCloud
|
|
7052
7052
|
# 当关闭审计服务时,会删除用户的审计日志和文件,并删除该实例的所有审计策略。
|
7053
7053
|
# CloseAudit、LogExpireDay必须至少提供一个,如果两个都提供则按照CloseAudit优先的逻辑处理。
|
7054
7054
|
# @type CloseAudit: Boolean
|
7055
|
+
# @param HighLogExpireDay: 高频审计日志保存时长。支持值包括:
|
7056
|
+
# 7 - 一周
|
7057
|
+
# 30 - 一个月;
|
7058
|
+
# 180 - 六个月;
|
7059
|
+
# 365 - 一年;
|
7060
|
+
# 1095 - 三年;
|
7061
|
+
# 1825 - 五年;
|
7062
|
+
# @type HighLogExpireDay: Integer
|
7055
7063
|
|
7056
|
-
attr_accessor :InstanceId, :LogExpireDay, :CloseAudit
|
7064
|
+
attr_accessor :InstanceId, :LogExpireDay, :CloseAudit, :HighLogExpireDay
|
7057
7065
|
|
7058
|
-
def initialize(instanceid=nil, logexpireday=nil, closeaudit=nil)
|
7066
|
+
def initialize(instanceid=nil, logexpireday=nil, closeaudit=nil, highlogexpireday=nil)
|
7059
7067
|
@InstanceId = instanceid
|
7060
7068
|
@LogExpireDay = logexpireday
|
7061
7069
|
@CloseAudit = closeaudit
|
7070
|
+
@HighLogExpireDay = highlogexpireday
|
7062
7071
|
end
|
7063
7072
|
|
7064
7073
|
def deserialize(params)
|
7065
7074
|
@InstanceId = params['InstanceId']
|
7066
7075
|
@LogExpireDay = params['LogExpireDay']
|
7067
7076
|
@CloseAudit = params['CloseAudit']
|
7077
|
+
@HighLogExpireDay = params['HighLogExpireDay']
|
7068
7078
|
end
|
7069
7079
|
end
|
7070
7080
|
|
@@ -8063,6 +8073,58 @@ module TencentCloud
|
|
8063
8073
|
end
|
8064
8074
|
end
|
8065
8075
|
|
8076
|
+
# OpenAuditService请求参数结构体
|
8077
|
+
class OpenAuditServiceRequest < TencentCloud::Common::AbstractModel
|
8078
|
+
# @param InstanceId: CDB实例ID
|
8079
|
+
# @type InstanceId: String
|
8080
|
+
# @param LogExpireDay: 审计日志保存时长。支持值包括:
|
8081
|
+
# 7 - 一周
|
8082
|
+
# 30 - 一个月;
|
8083
|
+
# 180 - 六个月;
|
8084
|
+
# 365 - 一年;
|
8085
|
+
# 1095 - 三年;
|
8086
|
+
# 1825 - 五年;
|
8087
|
+
# @type LogExpireDay: Integer
|
8088
|
+
# @param HighLogExpireDay: 高频审计日志保存时长。支持值包括:
|
8089
|
+
# 7 - 一周
|
8090
|
+
# 30 - 一个月;
|
8091
|
+
# 180 - 六个月;
|
8092
|
+
# 365 - 一年;
|
8093
|
+
# 1095 - 三年;
|
8094
|
+
# 1825 - 五年;
|
8095
|
+
# @type HighLogExpireDay: Integer
|
8096
|
+
|
8097
|
+
attr_accessor :InstanceId, :LogExpireDay, :HighLogExpireDay
|
8098
|
+
|
8099
|
+
def initialize(instanceid=nil, logexpireday=nil, highlogexpireday=nil)
|
8100
|
+
@InstanceId = instanceid
|
8101
|
+
@LogExpireDay = logexpireday
|
8102
|
+
@HighLogExpireDay = highlogexpireday
|
8103
|
+
end
|
8104
|
+
|
8105
|
+
def deserialize(params)
|
8106
|
+
@InstanceId = params['InstanceId']
|
8107
|
+
@LogExpireDay = params['LogExpireDay']
|
8108
|
+
@HighLogExpireDay = params['HighLogExpireDay']
|
8109
|
+
end
|
8110
|
+
end
|
8111
|
+
|
8112
|
+
# OpenAuditService返回参数结构体
|
8113
|
+
class OpenAuditServiceResponse < TencentCloud::Common::AbstractModel
|
8114
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8115
|
+
# @type RequestId: String
|
8116
|
+
|
8117
|
+
attr_accessor :RequestId
|
8118
|
+
|
8119
|
+
def initialize(requestid=nil)
|
8120
|
+
@RequestId = requestid
|
8121
|
+
end
|
8122
|
+
|
8123
|
+
def deserialize(params)
|
8124
|
+
@RequestId = params['RequestId']
|
8125
|
+
end
|
8126
|
+
end
|
8127
|
+
|
8066
8128
|
# OpenDBInstanceGTID请求参数结构体
|
8067
8129
|
class OpenDBInstanceGTIDRequest < TencentCloud::Common::AbstractModel
|
8068
8130
|
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.348
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|