tencentcloud-sdk-postgres 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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20170312/client.rb +96 -0
- data/lib/v20170312/models.rb +204 -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: bfd7779c721c71c1407280a335504fd62888d1f4
|
4
|
+
data.tar.gz: d1e45f399eb1ec1841f893ec10083e6c23de14cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b896ea4e028933fd627a5c150d94a11aa54aa0372c6e589c81adfe78194c373a0c8b5dfb73a6bd4f4a15821e61c77be7d5d3a5e0128ecc23b54dddc2d3a7ffc
|
7
|
+
data.tar.gz: 7394c92a9096e83363399b27d5f3abdf27cd24bec8165d602c40e5aa8f018dc028d9a962cb7f659bf35392e957c121dc1c2b8eb86e8b9c5b7ae1f3eca62223ba
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.269
|
data/lib/v20170312/client.rb
CHANGED
@@ -125,6 +125,30 @@ module TencentCloud
|
|
125
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
126
|
end
|
127
127
|
|
128
|
+
# 可对实例进行网络的添加操作。
|
129
|
+
|
130
|
+
# @param request: Request instance for CreateDBInstanceNetworkAccess.
|
131
|
+
# @type request: :class:`Tencentcloud::postgres::V20170312::CreateDBInstanceNetworkAccessRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::postgres::V20170312::CreateDBInstanceNetworkAccessResponse`
|
133
|
+
def CreateDBInstanceNetworkAccess(request)
|
134
|
+
body = send_request('CreateDBInstanceNetworkAccess', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = CreateDBInstanceNetworkAccessResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
128
152
|
# 本接口 (CreateDBInstances) 用于创建一个或者多个PostgreSQL实例,仅发货实例不会进行初始化。
|
129
153
|
|
130
154
|
# @param request: Request instance for CreateDBInstances.
|
@@ -221,6 +245,30 @@ module TencentCloud
|
|
221
245
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
246
|
end
|
223
247
|
|
248
|
+
# 可对RO组进行网络的添加操作。
|
249
|
+
|
250
|
+
# @param request: Request instance for CreateReadOnlyGroupNetworkAccess.
|
251
|
+
# @type request: :class:`Tencentcloud::postgres::V20170312::CreateReadOnlyGroupNetworkAccessRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::postgres::V20170312::CreateReadOnlyGroupNetworkAccessResponse`
|
253
|
+
def CreateReadOnlyGroupNetworkAccess(request)
|
254
|
+
body = send_request('CreateReadOnlyGroupNetworkAccess', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = CreateReadOnlyGroupNetworkAccessResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
224
272
|
# 本接口 (CreateServerlessDBInstance) 用于创建一个ServerlessDB实例,创建成功返回实例ID。
|
225
273
|
|
226
274
|
# @param request: Request instance for CreateServerlessDBInstance.
|
@@ -245,6 +293,30 @@ module TencentCloud
|
|
245
293
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
294
|
end
|
247
295
|
|
296
|
+
# 可对实例进行网络的删除操作。
|
297
|
+
|
298
|
+
# @param request: Request instance for DeleteDBInstanceNetworkAccess.
|
299
|
+
# @type request: :class:`Tencentcloud::postgres::V20170312::DeleteDBInstanceNetworkAccessRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::postgres::V20170312::DeleteDBInstanceNetworkAccessResponse`
|
301
|
+
def DeleteDBInstanceNetworkAccess(request)
|
302
|
+
body = send_request('DeleteDBInstanceNetworkAccess', request.serialize)
|
303
|
+
response = JSON.parse(body)
|
304
|
+
if response['Response'].key?('Error') == false
|
305
|
+
model = DeleteDBInstanceNetworkAccessResponse.new
|
306
|
+
model.deserialize(response['Response'])
|
307
|
+
model
|
308
|
+
else
|
309
|
+
code = response['Response']['Error']['Code']
|
310
|
+
message = response['Response']['Error']['Message']
|
311
|
+
reqid = response['Response']['RequestId']
|
312
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
313
|
+
end
|
314
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
315
|
+
raise e
|
316
|
+
rescue StandardError => e
|
317
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
|
+
end
|
319
|
+
|
248
320
|
# 本接口(DeleteReadOnlyGroup)用于删除指定的只读组
|
249
321
|
|
250
322
|
# @param request: Request instance for DeleteReadOnlyGroup.
|
@@ -269,6 +341,30 @@ module TencentCloud
|
|
269
341
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
342
|
end
|
271
343
|
|
344
|
+
# 可对RO组进行网络的删除操作。
|
345
|
+
|
346
|
+
# @param request: Request instance for DeleteReadOnlyGroupNetworkAccess.
|
347
|
+
# @type request: :class:`Tencentcloud::postgres::V20170312::DeleteReadOnlyGroupNetworkAccessRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::postgres::V20170312::DeleteReadOnlyGroupNetworkAccessResponse`
|
349
|
+
def DeleteReadOnlyGroupNetworkAccess(request)
|
350
|
+
body = send_request('DeleteReadOnlyGroupNetworkAccess', request.serialize)
|
351
|
+
response = JSON.parse(body)
|
352
|
+
if response['Response'].key?('Error') == false
|
353
|
+
model = DeleteReadOnlyGroupNetworkAccessResponse.new
|
354
|
+
model.deserialize(response['Response'])
|
355
|
+
model
|
356
|
+
else
|
357
|
+
code = response['Response']['Error']['Code']
|
358
|
+
message = response['Response']['Error']['Message']
|
359
|
+
reqid = response['Response']['RequestId']
|
360
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
361
|
+
end
|
362
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
363
|
+
raise e
|
364
|
+
rescue StandardError => e
|
365
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
|
+
end
|
367
|
+
|
272
368
|
# 本接口 (DeleteServerlessDBInstance) 用于删除一个ServerlessDB实例。
|
273
369
|
|
274
370
|
# @param request: Request instance for DeleteServerlessDBInstance.
|
data/lib/v20170312/models.rb
CHANGED
@@ -385,6 +385,59 @@ module TencentCloud
|
|
385
385
|
end
|
386
386
|
end
|
387
387
|
|
388
|
+
# CreateDBInstanceNetworkAccess请求参数结构体
|
389
|
+
class CreateDBInstanceNetworkAccessRequest < TencentCloud::Common::AbstractModel
|
390
|
+
# @param DBInstanceId: 实例ID,形如:postgres-6bwgamo3。
|
391
|
+
# @type DBInstanceId: String
|
392
|
+
# @param VpcId: 私有网络统一 ID。
|
393
|
+
# @type VpcId: String
|
394
|
+
# @param SubnetId: 子网ID。
|
395
|
+
# @type SubnetId: String
|
396
|
+
# @param IsAssignVip: 是否指定分配vip true-指定分配 false-自动分配。
|
397
|
+
# @type IsAssignVip: Boolean
|
398
|
+
# @param Vip: 目标VIP地址。
|
399
|
+
# @type Vip: String
|
400
|
+
|
401
|
+
attr_accessor :DBInstanceId, :VpcId, :SubnetId, :IsAssignVip, :Vip
|
402
|
+
|
403
|
+
def initialize(dbinstanceid=nil, vpcid=nil, subnetid=nil, isassignvip=nil, vip=nil)
|
404
|
+
@DBInstanceId = dbinstanceid
|
405
|
+
@VpcId = vpcid
|
406
|
+
@SubnetId = subnetid
|
407
|
+
@IsAssignVip = isassignvip
|
408
|
+
@Vip = vip
|
409
|
+
end
|
410
|
+
|
411
|
+
def deserialize(params)
|
412
|
+
@DBInstanceId = params['DBInstanceId']
|
413
|
+
@VpcId = params['VpcId']
|
414
|
+
@SubnetId = params['SubnetId']
|
415
|
+
@IsAssignVip = params['IsAssignVip']
|
416
|
+
@Vip = params['Vip']
|
417
|
+
end
|
418
|
+
end
|
419
|
+
|
420
|
+
# CreateDBInstanceNetworkAccess返回参数结构体
|
421
|
+
class CreateDBInstanceNetworkAccessResponse < TencentCloud::Common::AbstractModel
|
422
|
+
# @param FlowId: 流程ID。
|
423
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
424
|
+
# @type FlowId: Integer
|
425
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
426
|
+
# @type RequestId: String
|
427
|
+
|
428
|
+
attr_accessor :FlowId, :RequestId
|
429
|
+
|
430
|
+
def initialize(flowid=nil, requestid=nil)
|
431
|
+
@FlowId = flowid
|
432
|
+
@RequestId = requestid
|
433
|
+
end
|
434
|
+
|
435
|
+
def deserialize(params)
|
436
|
+
@FlowId = params['FlowId']
|
437
|
+
@RequestId = params['RequestId']
|
438
|
+
end
|
439
|
+
end
|
440
|
+
|
388
441
|
# CreateDBInstances请求参数结构体
|
389
442
|
class CreateDBInstancesRequest < TencentCloud::Common::AbstractModel
|
390
443
|
# @param SpecCode: 售卖规格ID。该参数可以通过调用DescribeProductConfig的返回值中的SpecCode字段来获取。
|
@@ -785,6 +838,59 @@ module TencentCloud
|
|
785
838
|
end
|
786
839
|
end
|
787
840
|
|
841
|
+
# CreateReadOnlyGroupNetworkAccess请求参数结构体
|
842
|
+
class CreateReadOnlyGroupNetworkAccessRequest < TencentCloud::Common::AbstractModel
|
843
|
+
# @param ReadOnlyGroupId: RO组ID,形如:pgro-4t9c6g7k。
|
844
|
+
# @type ReadOnlyGroupId: String
|
845
|
+
# @param VpcId: 私有网络统一 ID。
|
846
|
+
# @type VpcId: String
|
847
|
+
# @param SubnetId: 子网ID。
|
848
|
+
# @type SubnetId: String
|
849
|
+
# @param IsAssignVip: 是否指定分配vip true-指定分配 false-自动分配。
|
850
|
+
# @type IsAssignVip: Boolean
|
851
|
+
# @param Vip: 目标VIP地址。
|
852
|
+
# @type Vip: String
|
853
|
+
|
854
|
+
attr_accessor :ReadOnlyGroupId, :VpcId, :SubnetId, :IsAssignVip, :Vip
|
855
|
+
|
856
|
+
def initialize(readonlygroupid=nil, vpcid=nil, subnetid=nil, isassignvip=nil, vip=nil)
|
857
|
+
@ReadOnlyGroupId = readonlygroupid
|
858
|
+
@VpcId = vpcid
|
859
|
+
@SubnetId = subnetid
|
860
|
+
@IsAssignVip = isassignvip
|
861
|
+
@Vip = vip
|
862
|
+
end
|
863
|
+
|
864
|
+
def deserialize(params)
|
865
|
+
@ReadOnlyGroupId = params['ReadOnlyGroupId']
|
866
|
+
@VpcId = params['VpcId']
|
867
|
+
@SubnetId = params['SubnetId']
|
868
|
+
@IsAssignVip = params['IsAssignVip']
|
869
|
+
@Vip = params['Vip']
|
870
|
+
end
|
871
|
+
end
|
872
|
+
|
873
|
+
# CreateReadOnlyGroupNetworkAccess返回参数结构体
|
874
|
+
class CreateReadOnlyGroupNetworkAccessResponse < TencentCloud::Common::AbstractModel
|
875
|
+
# @param FlowId: 流程ID。
|
876
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
877
|
+
# @type FlowId: Integer
|
878
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
879
|
+
# @type RequestId: String
|
880
|
+
|
881
|
+
attr_accessor :FlowId, :RequestId
|
882
|
+
|
883
|
+
def initialize(flowid=nil, requestid=nil)
|
884
|
+
@FlowId = flowid
|
885
|
+
@RequestId = requestid
|
886
|
+
end
|
887
|
+
|
888
|
+
def deserialize(params)
|
889
|
+
@FlowId = params['FlowId']
|
890
|
+
@RequestId = params['RequestId']
|
891
|
+
end
|
892
|
+
end
|
893
|
+
|
788
894
|
# CreateReadOnlyGroup请求参数结构体
|
789
895
|
class CreateReadOnlyGroupRequest < TencentCloud::Common::AbstractModel
|
790
896
|
# @param MasterDBInstanceId: 主实例ID
|
@@ -1255,6 +1361,104 @@ module TencentCloud
|
|
1255
1361
|
end
|
1256
1362
|
end
|
1257
1363
|
|
1364
|
+
# DeleteDBInstanceNetworkAccess请求参数结构体
|
1365
|
+
class DeleteDBInstanceNetworkAccessRequest < TencentCloud::Common::AbstractModel
|
1366
|
+
# @param DBInstanceId: 实例ID,形如:postgres-6bwgamo3。
|
1367
|
+
# @type DBInstanceId: String
|
1368
|
+
# @param VpcId: 私有网络统一 ID,若是基础网络则传"0"。
|
1369
|
+
# @type VpcId: String
|
1370
|
+
# @param SubnetId: 子网ID,若是基础网络则传"0"。
|
1371
|
+
# @type SubnetId: String
|
1372
|
+
# @param Vip: 目标VIP地址。
|
1373
|
+
# @type Vip: String
|
1374
|
+
|
1375
|
+
attr_accessor :DBInstanceId, :VpcId, :SubnetId, :Vip
|
1376
|
+
|
1377
|
+
def initialize(dbinstanceid=nil, vpcid=nil, subnetid=nil, vip=nil)
|
1378
|
+
@DBInstanceId = dbinstanceid
|
1379
|
+
@VpcId = vpcid
|
1380
|
+
@SubnetId = subnetid
|
1381
|
+
@Vip = vip
|
1382
|
+
end
|
1383
|
+
|
1384
|
+
def deserialize(params)
|
1385
|
+
@DBInstanceId = params['DBInstanceId']
|
1386
|
+
@VpcId = params['VpcId']
|
1387
|
+
@SubnetId = params['SubnetId']
|
1388
|
+
@Vip = params['Vip']
|
1389
|
+
end
|
1390
|
+
end
|
1391
|
+
|
1392
|
+
# DeleteDBInstanceNetworkAccess返回参数结构体
|
1393
|
+
class DeleteDBInstanceNetworkAccessResponse < TencentCloud::Common::AbstractModel
|
1394
|
+
# @param FlowId: 流程ID。
|
1395
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1396
|
+
# @type FlowId: Integer
|
1397
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1398
|
+
# @type RequestId: String
|
1399
|
+
|
1400
|
+
attr_accessor :FlowId, :RequestId
|
1401
|
+
|
1402
|
+
def initialize(flowid=nil, requestid=nil)
|
1403
|
+
@FlowId = flowid
|
1404
|
+
@RequestId = requestid
|
1405
|
+
end
|
1406
|
+
|
1407
|
+
def deserialize(params)
|
1408
|
+
@FlowId = params['FlowId']
|
1409
|
+
@RequestId = params['RequestId']
|
1410
|
+
end
|
1411
|
+
end
|
1412
|
+
|
1413
|
+
# DeleteReadOnlyGroupNetworkAccess请求参数结构体
|
1414
|
+
class DeleteReadOnlyGroupNetworkAccessRequest < TencentCloud::Common::AbstractModel
|
1415
|
+
# @param ReadOnlyGroupId: RO组ID,形如:pgro-4t9c6g7k。
|
1416
|
+
# @type ReadOnlyGroupId: String
|
1417
|
+
# @param VpcId: 私有网络统一 ID,若是基础网络则传"0"。
|
1418
|
+
# @type VpcId: String
|
1419
|
+
# @param SubnetId: 子网ID,若是基础网络则传"0"。
|
1420
|
+
# @type SubnetId: String
|
1421
|
+
# @param Vip: 目标VIP地址。
|
1422
|
+
# @type Vip: String
|
1423
|
+
|
1424
|
+
attr_accessor :ReadOnlyGroupId, :VpcId, :SubnetId, :Vip
|
1425
|
+
|
1426
|
+
def initialize(readonlygroupid=nil, vpcid=nil, subnetid=nil, vip=nil)
|
1427
|
+
@ReadOnlyGroupId = readonlygroupid
|
1428
|
+
@VpcId = vpcid
|
1429
|
+
@SubnetId = subnetid
|
1430
|
+
@Vip = vip
|
1431
|
+
end
|
1432
|
+
|
1433
|
+
def deserialize(params)
|
1434
|
+
@ReadOnlyGroupId = params['ReadOnlyGroupId']
|
1435
|
+
@VpcId = params['VpcId']
|
1436
|
+
@SubnetId = params['SubnetId']
|
1437
|
+
@Vip = params['Vip']
|
1438
|
+
end
|
1439
|
+
end
|
1440
|
+
|
1441
|
+
# DeleteReadOnlyGroupNetworkAccess返回参数结构体
|
1442
|
+
class DeleteReadOnlyGroupNetworkAccessResponse < TencentCloud::Common::AbstractModel
|
1443
|
+
# @param FlowId: 流程ID。
|
1444
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1445
|
+
# @type FlowId: Integer
|
1446
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1447
|
+
# @type RequestId: String
|
1448
|
+
|
1449
|
+
attr_accessor :FlowId, :RequestId
|
1450
|
+
|
1451
|
+
def initialize(flowid=nil, requestid=nil)
|
1452
|
+
@FlowId = flowid
|
1453
|
+
@RequestId = requestid
|
1454
|
+
end
|
1455
|
+
|
1456
|
+
def deserialize(params)
|
1457
|
+
@FlowId = params['FlowId']
|
1458
|
+
@RequestId = params['RequestId']
|
1459
|
+
end
|
1460
|
+
end
|
1461
|
+
|
1258
1462
|
# DeleteReadOnlyGroup请求参数结构体
|
1259
1463
|
class DeleteReadOnlyGroupRequest < TencentCloud::Common::AbstractModel
|
1260
1464
|
# @param ReadOnlyGroupId: 待删除只读组ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-postgres
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
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-
|
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
|