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