tencentcloud-sdk-mongodb 1.0.289 → 1.0.290

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: da6897a5b5a872a285119637df505a531ebe5030
4
- data.tar.gz: 3613f331ed9a90ef99ace0f14afdcf257b84bf7a
3
+ metadata.gz: 4ec6e408c59299df76dd908634cd75f2e73fd1ba
4
+ data.tar.gz: d4ca0a79ec317c6e1d584593a416e6508aad6d46
5
5
  SHA512:
6
- metadata.gz: a9f904e39dd1acbd92cefebc5bd973aa784fbec97bcce2a0aaf6f6a58d95b1c30f5ea96b03b996cb45fa255d684b28524610a0b9bc3ad97f09203ab733235540
7
- data.tar.gz: 861e3e819fabbab2a3caac9d1682d00eec473cd79cb61ee1004fb1f5b943f5bdf39dde2f08fb807d48b913604984bdebed1f9aaa08add554d2d07fc178785fbf
6
+ metadata.gz: c834eb8bcc8bb5332c71a9c559b338a13e4a2f90a594418e9e2e2d4a8cd870f7f3b3bb1ed8747f2bd4ad80ec5fa8c36a03707bc1a343ae8f2d7135d8e87eaca8
7
+ data.tar.gz: ea2e1e64cfea4f4c8c513d4bc94063b1e2e8936ce817f5bd66a86779fad3de27b25524f1933882e46955b779425129d0ecb96953d7b24379d86ac2a3a05af864
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.289
1
+ 1.0.290
@@ -607,6 +607,30 @@ module TencentCloud
607
607
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
608
608
  end
609
609
 
610
+ # 本接口(ModifyDBInstanceNetworkAddress)用于修改云数据库实例的网络信息,可进行基础网络转VPC网络和VPC网络之间的变换。
611
+
612
+ # @param request: Request instance for ModifyDBInstanceNetworkAddress.
613
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::ModifyDBInstanceNetworkAddressRequest`
614
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::ModifyDBInstanceNetworkAddressResponse`
615
+ def ModifyDBInstanceNetworkAddress(request)
616
+ body = send_request('ModifyDBInstanceNetworkAddress', request.serialize)
617
+ response = JSON.parse(body)
618
+ if response['Response'].key?('Error') == false
619
+ model = ModifyDBInstanceNetworkAddressResponse.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
  # 修改实例绑定的安全组
611
635
 
612
636
  # @param request: Request instance for ModifyDBInstanceSecurityGroup.
@@ -2252,6 +2252,61 @@ module TencentCloud
2252
2252
  end
2253
2253
  end
2254
2254
 
2255
+ # ModifyDBInstanceNetworkAddress请求参数结构体
2256
+ class ModifyDBInstanceNetworkAddressRequest < TencentCloud::Common::AbstractModel
2257
+ # @param InstanceId: 实例ID
2258
+ # @type InstanceId: String
2259
+ # @param OldIpExpiredTime: 原IP保留时长,单位为分钟;原IP会在约定时间后释放,在释放前原IP和新IP均可访问;0表示立即回收原IP
2260
+ # @type OldIpExpiredTime: Integer
2261
+ # @param NewUniqVpcId: 切换后IP地址所属私有网络统一ID,若为基础网络,该字段为空
2262
+ # @type NewUniqVpcId: String
2263
+ # @param NewUniqSubnetId: 切换后IP地址所属子网统一ID,若为基础网络,该字段为空
2264
+ # @type NewUniqSubnetId: String
2265
+ # @param NetworkAddresses: 待修改IP信息
2266
+ # @type NetworkAddresses: Array
2267
+
2268
+ attr_accessor :InstanceId, :OldIpExpiredTime, :NewUniqVpcId, :NewUniqSubnetId, :NetworkAddresses
2269
+
2270
+ def initialize(instanceid=nil, oldipexpiredtime=nil, newuniqvpcid=nil, newuniqsubnetid=nil, networkaddresses=nil)
2271
+ @InstanceId = instanceid
2272
+ @OldIpExpiredTime = oldipexpiredtime
2273
+ @NewUniqVpcId = newuniqvpcid
2274
+ @NewUniqSubnetId = newuniqsubnetid
2275
+ @NetworkAddresses = networkaddresses
2276
+ end
2277
+
2278
+ def deserialize(params)
2279
+ @InstanceId = params['InstanceId']
2280
+ @OldIpExpiredTime = params['OldIpExpiredTime']
2281
+ @NewUniqVpcId = params['NewUniqVpcId']
2282
+ @NewUniqSubnetId = params['NewUniqSubnetId']
2283
+ unless params['NetworkAddresses'].nil?
2284
+ @NetworkAddresses = []
2285
+ params['NetworkAddresses'].each do |i|
2286
+ modifynetworkaddress_tmp = ModifyNetworkAddress.new
2287
+ modifynetworkaddress_tmp.deserialize(i)
2288
+ @NetworkAddresses << modifynetworkaddress_tmp
2289
+ end
2290
+ end
2291
+ end
2292
+ end
2293
+
2294
+ # ModifyDBInstanceNetworkAddress返回参数结构体
2295
+ class ModifyDBInstanceNetworkAddressResponse < TencentCloud::Common::AbstractModel
2296
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2297
+ # @type RequestId: String
2298
+
2299
+ attr_accessor :RequestId
2300
+
2301
+ def initialize(requestid=nil)
2302
+ @RequestId = requestid
2303
+ end
2304
+
2305
+ def deserialize(params)
2306
+ @RequestId = params['RequestId']
2307
+ end
2308
+ end
2309
+
2255
2310
  # ModifyDBInstanceSecurityGroup请求参数结构体
2256
2311
  class ModifyDBInstanceSecurityGroupRequest < TencentCloud::Common::AbstractModel
2257
2312
  # @param InstanceId: 实例ID
@@ -2348,6 +2403,26 @@ module TencentCloud
2348
2403
  end
2349
2404
  end
2350
2405
 
2406
+ # 修改数据库地址
2407
+ class ModifyNetworkAddress < TencentCloud::Common::AbstractModel
2408
+ # @param NewIPAddress: 新IP地址。
2409
+ # @type NewIPAddress: String
2410
+ # @param OldIpAddress: 原IP地址。
2411
+ # @type OldIpAddress: String
2412
+
2413
+ attr_accessor :NewIPAddress, :OldIpAddress
2414
+
2415
+ def initialize(newipaddress=nil, oldipaddress=nil)
2416
+ @NewIPAddress = newipaddress
2417
+ @OldIpAddress = oldipaddress
2418
+ end
2419
+
2420
+ def deserialize(params)
2421
+ @NewIPAddress = params['NewIPAddress']
2422
+ @OldIpAddress = params['OldIpAddress']
2423
+ end
2424
+ end
2425
+
2351
2426
  # OfflineIsolatedDBInstance请求参数结构体
2352
2427
  class OfflineIsolatedDBInstanceRequest < TencentCloud::Common::AbstractModel
2353
2428
  # @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.289
4
+ version: 1.0.290
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-30 00:00:00.000000000 Z
11
+ date: 2022-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common