tencentcloud-sdk-mongodb 1.0.268 → 1.0.269

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8715204636da414927bc55c51fecca11037f498e
4
- data.tar.gz: 129f8b62ffd4170db39323a5b64739071c864d65
3
+ metadata.gz: 307058ad7e7cf392f2d3b3c58390b14a5009560c
4
+ data.tar.gz: 92515ab2fb3dcba7a41047dbd130c73d49d96c29
5
5
  SHA512:
6
- metadata.gz: 31564608e5cdf8632254dd5d6af18dde9fc31f36dd6af6a51f00ea13ef2c50e54adeca8f31ffd12478e5a4f9b72e9cdcd7b1aff415a3528608aa75d60a16f43b
7
- data.tar.gz: 1a040a560a2924eea86595011fdb9341acdc66d9d6918822ef2ea8820abcbf0fa538426bc3437d304f1e59af2661a156a928226a0a416ae51f51e3c62470c69d
6
+ metadata.gz: acb0c53bf17c9930e9a887573dc70edc7f6b7ea741d0af3980fd65456cd2fa322ae4151f4c81e4553674eddde0ba3d405532312586339714176c50311350dbe5
7
+ data.tar.gz: 5b5d71c939f07dbe71e1a0adcbc31713730b7fd4b58453ca59a77d925cc4ea1982aecaea30a676461fbb09aa7dc33864ff11c2d904ea33c49d87b9dd86f570e8
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.268
1
+ 1.0.269
@@ -607,6 +607,30 @@ module TencentCloud
607
607
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
608
608
  end
609
609
 
610
+ # 修改实例绑定的安全组
611
+
612
+ # @param request: Request instance for ModifyDBInstanceSecurityGroup.
613
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::ModifyDBInstanceSecurityGroupRequest`
614
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::ModifyDBInstanceSecurityGroupResponse`
615
+ def ModifyDBInstanceSecurityGroup(request)
616
+ body = send_request('ModifyDBInstanceSecurityGroup', request.serialize)
617
+ response = JSON.parse(body)
618
+ if response['Response'].key?('Error') == false
619
+ model = ModifyDBInstanceSecurityGroupResponse.new
620
+ model.deserialize(response['Response'])
621
+ model
622
+ else
623
+ code = response['Response']['Error']['Code']
624
+ message = response['Response']['Error']['Message']
625
+ reqid = response['Response']['RequestId']
626
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
627
+ end
628
+ rescue TencentCloud::Common::TencentCloudSDKException => e
629
+ raise e
630
+ rescue StandardError => e
631
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
632
+ end
633
+
610
634
  # 本接口(ModifyDBInstanceSpec)用于调整MongoDB云数据库实例配置。接口支持的售卖规格,可从查询云数据库的售卖规格(DescribeSpecInfo)获取。
611
635
 
612
636
  # @param request: Request instance for ModifyDBInstanceSpec.
@@ -2250,6 +2250,42 @@ module TencentCloud
2250
2250
  end
2251
2251
  end
2252
2252
 
2253
+ # ModifyDBInstanceSecurityGroup请求参数结构体
2254
+ class ModifyDBInstanceSecurityGroupRequest < TencentCloud::Common::AbstractModel
2255
+ # @param InstanceId: 实例ID
2256
+ # @type InstanceId: String
2257
+ # @param SecurityGroupIds: 目标安全组id
2258
+ # @type SecurityGroupIds: Array
2259
+
2260
+ attr_accessor :InstanceId, :SecurityGroupIds
2261
+
2262
+ def initialize(instanceid=nil, securitygroupids=nil)
2263
+ @InstanceId = instanceid
2264
+ @SecurityGroupIds = securitygroupids
2265
+ end
2266
+
2267
+ def deserialize(params)
2268
+ @InstanceId = params['InstanceId']
2269
+ @SecurityGroupIds = params['SecurityGroupIds']
2270
+ end
2271
+ end
2272
+
2273
+ # ModifyDBInstanceSecurityGroup返回参数结构体
2274
+ class ModifyDBInstanceSecurityGroupResponse < TencentCloud::Common::AbstractModel
2275
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2276
+ # @type RequestId: String
2277
+
2278
+ attr_accessor :RequestId
2279
+
2280
+ def initialize(requestid=nil)
2281
+ @RequestId = requestid
2282
+ end
2283
+
2284
+ def deserialize(params)
2285
+ @RequestId = params['RequestId']
2286
+ end
2287
+ end
2288
+
2253
2289
  # ModifyDBInstanceSpec请求参数结构体
2254
2290
  class ModifyDBInstanceSpecRequest < TencentCloud::Common::AbstractModel
2255
2291
  # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例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: 1.0.268
4
+ version: 1.0.269
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-03-02 00:00:00.000000000 Z
11
+ date: 2022-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common