tencentcloud-sdk-dcdb 3.0.438 → 3.0.439
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/v20180411/client.rb +72 -0
- data/lib/v20180411/models.rb +140 -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: 2218efe9e364123164b8a5095176f741f162a489
|
4
|
+
data.tar.gz: 106a114dd6f442ebc4f4f5cb99207e0b53e9e505
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcd801b8c4bdfe550cd63f8a83beb661788e5c9ecbc3212e1f9af294ba03742a10e2d46c6c9fa11251886115aef1d58da42418af8dc3a6baa589931b5fb214a7
|
7
|
+
data.tar.gz: be72d657e92857b11ed6b74fb9f207246cf91e973e6d77b69abc5c5901495fcbbac9547d4cefdaa9b7783684a0fac10cb87cd2b85067e55bd10102486f72a8a8
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.439
|
data/lib/v20180411/client.rb
CHANGED
@@ -1234,6 +1234,78 @@ module TencentCloud
|
|
1234
1234
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1235
1235
|
end
|
1236
1236
|
|
1237
|
+
# 本接口(ModifyInstanceNetwork)用于修改实例所属网络。
|
1238
|
+
|
1239
|
+
# @param request: Request instance for ModifyInstanceNetwork.
|
1240
|
+
# @type request: :class:`Tencentcloud::dcdb::V20180411::ModifyInstanceNetworkRequest`
|
1241
|
+
# @rtype: :class:`Tencentcloud::dcdb::V20180411::ModifyInstanceNetworkResponse`
|
1242
|
+
def ModifyInstanceNetwork(request)
|
1243
|
+
body = send_request('ModifyInstanceNetwork', request.serialize)
|
1244
|
+
response = JSON.parse(body)
|
1245
|
+
if response['Response'].key?('Error') == false
|
1246
|
+
model = ModifyInstanceNetworkResponse.new
|
1247
|
+
model.deserialize(response['Response'])
|
1248
|
+
model
|
1249
|
+
else
|
1250
|
+
code = response['Response']['Error']['Code']
|
1251
|
+
message = response['Response']['Error']['Message']
|
1252
|
+
reqid = response['Response']['RequestId']
|
1253
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1254
|
+
end
|
1255
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1256
|
+
raise e
|
1257
|
+
rescue StandardError => e
|
1258
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1259
|
+
end
|
1260
|
+
|
1261
|
+
# 本接口(ModifyInstanceVip)用于修改实例Vip
|
1262
|
+
|
1263
|
+
# @param request: Request instance for ModifyInstanceVip.
|
1264
|
+
# @type request: :class:`Tencentcloud::dcdb::V20180411::ModifyInstanceVipRequest`
|
1265
|
+
# @rtype: :class:`Tencentcloud::dcdb::V20180411::ModifyInstanceVipResponse`
|
1266
|
+
def ModifyInstanceVip(request)
|
1267
|
+
body = send_request('ModifyInstanceVip', request.serialize)
|
1268
|
+
response = JSON.parse(body)
|
1269
|
+
if response['Response'].key?('Error') == false
|
1270
|
+
model = ModifyInstanceVipResponse.new
|
1271
|
+
model.deserialize(response['Response'])
|
1272
|
+
model
|
1273
|
+
else
|
1274
|
+
code = response['Response']['Error']['Code']
|
1275
|
+
message = response['Response']['Error']['Message']
|
1276
|
+
reqid = response['Response']['RequestId']
|
1277
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1278
|
+
end
|
1279
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1280
|
+
raise e
|
1281
|
+
rescue StandardError => e
|
1282
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1283
|
+
end
|
1284
|
+
|
1285
|
+
# 本接口(ModifyInstanceVport)用于修改实例VPORT
|
1286
|
+
|
1287
|
+
# @param request: Request instance for ModifyInstanceVport.
|
1288
|
+
# @type request: :class:`Tencentcloud::dcdb::V20180411::ModifyInstanceVportRequest`
|
1289
|
+
# @rtype: :class:`Tencentcloud::dcdb::V20180411::ModifyInstanceVportResponse`
|
1290
|
+
def ModifyInstanceVport(request)
|
1291
|
+
body = send_request('ModifyInstanceVport', request.serialize)
|
1292
|
+
response = JSON.parse(body)
|
1293
|
+
if response['Response'].key?('Error') == false
|
1294
|
+
model = ModifyInstanceVportResponse.new
|
1295
|
+
model.deserialize(response['Response'])
|
1296
|
+
model
|
1297
|
+
else
|
1298
|
+
code = response['Response']['Error']['Code']
|
1299
|
+
message = response['Response']['Error']['Message']
|
1300
|
+
reqid = response['Response']['RequestId']
|
1301
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1302
|
+
end
|
1303
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1304
|
+
raise e
|
1305
|
+
rescue StandardError => e
|
1306
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1307
|
+
end
|
1308
|
+
|
1237
1309
|
# 本接口(ModifyRealServerAccessStrategy)用于修改云数据库的VPCGW到RS的访问策略。
|
1238
1310
|
|
1239
1311
|
# **注意**
|
data/lib/v20180411/models.rb
CHANGED
@@ -3598,6 +3598,146 @@ module TencentCloud
|
|
3598
3598
|
end
|
3599
3599
|
end
|
3600
3600
|
|
3601
|
+
# ModifyInstanceNetwork请求参数结构体
|
3602
|
+
class ModifyInstanceNetworkRequest < TencentCloud::Common::AbstractModel
|
3603
|
+
# @param InstanceId: 实例ID
|
3604
|
+
# @type InstanceId: String
|
3605
|
+
# @param VpcId: 希望转到的VPC网络的VpcId
|
3606
|
+
# @type VpcId: String
|
3607
|
+
# @param SubnetId: 希望转到的VPC网络的子网ID
|
3608
|
+
# @type SubnetId: String
|
3609
|
+
# @param Vip: 如果需要指定VIP,填上该字段
|
3610
|
+
# @type Vip: String
|
3611
|
+
# @param Vipv6: 如果需要指定VIPv6,填上该字段
|
3612
|
+
# @type Vipv6: String
|
3613
|
+
# @param VipReleaseDelay: VIP保留时长,单位小时,取值范围(0~168),0表示立即释放,有一分钟释放延迟。不传此参数,默认24小时释放VIP。
|
3614
|
+
# @type VipReleaseDelay: Integer
|
3615
|
+
|
3616
|
+
attr_accessor :InstanceId, :VpcId, :SubnetId, :Vip, :Vipv6, :VipReleaseDelay
|
3617
|
+
|
3618
|
+
def initialize(instanceid=nil, vpcid=nil, subnetid=nil, vip=nil, vipv6=nil, vipreleasedelay=nil)
|
3619
|
+
@InstanceId = instanceid
|
3620
|
+
@VpcId = vpcid
|
3621
|
+
@SubnetId = subnetid
|
3622
|
+
@Vip = vip
|
3623
|
+
@Vipv6 = vipv6
|
3624
|
+
@VipReleaseDelay = vipreleasedelay
|
3625
|
+
end
|
3626
|
+
|
3627
|
+
def deserialize(params)
|
3628
|
+
@InstanceId = params['InstanceId']
|
3629
|
+
@VpcId = params['VpcId']
|
3630
|
+
@SubnetId = params['SubnetId']
|
3631
|
+
@Vip = params['Vip']
|
3632
|
+
@Vipv6 = params['Vipv6']
|
3633
|
+
@VipReleaseDelay = params['VipReleaseDelay']
|
3634
|
+
end
|
3635
|
+
end
|
3636
|
+
|
3637
|
+
# ModifyInstanceNetwork返回参数结构体
|
3638
|
+
class ModifyInstanceNetworkResponse < TencentCloud::Common::AbstractModel
|
3639
|
+
# @param FlowId: 异步任务ID,根据此FlowId通过DescribeFlow接口查询任务进行状态
|
3640
|
+
# @type FlowId: Integer
|
3641
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3642
|
+
# @type RequestId: String
|
3643
|
+
|
3644
|
+
attr_accessor :FlowId, :RequestId
|
3645
|
+
|
3646
|
+
def initialize(flowid=nil, requestid=nil)
|
3647
|
+
@FlowId = flowid
|
3648
|
+
@RequestId = requestid
|
3649
|
+
end
|
3650
|
+
|
3651
|
+
def deserialize(params)
|
3652
|
+
@FlowId = params['FlowId']
|
3653
|
+
@RequestId = params['RequestId']
|
3654
|
+
end
|
3655
|
+
end
|
3656
|
+
|
3657
|
+
# ModifyInstanceVip请求参数结构体
|
3658
|
+
class ModifyInstanceVipRequest < TencentCloud::Common::AbstractModel
|
3659
|
+
# @param InstanceId: 实例ID
|
3660
|
+
# @type InstanceId: String
|
3661
|
+
# @param Vip: 实例VIP
|
3662
|
+
# @type Vip: String
|
3663
|
+
# @param Ipv6Flag: IPv6标志
|
3664
|
+
# @type Ipv6Flag: Integer
|
3665
|
+
# @param VipReleaseDelay: VIP保留时长,单位小时,取值范围(0~168),0表示立即释放,有一分钟释放延迟。不传此参数,默认24小时释放VIP。
|
3666
|
+
# @type VipReleaseDelay: Integer
|
3667
|
+
|
3668
|
+
attr_accessor :InstanceId, :Vip, :Ipv6Flag, :VipReleaseDelay
|
3669
|
+
|
3670
|
+
def initialize(instanceid=nil, vip=nil, ipv6flag=nil, vipreleasedelay=nil)
|
3671
|
+
@InstanceId = instanceid
|
3672
|
+
@Vip = vip
|
3673
|
+
@Ipv6Flag = ipv6flag
|
3674
|
+
@VipReleaseDelay = vipreleasedelay
|
3675
|
+
end
|
3676
|
+
|
3677
|
+
def deserialize(params)
|
3678
|
+
@InstanceId = params['InstanceId']
|
3679
|
+
@Vip = params['Vip']
|
3680
|
+
@Ipv6Flag = params['Ipv6Flag']
|
3681
|
+
@VipReleaseDelay = params['VipReleaseDelay']
|
3682
|
+
end
|
3683
|
+
end
|
3684
|
+
|
3685
|
+
# ModifyInstanceVip返回参数结构体
|
3686
|
+
class ModifyInstanceVipResponse < TencentCloud::Common::AbstractModel
|
3687
|
+
# @param FlowId: 异步任务流程ID
|
3688
|
+
# @type FlowId: Integer
|
3689
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3690
|
+
# @type RequestId: String
|
3691
|
+
|
3692
|
+
attr_accessor :FlowId, :RequestId
|
3693
|
+
|
3694
|
+
def initialize(flowid=nil, requestid=nil)
|
3695
|
+
@FlowId = flowid
|
3696
|
+
@RequestId = requestid
|
3697
|
+
end
|
3698
|
+
|
3699
|
+
def deserialize(params)
|
3700
|
+
@FlowId = params['FlowId']
|
3701
|
+
@RequestId = params['RequestId']
|
3702
|
+
end
|
3703
|
+
end
|
3704
|
+
|
3705
|
+
# ModifyInstanceVport请求参数结构体
|
3706
|
+
class ModifyInstanceVportRequest < TencentCloud::Common::AbstractModel
|
3707
|
+
# @param InstanceId: 实例ID
|
3708
|
+
# @type InstanceId: String
|
3709
|
+
# @param Vport: 实例VPORT
|
3710
|
+
# @type Vport: Integer
|
3711
|
+
|
3712
|
+
attr_accessor :InstanceId, :Vport
|
3713
|
+
|
3714
|
+
def initialize(instanceid=nil, vport=nil)
|
3715
|
+
@InstanceId = instanceid
|
3716
|
+
@Vport = vport
|
3717
|
+
end
|
3718
|
+
|
3719
|
+
def deserialize(params)
|
3720
|
+
@InstanceId = params['InstanceId']
|
3721
|
+
@Vport = params['Vport']
|
3722
|
+
end
|
3723
|
+
end
|
3724
|
+
|
3725
|
+
# ModifyInstanceVport返回参数结构体
|
3726
|
+
class ModifyInstanceVportResponse < TencentCloud::Common::AbstractModel
|
3727
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3728
|
+
# @type RequestId: String
|
3729
|
+
|
3730
|
+
attr_accessor :RequestId
|
3731
|
+
|
3732
|
+
def initialize(requestid=nil)
|
3733
|
+
@RequestId = requestid
|
3734
|
+
end
|
3735
|
+
|
3736
|
+
def deserialize(params)
|
3737
|
+
@RequestId = params['RequestId']
|
3738
|
+
end
|
3739
|
+
end
|
3740
|
+
|
3601
3741
|
# ModifyRealServerAccessStrategy请求参数结构体
|
3602
3742
|
class ModifyRealServerAccessStrategyRequest < TencentCloud::Common::AbstractModel
|
3603
3743
|
# @param InstanceId: 实例 ID,格式如:tdsqlshard-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-dcdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.439
|
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-10-
|
11
|
+
date: 2022-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|