tencentcloud-sdk-mongodb 3.0.847 → 3.0.848
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/v20190725/client.rb +24 -0
- data/lib/v20190725/models.rb +79 -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: f6bc810d231be9a5aa79bb37ecfb7d83a83a3f2c
|
4
|
+
data.tar.gz: 5166a3738d745c164b481481a3b48143f49fc425
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 001163dfed47b6ab7643c1fcea3442a9e337141eeb131f0e7327ea3bc40313db49bf54974d53208ebf215fef0c405f4078c28aa1af9620978fc02c4713c9e209
|
7
|
+
data.tar.gz: 6b4a3737483aed01ab1343a2307dbee625f715fc75d8372c8662640bafe859762ae586edf8e4fefb48f62ac2bedd15535836cc9b6b7e41112a61b3e1b6ce2e02
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.848
|
data/lib/v20190725/client.rb
CHANGED
@@ -846,6 +846,30 @@ module TencentCloud
|
|
846
846
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
847
847
|
end
|
848
848
|
|
849
|
+
# 本接口(ModifyInstanceParams)用于修改mongoDB实例的参数配置。
|
850
|
+
|
851
|
+
# @param request: Request instance for ModifyInstanceParams.
|
852
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::ModifyInstanceParamsRequest`
|
853
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::ModifyInstanceParamsResponse`
|
854
|
+
def ModifyInstanceParams(request)
|
855
|
+
body = send_request('ModifyInstanceParams', request.serialize)
|
856
|
+
response = JSON.parse(body)
|
857
|
+
if response['Response'].key?('Error') == false
|
858
|
+
model = ModifyInstanceParamsResponse.new
|
859
|
+
model.deserialize(response['Response'])
|
860
|
+
model
|
861
|
+
else
|
862
|
+
code = response['Response']['Error']['Code']
|
863
|
+
message = response['Response']['Error']['Message']
|
864
|
+
reqid = response['Response']['RequestId']
|
865
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
866
|
+
end
|
867
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
868
|
+
raise e
|
869
|
+
rescue StandardError => e
|
870
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
871
|
+
end
|
872
|
+
|
849
873
|
# 本接口(OfflineIsolatedDBInstance)用于立即下线隔离状态的云数据库实例。进行操作的实例状态必须为隔离状态。
|
850
874
|
|
851
875
|
# @param request: Request instance for OfflineIsolatedDBInstance.
|
data/lib/v20190725/models.rb
CHANGED
@@ -3159,6 +3159,85 @@ module TencentCloud
|
|
3159
3159
|
end
|
3160
3160
|
end
|
3161
3161
|
|
3162
|
+
# ModifyInstanceParams请求参数结构体
|
3163
|
+
class ModifyInstanceParamsRequest < TencentCloud::Common::AbstractModel
|
3164
|
+
# @param InstanceId: 指定实例 ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
|
3165
|
+
# @type InstanceId: String
|
3166
|
+
# @param InstanceParams: 指定需修改的参数名及值。当前所支持的参数名及对应取值范围,请通过 [DescribeInstanceParams ](https://cloud.tencent.com/document/product/240/65903)获取。
|
3167
|
+
# @type InstanceParams: Array
|
3168
|
+
# @param ModifyType: 操作类型,包括:
|
3169
|
+
# - IMMEDIATELY:立即调整。
|
3170
|
+
# - DELAY:延迟调整。可选字段,不配置该参数则默认为立即调整。
|
3171
|
+
# @type ModifyType: String
|
3172
|
+
|
3173
|
+
attr_accessor :InstanceId, :InstanceParams, :ModifyType
|
3174
|
+
|
3175
|
+
def initialize(instanceid=nil, instanceparams=nil, modifytype=nil)
|
3176
|
+
@InstanceId = instanceid
|
3177
|
+
@InstanceParams = instanceparams
|
3178
|
+
@ModifyType = modifytype
|
3179
|
+
end
|
3180
|
+
|
3181
|
+
def deserialize(params)
|
3182
|
+
@InstanceId = params['InstanceId']
|
3183
|
+
unless params['InstanceParams'].nil?
|
3184
|
+
@InstanceParams = []
|
3185
|
+
params['InstanceParams'].each do |i|
|
3186
|
+
modifymongodbparamtype_tmp = ModifyMongoDBParamType.new
|
3187
|
+
modifymongodbparamtype_tmp.deserialize(i)
|
3188
|
+
@InstanceParams << modifymongodbparamtype_tmp
|
3189
|
+
end
|
3190
|
+
end
|
3191
|
+
@ModifyType = params['ModifyType']
|
3192
|
+
end
|
3193
|
+
end
|
3194
|
+
|
3195
|
+
# ModifyInstanceParams返回参数结构体
|
3196
|
+
class ModifyInstanceParamsResponse < TencentCloud::Common::AbstractModel
|
3197
|
+
# @param Changed: 修改参数配置是否生效。
|
3198
|
+
# - true:参数修改后的值已生效。
|
3199
|
+
# - false:执行失败。
|
3200
|
+
# @type Changed: Boolean
|
3201
|
+
# @param TaskId: 该参数暂时无意义(兼容前端保留)。
|
3202
|
+
# @type TaskId: Integer
|
3203
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3204
|
+
# @type RequestId: String
|
3205
|
+
|
3206
|
+
attr_accessor :Changed, :TaskId, :RequestId
|
3207
|
+
|
3208
|
+
def initialize(changed=nil, taskid=nil, requestid=nil)
|
3209
|
+
@Changed = changed
|
3210
|
+
@TaskId = taskid
|
3211
|
+
@RequestId = requestid
|
3212
|
+
end
|
3213
|
+
|
3214
|
+
def deserialize(params)
|
3215
|
+
@Changed = params['Changed']
|
3216
|
+
@TaskId = params['TaskId']
|
3217
|
+
@RequestId = params['RequestId']
|
3218
|
+
end
|
3219
|
+
end
|
3220
|
+
|
3221
|
+
# 修改mongoDB实例,请求参数
|
3222
|
+
class ModifyMongoDBParamType < TencentCloud::Common::AbstractModel
|
3223
|
+
# @param Key: 需要修改的参数名称,请严格参考通过 DescribeInstanceParams 获取的当前实例支持的参数名。
|
3224
|
+
# @type Key: String
|
3225
|
+
# @param Value: 需要修改的参数名称对应的值,请严格参考通过 DescribeInstanceParams 获取的参数对应的值的范围。
|
3226
|
+
# @type Value: String
|
3227
|
+
|
3228
|
+
attr_accessor :Key, :Value
|
3229
|
+
|
3230
|
+
def initialize(key=nil, value=nil)
|
3231
|
+
@Key = key
|
3232
|
+
@Value = value
|
3233
|
+
end
|
3234
|
+
|
3235
|
+
def deserialize(params)
|
3236
|
+
@Key = params['Key']
|
3237
|
+
@Value = params['Value']
|
3238
|
+
end
|
3239
|
+
end
|
3240
|
+
|
3162
3241
|
# 修改数据库地址
|
3163
3242
|
class ModifyNetworkAddress < TencentCloud::Common::AbstractModel
|
3164
3243
|
# @param NewIPAddress: 新IP地址。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-mongodb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.848
|
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-06-
|
11
|
+
date: 2024-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|