tencentcloud-sdk-postgres 3.0.670 → 3.0.672

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: cdd4e7a447e336e85dca44ddddfd926f1fe19f98
4
- data.tar.gz: b148e917d4962b164858aa301b63f88bdd960e50
3
+ metadata.gz: d37d64114d7dbe3f824785128fe5d8c101b1a60b
4
+ data.tar.gz: b9958c7f95b2ecedf03eef4073f8c86f1202420a
5
5
  SHA512:
6
- metadata.gz: 062abd817a428a5286396af2e0f97ee0d974c0ced13bfd14a2111a31fb400b5151449f28339588593dbb6f6a4c53cb7cdbc72954534ab99e0e1f065404f8ae13
7
- data.tar.gz: 35a0c9b94b984678ed8119a612ed0476af497c961ebf47ce77d87eeef1c5b3023fd3627aebc0da82aab04be5f2031850da4025fb2f52fdb2eff2a8309bec734e
6
+ metadata.gz: a1efbdb0dbffa2e619befa0183cf443c269643eb15a1c6c1defb5ee5f2307d1f15186d384501922bb085801a5acacc0bf7397af64c2f7597505c3f7a5c53cd6d
7
+ data.tar.gz: ff4ce7e9443eabce5fb0c170879c155dec4185bb6f28424e7aeb58390e014004c136d01825ec3dcd5635182691861f88f6781dce2c17f3cc94c7cfb3c0c7915e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.670
1
+ 3.0.672
@@ -2174,6 +2174,30 @@ module TencentCloud
2174
2174
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2175
2175
  end
2176
2176
 
2177
+ # 本接口(UpgradeDBInstanceMajorVersion)用于升级实例内核大版本,例如从PostgreSQL 12升级到PostgreSQL 15。
2178
+
2179
+ # @param request: Request instance for UpgradeDBInstanceMajorVersion.
2180
+ # @type request: :class:`Tencentcloud::postgres::V20170312::UpgradeDBInstanceMajorVersionRequest`
2181
+ # @rtype: :class:`Tencentcloud::postgres::V20170312::UpgradeDBInstanceMajorVersionResponse`
2182
+ def UpgradeDBInstanceMajorVersion(request)
2183
+ body = send_request('UpgradeDBInstanceMajorVersion', request.serialize)
2184
+ response = JSON.parse(body)
2185
+ if response['Response'].key?('Error') == false
2186
+ model = UpgradeDBInstanceMajorVersionResponse.new
2187
+ model.deserialize(response['Response'])
2188
+ model
2189
+ else
2190
+ code = response['Response']['Error']['Code']
2191
+ message = response['Response']['Error']['Message']
2192
+ reqid = response['Response']['RequestId']
2193
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2194
+ end
2195
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2196
+ raise e
2197
+ rescue StandardError => e
2198
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2199
+ end
2200
+
2177
2201
 
2178
2202
  end
2179
2203
  end
@@ -6981,6 +6981,84 @@ module TencentCloud
6981
6981
  end
6982
6982
  end
6983
6983
 
6984
+ # UpgradeDBInstanceMajorVersion请求参数结构体
6985
+ class UpgradeDBInstanceMajorVersionRequest < TencentCloud::Common::AbstractModel
6986
+ # @param DBInstanceId: 实例ID。
6987
+ # @type DBInstanceId: String
6988
+ # @param TargetDBKernelVersion: 目标内核版本号,可以通过API DescribeDBVersions获取可以升级的目标内核版本号。
6989
+ # @type TargetDBKernelVersion: String
6990
+ # @param UpgradeCheck: 是否为校验模式,若UpgradeCheck为True,表示仅进行内核版本兼容性检查,不会进行实质性的升级操作,对原实例无影响。检查结果可以通过升级日志查看。
6991
+ # @type UpgradeCheck: Boolean
6992
+ # @param BackupBeforeUpgrade: 升级前备份选项。True,表示升级前需要创建全量备份,False,表示升级前不需要创建全量备份。当实例已有备份集可以恢复到升级前的状态时,可选择False,否则需要指定为True。UpgradeCheck为True时,此参数无效。
6993
+ # @type BackupBeforeUpgrade: Boolean
6994
+ # @param StatisticsRefreshOption: 统计信息收集选项,对主例运行 ANALYZE 以在升级后更新系统统计信息。可选值包括,
6995
+ # 0:不需要收集统计信息;
6996
+ # 1:实例恢复写之前收集统计信息;
6997
+ # 3:实例恢复写之后收集统计信息。
6998
+ # UpgradeCheck为True时,此参数无效。
6999
+ # @type StatisticsRefreshOption: Integer
7000
+ # @param ExtensionUpgradeOption: 插件升级选项,pg_upgrade不会升级任何插件,需要在升级完成后在创建过插件的库上执行"ALTER EXTENSION UPDATE"。发起升级实例大版本时可以指定在实例恢复写前/后是否需要升级任务自动升级插件版本。可选值包括:
7001
+ # 0:不需要自动升级插件;
7002
+ # 1:恢复写之前升级插件;
7003
+ # 2:恢复写之后升级插件。
7004
+ # UpgradeCheck为True时,此参数无效。
7005
+ # @type ExtensionUpgradeOption: Integer
7006
+ # @param UpgradeTimeOption: 升级时间选项,升级过程中会有一段时间实例只读,并会有一次秒级闪断,发起升级时需要选择这段影响的时间窗。可选值包括:
7007
+ # 0:自动执行,不需要指定时间窗;
7008
+ # 1:指定本次升级任务的时间窗,通过参数UpgradeTimeBegin和UpgradeTimeEnd设置;
7009
+ # 2:在实例运维时间窗内执行。
7010
+ # UpgradeCheck为True时,此参数无效。
7011
+ # @type UpgradeTimeOption: Integer
7012
+ # @param UpgradeTimeBegin: 升级时间窗开始时间,时间格式:HH:MM:SS,例如:01:00:00。当UpgradeTimeOption为1时,该参数有效。
7013
+ # UpgradeCheck为True时,此参数无效。
7014
+ # @type UpgradeTimeBegin: String
7015
+ # @param UpgradeTimeEnd: 升级时间窗截止时间,时间格式:HH:MM:SS,例如:02:00:00。当UpgradeTimeOption为1时,该参数有效。
7016
+ # UpgradeCheck为True时,此参数无效。
7017
+ # @type UpgradeTimeEnd: String
7018
+
7019
+ attr_accessor :DBInstanceId, :TargetDBKernelVersion, :UpgradeCheck, :BackupBeforeUpgrade, :StatisticsRefreshOption, :ExtensionUpgradeOption, :UpgradeTimeOption, :UpgradeTimeBegin, :UpgradeTimeEnd
7020
+
7021
+ def initialize(dbinstanceid=nil, targetdbkernelversion=nil, upgradecheck=nil, backupbeforeupgrade=nil, statisticsrefreshoption=nil, extensionupgradeoption=nil, upgradetimeoption=nil, upgradetimebegin=nil, upgradetimeend=nil)
7022
+ @DBInstanceId = dbinstanceid
7023
+ @TargetDBKernelVersion = targetdbkernelversion
7024
+ @UpgradeCheck = upgradecheck
7025
+ @BackupBeforeUpgrade = backupbeforeupgrade
7026
+ @StatisticsRefreshOption = statisticsrefreshoption
7027
+ @ExtensionUpgradeOption = extensionupgradeoption
7028
+ @UpgradeTimeOption = upgradetimeoption
7029
+ @UpgradeTimeBegin = upgradetimebegin
7030
+ @UpgradeTimeEnd = upgradetimeend
7031
+ end
7032
+
7033
+ def deserialize(params)
7034
+ @DBInstanceId = params['DBInstanceId']
7035
+ @TargetDBKernelVersion = params['TargetDBKernelVersion']
7036
+ @UpgradeCheck = params['UpgradeCheck']
7037
+ @BackupBeforeUpgrade = params['BackupBeforeUpgrade']
7038
+ @StatisticsRefreshOption = params['StatisticsRefreshOption']
7039
+ @ExtensionUpgradeOption = params['ExtensionUpgradeOption']
7040
+ @UpgradeTimeOption = params['UpgradeTimeOption']
7041
+ @UpgradeTimeBegin = params['UpgradeTimeBegin']
7042
+ @UpgradeTimeEnd = params['UpgradeTimeEnd']
7043
+ end
7044
+ end
7045
+
7046
+ # UpgradeDBInstanceMajorVersion返回参数结构体
7047
+ class UpgradeDBInstanceMajorVersionResponse < TencentCloud::Common::AbstractModel
7048
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7049
+ # @type RequestId: String
7050
+
7051
+ attr_accessor :RequestId
7052
+
7053
+ def initialize(requestid=nil)
7054
+ @RequestId = requestid
7055
+ end
7056
+
7057
+ def deserialize(params)
7058
+ @RequestId = params['RequestId']
7059
+ end
7060
+ end
7061
+
6984
7062
  # UpgradeDBInstance请求参数结构体
6985
7063
  class UpgradeDBInstanceRequest < TencentCloud::Common::AbstractModel
6986
7064
  # @param Memory: 升级后的实例内存大小,单位GB
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.670
4
+ version: 3.0.672
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-09-28 00:00:00.000000000 Z
11
+ date: 2023-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common