lib/v20180608/client.rb in tencentcloud-sdk-tcb-3.0.430 vs lib/v20180608/client.rb in tencentcloud-sdk-tcb-3.0.431
- old
+ new
@@ -1686,9 +1686,33 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 修改日志主题
+
+ # @param request: Request instance for ModifyClsTopic.
+ # @type request: :class:`Tencentcloud::tcb::V20180608::ModifyClsTopicRequest`
+ # @rtype: :class:`Tencentcloud::tcb::V20180608::ModifyClsTopicResponse`
+ def ModifyClsTopic(request)
+ body = send_request('ModifyClsTopic', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = ModifyClsTopicResponse.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
+
# 修改数据库权限
# @param request: Request instance for ModifyDatabaseACL.
# @type request: :class:`Tencentcloud::tcb::V20180608::ModifyDatabaseACLRequest`
# @rtype: :class:`Tencentcloud::tcb::V20180608::ModifyDatabaseACLResponse`
\ No newline at end of file