Java Code Examples for com.google.gson.JsonSyntaxException#getMessage()
The following examples show how to use
com.google.gson.JsonSyntaxException#getMessage() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DayuClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *删除CC防护的访问频率控制规则 * @param req DeleteCCFrequencyRulesRequest * @return DeleteCCFrequencyRulesResponse * @throws TencentCloudSDKException */ public DeleteCCFrequencyRulesResponse DeleteCCFrequencyRules(DeleteCCFrequencyRulesRequest req) throws TencentCloudSDKException{ JsonResponseModel<DeleteCCFrequencyRulesResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<DeleteCCFrequencyRulesResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DeleteCCFrequencyRules"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 2
Source File: DayuClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *获取DDoS攻击事件详情 * @param req DescribeDDoSEvInfoRequest * @return DescribeDDoSEvInfoResponse * @throws TencentCloudSDKException */ public DescribeDDoSEvInfoResponse DescribeDDoSEvInfo(DescribeDDoSEvInfoRequest req) throws TencentCloudSDKException{ JsonResponseModel<DescribeDDoSEvInfoResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<DescribeDDoSEvInfoResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeDDoSEvInfo"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 3
Source File: TsfClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *无 * @param req DescribePkgsRequest * @return DescribePkgsResponse * @throws TencentCloudSDKException */ public DescribePkgsResponse DescribePkgs(DescribePkgsRequest req) throws TencentCloudSDKException{ JsonResponseModel<DescribePkgsResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<DescribePkgsResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribePkgs"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 4
Source File: TsfClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *创建命名空间 * @param req CreateNamespaceRequest * @return CreateNamespaceResponse * @throws TencentCloudSDKException */ public CreateNamespaceResponse CreateNamespace(CreateNamespaceRequest req) throws TencentCloudSDKException{ JsonResponseModel<CreateNamespaceResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<CreateNamespaceResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "CreateNamespace"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 5
Source File: IottidClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *查询指定订单的可空发的白盒密钥数量 * @param req DescribeAvailableLibCountRequest * @return DescribeAvailableLibCountResponse * @throws TencentCloudSDKException */ public DescribeAvailableLibCountResponse DescribeAvailableLibCount(DescribeAvailableLibCountRequest req) throws TencentCloudSDKException{ JsonResponseModel<DescribeAvailableLibCountResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<DescribeAvailableLibCountResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeAvailableLibCount"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 6
Source File: TiaClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *部署模型,用以对外提供服务。有两种部署模式:`无服务器模式` 和 `集群模式`。`无服务器模式` 下,模型文件被部署到无服务器云函数,即 [SCF](https://cloud.tencent.com/product/scf),用户可以在其控制台上进一步操作。`集群模式` 下,模型文件被部署到 TI-A 的计算集群中。 * @param req CreateModelRequest * @return CreateModelResponse * @throws TencentCloudSDKException */ public CreateModelResponse CreateModel(CreateModelRequest req) throws TencentCloudSDKException{ JsonResponseModel<CreateModelResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<CreateModelResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "CreateModel"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 7
Source File: YoumallClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *查询指定某一卖场的用户信息 * @param req DescribePersonRequest * @return DescribePersonResponse * @throws TencentCloudSDKException */ public DescribePersonResponse DescribePerson(DescribePersonRequest req) throws TencentCloudSDKException{ JsonResponseModel<DescribePersonResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<DescribePersonResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribePerson"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 8
Source File: GaapClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *本接口(DescribeResourcesByTag)用于根据标签来查询对应的资源信息,包括通道,通道组和源站。 * @param req DescribeResourcesByTagRequest * @return DescribeResourcesByTagResponse * @throws TencentCloudSDKException */ public DescribeResourcesByTagResponse DescribeResourcesByTag(DescribeResourcesByTagRequest req) throws TencentCloudSDKException{ JsonResponseModel<DescribeResourcesByTagResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<DescribeResourcesByTagResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeResourcesByTag"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 9
Source File: DtsClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *本接口(DescribeSubscribeConf)用于查询订阅实例配置 * @param req DescribeSubscribeConfRequest * @return DescribeSubscribeConfResponse * @throws TencentCloudSDKException */ public DescribeSubscribeConfResponse DescribeSubscribeConf(DescribeSubscribeConfRequest req) throws TencentCloudSDKException{ JsonResponseModel<DescribeSubscribeConfResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<DescribeSubscribeConfResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeSubscribeConf"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 10
Source File: MongodbClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *本接口(DescribeClientConnections)用于查询实例客户端连接信息,包括连接IP和连接数量。 * @param req DescribeClientConnectionsRequest * @return DescribeClientConnectionsResponse * @throws TencentCloudSDKException */ public DescribeClientConnectionsResponse DescribeClientConnections(DescribeClientConnectionsRequest req) throws TencentCloudSDKException{ JsonResponseModel<DescribeClientConnectionsResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<DescribeClientConnectionsResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeClientConnections"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 11
Source File: CdbClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *本接口(ModifyDBInstanceVipVport)用于修改云数据库实例的IP和端口号,也可进行基础网络转 VPC 网络和 VPC 网络下的子网变更。 * @param req ModifyDBInstanceVipVportRequest * @return ModifyDBInstanceVipVportResponse * @throws TencentCloudSDKException */ public ModifyDBInstanceVipVportResponse ModifyDBInstanceVipVport(ModifyDBInstanceVipVportRequest req) throws TencentCloudSDKException{ JsonResponseModel<ModifyDBInstanceVipVportResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<ModifyDBInstanceVipVportResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "ModifyDBInstanceVipVport"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 12
Source File: TicsClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *提供文件相关的基础信息以及与攻击事件(团伙、家族)、恶意文件等相关联信息。 * @param req DescribeFileInfoRequest * @return DescribeFileInfoResponse * @throws TencentCloudSDKException */ public DescribeFileInfoResponse DescribeFileInfo(DescribeFileInfoRequest req) throws TencentCloudSDKException{ JsonResponseModel<DescribeFileInfoResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<DescribeFileInfoResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeFileInfo"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 13
Source File: YunjingClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *本接口 (DescribeWeeklyReports) 用于获取周报列表数据。 * @param req DescribeWeeklyReportsRequest * @return DescribeWeeklyReportsResponse * @throws TencentCloudSDKException */ public DescribeWeeklyReportsResponse DescribeWeeklyReports(DescribeWeeklyReportsRequest req) throws TencentCloudSDKException{ JsonResponseModel<DescribeWeeklyReportsResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<DescribeWeeklyReportsResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeWeeklyReports"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 14
Source File: DayuClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *获取七层转发规则 * @param req DescribleL7RulesRequest * @return DescribleL7RulesResponse * @throws TencentCloudSDKException */ public DescribleL7RulesResponse DescribleL7Rules(DescribleL7RulesRequest req) throws TencentCloudSDKException{ JsonResponseModel<DescribleL7RulesResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<DescribleL7RulesResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribleL7Rules"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 15
Source File: DcdbClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *本接口(DescribeDatabaseTable)用于查询云数据库实例的表信息。 * @param req DescribeDatabaseTableRequest * @return DescribeDatabaseTableResponse * @throws TencentCloudSDKException */ public DescribeDatabaseTableResponse DescribeDatabaseTable(DescribeDatabaseTableRequest req) throws TencentCloudSDKException{ JsonResponseModel<DescribeDatabaseTableResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<DescribeDatabaseTableResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeDatabaseTable"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 16
Source File: ClbClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *针对SnatPro负载均衡,这个接口用于添加SnatIp,如果负载均衡没有开启SnatPro,添加SnatIp后会自动开启 * @param req CreateLoadBalancerSnatIpsRequest * @return CreateLoadBalancerSnatIpsResponse * @throws TencentCloudSDKException */ public CreateLoadBalancerSnatIpsResponse CreateLoadBalancerSnatIps(CreateLoadBalancerSnatIpsRequest req) throws TencentCloudSDKException{ JsonResponseModel<CreateLoadBalancerSnatIpsResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<CreateLoadBalancerSnatIpsResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "CreateLoadBalancerSnatIps"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 17
Source File: SoeClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *指定主题关键词词汇评估,分析语音与关键词的切合程度,可指定多个关键词,支持中文英文同时评测。分片传输时,尽量保证纯异步调用,即不等待上一个分片的传输结果边录边传,这样可以尽可能早的提供音频数据。音频源目前仅支持16k采样率16bit单声道编码方式,如有不一致可能导致评估不准确或失败。 * @param req KeywordEvaluateRequest * @return KeywordEvaluateResponse * @throws TencentCloudSDKException */ public KeywordEvaluateResponse KeywordEvaluate(KeywordEvaluateRequest req) throws TencentCloudSDKException{ JsonResponseModel<KeywordEvaluateResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<KeywordEvaluateResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "KeywordEvaluate"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 18
Source File: YunjingClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *此接口(DescribeUsualLoginPlaces)用于查询常用登录地。 * @param req DescribeUsualLoginPlacesRequest * @return DescribeUsualLoginPlacesResponse * @throws TencentCloudSDKException */ public DescribeUsualLoginPlacesResponse DescribeUsualLoginPlaces(DescribeUsualLoginPlacesRequest req) throws TencentCloudSDKException{ JsonResponseModel<DescribeUsualLoginPlacesResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<DescribeUsualLoginPlacesResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeUsualLoginPlaces"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 19
Source File: YunjingClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *编辑反弹Shell规则 * @param req EditReverseShellRuleRequest * @return EditReverseShellRuleResponse * @throws TencentCloudSDKException */ public EditReverseShellRuleResponse EditReverseShellRule(EditReverseShellRuleRequest req) throws TencentCloudSDKException{ JsonResponseModel<EditReverseShellRuleResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<EditReverseShellRuleResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "EditReverseShellRule"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }
Example 20
Source File: VodClient.java From tencentcloud-sdk-java with Apache License 2.0 | 5 votes |
/** *该接口用于批量删除关键词样本。 * @param req DeleteWordSamplesRequest * @return DeleteWordSamplesResponse * @throws TencentCloudSDKException */ public DeleteWordSamplesResponse DeleteWordSamples(DeleteWordSamplesRequest req) throws TencentCloudSDKException{ JsonResponseModel<DeleteWordSamplesResponse> rsp = null; try { Type type = new TypeToken<JsonResponseModel<DeleteWordSamplesResponse>>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DeleteWordSamples"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; }