def CreateMountPoint(self, request): """云API旧版本2019-07-18预下线,所有功能由新版本2020-11-12替代,目前云API主要用作控制台使用。 创建文件系统挂载点,仅限于创建成功的文件系统。 :param request: Request instance for CreateMountPoint. :type request: :class:`tencentcloud.chdfs.v20190718.models.CreateMountPointRequest` :rtype: :class:`tencentcloud.chdfs.v20190718.models.CreateMountPointResponse` """ try: params = request._serialize() body = self.call("CreateMountPoint", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.CreateMountPointResponse() 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 CreateMountPoint(self, request): """创建挂载点 :param request: 调用CreateMountPoint所需参数的结构体。 :type request: :class:`tencentcloud.chdfs.v20190718.models.CreateMountPointRequest` :rtype: :class:`tencentcloud.chdfs.v20190718.models.CreateMountPointResponse` """ try: params = request._serialize() body = self.call("CreateMountPoint", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.CreateMountPointResponse() 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)