tencentcloud-sdk-postgres 3.0.911 → 3.0.913
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 +72 -0
- data/lib/v20170312/models.rb +302 -19
- 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: 0ebd2d07eb0c6dbb75b650634e51baad957c6bd8
|
4
|
+
data.tar.gz: 053bd24571ce3b893af0ada75f1193d2b07a36bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3865cd43ffc23c4dea7353032eda1a353f0e1583ccdae72439ca1a284156b0dc8e0cdb74abe3a99308f9b5a969a3fb41fa41b96d57e678d27cd6b78b2d00130
|
7
|
+
data.tar.gz: 26bdb4044d7ed19f507b617a242ac9110d9cfccc05e06479d924864f33c67c25b881c1598a4cc0c030b157017b180a1a21b9cdf8764adf0534916444308e66d9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.913
|
data/lib/v20170312/client.rb
CHANGED
@@ -221,6 +221,30 @@ module TencentCloud
|
|
221
221
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
222
|
end
|
223
223
|
|
224
|
+
# 此接口用于创建数据库,需指定数据库名及所有者。
|
225
|
+
|
226
|
+
# @param request: Request instance for CreateDatabase.
|
227
|
+
# @type request: :class:`Tencentcloud::postgres::V20170312::CreateDatabaseRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::postgres::V20170312::CreateDatabaseResponse`
|
229
|
+
def CreateDatabase(request)
|
230
|
+
body = send_request('CreateDatabase', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = CreateDatabaseResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
224
248
|
# 本接口 (CreateInstances) 用于创建一个或者多个PostgreSQL实例,通过此接口创建的实例无需进行初始化,可直接使用。
|
225
249
|
# <li>实例创建成功后将自动开机启动,实例状态变为“运行中”。</li>
|
226
250
|
# <li>预付费实例的购买会预先扣除本次实例购买所需金额,按小时后付费实例购买会预先冻结本次实例购买一小时内所需金额,在调用本接口前请确保账户余额充足。</li>
|
@@ -1113,6 +1137,30 @@ module TencentCloud
|
|
1113
1137
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1114
1138
|
end
|
1115
1139
|
|
1140
|
+
# 查询专属集群
|
1141
|
+
|
1142
|
+
# @param request: Request instance for DescribeDedicatedClusters.
|
1143
|
+
# @type request: :class:`Tencentcloud::postgres::V20170312::DescribeDedicatedClustersRequest`
|
1144
|
+
# @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeDedicatedClustersResponse`
|
1145
|
+
def DescribeDedicatedClusters(request)
|
1146
|
+
body = send_request('DescribeDedicatedClusters', request.serialize)
|
1147
|
+
response = JSON.parse(body)
|
1148
|
+
if response['Response'].key?('Error') == false
|
1149
|
+
model = DescribeDedicatedClustersResponse.new
|
1150
|
+
model.deserialize(response['Response'])
|
1151
|
+
model
|
1152
|
+
else
|
1153
|
+
code = response['Response']['Error']['Code']
|
1154
|
+
message = response['Response']['Error']['Message']
|
1155
|
+
reqid = response['Response']['RequestId']
|
1156
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1157
|
+
end
|
1158
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1159
|
+
raise e
|
1160
|
+
rescue StandardError => e
|
1161
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1162
|
+
end
|
1163
|
+
|
1116
1164
|
# 本接口(DescribeDefaultParameters)主要用于查询某个数据库版本和引擎支持的所有参数。
|
1117
1165
|
|
1118
1166
|
# @param request: Request instance for DescribeDefaultParameters.
|
@@ -1979,6 +2027,30 @@ module TencentCloud
|
|
1979
2027
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1980
2028
|
end
|
1981
2029
|
|
2030
|
+
# 修改数据库所有者
|
2031
|
+
|
2032
|
+
# @param request: Request instance for ModifyDatabaseOwner.
|
2033
|
+
# @type request: :class:`Tencentcloud::postgres::V20170312::ModifyDatabaseOwnerRequest`
|
2034
|
+
# @rtype: :class:`Tencentcloud::postgres::V20170312::ModifyDatabaseOwnerResponse`
|
2035
|
+
def ModifyDatabaseOwner(request)
|
2036
|
+
body = send_request('ModifyDatabaseOwner', request.serialize)
|
2037
|
+
response = JSON.parse(body)
|
2038
|
+
if response['Response'].key?('Error') == false
|
2039
|
+
model = ModifyDatabaseOwnerResponse.new
|
2040
|
+
model.deserialize(response['Response'])
|
2041
|
+
model
|
2042
|
+
else
|
2043
|
+
code = response['Response']['Error']['Code']
|
2044
|
+
message = response['Response']['Error']['Message']
|
2045
|
+
reqid = response['Response']['RequestId']
|
2046
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2047
|
+
end
|
2048
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2049
|
+
raise e
|
2050
|
+
rescue StandardError => e
|
2051
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2052
|
+
end
|
2053
|
+
|
1982
2054
|
# 本接口(ModifyParameterTemplate)主要用于修改参数模板名称,描述等配置,也可用于管理参数模板中的参数列表。
|
1983
2055
|
|
1984
2056
|
# @param request: Request instance for ModifyParameterTemplate.
|
data/lib/v20170312/models.rb
CHANGED
@@ -856,6 +856,58 @@ module TencentCloud
|
|
856
856
|
end
|
857
857
|
end
|
858
858
|
|
859
|
+
# CreateDatabase请求参数结构体
|
860
|
+
class CreateDatabaseRequest < TencentCloud::Common::AbstractModel
|
861
|
+
# @param DBInstanceId: 实例ID,形如postgres-6fego161
|
862
|
+
# @type DBInstanceId: String
|
863
|
+
# @param DatabaseName: 创建的数据库名
|
864
|
+
# @type DatabaseName: String
|
865
|
+
# @param DatabaseOwner: 数据库的所有者
|
866
|
+
# @type DatabaseOwner: String
|
867
|
+
# @param Encoding: 数据库的字符编码
|
868
|
+
# @type Encoding: String
|
869
|
+
# @param Collate: 数据库的排序规则
|
870
|
+
# @type Collate: String
|
871
|
+
# @param Ctype: 数据库的字符分类
|
872
|
+
# @type Ctype: String
|
873
|
+
|
874
|
+
attr_accessor :DBInstanceId, :DatabaseName, :DatabaseOwner, :Encoding, :Collate, :Ctype
|
875
|
+
|
876
|
+
def initialize(dbinstanceid=nil, databasename=nil, databaseowner=nil, encoding=nil, collate=nil, ctype=nil)
|
877
|
+
@DBInstanceId = dbinstanceid
|
878
|
+
@DatabaseName = databasename
|
879
|
+
@DatabaseOwner = databaseowner
|
880
|
+
@Encoding = encoding
|
881
|
+
@Collate = collate
|
882
|
+
@Ctype = ctype
|
883
|
+
end
|
884
|
+
|
885
|
+
def deserialize(params)
|
886
|
+
@DBInstanceId = params['DBInstanceId']
|
887
|
+
@DatabaseName = params['DatabaseName']
|
888
|
+
@DatabaseOwner = params['DatabaseOwner']
|
889
|
+
@Encoding = params['Encoding']
|
890
|
+
@Collate = params['Collate']
|
891
|
+
@Ctype = params['Ctype']
|
892
|
+
end
|
893
|
+
end
|
894
|
+
|
895
|
+
# CreateDatabase返回参数结构体
|
896
|
+
class CreateDatabaseResponse < TencentCloud::Common::AbstractModel
|
897
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
898
|
+
# @type RequestId: String
|
899
|
+
|
900
|
+
attr_accessor :RequestId
|
901
|
+
|
902
|
+
def initialize(requestid=nil)
|
903
|
+
@RequestId = requestid
|
904
|
+
end
|
905
|
+
|
906
|
+
def deserialize(params)
|
907
|
+
@RequestId = params['RequestId']
|
908
|
+
end
|
909
|
+
end
|
910
|
+
|
859
911
|
# CreateInstances请求参数结构体
|
860
912
|
class CreateInstancesRequest < TencentCloud::Common::AbstractModel
|
861
913
|
# @param Zone: 实例所属主可用区, 如:ap-guangzhou-3;若需要支持多可用区,在DBNodeSet.N字段中进行添加主可用区和备可用区信息;
|
@@ -1142,28 +1194,28 @@ module TencentCloud
|
|
1142
1194
|
# @param InstanceCount: 购买实例数量,取值范围:[1-10]。一次性购买支持最大数量10个,若超过该数量,可进行多次调用进行购买。
|
1143
1195
|
# @type InstanceCount: Integer
|
1144
1196
|
# @param Period: 购买时长,单位:月。
|
1145
|
-
# <li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36
|
1146
|
-
# <li>后付费:只支持1
|
1197
|
+
# <li>预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36</li>
|
1198
|
+
# <li>后付费:只支持1</li>
|
1147
1199
|
# @type Period: Integer
|
1148
|
-
# @param VpcId: 私有网络ID,形如vpc-xxxxxxxx
|
1200
|
+
# @param VpcId: 私有网络ID,形如vpc-xxxxxxxx(该参数当前必传)。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcEx](https://cloud.tencent.com/document/api/215/1372) ,从接口返回中的unVpcId字段获取。
|
1149
1201
|
# @type VpcId: String
|
1150
|
-
# @param SubnetId: 私有网络子网ID,形如subnet-xxxxxxxx
|
1202
|
+
# @param SubnetId: 私有网络子网ID,形如subnet-xxxxxxxx(该参数当前必传)。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。
|
1151
1203
|
# @type SubnetId: String
|
1152
1204
|
# @param InstanceChargeType: 实例计费类型,目前支持:
|
1153
|
-
# <li>PREPAID
|
1154
|
-
# <li>POSTPAID_BY_HOUR
|
1205
|
+
# <li>PREPAID:预付费,即包年包月。</li>
|
1206
|
+
# <li>POSTPAID_BY_HOUR:后付费,即按量计费。</li>
|
1155
1207
|
# 默认值:PREPAID。如果主实例为后付费,只读实例必须也为后付费。
|
1156
1208
|
# @type InstanceChargeType: String
|
1157
1209
|
# @param AutoVoucher: 是否自动使用代金券:
|
1158
|
-
# <li>0
|
1159
|
-
# <li>1
|
1210
|
+
# <li>0:否</li>
|
1211
|
+
# <li>1:是</li>
|
1160
1212
|
# 默认值:0
|
1161
1213
|
# @type AutoVoucher: Integer
|
1162
1214
|
# @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。
|
1163
1215
|
# @type VoucherIds: Array
|
1164
1216
|
# @param AutoRenewFlag: 续费标记:
|
1165
|
-
# <li>0
|
1166
|
-
# <li>1
|
1217
|
+
# <li>0:手动续费</li>
|
1218
|
+
# <li>1:自动续费</li>
|
1167
1219
|
# 默认值:0
|
1168
1220
|
# @type AutoRenewFlag: Integer
|
1169
1221
|
# @param ProjectId: 项目ID。
|
@@ -1177,18 +1229,20 @@ module TencentCloud
|
|
1177
1229
|
# @param SecurityGroupIds: 实例所属安全组,该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。
|
1178
1230
|
# @type SecurityGroupIds: Array
|
1179
1231
|
# @param NeedSupportIpv6: 是否需要支持Ipv6:
|
1180
|
-
# <li>0
|
1181
|
-
# <li>1
|
1232
|
+
# <li>0:否</li>
|
1233
|
+
# <li>1:是</li>
|
1182
1234
|
# 默认值:0
|
1183
1235
|
# @type NeedSupportIpv6: Integer
|
1184
1236
|
# @param Name: 实例名(后续支持)
|
1185
1237
|
# @type Name: String
|
1186
1238
|
# @param DBVersion: 【废弃】不再需要指定,内核版本号与主实例保持一致
|
1187
1239
|
# @type DBVersion: String
|
1240
|
+
# @param DedicatedClusterId: 专属集群ID
|
1241
|
+
# @type DedicatedClusterId: String
|
1188
1242
|
|
1189
|
-
attr_accessor :Zone, :MasterDBInstanceId, :SpecCode, :Storage, :InstanceCount, :Period, :VpcId, :SubnetId, :InstanceChargeType, :AutoVoucher, :VoucherIds, :AutoRenewFlag, :ProjectId, :ActivityId, :ReadOnlyGroupId, :TagList, :SecurityGroupIds, :NeedSupportIpv6, :Name, :DBVersion
|
1243
|
+
attr_accessor :Zone, :MasterDBInstanceId, :SpecCode, :Storage, :InstanceCount, :Period, :VpcId, :SubnetId, :InstanceChargeType, :AutoVoucher, :VoucherIds, :AutoRenewFlag, :ProjectId, :ActivityId, :ReadOnlyGroupId, :TagList, :SecurityGroupIds, :NeedSupportIpv6, :Name, :DBVersion, :DedicatedClusterId
|
1190
1244
|
|
1191
|
-
def initialize(zone=nil, masterdbinstanceid=nil, speccode=nil, storage=nil, instancecount=nil, period=nil, vpcid=nil, subnetid=nil, instancechargetype=nil, autovoucher=nil, voucherids=nil, autorenewflag=nil, projectid=nil, activityid=nil, readonlygroupid=nil, taglist=nil, securitygroupids=nil, needsupportipv6=nil, name=nil, dbversion=nil)
|
1245
|
+
def initialize(zone=nil, masterdbinstanceid=nil, speccode=nil, storage=nil, instancecount=nil, period=nil, vpcid=nil, subnetid=nil, instancechargetype=nil, autovoucher=nil, voucherids=nil, autorenewflag=nil, projectid=nil, activityid=nil, readonlygroupid=nil, taglist=nil, securitygroupids=nil, needsupportipv6=nil, name=nil, dbversion=nil, dedicatedclusterid=nil)
|
1192
1246
|
@Zone = zone
|
1193
1247
|
@MasterDBInstanceId = masterdbinstanceid
|
1194
1248
|
@SpecCode = speccode
|
@@ -1209,6 +1263,7 @@ module TencentCloud
|
|
1209
1263
|
@NeedSupportIpv6 = needsupportipv6
|
1210
1264
|
@Name = name
|
1211
1265
|
@DBVersion = dbversion
|
1266
|
+
@DedicatedClusterId = dedicatedclusterid
|
1212
1267
|
end
|
1213
1268
|
|
1214
1269
|
def deserialize(params)
|
@@ -1235,6 +1290,7 @@ module TencentCloud
|
|
1235
1290
|
@NeedSupportIpv6 = params['NeedSupportIpv6']
|
1236
1291
|
@Name = params['Name']
|
1237
1292
|
@DBVersion = params['DBVersion']
|
1293
|
+
@DedicatedClusterId = params['DedicatedClusterId']
|
1238
1294
|
end
|
1239
1295
|
end
|
1240
1296
|
|
@@ -1815,7 +1871,7 @@ module TencentCloud
|
|
1815
1871
|
end
|
1816
1872
|
end
|
1817
1873
|
|
1818
|
-
#
|
1874
|
+
# 描述实例节点信息,包括节点类型、节点所在可用区、节点所在专属集群。
|
1819
1875
|
class DBNode < TencentCloud::Common::AbstractModel
|
1820
1876
|
# @param Role: 节点类型,值可以为:
|
1821
1877
|
# Primary,代表主节点;
|
@@ -1823,17 +1879,74 @@ module TencentCloud
|
|
1823
1879
|
# @type Role: String
|
1824
1880
|
# @param Zone: 节点所在可用区,例如 ap-guangzhou-1。
|
1825
1881
|
# @type Zone: String
|
1882
|
+
# @param DedicatedClusterId: 专属集群ID
|
1883
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1884
|
+
# @type DedicatedClusterId: String
|
1826
1885
|
|
1827
|
-
attr_accessor :Role, :Zone
|
1886
|
+
attr_accessor :Role, :Zone, :DedicatedClusterId
|
1828
1887
|
|
1829
|
-
def initialize(role=nil, zone=nil)
|
1888
|
+
def initialize(role=nil, zone=nil, dedicatedclusterid=nil)
|
1830
1889
|
@Role = role
|
1831
1890
|
@Zone = zone
|
1891
|
+
@DedicatedClusterId = dedicatedclusterid
|
1832
1892
|
end
|
1833
1893
|
|
1834
1894
|
def deserialize(params)
|
1835
1895
|
@Role = params['Role']
|
1836
1896
|
@Zone = params['Zone']
|
1897
|
+
@DedicatedClusterId = params['DedicatedClusterId']
|
1898
|
+
end
|
1899
|
+
end
|
1900
|
+
|
1901
|
+
# 描述数据库详细信息,包括所有者、字符编码等
|
1902
|
+
class Database < TencentCloud::Common::AbstractModel
|
1903
|
+
# @param DatabaseName: 数据库名
|
1904
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1905
|
+
# @type DatabaseName: String
|
1906
|
+
# @param DatabaseOwner: 数据库所有者
|
1907
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1908
|
+
# @type DatabaseOwner: String
|
1909
|
+
# @param Encoding: 数据库字符编码
|
1910
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1911
|
+
# @type Encoding: String
|
1912
|
+
# @param Collate: 数据库排序规则
|
1913
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1914
|
+
# @type Collate: String
|
1915
|
+
# @param Ctype: 数据库字符分类
|
1916
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1917
|
+
# @type Ctype: String
|
1918
|
+
# @param AllowConn: 数据库是否允许连接
|
1919
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1920
|
+
# @type AllowConn: Boolean
|
1921
|
+
# @param ConnLimit: 数据库最大连接数,-1表示无限制
|
1922
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1923
|
+
# @type ConnLimit: Integer
|
1924
|
+
# @param Privileges: 数据库权限列表
|
1925
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1926
|
+
# @type Privileges: String
|
1927
|
+
|
1928
|
+
attr_accessor :DatabaseName, :DatabaseOwner, :Encoding, :Collate, :Ctype, :AllowConn, :ConnLimit, :Privileges
|
1929
|
+
|
1930
|
+
def initialize(databasename=nil, databaseowner=nil, encoding=nil, collate=nil, ctype=nil, allowconn=nil, connlimit=nil, privileges=nil)
|
1931
|
+
@DatabaseName = databasename
|
1932
|
+
@DatabaseOwner = databaseowner
|
1933
|
+
@Encoding = encoding
|
1934
|
+
@Collate = collate
|
1935
|
+
@Ctype = ctype
|
1936
|
+
@AllowConn = allowconn
|
1937
|
+
@ConnLimit = connlimit
|
1938
|
+
@Privileges = privileges
|
1939
|
+
end
|
1940
|
+
|
1941
|
+
def deserialize(params)
|
1942
|
+
@DatabaseName = params['DatabaseName']
|
1943
|
+
@DatabaseOwner = params['DatabaseOwner']
|
1944
|
+
@Encoding = params['Encoding']
|
1945
|
+
@Collate = params['Collate']
|
1946
|
+
@Ctype = params['Ctype']
|
1947
|
+
@AllowConn = params['AllowConn']
|
1948
|
+
@ConnLimit = params['ConnLimit']
|
1949
|
+
@Privileges = params['Privileges']
|
1837
1950
|
end
|
1838
1951
|
end
|
1839
1952
|
|
@@ -1899,6 +2012,73 @@ module TencentCloud
|
|
1899
2012
|
end
|
1900
2013
|
end
|
1901
2014
|
|
2015
|
+
# 专属集群相关信息,用于查询用户的专属集群列表
|
2016
|
+
class DedicatedCluster < TencentCloud::Common::AbstractModel
|
2017
|
+
# @param DedicatedClusterId: 专属集群ID
|
2018
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2019
|
+
# @type DedicatedClusterId: String
|
2020
|
+
# @param Name: 专属集群名称
|
2021
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2022
|
+
# @type Name: String
|
2023
|
+
# @param Zone: 专属集群所在可用区
|
2024
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2025
|
+
# @type Zone: String
|
2026
|
+
# @param StandbyDedicatedClusterSet: 灾备集群
|
2027
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2028
|
+
# @type StandbyDedicatedClusterSet: Array
|
2029
|
+
# @param InstanceCount: 实例数量
|
2030
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2031
|
+
# @type InstanceCount: Integer
|
2032
|
+
# @param CpuTotal: Cpu总量
|
2033
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2034
|
+
# @type CpuTotal: Integer
|
2035
|
+
# @param CpuAvailable: Cpu可用数量
|
2036
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2037
|
+
# @type CpuAvailable: Integer
|
2038
|
+
# @param MemTotal: 内存总量
|
2039
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2040
|
+
# @type MemTotal: Integer
|
2041
|
+
# @param MemAvailable: 内存可用量
|
2042
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2043
|
+
# @type MemAvailable: Integer
|
2044
|
+
# @param DiskTotal: 磁盘总量
|
2045
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2046
|
+
# @type DiskTotal: Integer
|
2047
|
+
# @param DiskAvailable: 磁盘可用量
|
2048
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2049
|
+
# @type DiskAvailable: Integer
|
2050
|
+
|
2051
|
+
attr_accessor :DedicatedClusterId, :Name, :Zone, :StandbyDedicatedClusterSet, :InstanceCount, :CpuTotal, :CpuAvailable, :MemTotal, :MemAvailable, :DiskTotal, :DiskAvailable
|
2052
|
+
|
2053
|
+
def initialize(dedicatedclusterid=nil, name=nil, zone=nil, standbydedicatedclusterset=nil, instancecount=nil, cputotal=nil, cpuavailable=nil, memtotal=nil, memavailable=nil, disktotal=nil, diskavailable=nil)
|
2054
|
+
@DedicatedClusterId = dedicatedclusterid
|
2055
|
+
@Name = name
|
2056
|
+
@Zone = zone
|
2057
|
+
@StandbyDedicatedClusterSet = standbydedicatedclusterset
|
2058
|
+
@InstanceCount = instancecount
|
2059
|
+
@CpuTotal = cputotal
|
2060
|
+
@CpuAvailable = cpuavailable
|
2061
|
+
@MemTotal = memtotal
|
2062
|
+
@MemAvailable = memavailable
|
2063
|
+
@DiskTotal = disktotal
|
2064
|
+
@DiskAvailable = diskavailable
|
2065
|
+
end
|
2066
|
+
|
2067
|
+
def deserialize(params)
|
2068
|
+
@DedicatedClusterId = params['DedicatedClusterId']
|
2069
|
+
@Name = params['Name']
|
2070
|
+
@Zone = params['Zone']
|
2071
|
+
@StandbyDedicatedClusterSet = params['StandbyDedicatedClusterSet']
|
2072
|
+
@InstanceCount = params['InstanceCount']
|
2073
|
+
@CpuTotal = params['CpuTotal']
|
2074
|
+
@CpuAvailable = params['CpuAvailable']
|
2075
|
+
@MemTotal = params['MemTotal']
|
2076
|
+
@MemAvailable = params['MemAvailable']
|
2077
|
+
@DiskTotal = params['DiskTotal']
|
2078
|
+
@DiskAvailable = params['DiskAvailable']
|
2079
|
+
end
|
2080
|
+
end
|
2081
|
+
|
1902
2082
|
# DeleteAccount请求参数结构体
|
1903
2083
|
class DeleteAccountRequest < TencentCloud::Common::AbstractModel
|
1904
2084
|
# @param DBInstanceId: 实例ID。
|
@@ -3190,6 +3370,7 @@ module TencentCloud
|
|
3190
3370
|
# db-tag-key:按照标签键过滤,类型为string
|
3191
3371
|
# db-private-ip: 按照实例私有网络IP过滤,类型为string
|
3192
3372
|
# db-public-address: 按照实例外网地址过滤,类型为string
|
3373
|
+
# db-dedicated-cluster-id: 按照私有集群Id过滤,类型为string
|
3193
3374
|
# @type Filters: Array
|
3194
3375
|
# @param Limit: 每页显示数量,取值范围为1-100,默认为返回10条。
|
3195
3376
|
# @type Limit: Integer
|
@@ -3536,20 +3717,82 @@ module TencentCloud
|
|
3536
3717
|
# @type Items: Array
|
3537
3718
|
# @param TotalCount: 数据库总数
|
3538
3719
|
# @type TotalCount: Integer
|
3720
|
+
# @param Databases: 数据库详情列表
|
3721
|
+
# @type Databases: Array
|
3539
3722
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3540
3723
|
# @type RequestId: String
|
3541
3724
|
|
3542
|
-
attr_accessor :Items, :TotalCount, :RequestId
|
3725
|
+
attr_accessor :Items, :TotalCount, :Databases, :RequestId
|
3543
3726
|
|
3544
|
-
def initialize(items=nil, totalcount=nil, requestid=nil)
|
3727
|
+
def initialize(items=nil, totalcount=nil, databases=nil, requestid=nil)
|
3545
3728
|
@Items = items
|
3546
3729
|
@TotalCount = totalcount
|
3730
|
+
@Databases = databases
|
3547
3731
|
@RequestId = requestid
|
3548
3732
|
end
|
3549
3733
|
|
3550
3734
|
def deserialize(params)
|
3551
3735
|
@Items = params['Items']
|
3552
3736
|
@TotalCount = params['TotalCount']
|
3737
|
+
unless params['Databases'].nil?
|
3738
|
+
@Databases = []
|
3739
|
+
params['Databases'].each do |i|
|
3740
|
+
database_tmp = Database.new
|
3741
|
+
database_tmp.deserialize(i)
|
3742
|
+
@Databases << database_tmp
|
3743
|
+
end
|
3744
|
+
end
|
3745
|
+
@RequestId = params['RequestId']
|
3746
|
+
end
|
3747
|
+
end
|
3748
|
+
|
3749
|
+
# DescribeDedicatedClusters请求参数结构体
|
3750
|
+
class DescribeDedicatedClustersRequest < TencentCloud::Common::AbstractModel
|
3751
|
+
# @param Filters: 按照一个或者多个过滤条件进行查询,目前支持的过滤条件有:
|
3752
|
+
# dedicated-cluster-id: 按照专属集群ID筛选,类型为string
|
3753
|
+
# @type Filters: Array
|
3754
|
+
|
3755
|
+
attr_accessor :Filters
|
3756
|
+
|
3757
|
+
def initialize(filters=nil)
|
3758
|
+
@Filters = filters
|
3759
|
+
end
|
3760
|
+
|
3761
|
+
def deserialize(params)
|
3762
|
+
unless params['Filters'].nil?
|
3763
|
+
@Filters = []
|
3764
|
+
params['Filters'].each do |i|
|
3765
|
+
filter_tmp = Filter.new
|
3766
|
+
filter_tmp.deserialize(i)
|
3767
|
+
@Filters << filter_tmp
|
3768
|
+
end
|
3769
|
+
end
|
3770
|
+
end
|
3771
|
+
end
|
3772
|
+
|
3773
|
+
# DescribeDedicatedClusters返回参数结构体
|
3774
|
+
class DescribeDedicatedClustersResponse < TencentCloud::Common::AbstractModel
|
3775
|
+
# @param DedicatedClusterSet: 专属集群信息
|
3776
|
+
# @type DedicatedClusterSet: Array
|
3777
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3778
|
+
# @type RequestId: String
|
3779
|
+
|
3780
|
+
attr_accessor :DedicatedClusterSet, :RequestId
|
3781
|
+
|
3782
|
+
def initialize(dedicatedclusterset=nil, requestid=nil)
|
3783
|
+
@DedicatedClusterSet = dedicatedclusterset
|
3784
|
+
@RequestId = requestid
|
3785
|
+
end
|
3786
|
+
|
3787
|
+
def deserialize(params)
|
3788
|
+
unless params['DedicatedClusterSet'].nil?
|
3789
|
+
@DedicatedClusterSet = []
|
3790
|
+
params['DedicatedClusterSet'].each do |i|
|
3791
|
+
dedicatedcluster_tmp = DedicatedCluster.new
|
3792
|
+
dedicatedcluster_tmp.deserialize(i)
|
3793
|
+
@DedicatedClusterSet << dedicatedcluster_tmp
|
3794
|
+
end
|
3795
|
+
end
|
3553
3796
|
@RequestId = params['RequestId']
|
3554
3797
|
end
|
3555
3798
|
end
|
@@ -5775,6 +6018,46 @@ module TencentCloud
|
|
5775
6018
|
end
|
5776
6019
|
end
|
5777
6020
|
|
6021
|
+
# ModifyDatabaseOwner请求参数结构体
|
6022
|
+
class ModifyDatabaseOwnerRequest < TencentCloud::Common::AbstractModel
|
6023
|
+
# @param DBInstanceId: 实例ID
|
6024
|
+
# @type DBInstanceId: String
|
6025
|
+
# @param DatabaseName: 数据库名称
|
6026
|
+
# @type DatabaseName: String
|
6027
|
+
# @param DatabaseOwner: 数据库新所有者
|
6028
|
+
# @type DatabaseOwner: String
|
6029
|
+
|
6030
|
+
attr_accessor :DBInstanceId, :DatabaseName, :DatabaseOwner
|
6031
|
+
|
6032
|
+
def initialize(dbinstanceid=nil, databasename=nil, databaseowner=nil)
|
6033
|
+
@DBInstanceId = dbinstanceid
|
6034
|
+
@DatabaseName = databasename
|
6035
|
+
@DatabaseOwner = databaseowner
|
6036
|
+
end
|
6037
|
+
|
6038
|
+
def deserialize(params)
|
6039
|
+
@DBInstanceId = params['DBInstanceId']
|
6040
|
+
@DatabaseName = params['DatabaseName']
|
6041
|
+
@DatabaseOwner = params['DatabaseOwner']
|
6042
|
+
end
|
6043
|
+
end
|
6044
|
+
|
6045
|
+
# ModifyDatabaseOwner返回参数结构体
|
6046
|
+
class ModifyDatabaseOwnerResponse < TencentCloud::Common::AbstractModel
|
6047
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6048
|
+
# @type RequestId: String
|
6049
|
+
|
6050
|
+
attr_accessor :RequestId
|
6051
|
+
|
6052
|
+
def initialize(requestid=nil)
|
6053
|
+
@RequestId = requestid
|
6054
|
+
end
|
6055
|
+
|
6056
|
+
def deserialize(params)
|
6057
|
+
@RequestId = params['RequestId']
|
6058
|
+
end
|
6059
|
+
end
|
6060
|
+
|
5778
6061
|
# ModifyParameterTemplate请求参数结构体
|
5779
6062
|
class ModifyParameterTemplateRequest < TencentCloud::Common::AbstractModel
|
5780
6063
|
# @param TemplateId: 参数模板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.
|
4
|
+
version: 3.0.913
|
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-09-
|
11
|
+
date: 2024-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|