Пример #1
0
        /// <summary>
        /// 获取数据源详情列表
        /// </summary>
        /// <param name="req"><see cref="DescribeDataSourceListRequest"/></param>
        /// <returns><see cref="DescribeDataSourceListResponse"/></returns>
        public DescribeDataSourceListResponse DescribeDataSourceListSync(DescribeDataSourceListRequest req)
        {
            JsonResponseModel <DescribeDataSourceListResponse> rsp = null;

            try
            {
                var strResp = this.InternalRequestSync(req, "DescribeDataSourceList");
                rsp = JsonConvert.DeserializeObject <JsonResponseModel <DescribeDataSourceListResponse> >(strResp);
            }
            catch (JsonSerializationException e)
            {
                throw new TencentCloudSDKException(e.Message);
            }
            return(rsp.Response);
        }
Пример #2
0
 /// <summary>
 ///  获取数据源列表
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public async Task <DescribeDataSourceListResponse> DescribeDataSourceList(DescribeDataSourceListRequest request)
 {
     return(await new DescribeDataSourceListExecutor().Client(this).Execute <DescribeDataSourceListResponse, DescribeDataSourceListResult, DescribeDataSourceListRequest>(request).ConfigureAwait(false));
 }
Пример #3
0
 /// <summary>
 ///  获取数据源列表
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public DescribeDataSourceListResponse DescribeDataSourceList(DescribeDataSourceListRequest request)
 {
     return(new DescribeDataSourceListExecutor().Client(this).Execute <DescribeDataSourceListResponse, DescribeDataSourceListResult, DescribeDataSourceListRequest>(request));
 }