tencentcloud-sdk-postgres 3.0.912 → 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 +24 -0
- data/lib/v20170312/models.rb +131 -4
- 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
@@ -1137,6 +1137,30 @@ module TencentCloud
|
|
1137
1137
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1138
1138
|
end
|
1139
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
|
+
|
1140
1164
|
# 本接口(DescribeDefaultParameters)主要用于查询某个数据库版本和引擎支持的所有参数。
|
1141
1165
|
|
1142
1166
|
# @param request: Request instance for DescribeDefaultParameters.
|
data/lib/v20170312/models.rb
CHANGED
@@ -1237,10 +1237,12 @@ module TencentCloud
|
|
1237
1237
|
# @type Name: String
|
1238
1238
|
# @param DBVersion: 【废弃】不再需要指定,内核版本号与主实例保持一致
|
1239
1239
|
# @type DBVersion: String
|
1240
|
+
# @param DedicatedClusterId: 专属集群ID
|
1241
|
+
# @type DedicatedClusterId: String
|
1240
1242
|
|
1241
|
-
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
|
1242
1244
|
|
1243
|
-
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)
|
1244
1246
|
@Zone = zone
|
1245
1247
|
@MasterDBInstanceId = masterdbinstanceid
|
1246
1248
|
@SpecCode = speccode
|
@@ -1261,6 +1263,7 @@ module TencentCloud
|
|
1261
1263
|
@NeedSupportIpv6 = needsupportipv6
|
1262
1264
|
@Name = name
|
1263
1265
|
@DBVersion = dbversion
|
1266
|
+
@DedicatedClusterId = dedicatedclusterid
|
1264
1267
|
end
|
1265
1268
|
|
1266
1269
|
def deserialize(params)
|
@@ -1287,6 +1290,7 @@ module TencentCloud
|
|
1287
1290
|
@NeedSupportIpv6 = params['NeedSupportIpv6']
|
1288
1291
|
@Name = params['Name']
|
1289
1292
|
@DBVersion = params['DBVersion']
|
1293
|
+
@DedicatedClusterId = params['DedicatedClusterId']
|
1290
1294
|
end
|
1291
1295
|
end
|
1292
1296
|
|
@@ -1875,17 +1879,22 @@ module TencentCloud
|
|
1875
1879
|
# @type Role: String
|
1876
1880
|
# @param Zone: 节点所在可用区,例如 ap-guangzhou-1。
|
1877
1881
|
# @type Zone: String
|
1882
|
+
# @param DedicatedClusterId: 专属集群ID
|
1883
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1884
|
+
# @type DedicatedClusterId: String
|
1878
1885
|
|
1879
|
-
attr_accessor :Role, :Zone
|
1886
|
+
attr_accessor :Role, :Zone, :DedicatedClusterId
|
1880
1887
|
|
1881
|
-
def initialize(role=nil, zone=nil)
|
1888
|
+
def initialize(role=nil, zone=nil, dedicatedclusterid=nil)
|
1882
1889
|
@Role = role
|
1883
1890
|
@Zone = zone
|
1891
|
+
@DedicatedClusterId = dedicatedclusterid
|
1884
1892
|
end
|
1885
1893
|
|
1886
1894
|
def deserialize(params)
|
1887
1895
|
@Role = params['Role']
|
1888
1896
|
@Zone = params['Zone']
|
1897
|
+
@DedicatedClusterId = params['DedicatedClusterId']
|
1889
1898
|
end
|
1890
1899
|
end
|
1891
1900
|
|
@@ -2003,6 +2012,73 @@ module TencentCloud
|
|
2003
2012
|
end
|
2004
2013
|
end
|
2005
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
|
+
|
2006
2082
|
# DeleteAccount请求参数结构体
|
2007
2083
|
class DeleteAccountRequest < TencentCloud::Common::AbstractModel
|
2008
2084
|
# @param DBInstanceId: 实例ID。
|
@@ -3670,6 +3746,57 @@ module TencentCloud
|
|
3670
3746
|
end
|
3671
3747
|
end
|
3672
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
|
3796
|
+
@RequestId = params['RequestId']
|
3797
|
+
end
|
3798
|
+
end
|
3799
|
+
|
3673
3800
|
# DescribeDefaultParameters请求参数结构体
|
3674
3801
|
class DescribeDefaultParametersRequest < TencentCloud::Common::AbstractModel
|
3675
3802
|
# @param DBMajorVersion: 数据库版本,大版本号,例如11,12,13
|
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
|