Beispiel #1
0
        /// <summary>
        /// DescribePermission接口的同步版本,查询企业用户TID平台控制台权限
        /// </summary>
        /// <param name="req">参考<see cref="DescribePermissionRequest"/></param>
        /// <returns>参考<see cref="DescribePermissionResponse"/>实例</returns>
        public DescribePermissionResponse DescribePermissionSync(DescribePermissionRequest req)
        {
            JsonResponseModel <DescribePermissionResponse> rsp = null;

            try
            {
                var strResp = this.InternalRequestSync(req, "DescribePermission");
                rsp = JsonConvert.DeserializeObject <JsonResponseModel <DescribePermissionResponse> >(strResp);
            }
            catch (JsonSerializationException e)
            {
                throw new TencentCloudSDKException(e.Message);
            }
            return(rsp.Response);
        }
Beispiel #2
0
 /// <summary>
 ///  查看当前topic授予了哪些用户哪些权限
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public async Task <DescribePermissionResponse> DescribePermission(DescribePermissionRequest request)
 {
     return(await new DescribePermissionExecutor().Client(this).Execute <DescribePermissionResponse, DescribePermissionResult, DescribePermissionRequest>(request).ConfigureAwait(false));
 }
Beispiel #3
0
 /// <summary>
 ///  查看当前topic授予了哪些用户哪些权限
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public DescribePermissionResponse DescribePermission(DescribePermissionRequest request)
 {
     return(new DescribePermissionExecutor().Client(this).Execute <DescribePermissionResponse, DescribePermissionResult, DescribePermissionRequest>(request));
 }