lib/v20170312/client.rb in tencentcloud-sdk-mariadb-3.0.574 vs lib/v20170312/client.rb in tencentcloud-sdk-mariadb-3.0.575

- old
+ new

@@ -1723,9 +1723,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 本接口(UpgradeDedicatedDBInstance)用于扩容独享云数据库实例。 + + # @param request: Request instance for UpgradeDedicatedDBInstance. + # @type request: :class:`Tencentcloud::mariadb::V20170312::UpgradeDedicatedDBInstanceRequest` + # @rtype: :class:`Tencentcloud::mariadb::V20170312::UpgradeDedicatedDBInstanceResponse` + def UpgradeDedicatedDBInstance(request) + body = send_request('UpgradeDedicatedDBInstance', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = UpgradeDedicatedDBInstanceResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + end end end end \ No newline at end of file