tencentcloud-sdk-redis 3.0.921 → 3.0.923
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/v20180412/client.rb +25 -1
- data/lib/v20180412/models.rb +48 -1
- 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: 291333d95eff54f0e26ccd881b7a1048848cb98a
|
4
|
+
data.tar.gz: 88aca166abfe1acd2169ac796e1d6859e8aaced7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 701d394044364f58652472b5966d93d56e32ad9a7bed991d78f4807c9e5021ac5ae91894f375b4e6ef3259e9192e61b883d81283ad1116ba9d5c5622e8a4087d
|
7
|
+
data.tar.gz: c500eb323478ee17f1b410539f204cd5d3cb47f223f80c82db867b2c3e455ea1dedccee726fed304ff1038fd8d60a8ac311c5884e162013bd180abc03b69bc65
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.923
|
data/lib/v20180412/client.rb
CHANGED
@@ -1925,7 +1925,7 @@ module TencentCloud
|
|
1925
1925
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1926
1926
|
end
|
1927
1927
|
|
1928
|
-
#
|
1928
|
+
# 本接口(ModifyDBInstanceSecurityGroups)用于对实例原有的安全组列表进行修改。
|
1929
1929
|
|
1930
1930
|
# @param request: Request instance for ModifyDBInstanceSecurityGroups.
|
1931
1931
|
# @type request: :class:`Tencentcloud::redis::V20180412::ModifyDBInstanceSecurityGroupsRequest`
|
@@ -2093,6 +2093,30 @@ module TencentCloud
|
|
2093
2093
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2094
2094
|
end
|
2095
2095
|
|
2096
|
+
# 本接口(ModifyInstancePassword)用于修改实例访问密码。
|
2097
|
+
|
2098
|
+
# @param request: Request instance for ModifyInstancePassword.
|
2099
|
+
# @type request: :class:`Tencentcloud::redis::V20180412::ModifyInstancePasswordRequest`
|
2100
|
+
# @rtype: :class:`Tencentcloud::redis::V20180412::ModifyInstancePasswordResponse`
|
2101
|
+
def ModifyInstancePassword(request)
|
2102
|
+
body = send_request('ModifyInstancePassword', request.serialize)
|
2103
|
+
response = JSON.parse(body)
|
2104
|
+
if response['Response'].key?('Error') == false
|
2105
|
+
model = ModifyInstancePasswordResponse.new
|
2106
|
+
model.deserialize(response['Response'])
|
2107
|
+
model
|
2108
|
+
else
|
2109
|
+
code = response['Response']['Error']['Code']
|
2110
|
+
message = response['Response']['Error']['Message']
|
2111
|
+
reqid = response['Response']['RequestId']
|
2112
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2113
|
+
end
|
2114
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2115
|
+
raise e
|
2116
|
+
rescue StandardError => e
|
2117
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2118
|
+
end
|
2119
|
+
|
2096
2120
|
# 设置实例输入模式
|
2097
2121
|
|
2098
2122
|
# @param request: Request instance for ModifyInstanceReadOnly.
|
data/lib/v20180412/models.rb
CHANGED
@@ -6214,7 +6214,7 @@ module TencentCloud
|
|
6214
6214
|
class ModifyDBInstanceSecurityGroupsRequest < TencentCloud::Common::AbstractModel
|
6215
6215
|
# @param Product: 数据库引擎名称,本接口取值:redis。
|
6216
6216
|
# @type Product: String
|
6217
|
-
# @param SecurityGroupIds:
|
6217
|
+
# @param SecurityGroupIds: 更换为新的安全组 ID 列表,即一个或者多个安全组 ID 组成的数组。若实例第一次配置安全组,请使用接口[AssociateSecurityGroups](https://cloud.tencent.com/document/product/239/41260)先绑定安全组。
|
6218
6218
|
# @type SecurityGroupIds: Array
|
6219
6219
|
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv或者cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
|
6220
6220
|
# @type InstanceId: String
|
@@ -6543,6 +6543,53 @@ module TencentCloud
|
|
6543
6543
|
end
|
6544
6544
|
end
|
6545
6545
|
|
6546
|
+
# ModifyInstancePassword请求参数结构体
|
6547
|
+
class ModifyInstancePasswordRequest < TencentCloud::Common::AbstractModel
|
6548
|
+
# @param InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID。
|
6549
|
+
# @type InstanceId: String
|
6550
|
+
# @param OldPassword: 实例旧密码。
|
6551
|
+
# @type OldPassword: String
|
6552
|
+
# @param Password: 实例新密码。密码复杂度要求如下:
|
6553
|
+
# - 长度8 - 30位, 推荐使用12位以上的密码。
|
6554
|
+
# - 不能以"/"开头。
|
6555
|
+
# - 至少包含小写字母a - z、大写字母A - Z、数字0 - 9、特殊字符 ()~!@#$%^&*-+=_|{}[]:;<>,.?/中的两项。
|
6556
|
+
# @type Password: String
|
6557
|
+
|
6558
|
+
attr_accessor :InstanceId, :OldPassword, :Password
|
6559
|
+
|
6560
|
+
def initialize(instanceid=nil, oldpassword=nil, password=nil)
|
6561
|
+
@InstanceId = instanceid
|
6562
|
+
@OldPassword = oldpassword
|
6563
|
+
@Password = password
|
6564
|
+
end
|
6565
|
+
|
6566
|
+
def deserialize(params)
|
6567
|
+
@InstanceId = params['InstanceId']
|
6568
|
+
@OldPassword = params['OldPassword']
|
6569
|
+
@Password = params['Password']
|
6570
|
+
end
|
6571
|
+
end
|
6572
|
+
|
6573
|
+
# ModifyInstancePassword返回参数结构体
|
6574
|
+
class ModifyInstancePasswordResponse < TencentCloud::Common::AbstractModel
|
6575
|
+
# @param TaskId: 任务 ID。
|
6576
|
+
# @type TaskId: Integer
|
6577
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6578
|
+
# @type RequestId: String
|
6579
|
+
|
6580
|
+
attr_accessor :TaskId, :RequestId
|
6581
|
+
|
6582
|
+
def initialize(taskid=nil, requestid=nil)
|
6583
|
+
@TaskId = taskid
|
6584
|
+
@RequestId = requestid
|
6585
|
+
end
|
6586
|
+
|
6587
|
+
def deserialize(params)
|
6588
|
+
@TaskId = params['TaskId']
|
6589
|
+
@RequestId = params['RequestId']
|
6590
|
+
end
|
6591
|
+
end
|
6592
|
+
|
6546
6593
|
# ModifyInstanceReadOnly请求参数结构体
|
6547
6594
|
class ModifyInstanceReadOnlyRequest < TencentCloud::Common::AbstractModel
|
6548
6595
|
# @param InstanceId: 实例ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.923
|
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-10-
|
11
|
+
date: 2024-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|