tencentcloud-sdk-cdb 3.0.858 → 3.0.859
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 +72 -0
- data/lib/v20170320/models.rb +129 -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: 81cad797bce7a7950f41b24d8632cb70b40a4d1c
|
4
|
+
data.tar.gz: fe5a37bf8c662da3c904bf9fd47be597fe7f7fb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6db803776e6b854d3b87aa3743e49a8a619810a374b239f9be91701e1e9b2ed4e0964a82baee4635e7911235aa9a0826315003e5cd6ce00fee18e27e4049421
|
7
|
+
data.tar.gz: ce5a4fe7a381d9ea075fdc30891430fcdf0e6ba0765b279af1edf50872c7b2c58a70dbd32af1bb619da019a77d3f9e51ce656f98486f5c1b0390c10520d3f8b3
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.859
|
data/lib/v20170320/client.rb
CHANGED
@@ -720,6 +720,30 @@ module TencentCloud
|
|
720
720
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
721
721
|
end
|
722
722
|
|
723
|
+
# 开启密码轮转
|
724
|
+
|
725
|
+
# @param request: Request instance for CreateRotationPassword.
|
726
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::CreateRotationPasswordRequest`
|
727
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::CreateRotationPasswordResponse`
|
728
|
+
def CreateRotationPassword(request)
|
729
|
+
body = send_request('CreateRotationPassword', request.serialize)
|
730
|
+
response = JSON.parse(body)
|
731
|
+
if response['Response'].key?('Error') == false
|
732
|
+
model = CreateRotationPasswordResponse.new
|
733
|
+
model.deserialize(response['Response'])
|
734
|
+
model
|
735
|
+
else
|
736
|
+
code = response['Response']['Error']['Code']
|
737
|
+
message = response['Response']['Error']['Message']
|
738
|
+
reqid = response['Response']['RequestId']
|
739
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
740
|
+
end
|
741
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
742
|
+
raise e
|
743
|
+
rescue StandardError => e
|
744
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
745
|
+
end
|
746
|
+
|
723
747
|
# 本接口(DeleteAccounts)用于删除云数据库的账户。
|
724
748
|
|
725
749
|
# @param request: Request instance for DeleteAccounts.
|
@@ -936,6 +960,30 @@ module TencentCloud
|
|
936
960
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
937
961
|
end
|
938
962
|
|
963
|
+
# 关闭实例账户密码轮转
|
964
|
+
|
965
|
+
# @param request: Request instance for DeleteRotationPassword.
|
966
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::DeleteRotationPasswordRequest`
|
967
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::DeleteRotationPasswordResponse`
|
968
|
+
def DeleteRotationPassword(request)
|
969
|
+
body = send_request('DeleteRotationPassword', request.serialize)
|
970
|
+
response = JSON.parse(body)
|
971
|
+
if response['Response'].key?('Error') == false
|
972
|
+
model = DeleteRotationPasswordResponse.new
|
973
|
+
model.deserialize(response['Response'])
|
974
|
+
model
|
975
|
+
else
|
976
|
+
code = response['Response']['Error']['Code']
|
977
|
+
message = response['Response']['Error']['Message']
|
978
|
+
reqid = response['Response']['RequestId']
|
979
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
980
|
+
end
|
981
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
982
|
+
raise e
|
983
|
+
rescue StandardError => e
|
984
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
985
|
+
end
|
986
|
+
|
939
987
|
# 本接口(DeleteTimeWindow)用于删除云数据库实例的维护时间窗口。删除实例维护时间窗口之后,默认的维护时间窗为 03:00-04:00,即当选择在维护时间窗口内切换访问新实例时,默认会在 03:00-04:00 点进行切换访问新实例。
|
940
988
|
|
941
989
|
# @param request: Request instance for DeleteTimeWindow.
|
@@ -3625,6 +3673,30 @@ module TencentCloud
|
|
3625
3673
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3626
3674
|
end
|
3627
3675
|
|
3676
|
+
# 手动刷新轮转密码
|
3677
|
+
|
3678
|
+
# @param request: Request instance for ResetPassword.
|
3679
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::ResetPasswordRequest`
|
3680
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::ResetPasswordResponse`
|
3681
|
+
def ResetPassword(request)
|
3682
|
+
body = send_request('ResetPassword', request.serialize)
|
3683
|
+
response = JSON.parse(body)
|
3684
|
+
if response['Response'].key?('Error') == false
|
3685
|
+
model = ResetPasswordResponse.new
|
3686
|
+
model.deserialize(response['Response'])
|
3687
|
+
model
|
3688
|
+
else
|
3689
|
+
code = response['Response']['Error']['Code']
|
3690
|
+
message = response['Response']['Error']['Message']
|
3691
|
+
reqid = response['Response']['RequestId']
|
3692
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3693
|
+
end
|
3694
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3695
|
+
raise e
|
3696
|
+
rescue StandardError => e
|
3697
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3698
|
+
end
|
3699
|
+
|
3628
3700
|
# 重置实例ROOT账号,初始化账号权限
|
3629
3701
|
|
3630
3702
|
# @param request: Request instance for ResetRootAccount.
|
data/lib/v20170320/models.rb
CHANGED
@@ -3472,6 +3472,49 @@ module TencentCloud
|
|
3472
3472
|
end
|
3473
3473
|
end
|
3474
3474
|
|
3475
|
+
# CreateRotationPassword请求参数结构体
|
3476
|
+
class CreateRotationPasswordRequest < TencentCloud::Common::AbstractModel
|
3477
|
+
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
|
3478
|
+
# @type InstanceId: String
|
3479
|
+
# @param Accounts: 当前需开启密码轮转的账号信息,包含账户名与主机名
|
3480
|
+
# @type Accounts: Array
|
3481
|
+
|
3482
|
+
attr_accessor :InstanceId, :Accounts
|
3483
|
+
|
3484
|
+
def initialize(instanceid=nil, accounts=nil)
|
3485
|
+
@InstanceId = instanceid
|
3486
|
+
@Accounts = accounts
|
3487
|
+
end
|
3488
|
+
|
3489
|
+
def deserialize(params)
|
3490
|
+
@InstanceId = params['InstanceId']
|
3491
|
+
unless params['Accounts'].nil?
|
3492
|
+
@Accounts = []
|
3493
|
+
params['Accounts'].each do |i|
|
3494
|
+
account_tmp = Account.new
|
3495
|
+
account_tmp.deserialize(i)
|
3496
|
+
@Accounts << account_tmp
|
3497
|
+
end
|
3498
|
+
end
|
3499
|
+
end
|
3500
|
+
end
|
3501
|
+
|
3502
|
+
# CreateRotationPassword返回参数结构体
|
3503
|
+
class CreateRotationPasswordResponse < TencentCloud::Common::AbstractModel
|
3504
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3505
|
+
# @type RequestId: String
|
3506
|
+
|
3507
|
+
attr_accessor :RequestId
|
3508
|
+
|
3509
|
+
def initialize(requestid=nil)
|
3510
|
+
@RequestId = requestid
|
3511
|
+
end
|
3512
|
+
|
3513
|
+
def deserialize(params)
|
3514
|
+
@RequestId = params['RequestId']
|
3515
|
+
end
|
3516
|
+
end
|
3517
|
+
|
3475
3518
|
# proxy配置
|
3476
3519
|
class CustomConfig < TencentCloud::Common::AbstractModel
|
3477
3520
|
# @param Device: 设备
|
@@ -3888,6 +3931,50 @@ module TencentCloud
|
|
3888
3931
|
end
|
3889
3932
|
end
|
3890
3933
|
|
3934
|
+
# DeleteRotationPassword请求参数结构体
|
3935
|
+
class DeleteRotationPasswordRequest < TencentCloud::Common::AbstractModel
|
3936
|
+
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同
|
3937
|
+
# @type InstanceId: String
|
3938
|
+
# @param User: 关闭密码轮转的实例账户名,例如root
|
3939
|
+
# @type User: String
|
3940
|
+
# @param Host: 关闭密码轮转的实例账户域名,例如%
|
3941
|
+
# @type Host: String
|
3942
|
+
# @param Password: 关闭密码轮转后实例账户的最新密码
|
3943
|
+
# @type Password: String
|
3944
|
+
|
3945
|
+
attr_accessor :InstanceId, :User, :Host, :Password
|
3946
|
+
|
3947
|
+
def initialize(instanceid=nil, user=nil, host=nil, password=nil)
|
3948
|
+
@InstanceId = instanceid
|
3949
|
+
@User = user
|
3950
|
+
@Host = host
|
3951
|
+
@Password = password
|
3952
|
+
end
|
3953
|
+
|
3954
|
+
def deserialize(params)
|
3955
|
+
@InstanceId = params['InstanceId']
|
3956
|
+
@User = params['User']
|
3957
|
+
@Host = params['Host']
|
3958
|
+
@Password = params['Password']
|
3959
|
+
end
|
3960
|
+
end
|
3961
|
+
|
3962
|
+
# DeleteRotationPassword返回参数结构体
|
3963
|
+
class DeleteRotationPasswordResponse < TencentCloud::Common::AbstractModel
|
3964
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3965
|
+
# @type RequestId: String
|
3966
|
+
|
3967
|
+
attr_accessor :RequestId
|
3968
|
+
|
3969
|
+
def initialize(requestid=nil)
|
3970
|
+
@RequestId = requestid
|
3971
|
+
end
|
3972
|
+
|
3973
|
+
def deserialize(params)
|
3974
|
+
@RequestId = params['RequestId']
|
3975
|
+
end
|
3976
|
+
end
|
3977
|
+
|
3891
3978
|
# DeleteTimeWindow请求参数结构体
|
3892
3979
|
class DeleteTimeWindowRequest < TencentCloud::Common::AbstractModel
|
3893
3980
|
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
|
@@ -11186,8 +11273,8 @@ module TencentCloud
|
|
11186
11273
|
|
11187
11274
|
attr_accessor :InstanceId, :ParamName, :OldValue, :NewValue, :IsSucess, :ModifyTime, :IsSuccess
|
11188
11275
|
extend Gem::Deprecate
|
11189
|
-
deprecate :IsSucess, :none, 2024,
|
11190
|
-
deprecate :IsSucess=, :none, 2024,
|
11276
|
+
deprecate :IsSucess, :none, 2024, 7
|
11277
|
+
deprecate :IsSucess=, :none, 2024, 7
|
11191
11278
|
|
11192
11279
|
def initialize(instanceid=nil, paramname=nil, oldvalue=nil, newvalue=nil, issucess=nil, modifytime=nil, issuccess=nil)
|
11193
11280
|
@InstanceId = instanceid
|
@@ -11902,6 +11989,46 @@ module TencentCloud
|
|
11902
11989
|
end
|
11903
11990
|
end
|
11904
11991
|
|
11992
|
+
# ResetPassword请求参数结构体
|
11993
|
+
class ResetPasswordRequest < TencentCloud::Common::AbstractModel
|
11994
|
+
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
|
11995
|
+
# @type InstanceId: String
|
11996
|
+
# @param User: 手动刷新轮转密码的实例账户名,例如root
|
11997
|
+
# @type User: String
|
11998
|
+
# @param Host: 手动刷新轮转密码的实例账户域名,例如%
|
11999
|
+
# @type Host: String
|
12000
|
+
|
12001
|
+
attr_accessor :InstanceId, :User, :Host
|
12002
|
+
|
12003
|
+
def initialize(instanceid=nil, user=nil, host=nil)
|
12004
|
+
@InstanceId = instanceid
|
12005
|
+
@User = user
|
12006
|
+
@Host = host
|
12007
|
+
end
|
12008
|
+
|
12009
|
+
def deserialize(params)
|
12010
|
+
@InstanceId = params['InstanceId']
|
12011
|
+
@User = params['User']
|
12012
|
+
@Host = params['Host']
|
12013
|
+
end
|
12014
|
+
end
|
12015
|
+
|
12016
|
+
# ResetPassword返回参数结构体
|
12017
|
+
class ResetPasswordResponse < TencentCloud::Common::AbstractModel
|
12018
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
12019
|
+
# @type RequestId: String
|
12020
|
+
|
12021
|
+
attr_accessor :RequestId
|
12022
|
+
|
12023
|
+
def initialize(requestid=nil)
|
12024
|
+
@RequestId = requestid
|
12025
|
+
end
|
12026
|
+
|
12027
|
+
def deserialize(params)
|
12028
|
+
@RequestId = params['RequestId']
|
12029
|
+
end
|
12030
|
+
end
|
12031
|
+
|
11905
12032
|
# ResetRootAccount请求参数结构体
|
11906
12033
|
class ResetRootAccountRequest < TencentCloud::Common::AbstractModel
|
11907
12034
|
# @param InstanceId: 实例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: 3.0.
|
4
|
+
version: 3.0.859
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|