def ModifySubscribeVipVport(self, request): """本接口(ModifySubscribeVipVport)用于修改数据订阅实例的IP和端口号 :param request: Request instance for ModifySubscribeVipVport. :type request: :class:`tencentcloud.dts.v20180330.models.ModifySubscribeVipVportRequest` :rtype: :class:`tencentcloud.dts.v20180330.models.ModifySubscribeVipVportResponse` """ try: params = request._serialize() headers = request.headers body = self.call("ModifySubscribeVipVport", params, headers=headers) response = json.loads(body) if "Error" not in response["Response"]: model = models.ModifySubscribeVipVportResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)
def ModifySubscribeVipVport(self, request): """This API is used to modify the IP and port number of a data subscription instance. :param request: Request instance for ModifySubscribeVipVport. :type request: :class:`tencentcloud.dts.v20180330.models.ModifySubscribeVipVportRequest` :rtype: :class:`tencentcloud.dts.v20180330.models.ModifySubscribeVipVportResponse` """ try: params = request._serialize() body = self.call("ModifySubscribeVipVport", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.ModifySubscribeVipVportResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)