tencentcloud-sdk-postgres 3.0.1072 → 3.0.1073
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20170312/client.rb +0 -26
- data/lib/v20170312/models.rb +4 -134
- 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: 2f498e95fb64c19d78d510d83ff5a37476e2c331
|
4
|
+
data.tar.gz: 86cddfbc7ed105a492539af689fa9acce2d70891
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96faad94f9d8ee22102c1b1a4f7c6b8fa8ad590865e495346e0e271a1cebf04ca867cf7a47b0ebba420bfddb08fdfdd9a158e61018b2e52a1ec2674221740215
|
7
|
+
data.tar.gz: 58b25504dc8b472043226c96bdd9f5d1082b773d2b741eb3d9c87ce3dfccea92071fca798e77c1ae0968653de14558c36fd9e2ac41fbdac6dd8cd85776c3555f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1073
|
data/lib/v20170312/client.rb
CHANGED
@@ -197,32 +197,6 @@ module TencentCloud
|
|
197
197
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
198
|
end
|
199
199
|
|
200
|
-
# 早期接口,不规范,已提供新接口 CreateInstances 替换
|
201
|
-
|
202
|
-
# 本接口(CreateDBInstances)用于创建一个或者多个PostgreSQL实例,仅发货实例不会进行初始化。本接口已废弃,推荐使用接口[CreateInstances](https://cloud.tencent.com/document/api/409/56107)替代。
|
203
|
-
|
204
|
-
# @param request: Request instance for CreateDBInstances.
|
205
|
-
# @type request: :class:`Tencentcloud::postgres::V20170312::CreateDBInstancesRequest`
|
206
|
-
# @rtype: :class:`Tencentcloud::postgres::V20170312::CreateDBInstancesResponse`
|
207
|
-
def CreateDBInstances(request)
|
208
|
-
body = send_request('CreateDBInstances', request.serialize)
|
209
|
-
response = JSON.parse(body)
|
210
|
-
if response['Response'].key?('Error') == false
|
211
|
-
model = CreateDBInstancesResponse.new
|
212
|
-
model.deserialize(response['Response'])
|
213
|
-
model
|
214
|
-
else
|
215
|
-
code = response['Response']['Error']['Code']
|
216
|
-
message = response['Response']['Error']['Message']
|
217
|
-
reqid = response['Response']['RequestId']
|
218
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
219
|
-
end
|
220
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
221
|
-
raise e
|
222
|
-
rescue StandardError => e
|
223
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
224
|
-
end
|
225
|
-
|
226
200
|
# 此接口用于创建数据库,需指定数据库名及所有者。
|
227
201
|
|
228
202
|
# @param request: Request instance for CreateDatabase.
|
data/lib/v20170312/models.rb
CHANGED
@@ -774,136 +774,6 @@ module TencentCloud
|
|
774
774
|
end
|
775
775
|
end
|
776
776
|
|
777
|
-
# CreateDBInstances请求参数结构体
|
778
|
-
class CreateDBInstancesRequest < TencentCloud::Common::AbstractModel
|
779
|
-
# @param SpecCode: 售卖规格ID。该参数可以通过调用DescribeClasses的返回值中的SpecCode字段来获取。
|
780
|
-
# @type SpecCode: String
|
781
|
-
# @param Storage: 实例容量大小,单位:GB。
|
782
|
-
# @type Storage: Integer
|
783
|
-
# @param InstanceCount: 一次性购买的实例数量。取值1-100
|
784
|
-
# @type InstanceCount: Integer
|
785
|
-
# @param Period: 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值,按量计费模式下该参数传1。
|
786
|
-
# @type Period: Integer
|
787
|
-
# @param Zone: 可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。
|
788
|
-
# @type Zone: String
|
789
|
-
# @param ProjectId: 项目ID。
|
790
|
-
# @type ProjectId: Integer
|
791
|
-
# @param DBVersion: PostgreSQL社区大版本+小版本号。
|
792
|
-
# 一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新小版本号。
|
793
|
-
# @type DBVersion: String
|
794
|
-
# @param InstanceChargeType: 实例计费类型。目前支持:PREPAID(预付费,即包年包月),POSTPAID_BY_HOUR(后付费,即按量计费)。默认值:PREPAID。
|
795
|
-
# @type InstanceChargeType: String
|
796
|
-
# @param AutoVoucher: 是否自动使用代金券。1(是),0(否),默认不使用。
|
797
|
-
# @type AutoVoucher: Integer
|
798
|
-
# @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。
|
799
|
-
# @type VoucherIds: Array
|
800
|
-
# @param VpcId: 私有网络ID。
|
801
|
-
# @type VpcId: String
|
802
|
-
# @param SubnetId: 私有网络子网ID。
|
803
|
-
# @type SubnetId: String
|
804
|
-
# @param AutoRenewFlag: 续费标记:0-正常续费(默认);1-自动续费;
|
805
|
-
# @type AutoRenewFlag: Integer
|
806
|
-
# @param ActivityId: 活动ID
|
807
|
-
# @type ActivityId: Integer
|
808
|
-
# @param Name: 实例名(后续支持)
|
809
|
-
# @type Name: String
|
810
|
-
# @param NeedSupportIpv6: 是否需要支持Ipv6,1:是,0:否
|
811
|
-
# @type NeedSupportIpv6: Integer
|
812
|
-
# @param TagList: 实例需要绑定的Tag信息,默认为空
|
813
|
-
# @type TagList: Array
|
814
|
-
# @param SecurityGroupIds: 安全组id
|
815
|
-
# @type SecurityGroupIds: Array
|
816
|
-
# @param DBMajorVersion: PostgreSQL大版本号(该参数当前必传),版本信息可从[DescribeDBVersions](https://cloud.tencent.com/document/api/409/89018)获取。目前支持10,11,12,13,14,15这几个大版本,详情见[内核版本概述](https://cloud.tencent.com/document/product/409/67018)。
|
817
|
-
# 输入该参数时,会基于此大版本号创建对应的最新小版本的最新内核版本号实例。
|
818
|
-
# @type DBMajorVersion: String
|
819
|
-
# @param DBKernelVersion: PostgreSQL内核版本号。
|
820
|
-
# 一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新内核版本号。
|
821
|
-
# @type DBKernelVersion: String
|
822
|
-
|
823
|
-
attr_accessor :SpecCode, :Storage, :InstanceCount, :Period, :Zone, :ProjectId, :DBVersion, :InstanceChargeType, :AutoVoucher, :VoucherIds, :VpcId, :SubnetId, :AutoRenewFlag, :ActivityId, :Name, :NeedSupportIpv6, :TagList, :SecurityGroupIds, :DBMajorVersion, :DBKernelVersion
|
824
|
-
|
825
|
-
def initialize(speccode=nil, storage=nil, instancecount=nil, period=nil, zone=nil, projectid=nil, dbversion=nil, instancechargetype=nil, autovoucher=nil, voucherids=nil, vpcid=nil, subnetid=nil, autorenewflag=nil, activityid=nil, name=nil, needsupportipv6=nil, taglist=nil, securitygroupids=nil, dbmajorversion=nil, dbkernelversion=nil)
|
826
|
-
@SpecCode = speccode
|
827
|
-
@Storage = storage
|
828
|
-
@InstanceCount = instancecount
|
829
|
-
@Period = period
|
830
|
-
@Zone = zone
|
831
|
-
@ProjectId = projectid
|
832
|
-
@DBVersion = dbversion
|
833
|
-
@InstanceChargeType = instancechargetype
|
834
|
-
@AutoVoucher = autovoucher
|
835
|
-
@VoucherIds = voucherids
|
836
|
-
@VpcId = vpcid
|
837
|
-
@SubnetId = subnetid
|
838
|
-
@AutoRenewFlag = autorenewflag
|
839
|
-
@ActivityId = activityid
|
840
|
-
@Name = name
|
841
|
-
@NeedSupportIpv6 = needsupportipv6
|
842
|
-
@TagList = taglist
|
843
|
-
@SecurityGroupIds = securitygroupids
|
844
|
-
@DBMajorVersion = dbmajorversion
|
845
|
-
@DBKernelVersion = dbkernelversion
|
846
|
-
end
|
847
|
-
|
848
|
-
def deserialize(params)
|
849
|
-
@SpecCode = params['SpecCode']
|
850
|
-
@Storage = params['Storage']
|
851
|
-
@InstanceCount = params['InstanceCount']
|
852
|
-
@Period = params['Period']
|
853
|
-
@Zone = params['Zone']
|
854
|
-
@ProjectId = params['ProjectId']
|
855
|
-
@DBVersion = params['DBVersion']
|
856
|
-
@InstanceChargeType = params['InstanceChargeType']
|
857
|
-
@AutoVoucher = params['AutoVoucher']
|
858
|
-
@VoucherIds = params['VoucherIds']
|
859
|
-
@VpcId = params['VpcId']
|
860
|
-
@SubnetId = params['SubnetId']
|
861
|
-
@AutoRenewFlag = params['AutoRenewFlag']
|
862
|
-
@ActivityId = params['ActivityId']
|
863
|
-
@Name = params['Name']
|
864
|
-
@NeedSupportIpv6 = params['NeedSupportIpv6']
|
865
|
-
unless params['TagList'].nil?
|
866
|
-
@TagList = []
|
867
|
-
params['TagList'].each do |i|
|
868
|
-
tag_tmp = Tag.new
|
869
|
-
tag_tmp.deserialize(i)
|
870
|
-
@TagList << tag_tmp
|
871
|
-
end
|
872
|
-
end
|
873
|
-
@SecurityGroupIds = params['SecurityGroupIds']
|
874
|
-
@DBMajorVersion = params['DBMajorVersion']
|
875
|
-
@DBKernelVersion = params['DBKernelVersion']
|
876
|
-
end
|
877
|
-
end
|
878
|
-
|
879
|
-
# CreateDBInstances返回参数结构体
|
880
|
-
class CreateDBInstancesResponse < TencentCloud::Common::AbstractModel
|
881
|
-
# @param DealNames: 订单号列表。每个实例对应一个订单号。
|
882
|
-
# @type DealNames: Array
|
883
|
-
# @param BillId: 冻结流水号
|
884
|
-
# @type BillId: String
|
885
|
-
# @param DBInstanceIdSet: 创建成功的实例ID集合,只在后付费情景下有返回值
|
886
|
-
# @type DBInstanceIdSet: Array
|
887
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
888
|
-
# @type RequestId: String
|
889
|
-
|
890
|
-
attr_accessor :DealNames, :BillId, :DBInstanceIdSet, :RequestId
|
891
|
-
|
892
|
-
def initialize(dealnames=nil, billid=nil, dbinstanceidset=nil, requestid=nil)
|
893
|
-
@DealNames = dealnames
|
894
|
-
@BillId = billid
|
895
|
-
@DBInstanceIdSet = dbinstanceidset
|
896
|
-
@RequestId = requestid
|
897
|
-
end
|
898
|
-
|
899
|
-
def deserialize(params)
|
900
|
-
@DealNames = params['DealNames']
|
901
|
-
@BillId = params['BillId']
|
902
|
-
@DBInstanceIdSet = params['DBInstanceIdSet']
|
903
|
-
@RequestId = params['RequestId']
|
904
|
-
end
|
905
|
-
end
|
906
|
-
|
907
777
|
# CreateDatabase请求参数结构体
|
908
778
|
class CreateDatabaseRequest < TencentCloud::Common::AbstractModel
|
909
779
|
# @param DBInstanceId: 实例ID,形如postgres-6fego161
|
@@ -1294,8 +1164,8 @@ module TencentCloud
|
|
1294
1164
|
|
1295
1165
|
attr_accessor :Zone, :MasterDBInstanceId, :SpecCode, :Storage, :InstanceCount, :Period, :VpcId, :SubnetId, :InstanceChargeType, :AutoVoucher, :VoucherIds, :AutoRenewFlag, :ProjectId, :ActivityId, :ReadOnlyGroupId, :TagList, :SecurityGroupIds, :NeedSupportIpv6, :Name, :DBVersion, :DedicatedClusterId
|
1296
1166
|
extend Gem::Deprecate
|
1297
|
-
deprecate :DBVersion, :none, 2025,
|
1298
|
-
deprecate :DBVersion=, :none, 2025,
|
1167
|
+
deprecate :DBVersion, :none, 2025, 6
|
1168
|
+
deprecate :DBVersion=, :none, 2025, 6
|
1299
1169
|
|
1300
1170
|
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)
|
1301
1171
|
@Zone = zone
|
@@ -5253,8 +5123,8 @@ module TencentCloud
|
|
5253
5123
|
|
5254
5124
|
attr_accessor :Storage, :Memory, :DBInstanceId, :InstanceChargeType, :Cpu
|
5255
5125
|
extend Gem::Deprecate
|
5256
|
-
deprecate :InstanceChargeType, :none, 2025,
|
5257
|
-
deprecate :InstanceChargeType=, :none, 2025,
|
5126
|
+
deprecate :InstanceChargeType, :none, 2025, 6
|
5127
|
+
deprecate :InstanceChargeType=, :none, 2025, 6
|
5258
5128
|
|
5259
5129
|
def initialize(storage=nil, memory=nil, dbinstanceid=nil, instancechargetype=nil, cpu=nil)
|
5260
5130
|
@Storage = storage
|
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.1073
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|