def DescribeCfsRules(self, request): """本接口(DescribeCfsRules)用于查询权限组规则列表。 :param request: Request instance for DescribeCfsRules. :type request: :class:`tencentcloud.cfs.v20190719.models.DescribeCfsRulesRequest` :rtype: :class:`tencentcloud.cfs.v20190719.models.DescribeCfsRulesResponse` """ try: params = request._serialize() headers = request.headers body = self.call("DescribeCfsRules", params, headers=headers) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeCfsRulesResponse() 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 DescribeCfsRules(self, request): """This API is used to query the list of permission group rules. :param request: Request instance for DescribeCfsRules. :type request: :class:`tencentcloud.cfs.v20190719.models.DescribeCfsRulesRequest` :rtype: :class:`tencentcloud.cfs.v20190719.models.DescribeCfsRulesResponse` """ try: params = request._serialize() body = self.call("DescribeCfsRules", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeCfsRulesResponse() 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)