tencentcloud-sdk-postgres 3.0.671 → 3.0.673

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: 011820e90e9540d6e36259094944f3a2f843a226
4
- data.tar.gz: d51dc4c4f9834d9143f6305d71b758322e8d2436
3
+ metadata.gz: 6b1309d352e2a14ae5bf9c69a29c6603e9f4ff92
4
+ data.tar.gz: 27bd40dd4c8e96731e6775d931c43a86e8b37cbd
5
5
  SHA512:
6
- metadata.gz: 6755e915d23162c4e0abde1da68133a2aeee412f01886405e13f53a3cd44860fbf9b3149e82f68c484055b9271b9c792f0b9716211a9f569c5288daabb93df10
7
- data.tar.gz: dcc5eb0787b52607a5d66c750341fa23306a5217fcc288b67216f3cb7a7591d22871fd58975b6c23dac96fc0fc53c8d956087e4da827c561a2c3a952936d9564
6
+ metadata.gz: a98b94bbf28cd4194df78847f1e4dfda8a9aa0a81653560d9bc534beb9b33cbb96da0155961c21735fd0dcfd3ffafb9d32300f5e445d5f924ad3630e59a84fdf
7
+ data.tar.gz: 39ffa90950f54cdd63bfc6eb93dccd8c74da15238a3a2f43ef78528e87531db924af05e5af41eba43387d64915ea0a16aa73b5f594ace1550cfdcc6470cc2981
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.671
1
+ 3.0.673
@@ -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.671
4
+ version: 3.0.673
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-10-07 00:00:00.000000000 Z
11
+ date: 2023-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common