tencentcloud-sdk-postgres 3.0.869 → 3.0.870

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: 4cb5fd4630e6561fba02272e8d0a3fdd57a2c6be
4
- data.tar.gz: 49f6c387c3883d378131f910e8d6965d750d845a
3
+ metadata.gz: f1ebb63f48073f300501a80cb74f7a9b7c5dcdfa
4
+ data.tar.gz: 2f5c9fed476b445c4fbd1c4aea72ee0230d67a80
5
5
  SHA512:
6
- metadata.gz: f708ff4790fa5cb92228b1456d06abe27f250c0bf16526b81d5832f50d3f9b1ad9b0bf6f1e4f7f5e52d676a67c7ab979448f86f1c5e536b2097680d93f8e0bfd
7
- data.tar.gz: a0ea0130716b52abc46724475c19e1a24c76a29557efa9295a403f120c82c46fed3bf8ffcf4265f9fa4476a96d406f7e8c81ea5186be9f4d74f302afae989fdd
6
+ metadata.gz: e0f48496ac0f3c8a872337a50bd9dd4bc22b780846d1177a65a6b4ff1875a2ba88fa03664ec4bdd57bf334c549325181c6b7c5ed85ea09dce31f2b7e22df5f8d
7
+ data.tar.gz: c8055a8aae6cecfa92c543fc7789741ab71650e911f3c5212dee7df63a63d94c2352cd9843ee75f2ed9222c0cf8a42f74159ddac764b1274ba6dcff5923cc4a8
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.869
1
+ 3.0.870
@@ -125,6 +125,30 @@ module TencentCloud
125
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
126
  end
127
127
 
128
+ # 此接口用于创建数据账号,返回的Oid为账号唯一标识。与数据库系统表pg_roles中记录的oid一致。
129
+
130
+ # @param request: Request instance for CreateAccount.
131
+ # @type request: :class:`Tencentcloud::postgres::V20170312::CreateAccountRequest`
132
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::CreateAccountResponse`
133
+ def CreateAccount(request)
134
+ body = send_request('CreateAccount', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = CreateAccountResponse.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
  # 本接口(CreateBaseBackup)用于创建实例的数据备份。
129
153
 
130
154
  # @param request: Request instance for CreateBaseBackup.
@@ -343,6 +367,30 @@ module TencentCloud
343
367
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
344
368
  end
345
369
 
370
+ # 此接口用于删除数据库账号,需要同时输入Oid与UserName,避免误删。
371
+
372
+ # @param request: Request instance for DeleteAccount.
373
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DeleteAccountRequest`
374
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DeleteAccountResponse`
375
+ def DeleteAccount(request)
376
+ body = send_request('DeleteAccount', request.serialize)
377
+ response = JSON.parse(body)
378
+ if response['Response'].key?('Error') == false
379
+ model = DeleteAccountResponse.new
380
+ model.deserialize(response['Response'])
381
+ model
382
+ else
383
+ code = response['Response']['Error']['Code']
384
+ message = response['Response']['Error']['Message']
385
+ reqid = response['Response']['RequestId']
386
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
387
+ end
388
+ rescue TencentCloud::Common::TencentCloudSDKException => e
389
+ raise e
390
+ rescue StandardError => e
391
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
392
+ end
393
+
346
394
  # 本接口(DeleteBaseBackup)用于删除实例指定数据备份。
347
395
 
348
396
  # @param request: Request instance for DeleteBaseBackup.
@@ -511,6 +559,30 @@ module TencentCloud
511
559
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
512
560
  end
513
561
 
562
+ # 查询数据库账号对某数据库对象拥有的权限列表。
563
+
564
+ # @param request: Request instance for DescribeAccountPrivileges.
565
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DescribeAccountPrivilegesRequest`
566
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeAccountPrivilegesResponse`
567
+ def DescribeAccountPrivileges(request)
568
+ body = send_request('DescribeAccountPrivileges', request.serialize)
569
+ response = JSON.parse(body)
570
+ if response['Response'].key?('Error') == false
571
+ model = DescribeAccountPrivilegesResponse.new
572
+ model.deserialize(response['Response'])
573
+ model
574
+ else
575
+ code = response['Response']['Error']['Code']
576
+ message = response['Response']['Error']['Message']
577
+ reqid = response['Response']['RequestId']
578
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
579
+ end
580
+ rescue TencentCloud::Common::TencentCloudSDKException => e
581
+ raise e
582
+ rescue StandardError => e
583
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
584
+ end
585
+
514
586
  # 本接口(DescribeAccounts)用于查询实例的数据库账号列表。
515
587
 
516
588
  # @param request: Request instance for DescribeAccounts.
@@ -993,6 +1065,30 @@ module TencentCloud
993
1065
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
994
1066
  end
995
1067
 
1068
+ # 本接口用于查询数据库对象列表。例如查询test数据库下的模式列表。
1069
+
1070
+ # @param request: Request instance for DescribeDatabaseObjects.
1071
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DescribeDatabaseObjectsRequest`
1072
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeDatabaseObjectsResponse`
1073
+ def DescribeDatabaseObjects(request)
1074
+ body = send_request('DescribeDatabaseObjects', request.serialize)
1075
+ response = JSON.parse(body)
1076
+ if response['Response'].key?('Error') == false
1077
+ model = DescribeDatabaseObjectsResponse.new
1078
+ model.deserialize(response['Response'])
1079
+ model
1080
+ else
1081
+ code = response['Response']['Error']['Code']
1082
+ message = response['Response']['Error']['Message']
1083
+ reqid = response['Response']['RequestId']
1084
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1085
+ end
1086
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1087
+ raise e
1088
+ rescue StandardError => e
1089
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1090
+ end
1091
+
996
1092
  # 接口(DescribeDatabases)用来查询实例的数据库列表。
997
1093
 
998
1094
  # @param request: Request instance for DescribeDatabases.
@@ -1521,6 +1617,54 @@ module TencentCloud
1521
1617
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1522
1618
  end
1523
1619
 
1620
+ # 此接口用于锁定数据库账号,锁定后账号当前连接会断开,并且无法建立新连接。
1621
+
1622
+ # @param request: Request instance for LockAccount.
1623
+ # @type request: :class:`Tencentcloud::postgres::V20170312::LockAccountRequest`
1624
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::LockAccountResponse`
1625
+ def LockAccount(request)
1626
+ body = send_request('LockAccount', request.serialize)
1627
+ response = JSON.parse(body)
1628
+ if response['Response'].key?('Error') == false
1629
+ model = LockAccountResponse.new
1630
+ model.deserialize(response['Response'])
1631
+ model
1632
+ else
1633
+ code = response['Response']['Error']['Code']
1634
+ message = response['Response']['Error']['Message']
1635
+ reqid = response['Response']['RequestId']
1636
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1637
+ end
1638
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1639
+ raise e
1640
+ rescue StandardError => e
1641
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1642
+ end
1643
+
1644
+ # 修改某账号对某数据库对象的权限、修改账号类型。
1645
+
1646
+ # @param request: Request instance for ModifyAccountPrivileges.
1647
+ # @type request: :class:`Tencentcloud::postgres::V20170312::ModifyAccountPrivilegesRequest`
1648
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::ModifyAccountPrivilegesResponse`
1649
+ def ModifyAccountPrivileges(request)
1650
+ body = send_request('ModifyAccountPrivileges', request.serialize)
1651
+ response = JSON.parse(body)
1652
+ if response['Response'].key?('Error') == false
1653
+ model = ModifyAccountPrivilegesResponse.new
1654
+ model.deserialize(response['Response'])
1655
+ model
1656
+ else
1657
+ code = response['Response']['Error']['Code']
1658
+ message = response['Response']['Error']['Message']
1659
+ reqid = response['Response']['RequestId']
1660
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1661
+ end
1662
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1663
+ raise e
1664
+ rescue StandardError => e
1665
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1666
+ end
1667
+
1524
1668
  # 本接口(ModifyAccountRemark)用于修改账号备注。
1525
1669
 
1526
1670
  # @param request: Request instance for ModifyAccountRemark.
@@ -2150,6 +2294,30 @@ module TencentCloud
2150
2294
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2151
2295
  end
2152
2296
 
2297
+ # 解除数据库账号的锁定,解锁后账号可以登陆数据库。
2298
+
2299
+ # @param request: Request instance for UnlockAccount.
2300
+ # @type request: :class:`Tencentcloud::postgres::V20170312::UnlockAccountRequest`
2301
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::UnlockAccountResponse`
2302
+ def UnlockAccount(request)
2303
+ body = send_request('UnlockAccount', request.serialize)
2304
+ response = JSON.parse(body)
2305
+ if response['Response'].key?('Error') == false
2306
+ model = UnlockAccountResponse.new
2307
+ model.deserialize(response['Response'])
2308
+ model
2309
+ else
2310
+ code = response['Response']['Error']['Code']
2311
+ message = response['Response']['Error']['Message']
2312
+ reqid = response['Response']['RequestId']
2313
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2314
+ end
2315
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2316
+ raise e
2317
+ rescue StandardError => e
2318
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2319
+ end
2320
+
2153
2321
  # 本接口(UpgradeDBInstance)用于升级实例配置。本接口已废弃,推荐使用接口[ModifyDBInstanceSpec](https://cloud.tencent.com/document/api/409/63689)替代。
2154
2322
 
2155
2323
  # @param request: Request instance for UpgradeDBInstance.
@@ -589,6 +589,54 @@ module TencentCloud
589
589
  end
590
590
  end
591
591
 
592
+ # CreateAccount请求参数结构体
593
+ class CreateAccountRequest < TencentCloud::Common::AbstractModel
594
+ # @param DBInstanceId: 实例ID。
595
+ # @type DBInstanceId: String
596
+ # @param UserName: 创建的账号名称。
597
+ # @type UserName: String
598
+ # @param Password: 账号对应的密码。
599
+ # @type Password: String
600
+ # @param Type: 账号类型。当前支持normal、tencentDBSuper两个输入。normal指代普通用户,tencentDBSuper为拥有pg_tencentdb_superuser角色的账号。
601
+ # @type Type: String
602
+ # @param Remark: 账号备注。
603
+ # @type Remark: String
604
+
605
+ attr_accessor :DBInstanceId, :UserName, :Password, :Type, :Remark
606
+
607
+ def initialize(dbinstanceid=nil, username=nil, password=nil, type=nil, remark=nil)
608
+ @DBInstanceId = dbinstanceid
609
+ @UserName = username
610
+ @Password = password
611
+ @Type = type
612
+ @Remark = remark
613
+ end
614
+
615
+ def deserialize(params)
616
+ @DBInstanceId = params['DBInstanceId']
617
+ @UserName = params['UserName']
618
+ @Password = params['Password']
619
+ @Type = params['Type']
620
+ @Remark = params['Remark']
621
+ end
622
+ end
623
+
624
+ # CreateAccount返回参数结构体
625
+ class CreateAccountResponse < TencentCloud::Common::AbstractModel
626
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
627
+ # @type RequestId: String
628
+
629
+ attr_accessor :RequestId
630
+
631
+ def initialize(requestid=nil)
632
+ @RequestId = requestid
633
+ end
634
+
635
+ def deserialize(params)
636
+ @RequestId = params['RequestId']
637
+ end
638
+ end
639
+
592
640
  # CreateBaseBackup请求参数结构体
593
641
  class CreateBaseBackupRequest < TencentCloud::Common::AbstractModel
594
642
  # @param DBInstanceId: 实例ID。
@@ -1789,6 +1837,104 @@ module TencentCloud
1789
1837
  end
1790
1838
  end
1791
1839
 
1840
+ # 描述数据库中某个对象所属的类型、是在哪个数据库、模式、表中的对象。
1841
+ class DatabaseObject < TencentCloud::Common::AbstractModel
1842
+ # @param ObjectType: 支持使用的数据库对象类型有:account,database,schema,sequence,procedure,type,function,table,view,matview,column。
1843
+ # 注意:此字段可能返回 null,表示取不到有效值。
1844
+ # @type ObjectType: String
1845
+ # @param ObjectName: 所描述的数据库对象名称
1846
+ # 注意:此字段可能返回 null,表示取不到有效值。
1847
+ # @type ObjectName: String
1848
+ # @param DatabaseName: 所要描述的数据库对象,所属的数据库名称。当描述对象类型不为database时,此参数必选。
1849
+ # 注意:此字段可能返回 null,表示取不到有效值。
1850
+ # @type DatabaseName: String
1851
+ # @param SchemaName: 所要描述的数据库对象,所属的模式名称。当描述对象不为database、schema时,此参数必选。
1852
+ # 注意:此字段可能返回 null,表示取不到有效值。
1853
+ # @type SchemaName: String
1854
+ # @param TableName: 所要描述的数据库对象,所属的表名称。当描述的对象类型为column时,此参数必填。
1855
+ # 注意:此字段可能返回 null,表示取不到有效值。
1856
+ # @type TableName: String
1857
+
1858
+ attr_accessor :ObjectType, :ObjectName, :DatabaseName, :SchemaName, :TableName
1859
+
1860
+ def initialize(objecttype=nil, objectname=nil, databasename=nil, schemaname=nil, tablename=nil)
1861
+ @ObjectType = objecttype
1862
+ @ObjectName = objectname
1863
+ @DatabaseName = databasename
1864
+ @SchemaName = schemaname
1865
+ @TableName = tablename
1866
+ end
1867
+
1868
+ def deserialize(params)
1869
+ @ObjectType = params['ObjectType']
1870
+ @ObjectName = params['ObjectName']
1871
+ @DatabaseName = params['DatabaseName']
1872
+ @SchemaName = params['SchemaName']
1873
+ @TableName = params['TableName']
1874
+ end
1875
+ end
1876
+
1877
+ # 指定账号对数据库对象拥有的权限列表
1878
+ class DatabasePrivilege < TencentCloud::Common::AbstractModel
1879
+ # @param Object: 数据库对象,当ObjectType为database时,DataseName/SchemaName/TableName可为空;当ObjectType为schema时,SchemaName/TableName可为空;当ObjectType为column时,TableName不可为空,其余情况均可为空。
1880
+ # 注意:此字段可能返回 null,表示取不到有效值。
1881
+ # @type Object: :class:`Tencentcloud::Postgres.v20170312.models.DatabaseObject`
1882
+ # @param PrivilegeSet: 指定账号对数据库对象拥有的权限列表
1883
+ # 注意:此字段可能返回 null,表示取不到有效值。
1884
+ # @type PrivilegeSet: Array
1885
+
1886
+ attr_accessor :Object, :PrivilegeSet
1887
+
1888
+ def initialize(object=nil, privilegeset=nil)
1889
+ @Object = object
1890
+ @PrivilegeSet = privilegeset
1891
+ end
1892
+
1893
+ def deserialize(params)
1894
+ unless params['Object'].nil?
1895
+ @Object = DatabaseObject.new
1896
+ @Object.deserialize(params['Object'])
1897
+ end
1898
+ @PrivilegeSet = params['PrivilegeSet']
1899
+ end
1900
+ end
1901
+
1902
+ # DeleteAccount请求参数结构体
1903
+ class DeleteAccountRequest < TencentCloud::Common::AbstractModel
1904
+ # @param DBInstanceId: 实例ID。
1905
+ # @type DBInstanceId: String
1906
+ # @param UserName: 删除的账号名称。
1907
+ # @type UserName: String
1908
+
1909
+ attr_accessor :DBInstanceId, :UserName
1910
+
1911
+ def initialize(dbinstanceid=nil, username=nil)
1912
+ @DBInstanceId = dbinstanceid
1913
+ @UserName = username
1914
+ end
1915
+
1916
+ def deserialize(params)
1917
+ @DBInstanceId = params['DBInstanceId']
1918
+ @UserName = params['UserName']
1919
+ end
1920
+ end
1921
+
1922
+ # DeleteAccount返回参数结构体
1923
+ class DeleteAccountResponse < TencentCloud::Common::AbstractModel
1924
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1925
+ # @type RequestId: String
1926
+
1927
+ attr_accessor :RequestId
1928
+
1929
+ def initialize(requestid=nil)
1930
+ @RequestId = requestid
1931
+ end
1932
+
1933
+ def deserialize(params)
1934
+ @RequestId = params['RequestId']
1935
+ end
1936
+ end
1937
+
1792
1938
  # DeleteBaseBackup请求参数结构体
1793
1939
  class DeleteBaseBackupRequest < TencentCloud::Common::AbstractModel
1794
1940
  # @param DBInstanceId: 实例ID。
@@ -2064,6 +2210,64 @@ module TencentCloud
2064
2210
  end
2065
2211
  end
2066
2212
 
2213
+ # DescribeAccountPrivileges请求参数结构体
2214
+ class DescribeAccountPrivilegesRequest < TencentCloud::Common::AbstractModel
2215
+ # @param DBInstanceId: 实例ID。
2216
+ # @type DBInstanceId: String
2217
+ # @param UserName: 查询此账号对某数据库对象所拥有的权限信息。
2218
+ # @type UserName: String
2219
+ # @param DatabaseObjectSet: 要查询的数据库对象信息
2220
+ # @type DatabaseObjectSet: Array
2221
+
2222
+ attr_accessor :DBInstanceId, :UserName, :DatabaseObjectSet
2223
+
2224
+ def initialize(dbinstanceid=nil, username=nil, databaseobjectset=nil)
2225
+ @DBInstanceId = dbinstanceid
2226
+ @UserName = username
2227
+ @DatabaseObjectSet = databaseobjectset
2228
+ end
2229
+
2230
+ def deserialize(params)
2231
+ @DBInstanceId = params['DBInstanceId']
2232
+ @UserName = params['UserName']
2233
+ unless params['DatabaseObjectSet'].nil?
2234
+ @DatabaseObjectSet = []
2235
+ params['DatabaseObjectSet'].each do |i|
2236
+ databaseobject_tmp = DatabaseObject.new
2237
+ databaseobject_tmp.deserialize(i)
2238
+ @DatabaseObjectSet << databaseobject_tmp
2239
+ end
2240
+ end
2241
+ end
2242
+ end
2243
+
2244
+ # DescribeAccountPrivileges返回参数结构体
2245
+ class DescribeAccountPrivilegesResponse < TencentCloud::Common::AbstractModel
2246
+ # @param PrivilegeSet: 用户拥有数据库user_database的CREATE、CONNECT、TEMPORARY权限
2247
+ # @type PrivilegeSet: Array
2248
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2249
+ # @type RequestId: String
2250
+
2251
+ attr_accessor :PrivilegeSet, :RequestId
2252
+
2253
+ def initialize(privilegeset=nil, requestid=nil)
2254
+ @PrivilegeSet = privilegeset
2255
+ @RequestId = requestid
2256
+ end
2257
+
2258
+ def deserialize(params)
2259
+ unless params['PrivilegeSet'].nil?
2260
+ @PrivilegeSet = []
2261
+ params['PrivilegeSet'].each do |i|
2262
+ databaseprivilege_tmp = DatabasePrivilege.new
2263
+ databaseprivilege_tmp.deserialize(i)
2264
+ @PrivilegeSet << databaseprivilege_tmp
2265
+ end
2266
+ end
2267
+ @RequestId = params['RequestId']
2268
+ end
2269
+ end
2270
+
2067
2271
  # DescribeAccounts请求参数结构体
2068
2272
  class DescribeAccountsRequest < TencentCloud::Common::AbstractModel
2069
2273
  # @param DBInstanceId: 实例ID,形如postgres-6fego161
@@ -3225,6 +3429,72 @@ module TencentCloud
3225
3429
  end
3226
3430
  end
3227
3431
 
3432
+ # DescribeDatabaseObjects请求参数结构体
3433
+ class DescribeDatabaseObjectsRequest < TencentCloud::Common::AbstractModel
3434
+ # @param DBInstanceId: 实例ID。
3435
+ # @type DBInstanceId: String
3436
+ # @param ObjectType: 查询的对象类型。支持查询的数据对象有:database,schema,sequence,procedure,type,function,table,view,matview,column。
3437
+ # @type ObjectType: String
3438
+ # @param Limit: 单次显示数量,默认20。可选范围为[0,100]。
3439
+ # @type Limit: Integer
3440
+ # @param Offset: 数据偏移量,从0开始。
3441
+ # @type Offset: Integer
3442
+ # @param DatabaseName: 查询对象所属的数据库。当查询对象类型不为database时,此参数必填。
3443
+ # @type DatabaseName: String
3444
+ # @param SchemaName: 查询对象所属的模式。当查询对象类型不为database、schema时,此参数必填。
3445
+ # @type SchemaName: String
3446
+ # @param TableName: 查询对象所属的表。当查询对象类型为column时,此参数必填。
3447
+ # @type TableName: String
3448
+
3449
+ attr_accessor :DBInstanceId, :ObjectType, :Limit, :Offset, :DatabaseName, :SchemaName, :TableName
3450
+
3451
+ def initialize(dbinstanceid=nil, objecttype=nil, limit=nil, offset=nil, databasename=nil, schemaname=nil, tablename=nil)
3452
+ @DBInstanceId = dbinstanceid
3453
+ @ObjectType = objecttype
3454
+ @Limit = limit
3455
+ @Offset = offset
3456
+ @DatabaseName = databasename
3457
+ @SchemaName = schemaname
3458
+ @TableName = tablename
3459
+ end
3460
+
3461
+ def deserialize(params)
3462
+ @DBInstanceId = params['DBInstanceId']
3463
+ @ObjectType = params['ObjectType']
3464
+ @Limit = params['Limit']
3465
+ @Offset = params['Offset']
3466
+ @DatabaseName = params['DatabaseName']
3467
+ @SchemaName = params['SchemaName']
3468
+ @TableName = params['TableName']
3469
+ end
3470
+ end
3471
+
3472
+ # DescribeDatabaseObjects返回参数结构体
3473
+ class DescribeDatabaseObjectsResponse < TencentCloud::Common::AbstractModel
3474
+ # @param ObjectSet: 查询对象列表。
3475
+ # 注意:此字段可能返回 null,表示取不到有效值。
3476
+ # @type ObjectSet: Array
3477
+ # @param TotalCount: 查询对象总数量
3478
+ # 注意:此字段可能返回 null,表示取不到有效值。
3479
+ # @type TotalCount: Integer
3480
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3481
+ # @type RequestId: String
3482
+
3483
+ attr_accessor :ObjectSet, :TotalCount, :RequestId
3484
+
3485
+ def initialize(objectset=nil, totalcount=nil, requestid=nil)
3486
+ @ObjectSet = objectset
3487
+ @TotalCount = totalcount
3488
+ @RequestId = requestid
3489
+ end
3490
+
3491
+ def deserialize(params)
3492
+ @ObjectSet = params['ObjectSet']
3493
+ @TotalCount = params['TotalCount']
3494
+ @RequestId = params['RequestId']
3495
+ end
3496
+ end
3497
+
3228
3498
  # DescribeDatabases请求参数结构体
3229
3499
  class DescribeDatabasesRequest < TencentCloud::Common::AbstractModel
3230
3500
  # @param DBInstanceId: 实例ID
@@ -4716,6 +4986,42 @@ module TencentCloud
4716
4986
  end
4717
4987
  end
4718
4988
 
4989
+ # LockAccount请求参数结构体
4990
+ class LockAccountRequest < TencentCloud::Common::AbstractModel
4991
+ # @param DBInstanceId: 实例ID。
4992
+ # @type DBInstanceId: String
4993
+ # @param UserName: 账号名称。
4994
+ # @type UserName: String
4995
+
4996
+ attr_accessor :DBInstanceId, :UserName
4997
+
4998
+ def initialize(dbinstanceid=nil, username=nil)
4999
+ @DBInstanceId = dbinstanceid
5000
+ @UserName = username
5001
+ end
5002
+
5003
+ def deserialize(params)
5004
+ @DBInstanceId = params['DBInstanceId']
5005
+ @UserName = params['UserName']
5006
+ end
5007
+ end
5008
+
5009
+ # LockAccount返回参数结构体
5010
+ class LockAccountResponse < TencentCloud::Common::AbstractModel
5011
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5012
+ # @type RequestId: String
5013
+
5014
+ attr_accessor :RequestId
5015
+
5016
+ def initialize(requestid=nil)
5017
+ @RequestId = requestid
5018
+ end
5019
+
5020
+ def deserialize(params)
5021
+ @RequestId = params['RequestId']
5022
+ end
5023
+ end
5024
+
4719
5025
  # 数据库日志备份信息
4720
5026
  class LogBackup < TencentCloud::Common::AbstractModel
4721
5027
  # @param DBInstanceId: 实例ID。
@@ -4768,6 +5074,53 @@ module TencentCloud
4768
5074
  end
4769
5075
  end
4770
5076
 
5077
+ # ModifyAccountPrivileges请求参数结构体
5078
+ class ModifyAccountPrivilegesRequest < TencentCloud::Common::AbstractModel
5079
+ # @param DBInstanceId: 实例ID。
5080
+ # @type DBInstanceId: String
5081
+ # @param UserName: 修改此账号对某数据库对象的权限。
5082
+ # @type UserName: String
5083
+ # @param ModifyPrivilegeSet: 修改的权限信息,支持批量修改,一次最高修改50条。
5084
+ # @type ModifyPrivilegeSet: Array
5085
+
5086
+ attr_accessor :DBInstanceId, :UserName, :ModifyPrivilegeSet
5087
+
5088
+ def initialize(dbinstanceid=nil, username=nil, modifyprivilegeset=nil)
5089
+ @DBInstanceId = dbinstanceid
5090
+ @UserName = username
5091
+ @ModifyPrivilegeSet = modifyprivilegeset
5092
+ end
5093
+
5094
+ def deserialize(params)
5095
+ @DBInstanceId = params['DBInstanceId']
5096
+ @UserName = params['UserName']
5097
+ unless params['ModifyPrivilegeSet'].nil?
5098
+ @ModifyPrivilegeSet = []
5099
+ params['ModifyPrivilegeSet'].each do |i|
5100
+ modifyprivilege_tmp = ModifyPrivilege.new
5101
+ modifyprivilege_tmp.deserialize(i)
5102
+ @ModifyPrivilegeSet << modifyprivilege_tmp
5103
+ end
5104
+ end
5105
+ end
5106
+ end
5107
+
5108
+ # ModifyAccountPrivileges返回参数结构体
5109
+ class ModifyAccountPrivilegesResponse < TencentCloud::Common::AbstractModel
5110
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5111
+ # @type RequestId: String
5112
+
5113
+ attr_accessor :RequestId
5114
+
5115
+ def initialize(requestid=nil)
5116
+ @RequestId = requestid
5117
+ end
5118
+
5119
+ def deserialize(params)
5120
+ @RequestId = params['RequestId']
5121
+ end
5122
+ end
5123
+
4771
5124
  # ModifyAccountRemark请求参数结构体
4772
5125
  class ModifyAccountRemarkRequest < TencentCloud::Common::AbstractModel
4773
5126
  # @param DBInstanceId: 实例ID,形如postgres-4wdeb0zv
@@ -5477,6 +5830,36 @@ module TencentCloud
5477
5830
  end
5478
5831
  end
5479
5832
 
5833
+ # 用于修改数据库对象的权限,其中包含了数据库对象描述的数据结构、需要修改的权限列表以及修改的类型等。
5834
+ class ModifyPrivilege < TencentCloud::Common::AbstractModel
5835
+ # @param DatabasePrivilege: 要修改的数据库对象及权限列表
5836
+ # 注意:此字段可能返回 null,表示取不到有效值。
5837
+ # @type DatabasePrivilege: :class:`Tencentcloud::Postgres.v20170312.models.DatabasePrivilege`
5838
+ # @param ModifyType: 修改的方式,当前仅支持grantObject、revokeObject、alterRole。grantObject代表授权、revokeObject代表收回权、alterRole代表修改账号类型。
5839
+ # 注意:此字段可能返回 null,表示取不到有效值。
5840
+ # @type ModifyType: String
5841
+ # @param IsCascade: 当ModifyType为revokeObject才需要此参数,参数为true时,撤销权限会级联撤销。默认为false。
5842
+ # 注意:此字段可能返回 null,表示取不到有效值。
5843
+ # @type IsCascade: Boolean
5844
+
5845
+ attr_accessor :DatabasePrivilege, :ModifyType, :IsCascade
5846
+
5847
+ def initialize(databaseprivilege=nil, modifytype=nil, iscascade=nil)
5848
+ @DatabasePrivilege = databaseprivilege
5849
+ @ModifyType = modifytype
5850
+ @IsCascade = iscascade
5851
+ end
5852
+
5853
+ def deserialize(params)
5854
+ unless params['DatabasePrivilege'].nil?
5855
+ @DatabasePrivilege = DatabasePrivilege.new
5856
+ @DatabasePrivilege.deserialize(params['DatabasePrivilege'])
5857
+ end
5858
+ @ModifyType = params['ModifyType']
5859
+ @IsCascade = params['IsCascade']
5860
+ end
5861
+ end
5862
+
5480
5863
  # ModifyReadOnlyGroupConfig请求参数结构体
5481
5864
  class ModifyReadOnlyGroupConfigRequest < TencentCloud::Common::AbstractModel
5482
5865
  # @param ReadOnlyGroupId: 只读组ID
@@ -7020,6 +7403,42 @@ module TencentCloud
7020
7403
  end
7021
7404
  end
7022
7405
 
7406
+ # UnlockAccount请求参数结构体
7407
+ class UnlockAccountRequest < TencentCloud::Common::AbstractModel
7408
+ # @param DBInstanceId: 实例ID。
7409
+ # @type DBInstanceId: String
7410
+ # @param UserName: 账号名称。
7411
+ # @type UserName: String
7412
+
7413
+ attr_accessor :DBInstanceId, :UserName
7414
+
7415
+ def initialize(dbinstanceid=nil, username=nil)
7416
+ @DBInstanceId = dbinstanceid
7417
+ @UserName = username
7418
+ end
7419
+
7420
+ def deserialize(params)
7421
+ @DBInstanceId = params['DBInstanceId']
7422
+ @UserName = params['UserName']
7423
+ end
7424
+ end
7425
+
7426
+ # UnlockAccount返回参数结构体
7427
+ class UnlockAccountResponse < TencentCloud::Common::AbstractModel
7428
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7429
+ # @type RequestId: String
7430
+
7431
+ attr_accessor :RequestId
7432
+
7433
+ def initialize(requestid=nil)
7434
+ @RequestId = requestid
7435
+ end
7436
+
7437
+ def deserialize(params)
7438
+ @RequestId = params['RequestId']
7439
+ end
7440
+ end
7441
+
7023
7442
  # UpgradeDBInstanceKernelVersion请求参数结构体
7024
7443
  class UpgradeDBInstanceKernelVersionRequest < TencentCloud::Common::AbstractModel
7025
7444
  # @param DBInstanceId: 实例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: 3.0.869
4
+ version: 3.0.870
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-21 00:00:00.000000000 Z
11
+ date: 2024-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common