tencentcloud-sdk-postgres 3.0.557 → 3.0.559

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: cfce4e45762add29a4b7007aba26bcaf8e1e4606
4
- data.tar.gz: 57ddbfb4c0554109b164cb79d41b5d813a6cc8a6
3
+ metadata.gz: 1f04ce2653886c6b4010e85a9eebef41430568ab
4
+ data.tar.gz: 7ccbe0c5efde30ae3bdd6188f33eed00d6b9c4ca
5
5
  SHA512:
6
- metadata.gz: 8bb8bc631c11753edeaf5ebd277b950d09503e3ff1b8dab0198f366248a2dfaf68de1c6fd84e8d14bd28f83fd973214c5246a8bccc69deda85aa3090648c62aa
7
- data.tar.gz: 5090dab03203ae98dec040daf86c6b14887b5b8498e6f3c77ad20437624617707315f553708267cb7f667799e13e781541524b51bb127134996099d1bfb7e5d4
6
+ metadata.gz: 02cbdb95240e762b45251ad6339f388d428cd21bc35f538a78112423a2d34d907ef08a11f19bee6aff215ab4b3ac745cf8abe164c5062a4d2817b372a0980464
7
+ data.tar.gz: 3ea36c1701ebce889b7b23ba484bd54de1c746ff154a86a1cc85fec9d95a5bffd9e0736fc29800548361dfd2a59b06ae3ce4f8b3e07fd21ef466c4e5fd0639bd
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.557
1
+ 3.0.559
@@ -557,6 +557,30 @@ module TencentCloud
557
557
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
558
  end
559
559
 
560
+ # 本接口(DescribeBackupDownloadRestriction)用于查询备份文件下载限制。
561
+
562
+ # @param request: Request instance for DescribeBackupDownloadRestriction.
563
+ # @type request: :class:`Tencentcloud::postgres::V20170312::DescribeBackupDownloadRestrictionRequest`
564
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::DescribeBackupDownloadRestrictionResponse`
565
+ def DescribeBackupDownloadRestriction(request)
566
+ body = send_request('DescribeBackupDownloadRestriction', request.serialize)
567
+ response = JSON.parse(body)
568
+ if response['Response'].key?('Error') == false
569
+ model = DescribeBackupDownloadRestrictionResponse.new
570
+ model.deserialize(response['Response'])
571
+ model
572
+ else
573
+ code = response['Response']['Error']['Code']
574
+ message = response['Response']['Error']['Message']
575
+ reqid = response['Response']['RequestId']
576
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
577
+ end
578
+ rescue TencentCloud::Common::TencentCloudSDKException => e
579
+ raise e
580
+ rescue StandardError => e
581
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
+ end
583
+
560
584
  # 本接口 (DescribeBackupDownloadURL) 用于获取备份下载链接。
561
585
 
562
586
  # @param request: Request instance for DescribeBackupDownloadURL.
@@ -1493,6 +1517,30 @@ module TencentCloud
1493
1517
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1494
1518
  end
1495
1519
 
1520
+ # 本接口(ModifyBackupDownloadRestriction)用于修改备份文件下载限制。
1521
+
1522
+ # @param request: Request instance for ModifyBackupDownloadRestriction.
1523
+ # @type request: :class:`Tencentcloud::postgres::V20170312::ModifyBackupDownloadRestrictionRequest`
1524
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::ModifyBackupDownloadRestrictionResponse`
1525
+ def ModifyBackupDownloadRestriction(request)
1526
+ body = send_request('ModifyBackupDownloadRestriction', request.serialize)
1527
+ response = JSON.parse(body)
1528
+ if response['Response'].key?('Error') == false
1529
+ model = ModifyBackupDownloadRestrictionResponse.new
1530
+ model.deserialize(response['Response'])
1531
+ model
1532
+ else
1533
+ code = response['Response']['Error']['Code']
1534
+ message = response['Response']['Error']['Message']
1535
+ reqid = response['Response']['RequestId']
1536
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1537
+ end
1538
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1539
+ raise e
1540
+ rescue StandardError => e
1541
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1542
+ end
1543
+
1496
1544
  # 本接口 (ModifyBackupPlan) 用于实例备份计划的修改,默认是在每天的凌晨开始全量备份,备份保留时长是7天。可以根据此接口指定时间进行实例的备份。
1497
1545
 
1498
1546
  # @param request: Request instance for ModifyBackupPlan.
@@ -1541,6 +1589,30 @@ module TencentCloud
1541
1589
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1542
1590
  end
1543
1591
 
1592
+ # 支持实例的计费类型转换(目前仅支持按量计费转包年包月)
1593
+
1594
+ # @param request: Request instance for ModifyDBInstanceChargeType.
1595
+ # @type request: :class:`Tencentcloud::postgres::V20170312::ModifyDBInstanceChargeTypeRequest`
1596
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::ModifyDBInstanceChargeTypeResponse`
1597
+ def ModifyDBInstanceChargeType(request)
1598
+ body = send_request('ModifyDBInstanceChargeType', request.serialize)
1599
+ response = JSON.parse(body)
1600
+ if response['Response'].key?('Error') == false
1601
+ model = ModifyDBInstanceChargeTypeResponse.new
1602
+ model.deserialize(response['Response'])
1603
+ model
1604
+ else
1605
+ code = response['Response']['Error']['Code']
1606
+ message = response['Response']['Error']['Message']
1607
+ reqid = response['Response']['RequestId']
1608
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1609
+ end
1610
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1611
+ raise e
1612
+ rescue StandardError => e
1613
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1614
+ end
1615
+
1544
1616
  # 本接口(ModifyDBInstanceDeployment)用于修改节点可用区部署方式,仅支持主实例。
1545
1617
 
1546
1618
  # @param request: Request instance for ModifyDBInstanceDeployment.
@@ -2046,6 +2046,57 @@ module TencentCloud
2046
2046
  end
2047
2047
  end
2048
2048
 
2049
+ # DescribeBackupDownloadRestriction请求参数结构体
2050
+ class DescribeBackupDownloadRestrictionRequest < TencentCloud::Common::AbstractModel
2051
+
2052
+
2053
+ def initialize()
2054
+ end
2055
+
2056
+ def deserialize(params)
2057
+ end
2058
+ end
2059
+
2060
+ # DescribeBackupDownloadRestriction返回参数结构体
2061
+ class DescribeBackupDownloadRestrictionResponse < TencentCloud::Common::AbstractModel
2062
+ # @param RestrictionType: 备份文件下载限制类型,NONE 无限制,内外网都可以下载;INTRANET 只允许内网下载;CUSTOMIZE 自定义限制下载的vpc或ip。
2063
+ # @type RestrictionType: String
2064
+ # @param VpcRestrictionEffect: vpc限制效力,ALLOW 允许;DENY 拒绝。
2065
+ # 注意:此字段可能返回 null,表示取不到有效值。
2066
+ # @type VpcRestrictionEffect: String
2067
+ # @param VpcIdSet: 允许或拒绝下载备份文件的vpcId列表。
2068
+ # 注意:此字段可能返回 null,表示取不到有效值。
2069
+ # @type VpcIdSet: Array
2070
+ # @param IpRestrictionEffect: ip限制效力,ALLOW 允许;DENY 拒绝。
2071
+ # 注意:此字段可能返回 null,表示取不到有效值。
2072
+ # @type IpRestrictionEffect: String
2073
+ # @param IpSet: 允许或拒绝下载备份文件的ip列表。
2074
+ # 注意:此字段可能返回 null,表示取不到有效值。
2075
+ # @type IpSet: Array
2076
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2077
+ # @type RequestId: String
2078
+
2079
+ attr_accessor :RestrictionType, :VpcRestrictionEffect, :VpcIdSet, :IpRestrictionEffect, :IpSet, :RequestId
2080
+
2081
+ def initialize(restrictiontype=nil, vpcrestrictioneffect=nil, vpcidset=nil, iprestrictioneffect=nil, ipset=nil, requestid=nil)
2082
+ @RestrictionType = restrictiontype
2083
+ @VpcRestrictionEffect = vpcrestrictioneffect
2084
+ @VpcIdSet = vpcidset
2085
+ @IpRestrictionEffect = iprestrictioneffect
2086
+ @IpSet = ipset
2087
+ @RequestId = requestid
2088
+ end
2089
+
2090
+ def deserialize(params)
2091
+ @RestrictionType = params['RestrictionType']
2092
+ @VpcRestrictionEffect = params['VpcRestrictionEffect']
2093
+ @VpcIdSet = params['VpcIdSet']
2094
+ @IpRestrictionEffect = params['IpRestrictionEffect']
2095
+ @IpSet = params['IpSet']
2096
+ @RequestId = params['RequestId']
2097
+ end
2098
+ end
2099
+
2049
2100
  # DescribeBackupDownloadURL请求参数结构体
2050
2101
  class DescribeBackupDownloadURLRequest < TencentCloud::Common::AbstractModel
2051
2102
  # @param DBInstanceId: 实例ID。
@@ -4527,6 +4578,54 @@ module TencentCloud
4527
4578
  end
4528
4579
  end
4529
4580
 
4581
+ # ModifyBackupDownloadRestriction请求参数结构体
4582
+ class ModifyBackupDownloadRestrictionRequest < TencentCloud::Common::AbstractModel
4583
+ # @param RestrictionType: 备份文件下载限制类型,NONE 无限制,内外网都可以下载;INTRANET 只允许内网下载;CUSTOMIZE 自定义限制下载的vpc或ip。
4584
+ # @type RestrictionType: String
4585
+ # @param VpcRestrictionEffect: vpc限制效力,ALLOW 允许;DENY 拒绝。
4586
+ # @type VpcRestrictionEffect: String
4587
+ # @param VpcIdSet: 允许或拒绝下载备份文件的vpcId列表。
4588
+ # @type VpcIdSet: Array
4589
+ # @param IpRestrictionEffect: ip限制效力,ALLOW 允许;DENY 拒绝。
4590
+ # @type IpRestrictionEffect: String
4591
+ # @param IpSet: 允许或拒绝下载备份文件的ip列表。
4592
+ # @type IpSet: Array
4593
+
4594
+ attr_accessor :RestrictionType, :VpcRestrictionEffect, :VpcIdSet, :IpRestrictionEffect, :IpSet
4595
+
4596
+ def initialize(restrictiontype=nil, vpcrestrictioneffect=nil, vpcidset=nil, iprestrictioneffect=nil, ipset=nil)
4597
+ @RestrictionType = restrictiontype
4598
+ @VpcRestrictionEffect = vpcrestrictioneffect
4599
+ @VpcIdSet = vpcidset
4600
+ @IpRestrictionEffect = iprestrictioneffect
4601
+ @IpSet = ipset
4602
+ end
4603
+
4604
+ def deserialize(params)
4605
+ @RestrictionType = params['RestrictionType']
4606
+ @VpcRestrictionEffect = params['VpcRestrictionEffect']
4607
+ @VpcIdSet = params['VpcIdSet']
4608
+ @IpRestrictionEffect = params['IpRestrictionEffect']
4609
+ @IpSet = params['IpSet']
4610
+ end
4611
+ end
4612
+
4613
+ # ModifyBackupDownloadRestriction返回参数结构体
4614
+ class ModifyBackupDownloadRestrictionResponse < TencentCloud::Common::AbstractModel
4615
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4616
+ # @type RequestId: String
4617
+
4618
+ attr_accessor :RequestId
4619
+
4620
+ def initialize(requestid=nil)
4621
+ @RequestId = requestid
4622
+ end
4623
+
4624
+ def deserialize(params)
4625
+ @RequestId = params['RequestId']
4626
+ end
4627
+ end
4628
+
4530
4629
  # ModifyBackupPlan请求参数结构体
4531
4630
  class ModifyBackupPlanRequest < TencentCloud::Common::AbstractModel
4532
4631
  # @param DBInstanceId: 实例ID
@@ -4615,6 +4714,58 @@ module TencentCloud
4615
4714
  end
4616
4715
  end
4617
4716
 
4717
+ # ModifyDBInstanceChargeType请求参数结构体
4718
+ class ModifyDBInstanceChargeTypeRequest < TencentCloud::Common::AbstractModel
4719
+ # @param DBInstanceId: 实例ID,形如postgres-6fego161
4720
+ # @type DBInstanceId: String
4721
+ # @param InstanceChargeType: 实例计费类型。目前支持:PREPAID(预付费,即包年包月),POSTPAID_BY_HOUR(后付费,即按量计费)。默认值:PREPAID。
4722
+ # @type InstanceChargeType: String
4723
+ # @param Period: 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值,按量计费模式下该参数传1。
4724
+ # @type Period: Integer
4725
+ # @param AutoRenewFlag: 续费标记:0-正常续费(默认);1-自动续费。
4726
+ # @type AutoRenewFlag: Integer
4727
+ # @param AutoVoucher: 是否自动使用代金券,1是,0否,默认不使用
4728
+ # @type AutoVoucher: Integer
4729
+
4730
+ attr_accessor :DBInstanceId, :InstanceChargeType, :Period, :AutoRenewFlag, :AutoVoucher
4731
+
4732
+ def initialize(dbinstanceid=nil, instancechargetype=nil, period=nil, autorenewflag=nil, autovoucher=nil)
4733
+ @DBInstanceId = dbinstanceid
4734
+ @InstanceChargeType = instancechargetype
4735
+ @Period = period
4736
+ @AutoRenewFlag = autorenewflag
4737
+ @AutoVoucher = autovoucher
4738
+ end
4739
+
4740
+ def deserialize(params)
4741
+ @DBInstanceId = params['DBInstanceId']
4742
+ @InstanceChargeType = params['InstanceChargeType']
4743
+ @Period = params['Period']
4744
+ @AutoRenewFlag = params['AutoRenewFlag']
4745
+ @AutoVoucher = params['AutoVoucher']
4746
+ end
4747
+ end
4748
+
4749
+ # ModifyDBInstanceChargeType返回参数结构体
4750
+ class ModifyDBInstanceChargeTypeResponse < TencentCloud::Common::AbstractModel
4751
+ # @param DealName: 订单名
4752
+ # @type DealName: String
4753
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4754
+ # @type RequestId: String
4755
+
4756
+ attr_accessor :DealName, :RequestId
4757
+
4758
+ def initialize(dealname=nil, requestid=nil)
4759
+ @DealName = dealname
4760
+ @RequestId = requestid
4761
+ end
4762
+
4763
+ def deserialize(params)
4764
+ @DealName = params['DealName']
4765
+ @RequestId = params['RequestId']
4766
+ end
4767
+ end
4768
+
4618
4769
  # ModifyDBInstanceDeployment请求参数结构体
4619
4770
  class ModifyDBInstanceDeploymentRequest < TencentCloud::Common::AbstractModel
4620
4771
  # @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.557
4
+ version: 3.0.559
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-21 00:00:00.000000000 Z
11
+ date: 2023-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common