def DescribeMountTargets(self, request): """本接口(DescribeMountTargets)用于查询文件系统挂载点信息 :param request: Request instance for DescribeMountTargets. :type request: :class:`tencentcloud.cfs.v20190719.models.DescribeMountTargetsRequest` :rtype: :class:`tencentcloud.cfs.v20190719.models.DescribeMountTargetsResponse` """ try: params = request._serialize() headers = request.headers body = self.call("DescribeMountTargets", params, headers=headers) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeMountTargetsResponse() 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 DescribeMountTargets(self, request): """This API is used to query the mount targets of a file system. :param request: Request instance for DescribeMountTargets. :type request: :class:`tencentcloud.cfs.v20190719.models.DescribeMountTargetsRequest` :rtype: :class:`tencentcloud.cfs.v20190719.models.DescribeMountTargetsResponse` """ try: params = request._serialize() body = self.call("DescribeMountTargets", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeMountTargetsResponse() 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)