tencentcloud-sdk-redis 1.0.312 → 1.0.313
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 +24 -0
- data/lib/v20180412/models.rb +40 -0
- 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: 1c7c0d8f42ffbb22d83197d6796c845f06b53db3
|
4
|
+
data.tar.gz: 1d1dfaf385f104c469b0de11d98ae07511aaddd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d9d8cf5e2384a186cfa683bbb2549d591abf56b7bfd004de463439aa82e9695e3be0350067252407ceb773d94a906180f1a8ff423722c4ab6419ef49f6b065e
|
7
|
+
data.tar.gz: 7904dd84569dd11fbdcb514bdf8966f03c32fd3bf3b1ebc80ffb80ff31c2273a0c9dff9d87414e771958d1b9f577e9a089c7391dbc2d9894580370698fdbc272
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.313
|
data/lib/v20180412/client.rb
CHANGED
@@ -1613,6 +1613,30 @@ module TencentCloud
|
|
1613
1613
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1614
1614
|
end
|
1615
1615
|
|
1616
|
+
# 设置实例输入模式
|
1617
|
+
|
1618
|
+
# @param request: Request instance for ModifyInstanceReadOnly.
|
1619
|
+
# @type request: :class:`Tencentcloud::redis::V20180412::ModifyInstanceReadOnlyRequest`
|
1620
|
+
# @rtype: :class:`Tencentcloud::redis::V20180412::ModifyInstanceReadOnlyResponse`
|
1621
|
+
def ModifyInstanceReadOnly(request)
|
1622
|
+
body = send_request('ModifyInstanceReadOnly', request.serialize)
|
1623
|
+
response = JSON.parse(body)
|
1624
|
+
if response['Response'].key?('Error') == false
|
1625
|
+
model = ModifyInstanceReadOnlyResponse.new
|
1626
|
+
model.deserialize(response['Response'])
|
1627
|
+
model
|
1628
|
+
else
|
1629
|
+
code = response['Response']['Error']['Code']
|
1630
|
+
message = response['Response']['Error']['Message']
|
1631
|
+
reqid = response['Response']['RequestId']
|
1632
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1633
|
+
end
|
1634
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1635
|
+
raise e
|
1636
|
+
rescue StandardError => e
|
1637
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1638
|
+
end
|
1639
|
+
|
1616
1640
|
# 修改实例维护时间窗时间,需要进行版本升级或者架构升级的实例,会在维护时间窗内进行时间切换。注意:已经发起版本升级或者架构升级的实例,无法修改维护时间窗。
|
1617
1641
|
|
1618
1642
|
# @param request: Request instance for ModifyMaintenanceWindow.
|
data/lib/v20180412/models.rb
CHANGED
@@ -4752,6 +4752,46 @@ module TencentCloud
|
|
4752
4752
|
end
|
4753
4753
|
end
|
4754
4754
|
|
4755
|
+
# ModifyInstanceReadOnly请求参数结构体
|
4756
|
+
class ModifyInstanceReadOnlyRequest < TencentCloud::Common::AbstractModel
|
4757
|
+
# @param InstanceId: 实例ID
|
4758
|
+
# @type InstanceId: String
|
4759
|
+
# @param InputMode: 实例输入模式,0:读写 1:只读
|
4760
|
+
# @type InputMode: String
|
4761
|
+
|
4762
|
+
attr_accessor :InstanceId, :InputMode
|
4763
|
+
|
4764
|
+
def initialize(instanceid=nil, inputmode=nil)
|
4765
|
+
@InstanceId = instanceid
|
4766
|
+
@InputMode = inputmode
|
4767
|
+
end
|
4768
|
+
|
4769
|
+
def deserialize(params)
|
4770
|
+
@InstanceId = params['InstanceId']
|
4771
|
+
@InputMode = params['InputMode']
|
4772
|
+
end
|
4773
|
+
end
|
4774
|
+
|
4775
|
+
# ModifyInstanceReadOnly返回参数结构体
|
4776
|
+
class ModifyInstanceReadOnlyResponse < TencentCloud::Common::AbstractModel
|
4777
|
+
# @param TaskId: 任务ID
|
4778
|
+
# @type TaskId: Integer
|
4779
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4780
|
+
# @type RequestId: String
|
4781
|
+
|
4782
|
+
attr_accessor :TaskId, :RequestId
|
4783
|
+
|
4784
|
+
def initialize(taskid=nil, requestid=nil)
|
4785
|
+
@TaskId = taskid
|
4786
|
+
@RequestId = requestid
|
4787
|
+
end
|
4788
|
+
|
4789
|
+
def deserialize(params)
|
4790
|
+
@TaskId = params['TaskId']
|
4791
|
+
@RequestId = params['RequestId']
|
4792
|
+
end
|
4793
|
+
end
|
4794
|
+
|
4755
4795
|
# ModifyInstance请求参数结构体
|
4756
4796
|
class ModifyInstanceRequest < TencentCloud::Common::AbstractModel
|
4757
4797
|
# @param Operation: 修改实例操作,如填写:rename-表示实例重命名;modifyProject-修改实例所属项目;modifyAutoRenew-修改实例续费标记
|
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: 1.0.
|
4
|
+
version: 1.0.313
|
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-05-
|
11
|
+
date: 2022-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|