tencentcloud-sdk-mongodb 3.0.1137 → 3.0.1139

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c78487567e08af98602dde29cf18788c39e34107
4
- data.tar.gz: 3dd4415bee4c86d189d7e45f9755ea23f016644a
3
+ metadata.gz: 7d3cfd0aee750154ec2326d718c2c24586aec7e4
4
+ data.tar.gz: a9e487e2ad1bd7a7f32a783f441e326e2d9795c2
5
5
  SHA512:
6
- metadata.gz: 3fd061002326e3f605ec21b4e65bb786c3cc833f30c9323b0d046e95d708b7fe4bbb189a115d7a1fd14d22c8292704c2a6bccab61d4ed5d5b15100aea191f996
7
- data.tar.gz: f4fc8498ebdb202c9ca4023f46d5a7b6e6209431302248d107fb6797f359320cc335b6d43673f9fcb43d0e11ecd37180aad0374c3401ac246399da446915fc5f
6
+ metadata.gz: 12c400f51cd13ddc6afc2b5877d8c17daf21d85547e1fdd43013538121f0ac766728e0c6b624dc7b536784c7092b1623c70fc555abf8ea219f2e8ceab5a44af9
7
+ data.tar.gz: 37ce2e511f3818acf6249d569608c267e9b8754ab1d79800eb63f11012a1cfba52f3c11aa593f5faf3cde690addb4769be100ff67636880f563813b477827725
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1137
1
+ 3.0.1139
@@ -1235,6 +1235,30 @@ module TencentCloud
1235
1235
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1236
1236
  end
1237
1237
 
1238
+ # 本接口(SetDBInstanceDeletionProtection)用于设置实例销毁保护
1239
+
1240
+ # @param request: Request instance for SetDBInstanceDeletionProtection.
1241
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::SetDBInstanceDeletionProtectionRequest`
1242
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::SetDBInstanceDeletionProtectionResponse`
1243
+ def SetDBInstanceDeletionProtection(request)
1244
+ body = send_request('SetDBInstanceDeletionProtection', request.serialize)
1245
+ response = JSON.parse(body)
1246
+ if response['Response'].key?('Error') == false
1247
+ model = SetDBInstanceDeletionProtectionResponse.new
1248
+ model.deserialize(response['Response'])
1249
+ model
1250
+ else
1251
+ code = response['Response']['Error']['Code']
1252
+ message = response['Response']['Error']['Message']
1253
+ reqid = response['Response']['RequestId']
1254
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1255
+ end
1256
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1257
+ raise e
1258
+ rescue StandardError => e
1259
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1260
+ end
1261
+
1238
1262
  # 本接口(SetInstanceMaintenance ) 用于设置实例维护时间窗。
1239
1263
 
1240
1264
  # @param request: Request instance for SetInstanceMaintenance.
@@ -3625,8 +3625,8 @@ module TencentCloud
3625
3625
 
3626
3626
  attr_accessor :InstanceId, :Memory, :Volume, :OplogSize, :NodeNum, :ReplicateSetNum, :InMaintenance, :MongosMemory, :AddNodeList, :RemoveNodeList
3627
3627
  extend Gem::Deprecate
3628
- deprecate :OplogSize, :none, 2025, 8
3629
- deprecate :OplogSize=, :none, 2025, 8
3628
+ deprecate :OplogSize, :none, 2025, 9
3629
+ deprecate :OplogSize=, :none, 2025, 9
3630
3630
 
3631
3631
  def initialize(instanceid=nil, memory=nil, volume=nil, oplogsize=nil, nodenum=nil, replicatesetnum=nil, inmaintenance=nil, mongosmemory=nil, addnodelist=nil, removenodelist=nil)
3632
3632
  @InstanceId = instanceid
@@ -4422,6 +4422,42 @@ module TencentCloud
4422
4422
  end
4423
4423
  end
4424
4424
 
4425
+ # SetDBInstanceDeletionProtection请求参数结构体
4426
+ class SetDBInstanceDeletionProtectionRequest < TencentCloud::Common::AbstractModel
4427
+ # @param InstanceIds: 实例ID列表,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
4428
+ # @type InstanceIds: Array
4429
+ # @param EnableDeletionProtection: 实例销毁保护选项,取值范围:0-关闭销毁保护,1-开启销毁保护
4430
+ # @type EnableDeletionProtection: Integer
4431
+
4432
+ attr_accessor :InstanceIds, :EnableDeletionProtection
4433
+
4434
+ def initialize(instanceids=nil, enabledeletionprotection=nil)
4435
+ @InstanceIds = instanceids
4436
+ @EnableDeletionProtection = enabledeletionprotection
4437
+ end
4438
+
4439
+ def deserialize(params)
4440
+ @InstanceIds = params['InstanceIds']
4441
+ @EnableDeletionProtection = params['EnableDeletionProtection']
4442
+ end
4443
+ end
4444
+
4445
+ # SetDBInstanceDeletionProtection返回参数结构体
4446
+ class SetDBInstanceDeletionProtectionResponse < TencentCloud::Common::AbstractModel
4447
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4448
+ # @type RequestId: String
4449
+
4450
+ attr_accessor :RequestId
4451
+
4452
+ def initialize(requestid=nil)
4453
+ @RequestId = requestid
4454
+ end
4455
+
4456
+ def deserialize(params)
4457
+ @RequestId = params['RequestId']
4458
+ end
4459
+ end
4460
+
4425
4461
  # SetInstanceMaintenance请求参数结构体
4426
4462
  class SetInstanceMaintenanceRequest < TencentCloud::Common::AbstractModel
4427
4463
  # @param InstanceId: 指定实例ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
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.1137
4
+ version: 3.0.1139
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-09-07 00:00:00.000000000 Z
11
+ date: 2025-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common