tencentcloud-sdk-postgres 3.0.473 → 3.0.474

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: 0b51016e14e36c71d931c8472c014590d67216b5
4
- data.tar.gz: 647d22da4e76e2b3a30d7a45c1b3c4d6ac166053
3
+ metadata.gz: c8abd9420036cd5ed1e962be5a75192e094e11e1
4
+ data.tar.gz: 32bc1497f5555e96fee5b99fce6e6c505875e378
5
5
  SHA512:
6
- metadata.gz: 1abb0a51d9ce924e014942f7e325b54e87434ac37b685e21df552213ca7a4afe44e96466956d55d32ed6cc2e83fc436c754404b768e15b585f536cf164a6bee9
7
- data.tar.gz: a7bc2482147c81150503c00f4ce19df21bac79a8e2c45269a66e2d72428250262a5a41e43112a2dbd463dc84cac42dff42a2dae6e6e409e6b99246848c94e85c
6
+ metadata.gz: 8b8115de725a236bc9a59c25216a20b0e243e891f7f7e7023e7bcd000f6f49fd23f46c8f8f90d25b301cdd5c559206f8f566f4212825160159da2b40fbba07d1
7
+ data.tar.gz: e457d3099d2652947dcaf6663b19faf48cb27c0b1c0c3cece72ca5448bb65f7723fe5bf141a6d64d6b5e444f7fbcc317451dee1c3b692d382cd46c642bb59575
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.473
1
+ 3.0.474
@@ -197,6 +197,30 @@ module TencentCloud
197
197
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
198
  end
199
199
 
200
+ # 本接口 (CreateParameterTemplate) 用于创建参数模板。
201
+
202
+ # @param request: Request instance for CreateParameterTemplate.
203
+ # @type request: :class:`Tencentcloud::postgres::V20170312::CreateParameterTemplateRequest`
204
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::CreateParameterTemplateResponse`
205
+ def CreateParameterTemplate(request)
206
+ body = send_request('CreateParameterTemplate', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = CreateParameterTemplateResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
200
224
  # 本接口(CreateReadOnlyDBInstance)用于创建只读实例
201
225
 
202
226
  # @param request: Request instance for CreateReadOnlyDBInstance.
@@ -317,6 +341,30 @@ module TencentCloud
317
341
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
342
  end
319
343
 
344
+ # 本接口(DeleteParameterTemplate)主要用于删除某个参数模板。
345
+
346
+ # @param request: Request instance for DeleteParameterTemplate.
347
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DeleteParameterTemplateRequest`
348
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DeleteParameterTemplateResponse`
349
+ def DeleteParameterTemplate(request)
350
+ body = send_request('DeleteParameterTemplate', request.serialize)
351
+ response = JSON.parse(body)
352
+ if response['Response'].key?('Error') == false
353
+ model = DeleteParameterTemplateResponse.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
+
320
368
  # 本接口(DeleteReadOnlyGroup)用于删除指定的只读组
321
369
 
322
370
  # @param request: Request instance for DeleteReadOnlyGroup.
@@ -581,6 +629,30 @@ module TencentCloud
581
629
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
630
  end
583
631
 
632
+ # 本接口(DescribeDBInstanceSecurityGroups)用于查询实例安全组信息。
633
+
634
+ # @param request: Request instance for DescribeDBInstanceSecurityGroups.
635
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DescribeDBInstanceSecurityGroupsRequest`
636
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeDBInstanceSecurityGroupsResponse`
637
+ def DescribeDBInstanceSecurityGroups(request)
638
+ body = send_request('DescribeDBInstanceSecurityGroups', request.serialize)
639
+ response = JSON.parse(body)
640
+ if response['Response'].key?('Error') == false
641
+ model = DescribeDBInstanceSecurityGroupsResponse.new
642
+ model.deserialize(response['Response'])
643
+ model
644
+ else
645
+ code = response['Response']['Error']['Code']
646
+ message = response['Response']['Error']['Message']
647
+ reqid = response['Response']['RequestId']
648
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
649
+ end
650
+ rescue TencentCloud::Common::TencentCloudSDKException => e
651
+ raise e
652
+ rescue StandardError => e
653
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
+ end
655
+
584
656
  # 本接口 (DescribeDBInstances) 用于查询一个或多个实例的详细信息。
585
657
 
586
658
  # @param request: Request instance for DescribeDBInstances.
@@ -677,6 +749,30 @@ module TencentCloud
677
749
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
750
  end
679
751
 
752
+ # 本接口(DescribeDefaultParameters)主要用于查询某个数据库版本和引擎支持的所有参数。
753
+
754
+ # @param request: Request instance for DescribeDefaultParameters.
755
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DescribeDefaultParametersRequest`
756
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeDefaultParametersResponse`
757
+ def DescribeDefaultParameters(request)
758
+ body = send_request('DescribeDefaultParameters', request.serialize)
759
+ response = JSON.parse(body)
760
+ if response['Response'].key?('Error') == false
761
+ model = DescribeDefaultParametersResponse.new
762
+ model.deserialize(response['Response'])
763
+ model
764
+ else
765
+ code = response['Response']['Error']['Code']
766
+ message = response['Response']['Error']['Message']
767
+ reqid = response['Response']['RequestId']
768
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
769
+ end
770
+ rescue TencentCloud::Common::TencentCloudSDKException => e
771
+ raise e
772
+ rescue StandardError => e
773
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
774
+ end
775
+
680
776
  # 获取实例的密钥信息列表。
681
777
 
682
778
  # @param request: Request instance for DescribeEncryptionKeys.
@@ -725,6 +821,54 @@ module TencentCloud
725
821
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
726
822
  end
727
823
 
824
+ # 本接口(DescribeParameterTemplateAttributes)用于查询某个参数模板的具体内容,包括基本信息和参数信息。
825
+
826
+ # @param request: Request instance for DescribeParameterTemplateAttributes.
827
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DescribeParameterTemplateAttributesRequest`
828
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeParameterTemplateAttributesResponse`
829
+ def DescribeParameterTemplateAttributes(request)
830
+ body = send_request('DescribeParameterTemplateAttributes', request.serialize)
831
+ response = JSON.parse(body)
832
+ if response['Response'].key?('Error') == false
833
+ model = DescribeParameterTemplateAttributesResponse.new
834
+ model.deserialize(response['Response'])
835
+ model
836
+ else
837
+ code = response['Response']['Error']['Code']
838
+ message = response['Response']['Error']['Message']
839
+ reqid = response['Response']['RequestId']
840
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
841
+ end
842
+ rescue TencentCloud::Common::TencentCloudSDKException => e
843
+ raise e
844
+ rescue StandardError => e
845
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
846
+ end
847
+
848
+ # 本接口 (DescribeParameterTemplates) 用于查询参数模板列表。
849
+
850
+ # @param request: Request instance for DescribeParameterTemplates.
851
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DescribeParameterTemplatesRequest`
852
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeParameterTemplatesResponse`
853
+ def DescribeParameterTemplates(request)
854
+ body = send_request('DescribeParameterTemplates', request.serialize)
855
+ response = JSON.parse(body)
856
+ if response['Response'].key?('Error') == false
857
+ model = DescribeParameterTemplatesResponse.new
858
+ model.deserialize(response['Response'])
859
+ model
860
+ else
861
+ code = response['Response']['Error']['Code']
862
+ message = response['Response']['Error']['Message']
863
+ reqid = response['Response']['RequestId']
864
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
865
+ end
866
+ rescue TencentCloud::Common::TencentCloudSDKException => e
867
+ raise e
868
+ rescue StandardError => e
869
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
870
+ end
871
+
728
872
  # 获取参数修改事件详情
729
873
 
730
874
  # @param request: Request instance for DescribeParamsEvent.
@@ -1229,6 +1373,30 @@ module TencentCloud
1229
1373
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1230
1374
  end
1231
1375
 
1376
+ # 本接口(ModifyDBInstanceSecurityGroups)用于修改实例安全组。
1377
+
1378
+ # @param request: Request instance for ModifyDBInstanceSecurityGroups.
1379
+ # @type request: :class:`Tencentcloud::postgres::V20170312::ModifyDBInstanceSecurityGroupsRequest`
1380
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::ModifyDBInstanceSecurityGroupsResponse`
1381
+ def ModifyDBInstanceSecurityGroups(request)
1382
+ body = send_request('ModifyDBInstanceSecurityGroups', request.serialize)
1383
+ response = JSON.parse(body)
1384
+ if response['Response'].key?('Error') == false
1385
+ model = ModifyDBInstanceSecurityGroupsResponse.new
1386
+ model.deserialize(response['Response'])
1387
+ model
1388
+ else
1389
+ code = response['Response']['Error']['Code']
1390
+ message = response['Response']['Error']['Message']
1391
+ reqid = response['Response']['RequestId']
1392
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1393
+ end
1394
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1395
+ raise e
1396
+ rescue StandardError => e
1397
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1398
+ end
1399
+
1232
1400
  # 本接口(ModifyDBInstanceSpec)用于调整实例规格,包括内存、磁盘。
1233
1401
 
1234
1402
  # @param request: Request instance for ModifyDBInstanceSpec.
@@ -1277,6 +1445,30 @@ module TencentCloud
1277
1445
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1278
1446
  end
1279
1447
 
1448
+ # 本接口(ModifyParameterTemplate)主要用于修改参数模板名称,描述,修改,添加和删除参数模板参数。
1449
+
1450
+ # @param request: Request instance for ModifyParameterTemplate.
1451
+ # @type request: :class:`Tencentcloud::postgres::V20170312::ModifyParameterTemplateRequest`
1452
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::ModifyParameterTemplateResponse`
1453
+ def ModifyParameterTemplate(request)
1454
+ body = send_request('ModifyParameterTemplate', request.serialize)
1455
+ response = JSON.parse(body)
1456
+ if response['Response'].key?('Error') == false
1457
+ model = ModifyParameterTemplateResponse.new
1458
+ model.deserialize(response['Response'])
1459
+ model
1460
+ else
1461
+ code = response['Response']['Error']['Code']
1462
+ message = response['Response']['Error']['Message']
1463
+ reqid = response['Response']['RequestId']
1464
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1465
+ end
1466
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1467
+ raise e
1468
+ rescue StandardError => e
1469
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1470
+ end
1471
+
1280
1472
  # 本接口(ModifyReadOnlyGroupConfig)用于更新只读组配置信息
1281
1473
 
1282
1474
  # @param request: Request instance for ModifyReadOnlyGroupConfig.
@@ -752,6 +752,54 @@ module TencentCloud
752
752
  end
753
753
  end
754
754
 
755
+ # CreateParameterTemplate请求参数结构体
756
+ class CreateParameterTemplateRequest < TencentCloud::Common::AbstractModel
757
+ # @param TemplateName: 模板名称,长度为1~60个字符,仅支持数字,英文大小写字母、中文以及特殊字符_-./()()[]+=::@
758
+ # @type TemplateName: String
759
+ # @param DBMajorVersion: 数据库大版本号,例如:11,12,13
760
+ # @type DBMajorVersion: String
761
+ # @param DBEngine: 数据库引擎,例如:postgresql,mssql_compatible
762
+ # @type DBEngine: String
763
+ # @param TemplateDescription: 参数模板描述,长度为0~60个字符,仅支持数字,英文大小写字母、中文以及特殊字符_-./()()[]+=::@
764
+ # @type TemplateDescription: String
765
+
766
+ attr_accessor :TemplateName, :DBMajorVersion, :DBEngine, :TemplateDescription
767
+
768
+ def initialize(templatename=nil, dbmajorversion=nil, dbengine=nil, templatedescription=nil)
769
+ @TemplateName = templatename
770
+ @DBMajorVersion = dbmajorversion
771
+ @DBEngine = dbengine
772
+ @TemplateDescription = templatedescription
773
+ end
774
+
775
+ def deserialize(params)
776
+ @TemplateName = params['TemplateName']
777
+ @DBMajorVersion = params['DBMajorVersion']
778
+ @DBEngine = params['DBEngine']
779
+ @TemplateDescription = params['TemplateDescription']
780
+ end
781
+ end
782
+
783
+ # CreateParameterTemplate返回参数结构体
784
+ class CreateParameterTemplateResponse < TencentCloud::Common::AbstractModel
785
+ # @param TemplateId: 参数模板ID,用于唯一确认参数模板
786
+ # @type TemplateId: String
787
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
788
+ # @type RequestId: String
789
+
790
+ attr_accessor :TemplateId, :RequestId
791
+
792
+ def initialize(templateid=nil, requestid=nil)
793
+ @TemplateId = templateid
794
+ @RequestId = requestid
795
+ end
796
+
797
+ def deserialize(params)
798
+ @TemplateId = params['TemplateId']
799
+ @RequestId = params['RequestId']
800
+ end
801
+ end
802
+
755
803
  # CreateReadOnlyDBInstance请求参数结构体
756
804
  class CreateReadOnlyDBInstanceRequest < TencentCloud::Common::AbstractModel
757
805
  # @param SpecCode: 售卖规格ID。该参数可以通过调用DescribeProductConfig的返回值中的SpecCode字段来获取。
@@ -1469,6 +1517,38 @@ module TencentCloud
1469
1517
  end
1470
1518
  end
1471
1519
 
1520
+ # DeleteParameterTemplate请求参数结构体
1521
+ class DeleteParameterTemplateRequest < TencentCloud::Common::AbstractModel
1522
+ # @param TemplateId: 参数模板ID,用于唯一确认待操作的参数模板
1523
+ # @type TemplateId: String
1524
+
1525
+ attr_accessor :TemplateId
1526
+
1527
+ def initialize(templateid=nil)
1528
+ @TemplateId = templateid
1529
+ end
1530
+
1531
+ def deserialize(params)
1532
+ @TemplateId = params['TemplateId']
1533
+ end
1534
+ end
1535
+
1536
+ # DeleteParameterTemplate返回参数结构体
1537
+ class DeleteParameterTemplateResponse < TencentCloud::Common::AbstractModel
1538
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1539
+ # @type RequestId: String
1540
+
1541
+ attr_accessor :RequestId
1542
+
1543
+ def initialize(requestid=nil)
1544
+ @RequestId = requestid
1545
+ end
1546
+
1547
+ def deserialize(params)
1548
+ @RequestId = params['RequestId']
1549
+ end
1550
+ end
1551
+
1472
1552
  # DeleteReadOnlyGroupNetworkAccess请求参数结构体
1473
1553
  class DeleteReadOnlyGroupNetworkAccessRequest < TencentCloud::Common::AbstractModel
1474
1554
  # @param ReadOnlyGroupId: RO组ID,形如:pgro-4t9c6g7k。
@@ -2013,6 +2093,53 @@ module TencentCloud
2013
2093
  end
2014
2094
  end
2015
2095
 
2096
+ # DescribeDBInstanceSecurityGroups请求参数结构体
2097
+ class DescribeDBInstanceSecurityGroupsRequest < TencentCloud::Common::AbstractModel
2098
+ # @param DBInstanceId: 实例ID,DBInstanceId和ReadOnlyGroupId至少传一个;如果都传,忽略ReadOnlyGroupId
2099
+ # @type DBInstanceId: String
2100
+ # @param ReadOnlyGroupId: 只读组ID,DBInstanceId和ReadOnlyGroupId至少传一个;如果要查询只读组关联的安全组,只传ReadOnlyGroupId
2101
+ # @type ReadOnlyGroupId: String
2102
+
2103
+ attr_accessor :DBInstanceId, :ReadOnlyGroupId
2104
+
2105
+ def initialize(dbinstanceid=nil, readonlygroupid=nil)
2106
+ @DBInstanceId = dbinstanceid
2107
+ @ReadOnlyGroupId = readonlygroupid
2108
+ end
2109
+
2110
+ def deserialize(params)
2111
+ @DBInstanceId = params['DBInstanceId']
2112
+ @ReadOnlyGroupId = params['ReadOnlyGroupId']
2113
+ end
2114
+ end
2115
+
2116
+ # DescribeDBInstanceSecurityGroups返回参数结构体
2117
+ class DescribeDBInstanceSecurityGroupsResponse < TencentCloud::Common::AbstractModel
2118
+ # @param SecurityGroupSet: 安全组信息数组
2119
+ # @type SecurityGroupSet: Array
2120
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2121
+ # @type RequestId: String
2122
+
2123
+ attr_accessor :SecurityGroupSet, :RequestId
2124
+
2125
+ def initialize(securitygroupset=nil, requestid=nil)
2126
+ @SecurityGroupSet = securitygroupset
2127
+ @RequestId = requestid
2128
+ end
2129
+
2130
+ def deserialize(params)
2131
+ unless params['SecurityGroupSet'].nil?
2132
+ @SecurityGroupSet = []
2133
+ params['SecurityGroupSet'].each do |i|
2134
+ securitygroup_tmp = SecurityGroup.new
2135
+ securitygroup_tmp.deserialize(i)
2136
+ @SecurityGroupSet << securitygroup_tmp
2137
+ end
2138
+ end
2139
+ @RequestId = params['RequestId']
2140
+ end
2141
+ end
2142
+
2016
2143
  # DescribeDBInstances请求参数结构体
2017
2144
  class DescribeDBInstancesRequest < TencentCloud::Common::AbstractModel
2018
2145
  # @param Filters: 按照一个或者多个过滤条件进行查询,目前支持的过滤条件有:
@@ -2258,6 +2385,58 @@ module TencentCloud
2258
2385
  end
2259
2386
  end
2260
2387
 
2388
+ # DescribeDefaultParameters请求参数结构体
2389
+ class DescribeDefaultParametersRequest < TencentCloud::Common::AbstractModel
2390
+ # @param DBMajorVersion: 数据库版本,大版本号,例如11,12,13
2391
+ # @type DBMajorVersion: String
2392
+ # @param DBEngine: 数据库引擎,例如:postgresql,mssql_compatible
2393
+ # @type DBEngine: String
2394
+
2395
+ attr_accessor :DBMajorVersion, :DBEngine
2396
+
2397
+ def initialize(dbmajorversion=nil, dbengine=nil)
2398
+ @DBMajorVersion = dbmajorversion
2399
+ @DBEngine = dbengine
2400
+ end
2401
+
2402
+ def deserialize(params)
2403
+ @DBMajorVersion = params['DBMajorVersion']
2404
+ @DBEngine = params['DBEngine']
2405
+ end
2406
+ end
2407
+
2408
+ # DescribeDefaultParameters返回参数结构体
2409
+ class DescribeDefaultParametersResponse < TencentCloud::Common::AbstractModel
2410
+ # @param TotalCount: 参数个数
2411
+ # @type TotalCount: Integer
2412
+ # @param ParamInfoSet: 参数信息
2413
+ # 注意:此字段可能返回 null,表示取不到有效值。
2414
+ # @type ParamInfoSet: Array
2415
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2416
+ # @type RequestId: String
2417
+
2418
+ attr_accessor :TotalCount, :ParamInfoSet, :RequestId
2419
+
2420
+ def initialize(totalcount=nil, paraminfoset=nil, requestid=nil)
2421
+ @TotalCount = totalcount
2422
+ @ParamInfoSet = paraminfoset
2423
+ @RequestId = requestid
2424
+ end
2425
+
2426
+ def deserialize(params)
2427
+ @TotalCount = params['TotalCount']
2428
+ unless params['ParamInfoSet'].nil?
2429
+ @ParamInfoSet = []
2430
+ params['ParamInfoSet'].each do |i|
2431
+ paraminfo_tmp = ParamInfo.new
2432
+ paraminfo_tmp.deserialize(i)
2433
+ @ParamInfoSet << paraminfo_tmp
2434
+ end
2435
+ end
2436
+ @RequestId = params['RequestId']
2437
+ end
2438
+ end
2439
+
2261
2440
  # DescribeEncryptionKeys请求参数结构体
2262
2441
  class DescribeEncryptionKeysRequest < TencentCloud::Common::AbstractModel
2263
2442
  # @param DBInstanceId: 实例ID。
@@ -2349,6 +2528,150 @@ module TencentCloud
2349
2528
  end
2350
2529
  end
2351
2530
 
2531
+ # DescribeParameterTemplateAttributes请求参数结构体
2532
+ class DescribeParameterTemplateAttributesRequest < TencentCloud::Common::AbstractModel
2533
+ # @param TemplateId: 参数模板ID
2534
+ # @type TemplateId: String
2535
+
2536
+ attr_accessor :TemplateId
2537
+
2538
+ def initialize(templateid=nil)
2539
+ @TemplateId = templateid
2540
+ end
2541
+
2542
+ def deserialize(params)
2543
+ @TemplateId = params['TemplateId']
2544
+ end
2545
+ end
2546
+
2547
+ # DescribeParameterTemplateAttributes返回参数结构体
2548
+ class DescribeParameterTemplateAttributesResponse < TencentCloud::Common::AbstractModel
2549
+ # @param TemplateId: 参数模板ID
2550
+ # 注意:此字段可能返回 null,表示取不到有效值。
2551
+ # @type TemplateId: String
2552
+ # @param TotalCount: 参数模板包含的参数个数
2553
+ # 注意:此字段可能返回 null,表示取不到有效值。
2554
+ # @type TotalCount: Integer
2555
+ # @param ParamInfoSet: 参数模板包含的参数信息
2556
+ # 注意:此字段可能返回 null,表示取不到有效值。
2557
+ # @type ParamInfoSet: Array
2558
+ # @param TemplateName: 参数模板名称
2559
+ # 注意:此字段可能返回 null,表示取不到有效值。
2560
+ # @type TemplateName: String
2561
+ # @param DBMajorVersion: 参数模板适用的数据库版本
2562
+ # 注意:此字段可能返回 null,表示取不到有效值。
2563
+ # @type DBMajorVersion: String
2564
+ # @param DBEngine: 参数模板适用的数据库引擎
2565
+ # 注意:此字段可能返回 null,表示取不到有效值。
2566
+ # @type DBEngine: String
2567
+ # @param TemplateDescription: 参数模板描述
2568
+ # 注意:此字段可能返回 null,表示取不到有效值。
2569
+ # @type TemplateDescription: String
2570
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2571
+ # @type RequestId: String
2572
+
2573
+ attr_accessor :TemplateId, :TotalCount, :ParamInfoSet, :TemplateName, :DBMajorVersion, :DBEngine, :TemplateDescription, :RequestId
2574
+
2575
+ def initialize(templateid=nil, totalcount=nil, paraminfoset=nil, templatename=nil, dbmajorversion=nil, dbengine=nil, templatedescription=nil, requestid=nil)
2576
+ @TemplateId = templateid
2577
+ @TotalCount = totalcount
2578
+ @ParamInfoSet = paraminfoset
2579
+ @TemplateName = templatename
2580
+ @DBMajorVersion = dbmajorversion
2581
+ @DBEngine = dbengine
2582
+ @TemplateDescription = templatedescription
2583
+ @RequestId = requestid
2584
+ end
2585
+
2586
+ def deserialize(params)
2587
+ @TemplateId = params['TemplateId']
2588
+ @TotalCount = params['TotalCount']
2589
+ unless params['ParamInfoSet'].nil?
2590
+ @ParamInfoSet = []
2591
+ params['ParamInfoSet'].each do |i|
2592
+ paraminfo_tmp = ParamInfo.new
2593
+ paraminfo_tmp.deserialize(i)
2594
+ @ParamInfoSet << paraminfo_tmp
2595
+ end
2596
+ end
2597
+ @TemplateName = params['TemplateName']
2598
+ @DBMajorVersion = params['DBMajorVersion']
2599
+ @DBEngine = params['DBEngine']
2600
+ @TemplateDescription = params['TemplateDescription']
2601
+ @RequestId = params['RequestId']
2602
+ end
2603
+ end
2604
+
2605
+ # DescribeParameterTemplates请求参数结构体
2606
+ class DescribeParameterTemplatesRequest < TencentCloud::Common::AbstractModel
2607
+ # @param Filters: 过滤条件,目前支持的过滤条件有:TemplateName, TemplateId,DBMajorVersion,DBEngine
2608
+ # @type Filters: Array
2609
+ # @param Limit: 每页显示数量,[0,100],默认 20
2610
+ # @type Limit: Integer
2611
+ # @param Offset: 数据偏移量
2612
+ # @type Offset: Integer
2613
+ # @param OrderBy: 排序指标,枚举值,支持:CreateTime,TemplateName,DBMajorVersion
2614
+ # @type OrderBy: String
2615
+ # @param OrderByType: 排序方式,枚举值,支持:asc(升序) ,desc(降序)
2616
+ # @type OrderByType: String
2617
+
2618
+ attr_accessor :Filters, :Limit, :Offset, :OrderBy, :OrderByType
2619
+
2620
+ def initialize(filters=nil, limit=nil, offset=nil, orderby=nil, orderbytype=nil)
2621
+ @Filters = filters
2622
+ @Limit = limit
2623
+ @Offset = offset
2624
+ @OrderBy = orderby
2625
+ @OrderByType = orderbytype
2626
+ end
2627
+
2628
+ def deserialize(params)
2629
+ unless params['Filters'].nil?
2630
+ @Filters = []
2631
+ params['Filters'].each do |i|
2632
+ filter_tmp = Filter.new
2633
+ filter_tmp.deserialize(i)
2634
+ @Filters << filter_tmp
2635
+ end
2636
+ end
2637
+ @Limit = params['Limit']
2638
+ @Offset = params['Offset']
2639
+ @OrderBy = params['OrderBy']
2640
+ @OrderByType = params['OrderByType']
2641
+ end
2642
+ end
2643
+
2644
+ # DescribeParameterTemplates返回参数结构体
2645
+ class DescribeParameterTemplatesResponse < TencentCloud::Common::AbstractModel
2646
+ # @param TotalCount: 符合查询条件的参数模板总数
2647
+ # @type TotalCount: Integer
2648
+ # @param ParameterTemplateSet: 参数模板列表
2649
+ # @type ParameterTemplateSet: Array
2650
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2651
+ # @type RequestId: String
2652
+
2653
+ attr_accessor :TotalCount, :ParameterTemplateSet, :RequestId
2654
+
2655
+ def initialize(totalcount=nil, parametertemplateset=nil, requestid=nil)
2656
+ @TotalCount = totalcount
2657
+ @ParameterTemplateSet = parametertemplateset
2658
+ @RequestId = requestid
2659
+ end
2660
+
2661
+ def deserialize(params)
2662
+ @TotalCount = params['TotalCount']
2663
+ unless params['ParameterTemplateSet'].nil?
2664
+ @ParameterTemplateSet = []
2665
+ params['ParameterTemplateSet'].each do |i|
2666
+ parametertemplate_tmp = ParameterTemplate.new
2667
+ parametertemplate_tmp.deserialize(i)
2668
+ @ParameterTemplateSet << parametertemplate_tmp
2669
+ end
2670
+ end
2671
+ @RequestId = params['RequestId']
2672
+ end
2673
+ end
2674
+
2352
2675
  # DescribeParamsEvent请求参数结构体
2353
2676
  class DescribeParamsEventRequest < TencentCloud::Common::AbstractModel
2354
2677
  # @param DBInstanceId: 实例DB ID
@@ -3662,6 +3985,46 @@ module TencentCloud
3662
3985
  end
3663
3986
  end
3664
3987
 
3988
+ # ModifyDBInstanceSecurityGroups请求参数结构体
3989
+ class ModifyDBInstanceSecurityGroupsRequest < TencentCloud::Common::AbstractModel
3990
+ # @param SecurityGroupIdSet: 实例或只读组要绑定的安全组列表
3991
+ # @type SecurityGroupIdSet: Array
3992
+ # @param DBInstanceId: 实例ID,DBInstanceId和ReadOnlyGroupId至少传一个;如果都传,忽略ReadOnlyGroupId
3993
+ # @type DBInstanceId: String
3994
+ # @param ReadOnlyGroupId: 只读组ID,DBInstanceId和ReadOnlyGroupId至少传一个;如果要修改只读组关联的安全组,只传ReadOnlyGroupId
3995
+ # @type ReadOnlyGroupId: String
3996
+
3997
+ attr_accessor :SecurityGroupIdSet, :DBInstanceId, :ReadOnlyGroupId
3998
+
3999
+ def initialize(securitygroupidset=nil, dbinstanceid=nil, readonlygroupid=nil)
4000
+ @SecurityGroupIdSet = securitygroupidset
4001
+ @DBInstanceId = dbinstanceid
4002
+ @ReadOnlyGroupId = readonlygroupid
4003
+ end
4004
+
4005
+ def deserialize(params)
4006
+ @SecurityGroupIdSet = params['SecurityGroupIdSet']
4007
+ @DBInstanceId = params['DBInstanceId']
4008
+ @ReadOnlyGroupId = params['ReadOnlyGroupId']
4009
+ end
4010
+ end
4011
+
4012
+ # ModifyDBInstanceSecurityGroups返回参数结构体
4013
+ class ModifyDBInstanceSecurityGroupsResponse < TencentCloud::Common::AbstractModel
4014
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4015
+ # @type RequestId: String
4016
+
4017
+ attr_accessor :RequestId
4018
+
4019
+ def initialize(requestid=nil)
4020
+ @RequestId = requestid
4021
+ end
4022
+
4023
+ def deserialize(params)
4024
+ @RequestId = params['RequestId']
4025
+ end
4026
+ end
4027
+
3665
4028
  # ModifyDBInstanceSpec请求参数结构体
3666
4029
  class ModifyDBInstanceSpecRequest < TencentCloud::Common::AbstractModel
3667
4030
  # @param DBInstanceId: 实例ID,形如:postgres-6bwgamo3。
@@ -3774,6 +4137,61 @@ module TencentCloud
3774
4137
  end
3775
4138
  end
3776
4139
 
4140
+ # ModifyParameterTemplate请求参数结构体
4141
+ class ModifyParameterTemplateRequest < TencentCloud::Common::AbstractModel
4142
+ # @param TemplateId: 参数模板ID,用于唯一确认参数模板,不可修改
4143
+ # @type TemplateId: String
4144
+ # @param TemplateName: 参数模板名称,长度为1~60个字符,仅支持数字,英文大小写字母、中文以及特殊字符_-./()()[]+=::@ 注:若该字段为空 ,则保持原参数模板名称
4145
+ # @type TemplateName: String
4146
+ # @param TemplateDescription: 参数模板描述,长度为0~60个字符,仅支持数字,英文大小写字母、中文以及特殊字符_-./()()[]+=::@ 注:若不传入该参数,则保持原参数模板描述
4147
+ # @type TemplateDescription: String
4148
+ # @param ModifyParamEntrySet: 需要修改或添加的参数集合,注:同一参数不能同时出现在修改添加集合和删除集合中
4149
+ # @type ModifyParamEntrySet: Array
4150
+ # @param DeleteParamSet: 需要从模板中删除的参数集合,注:同一参数不能同时出现在修改添加集合和删除集合中
4151
+ # @type DeleteParamSet: Array
4152
+
4153
+ attr_accessor :TemplateId, :TemplateName, :TemplateDescription, :ModifyParamEntrySet, :DeleteParamSet
4154
+
4155
+ def initialize(templateid=nil, templatename=nil, templatedescription=nil, modifyparamentryset=nil, deleteparamset=nil)
4156
+ @TemplateId = templateid
4157
+ @TemplateName = templatename
4158
+ @TemplateDescription = templatedescription
4159
+ @ModifyParamEntrySet = modifyparamentryset
4160
+ @DeleteParamSet = deleteparamset
4161
+ end
4162
+
4163
+ def deserialize(params)
4164
+ @TemplateId = params['TemplateId']
4165
+ @TemplateName = params['TemplateName']
4166
+ @TemplateDescription = params['TemplateDescription']
4167
+ unless params['ModifyParamEntrySet'].nil?
4168
+ @ModifyParamEntrySet = []
4169
+ params['ModifyParamEntrySet'].each do |i|
4170
+ paramentry_tmp = ParamEntry.new
4171
+ paramentry_tmp.deserialize(i)
4172
+ @ModifyParamEntrySet << paramentry_tmp
4173
+ end
4174
+ end
4175
+ @DeleteParamSet = params['DeleteParamSet']
4176
+ end
4177
+ end
4178
+
4179
+ # ModifyParameterTemplate返回参数结构体
4180
+ class ModifyParameterTemplateResponse < TencentCloud::Common::AbstractModel
4181
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4182
+ # @type RequestId: String
4183
+
4184
+ attr_accessor :RequestId
4185
+
4186
+ def initialize(requestid=nil)
4187
+ @RequestId = requestid
4188
+ end
4189
+
4190
+ def deserialize(params)
4191
+ @RequestId = params['RequestId']
4192
+ end
4193
+ end
4194
+
3777
4195
  # ModifyReadOnlyGroupConfig请求参数结构体
3778
4196
  class ModifyReadOnlyGroupConfigRequest < TencentCloud::Common::AbstractModel
3779
4197
  # @param ReadOnlyGroupId: 只读组ID
@@ -4313,6 +4731,38 @@ module TencentCloud
4313
4731
  end
4314
4732
  end
4315
4733
 
4734
+ # 参数模板的基本信息
4735
+ class ParameterTemplate < TencentCloud::Common::AbstractModel
4736
+ # @param TemplateId: 参数模板ID
4737
+ # @type TemplateId: String
4738
+ # @param TemplateName: 参数模板名称
4739
+ # @type TemplateName: String
4740
+ # @param DBMajorVersion: 参数模板适用的数据库版本
4741
+ # @type DBMajorVersion: String
4742
+ # @param DBEngine: 参数模板适用的数据库引擎
4743
+ # @type DBEngine: String
4744
+ # @param TemplateDescription: 参数模板描述
4745
+ # @type TemplateDescription: String
4746
+
4747
+ attr_accessor :TemplateId, :TemplateName, :DBMajorVersion, :DBEngine, :TemplateDescription
4748
+
4749
+ def initialize(templateid=nil, templatename=nil, dbmajorversion=nil, dbengine=nil, templatedescription=nil)
4750
+ @TemplateId = templateid
4751
+ @TemplateName = templatename
4752
+ @DBMajorVersion = dbmajorversion
4753
+ @DBEngine = dbengine
4754
+ @TemplateDescription = templatedescription
4755
+ end
4756
+
4757
+ def deserialize(params)
4758
+ @TemplateId = params['TemplateId']
4759
+ @TemplateName = params['TemplateName']
4760
+ @DBMajorVersion = params['DBMajorVersion']
4761
+ @DBEngine = params['DBEngine']
4762
+ @TemplateDescription = params['TemplateDescription']
4763
+ end
4764
+ end
4765
+
4316
4766
  # 订单详情
4317
4767
  class PgDeal < TencentCloud::Common::AbstractModel
4318
4768
  # @param DealName: 订单名
@@ -4349,6 +4799,38 @@ module TencentCloud
4349
4799
  end
4350
4800
  end
4351
4801
 
4802
+ # 安全组规则信息
4803
+ class PolicyRule < TencentCloud::Common::AbstractModel
4804
+ # @param Action: 策略,ACCEPT 或者 DROP
4805
+ # @type Action: String
4806
+ # @param CidrIp: 来源或目的 IP 或 IP 段,例如172.16.0.0/12
4807
+ # @type CidrIp: String
4808
+ # @param PortRange: 端口
4809
+ # @type PortRange: String
4810
+ # @param IpProtocol: 网络协议,支持 UDP、TCP 等
4811
+ # @type IpProtocol: String
4812
+ # @param Description: 规则描述
4813
+ # @type Description: String
4814
+
4815
+ attr_accessor :Action, :CidrIp, :PortRange, :IpProtocol, :Description
4816
+
4817
+ def initialize(action=nil, cidrip=nil, portrange=nil, ipprotocol=nil, description=nil)
4818
+ @Action = action
4819
+ @CidrIp = cidrip
4820
+ @PortRange = portrange
4821
+ @IpProtocol = ipprotocol
4822
+ @Description = description
4823
+ end
4824
+
4825
+ def deserialize(params)
4826
+ @Action = params['Action']
4827
+ @CidrIp = params['CidrIp']
4828
+ @PortRange = params['PortRange']
4829
+ @IpProtocol = params['IpProtocol']
4830
+ @Description = params['Description']
4831
+ end
4832
+ end
4833
+
4352
4834
  # 慢SQL查询接口返回 慢SQL列表详情
4353
4835
  class RawSlowQuery < TencentCloud::Common::AbstractModel
4354
4836
  # @param RawQuery: 慢SQL 语句
@@ -4726,6 +5208,60 @@ module TencentCloud
4726
5208
  end
4727
5209
  end
4728
5210
 
5211
+ # 安全组信息
5212
+ class SecurityGroup < TencentCloud::Common::AbstractModel
5213
+ # @param ProjectId: 项目Id
5214
+ # @type ProjectId: Integer
5215
+ # @param CreateTime: 创建时间
5216
+ # @type CreateTime: String
5217
+ # @param Inbound: 入站规则
5218
+ # @type Inbound: Array
5219
+ # @param Outbound: 出站规则
5220
+ # @type Outbound: Array
5221
+ # @param SecurityGroupId: 安全组ID
5222
+ # @type SecurityGroupId: String
5223
+ # @param SecurityGroupName: 安全组名称
5224
+ # @type SecurityGroupName: String
5225
+ # @param SecurityGroupDescription: 安全组备注
5226
+ # @type SecurityGroupDescription: String
5227
+
5228
+ attr_accessor :ProjectId, :CreateTime, :Inbound, :Outbound, :SecurityGroupId, :SecurityGroupName, :SecurityGroupDescription
5229
+
5230
+ def initialize(projectid=nil, createtime=nil, inbound=nil, outbound=nil, securitygroupid=nil, securitygroupname=nil, securitygroupdescription=nil)
5231
+ @ProjectId = projectid
5232
+ @CreateTime = createtime
5233
+ @Inbound = inbound
5234
+ @Outbound = outbound
5235
+ @SecurityGroupId = securitygroupid
5236
+ @SecurityGroupName = securitygroupname
5237
+ @SecurityGroupDescription = securitygroupdescription
5238
+ end
5239
+
5240
+ def deserialize(params)
5241
+ @ProjectId = params['ProjectId']
5242
+ @CreateTime = params['CreateTime']
5243
+ unless params['Inbound'].nil?
5244
+ @Inbound = []
5245
+ params['Inbound'].each do |i|
5246
+ policyrule_tmp = PolicyRule.new
5247
+ policyrule_tmp.deserialize(i)
5248
+ @Inbound << policyrule_tmp
5249
+ end
5250
+ end
5251
+ unless params['Outbound'].nil?
5252
+ @Outbound = []
5253
+ params['Outbound'].each do |i|
5254
+ policyrule_tmp = PolicyRule.new
5255
+ policyrule_tmp.deserialize(i)
5256
+ @Outbound << policyrule_tmp
5257
+ end
5258
+ end
5259
+ @SecurityGroupId = params['SecurityGroupId']
5260
+ @SecurityGroupName = params['SecurityGroupName']
5261
+ @SecurityGroupDescription = params['SecurityGroupDescription']
5262
+ end
5263
+ end
5264
+
4729
5265
  # serverless账号描述
4730
5266
  class ServerlessDBAccount < TencentCloud::Common::AbstractModel
4731
5267
  # @param DBUser: 用户名
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: 3.0.473
4
+ version: 3.0.474
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-12-14 00:00:00.000000000 Z
11
+ date: 2022-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common