# -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import warnings

from tencentcloud.common.abstract_model import AbstractModel


class ApplyParam(AbstractModel):
    """bpaas申请入参

    """

    def __init__(self):
        r"""
        :param _Key: 审批流中表单唯一标识
注意：此字段可能返回 null，表示取不到有效值。
        :type Key: str
        :param _Value: 表单value
注意：此字段可能返回 null，表示取不到有效值。
        :type Value: list of str
        :param _Name: 表单参数描述
注意：此字段可能返回 null，表示取不到有效值。
        :type Name: str
        """
        self._Key = None
        self._Value = None
        self._Name = None

    @property
    def Key(self):
        return self._Key

    @Key.setter
    def Key(self, Key):
        self._Key = Key

    @property
    def Value(self):
        return self._Value

    @Value.setter
    def Value(self, Value):
        self._Value = Value

    @property
    def Name(self):
        return self._Name

    @Name.setter
    def Name(self, Name):
        self._Name = Name


    def _deserialize(self, params):
        self._Key = params.get("Key")
        self._Value = params.get("Value")
        self._Name = params.get("Name")
        memeber_set = set(params.keys())
        for name, value in vars(self).items():
            property_name = name[1:]
            if property_name in memeber_set:
                memeber_set.remove(property_name)
        if len(memeber_set) > 0:
            warnings.warn("%s fileds are useless." % ",".join(memeber_set))
        


class ApproveOpinion(AbstractModel):
    """审批意见

    """

    def __init__(self):
        r"""
        :param _Type: 方式 1:输入文字反馈  2:预设选项
        :type Type: int
        :param _Content: 审批意见
注意：此字段可能返回 null，表示取不到有效值。
        :type Content: list of str
        """
        self._Type = None
        self._Content = None

    @property
    def Type(self):
        return self._Type

    @Type.setter
    def Type(self, Type):
        self._Type = Type

    @property
    def Content(self):
        return self._Content

    @Content.setter
    def Content(self, Content):
        self._Content = Content


    def _deserialize(self, params):
        self._Type = params.get("Type")
        self._Content = params.get("Content")
        memeber_set = set(params.keys())
        for name, value in vars(self).items():
            property_name = name[1:]
            if property_name in memeber_set:
                memeber_set.remove(property_name)
        if len(memeber_set) > 0:
            warnings.warn("%s fileds are useless." % ",".join(memeber_set))
        


class ApproveUser(AbstractModel):
    """审批人

    """

    def __init__(self):
        r"""
        :param _Uin: 用户uin
        :type Uin: int
        :param _Type: 用户类型 (1:用户  2:用户组)
        :type Type: int
        :param _Desc: 用户描述
注意：此字段可能返回 null，表示取不到有效值。
        :type Desc: str
        :param _Nick: 用户昵称
注意：此字段可能返回 null，表示取不到有效值。
        :type Nick: str
        :param _Scf: 动态获取Scf
注意：此字段可能返回 null，表示取不到有效值。
        :type Scf: :class:`tencentcloud.bpaas.v20181217.models.Scf`
        """
        self._Uin = None
        self._Type = None
        self._Desc = None
        self._Nick = None
        self._Scf = None

    @property
    def Uin(self):
        return self._Uin

    @Uin.setter
    def Uin(self, Uin):
        self._Uin = Uin

    @property
    def Type(self):
        return self._Type

    @Type.setter
    def Type(self, Type):
        self._Type = Type

    @property
    def Desc(self):
        return self._Desc

    @Desc.setter
    def Desc(self, Desc):
        self._Desc = Desc

    @property
    def Nick(self):
        return self._Nick

    @Nick.setter
    def Nick(self, Nick):
        self._Nick = Nick

    @property
    def Scf(self):
        return self._Scf

    @Scf.setter
    def Scf(self, Scf):
        self._Scf = Scf


    def _deserialize(self, params):
        self._Uin = params.get("Uin")
        self._Type = params.get("Type")
        self._Desc = params.get("Desc")
        self._Nick = params.get("Nick")
        if params.get("Scf") is not None:
            self._Scf = Scf()
            self._Scf._deserialize(params.get("Scf"))
        memeber_set = set(params.keys())
        for name, value in vars(self).items():
            property_name = name[1:]
            if property_name in memeber_set:
                memeber_set.remove(property_name)
        if len(memeber_set) > 0:
            warnings.warn("%s fileds are useless." % ",".join(memeber_set))
        


class GetBpaasApproveDetailRequest(AbstractModel):
    """GetBpaasApproveDetail请求参数结构体

    """

    def __init__(self):
        r"""
        :param _ApproveId: 审批id
        :type ApproveId: int
        """
        self._ApproveId = None

    @property
    def ApproveId(self):
        return self._ApproveId

    @ApproveId.setter
    def ApproveId(self, ApproveId):
        self._ApproveId = ApproveId


    def _deserialize(self, params):
        self._ApproveId = params.get("ApproveId")
        memeber_set = set(params.keys())
        for name, value in vars(self).items():
            property_name = name[1:]
            if property_name in memeber_set:
                memeber_set.remove(property_name)
        if len(memeber_set) > 0:
            warnings.warn("%s fileds are useless." % ",".join(memeber_set))
        


class GetBpaasApproveDetailResponse(AbstractModel):
    """GetBpaasApproveDetail返回参数结构体

    """

    def __init__(self):
        r"""
        :param _ApplyUin: 申请人uin
        :type ApplyUin: int
        :param _ApplyOwnUin: 申请人主账号
        :type ApplyOwnUin: int
        :param _ApplyUinNick: 申请人昵称
注意：此字段可能返回 null，表示取不到有效值。
        :type ApplyUinNick: str
        :param _BpaasId: 审批流id
        :type BpaasId: int
        :param _BpaasName: 审批流名称
        :type BpaasName: str
        :param _ApplicationParams: 申请参数
注意：此字段可能返回 null，表示取不到有效值。
        :type ApplicationParams: list of ApplyParam
        :param _Reason: 申请原因
注意：此字段可能返回 null，表示取不到有效值。
        :type Reason: str
        :param _CreateTime: 申请时间
注意：此字段可能返回 null，表示取不到有效值。
        :type CreateTime: str
        :param _Status: 申请单状态
注意：此字段可能返回 null，表示取不到有效值。
        :type Status: int
        :param _Nodes: 节点信息
注意：此字段可能返回 null，表示取不到有效值。
        :type Nodes: list of StatusNode
        :param _ApprovingNodeId: 正在审批的节点id
注意：此字段可能返回 null，表示取不到有效值。
        :type ApprovingNodeId: str
        :param _ModifyTime: 更新时间，时间格式：2021-12-12 10:12:10	
注意：此字段可能返回 null，表示取不到有效值。
        :type ModifyTime: str
        :param _RequestId: 唯一请求 ID，每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
        :type RequestId: str
        """
        self._ApplyUin = None
        self._ApplyOwnUin = None
        self._ApplyUinNick = None
        self._BpaasId = None
        self._BpaasName = None
        self._ApplicationParams = None
        self._Reason = None
        self._CreateTime = None
        self._Status = None
        self._Nodes = None
        self._ApprovingNodeId = None
        self._ModifyTime = None
        self._RequestId = None

    @property
    def ApplyUin(self):
        return self._ApplyUin

    @ApplyUin.setter
    def ApplyUin(self, ApplyUin):
        self._ApplyUin = ApplyUin

    @property
    def ApplyOwnUin(self):
        return self._ApplyOwnUin

    @ApplyOwnUin.setter
    def ApplyOwnUin(self, ApplyOwnUin):
        self._ApplyOwnUin = ApplyOwnUin

    @property
    def ApplyUinNick(self):
        return self._ApplyUinNick

    @ApplyUinNick.setter
    def ApplyUinNick(self, ApplyUinNick):
        self._ApplyUinNick = ApplyUinNick

    @property
    def BpaasId(self):
        return self._BpaasId

    @BpaasId.setter
    def BpaasId(self, BpaasId):
        self._BpaasId = BpaasId

    @property
    def BpaasName(self):
        return self._BpaasName

    @BpaasName.setter
    def BpaasName(self, BpaasName):
        self._BpaasName = BpaasName

    @property
    def ApplicationParams(self):
        return self._ApplicationParams

    @ApplicationParams.setter
    def ApplicationParams(self, ApplicationParams):
        self._ApplicationParams = ApplicationParams

    @property
    def Reason(self):
        return self._Reason

    @Reason.setter
    def Reason(self, Reason):
        self._Reason = Reason

    @property
    def CreateTime(self):
        return self._CreateTime

    @CreateTime.setter
    def CreateTime(self, CreateTime):
        self._CreateTime = CreateTime

    @property
    def Status(self):
        return self._Status

    @Status.setter
    def Status(self, Status):
        self._Status = Status

    @property
    def Nodes(self):
        return self._Nodes

    @Nodes.setter
    def Nodes(self, Nodes):
        self._Nodes = Nodes

    @property
    def ApprovingNodeId(self):
        return self._ApprovingNodeId

    @ApprovingNodeId.setter
    def ApprovingNodeId(self, ApprovingNodeId):
        self._ApprovingNodeId = ApprovingNodeId

    @property
    def ModifyTime(self):
        return self._ModifyTime

    @ModifyTime.setter
    def ModifyTime(self, ModifyTime):
        self._ModifyTime = ModifyTime

    @property
    def RequestId(self):
        return self._RequestId

    @RequestId.setter
    def RequestId(self, RequestId):
        self._RequestId = RequestId


    def _deserialize(self, params):
        self._ApplyUin = params.get("ApplyUin")
        self._ApplyOwnUin = params.get("ApplyOwnUin")
        self._ApplyUinNick = params.get("ApplyUinNick")
        self._BpaasId = params.get("BpaasId")
        self._BpaasName = params.get("BpaasName")
        if params.get("ApplicationParams") is not None:
            self._ApplicationParams = []
            for item in params.get("ApplicationParams"):
                obj = ApplyParam()
                obj._deserialize(item)
                self._ApplicationParams.append(obj)
        self._Reason = params.get("Reason")
        self._CreateTime = params.get("CreateTime")
        self._Status = params.get("Status")
        if params.get("Nodes") is not None:
            self._Nodes = []
            for item in params.get("Nodes"):
                obj = StatusNode()
                obj._deserialize(item)
                self._Nodes.append(obj)
        self._ApprovingNodeId = params.get("ApprovingNodeId")
        self._ModifyTime = params.get("ModifyTime")
        self._RequestId = params.get("RequestId")


class OutApproveBpaasApplicationRequest(AbstractModel):
    """OutApproveBpaasApplication请求参数结构体

    """

    def __init__(self):
        r"""
        :param _Status: 状态  1:通过  2:拒绝
        :type Status: int
        :param _ApproveId: 审批单id
        :type ApproveId: int
        :param _Msg: 审批意见
        :type Msg: str
        """
        self._Status = None
        self._ApproveId = None
        self._Msg = None

    @property
    def Status(self):
        return self._Status

    @Status.setter
    def Status(self, Status):
        self._Status = Status

    @property
    def ApproveId(self):
        return self._ApproveId

    @ApproveId.setter
    def ApproveId(self, ApproveId):
        self._ApproveId = ApproveId

    @property
    def Msg(self):
        return self._Msg

    @Msg.setter
    def Msg(self, Msg):
        self._Msg = Msg


    def _deserialize(self, params):
        self._Status = params.get("Status")
        self._ApproveId = params.get("ApproveId")
        self._Msg = params.get("Msg")
        memeber_set = set(params.keys())
        for name, value in vars(self).items():
            property_name = name[1:]
            if property_name in memeber_set:
                memeber_set.remove(property_name)
        if len(memeber_set) > 0:
            warnings.warn("%s fileds are useless." % ",".join(memeber_set))
        


class OutApproveBpaasApplicationResponse(AbstractModel):
    """OutApproveBpaasApplication返回参数结构体

    """

    def __init__(self):
        r"""
        :param _RequestId: 唯一请求 ID，每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
        :type RequestId: str
        """
        self._RequestId = None

    @property
    def RequestId(self):
        return self._RequestId

    @RequestId.setter
    def RequestId(self, RequestId):
        self._RequestId = RequestId


    def _deserialize(self, params):
        self._RequestId = params.get("RequestId")


class Scf(AbstractModel):
    """云函数SCF

    """

    def __init__(self):
        r"""
        :param _ScfRegion: Scf函数地域id
        :type ScfRegion: str
        :param _ScfRegionName: Scf函数地域
        :type ScfRegionName: str
        :param _ScfName: Scf函数名称
注意：此字段可能返回 null，表示取不到有效值。
        :type ScfName: str
        :param _Params: Scf函数入参
注意：此字段可能返回 null，表示取不到有效值。
        :type Params: list of ScfParam
        """
        self._ScfRegion = None
        self._ScfRegionName = None
        self._ScfName = None
        self._Params = None

    @property
    def ScfRegion(self):
        return self._ScfRegion

    @ScfRegion.setter
    def ScfRegion(self, ScfRegion):
        self._ScfRegion = ScfRegion

    @property
    def ScfRegionName(self):
        return self._ScfRegionName

    @ScfRegionName.setter
    def ScfRegionName(self, ScfRegionName):
        self._ScfRegionName = ScfRegionName

    @property
    def ScfName(self):
        return self._ScfName

    @ScfName.setter
    def ScfName(self, ScfName):
        self._ScfName = ScfName

    @property
    def Params(self):
        return self._Params

    @Params.setter
    def Params(self, Params):
        self._Params = Params


    def _deserialize(self, params):
        self._ScfRegion = params.get("ScfRegion")
        self._ScfRegionName = params.get("ScfRegionName")
        self._ScfName = params.get("ScfName")
        if params.get("Params") is not None:
            self._Params = []
            for item in params.get("Params"):
                obj = ScfParam()
                obj._deserialize(item)
                self._Params.append(obj)
        memeber_set = set(params.keys())
        for name, value in vars(self).items():
            property_name = name[1:]
            if property_name in memeber_set:
                memeber_set.remove(property_name)
        if len(memeber_set) > 0:
            warnings.warn("%s fileds are useless." % ",".join(memeber_set))
        


class ScfParam(AbstractModel):
    """Scf函数入参

    """

    def __init__(self):
        r"""
        :param _Key: 参数Key
        :type Key: str
        :param _Type: 参数类型 1用户输入 2预设参数 3表单参数
        :type Type: int
        :param _Values: 参数值
        :type Values: list of str
        :param _Name: 参数描述
注意：此字段可能返回 null，表示取不到有效值。
        :type Name: str
        """
        self._Key = None
        self._Type = None
        self._Values = None
        self._Name = None

    @property
    def Key(self):
        return self._Key

    @Key.setter
    def Key(self, Key):
        self._Key = Key

    @property
    def Type(self):
        return self._Type

    @Type.setter
    def Type(self, Type):
        self._Type = Type

    @property
    def Values(self):
        return self._Values

    @Values.setter
    def Values(self, Values):
        self._Values = Values

    @property
    def Name(self):
        return self._Name

    @Name.setter
    def Name(self, Name):
        self._Name = Name


    def _deserialize(self, params):
        self._Key = params.get("Key")
        self._Type = params.get("Type")
        self._Values = params.get("Values")
        self._Name = params.get("Name")
        memeber_set = set(params.keys())
        for name, value in vars(self).items():
            property_name = name[1:]
            if property_name in memeber_set:
                memeber_set.remove(property_name)
        if len(memeber_set) > 0:
            warnings.warn("%s fileds are useless." % ",".join(memeber_set))
        


class StatusNode(AbstractModel):
    """状态节点

    """

    def __init__(self):
        r"""
        :param _NodeId: 节点id
        :type NodeId: str
        :param _NodeName: 节点名称
        :type NodeName: str
        :param _NodeType: 节点类型 1:审批节点 2:执行节点 3:条件节点
        :type NodeType: int
        :param _NextNode: 下一个节点
        :type NextNode: str
        :param _Opinion: 审批意见模型
注意：此字段可能返回 null，表示取不到有效值。
        :type Opinion: :class:`tencentcloud.bpaas.v20181217.models.ApproveOpinion`
        :param _ScfName: scf函数名称
注意：此字段可能返回 null，表示取不到有效值。
        :type ScfName: str
        :param _SubStatus: 状态（0：待审批，1：审批通过，2：拒绝，3：scf执行失败，4：scf执行成功）18: 外部审批中
注意：此字段可能返回 null，表示取不到有效值。
        :type SubStatus: int
        :param _ApprovedUin: 审批节点审批人
注意：此字段可能返回 null，表示取不到有效值。
        :type ApprovedUin: list of int non-negative
        :param _CreateTime: 审批时间
注意：此字段可能返回 null，表示取不到有效值。
        :type CreateTime: str
        :param _Msg: 审批意见信息 审批节点:审批人意见  执行节点:scf函数执行日志
注意：此字段可能返回 null，表示取不到有效值。
        :type Msg: str
        :param _Users: 有权限审批该节点的uin
注意：此字段可能返回 null，表示取不到有效值。
        :type Users: :class:`tencentcloud.bpaas.v20181217.models.ApproveUser`
        :param _IsApprove: 是否有权限审批该节点
注意：此字段可能返回 null，表示取不到有效值。
        :type IsApprove: bool
        :param _ApproveId: 审批id
注意：此字段可能返回 null，表示取不到有效值。
        :type ApproveId: str
        :param _ApproveMethod: 审批方式 0或签 1会签
注意：此字段可能返回 null，表示取不到有效值。
        :type ApproveMethod: int
        :param _ApproveType: 审批节点审批类型，1人工审批 2自动通过 3自动决绝 4外部审批scf
注意：此字段可能返回 null，表示取不到有效值。
        :type ApproveType: int
        :param _CallMethod: 外部审批类型 scf:0或null ; CKafka:1
注意：此字段可能返回 null，表示取不到有效值。
        :type CallMethod: int
        :param _DataHubId: CKafka - 接入资源ID
注意：此字段可能返回 null，表示取不到有效值。
        :type DataHubId: str
        :param _TaskName: CKafka - 任务名称
注意：此字段可能返回 null，表示取不到有效值。
        :type TaskName: str
        :param _CKafkaRegion: CKafka - 地域
注意：此字段可能返回 null，表示取不到有效值。
        :type CKafkaRegion: str
        :param _ExternalUrl: 外部审批Url
注意：此字段可能返回 null，表示取不到有效值。
        :type ExternalUrl: str
        :param _ParallelNodes: 并行节点 3-4
注意：此字段可能返回 null，表示取不到有效值。
        :type ParallelNodes: str
        :param _RejectedCloudFunctionMsg: scf拒绝时返回信息
注意：此字段可能返回 null，表示取不到有效值。
        :type RejectedCloudFunctionMsg: str
        :param _PrevNode: 上一个节点
注意：此字段可能返回 null，表示取不到有效值。
        :type PrevNode: str
        """
        self._NodeId = None
        self._NodeName = None
        self._NodeType = None
        self._NextNode = None
        self._Opinion = None
        self._ScfName = None
        self._SubStatus = None
        self._ApprovedUin = None
        self._CreateTime = None
        self._Msg = None
        self._Users = None
        self._IsApprove = None
        self._ApproveId = None
        self._ApproveMethod = None
        self._ApproveType = None
        self._CallMethod = None
        self._DataHubId = None
        self._TaskName = None
        self._CKafkaRegion = None
        self._ExternalUrl = None
        self._ParallelNodes = None
        self._RejectedCloudFunctionMsg = None
        self._PrevNode = None

    @property
    def NodeId(self):
        return self._NodeId

    @NodeId.setter
    def NodeId(self, NodeId):
        self._NodeId = NodeId

    @property
    def NodeName(self):
        return self._NodeName

    @NodeName.setter
    def NodeName(self, NodeName):
        self._NodeName = NodeName

    @property
    def NodeType(self):
        return self._NodeType

    @NodeType.setter
    def NodeType(self, NodeType):
        self._NodeType = NodeType

    @property
    def NextNode(self):
        return self._NextNode

    @NextNode.setter
    def NextNode(self, NextNode):
        self._NextNode = NextNode

    @property
    def Opinion(self):
        return self._Opinion

    @Opinion.setter
    def Opinion(self, Opinion):
        self._Opinion = Opinion

    @property
    def ScfName(self):
        return self._ScfName

    @ScfName.setter
    def ScfName(self, ScfName):
        self._ScfName = ScfName

    @property
    def SubStatus(self):
        return self._SubStatus

    @SubStatus.setter
    def SubStatus(self, SubStatus):
        self._SubStatus = SubStatus

    @property
    def ApprovedUin(self):
        return self._ApprovedUin

    @ApprovedUin.setter
    def ApprovedUin(self, ApprovedUin):
        self._ApprovedUin = ApprovedUin

    @property
    def CreateTime(self):
        return self._CreateTime

    @CreateTime.setter
    def CreateTime(self, CreateTime):
        self._CreateTime = CreateTime

    @property
    def Msg(self):
        return self._Msg

    @Msg.setter
    def Msg(self, Msg):
        self._Msg = Msg

    @property
    def Users(self):
        return self._Users

    @Users.setter
    def Users(self, Users):
        self._Users = Users

    @property
    def IsApprove(self):
        return self._IsApprove

    @IsApprove.setter
    def IsApprove(self, IsApprove):
        self._IsApprove = IsApprove

    @property
    def ApproveId(self):
        return self._ApproveId

    @ApproveId.setter
    def ApproveId(self, ApproveId):
        self._ApproveId = ApproveId

    @property
    def ApproveMethod(self):
        return self._ApproveMethod

    @ApproveMethod.setter
    def ApproveMethod(self, ApproveMethod):
        self._ApproveMethod = ApproveMethod

    @property
    def ApproveType(self):
        return self._ApproveType

    @ApproveType.setter
    def ApproveType(self, ApproveType):
        self._ApproveType = ApproveType

    @property
    def CallMethod(self):
        return self._CallMethod

    @CallMethod.setter
    def CallMethod(self, CallMethod):
        self._CallMethod = CallMethod

    @property
    def DataHubId(self):
        return self._DataHubId

    @DataHubId.setter
    def DataHubId(self, DataHubId):
        self._DataHubId = DataHubId

    @property
    def TaskName(self):
        return self._TaskName

    @TaskName.setter
    def TaskName(self, TaskName):
        self._TaskName = TaskName

    @property
    def CKafkaRegion(self):
        return self._CKafkaRegion

    @CKafkaRegion.setter
    def CKafkaRegion(self, CKafkaRegion):
        self._CKafkaRegion = CKafkaRegion

    @property
    def ExternalUrl(self):
        return self._ExternalUrl

    @ExternalUrl.setter
    def ExternalUrl(self, ExternalUrl):
        self._ExternalUrl = ExternalUrl

    @property
    def ParallelNodes(self):
        return self._ParallelNodes

    @ParallelNodes.setter
    def ParallelNodes(self, ParallelNodes):
        self._ParallelNodes = ParallelNodes

    @property
    def RejectedCloudFunctionMsg(self):
        return self._RejectedCloudFunctionMsg

    @RejectedCloudFunctionMsg.setter
    def RejectedCloudFunctionMsg(self, RejectedCloudFunctionMsg):
        self._RejectedCloudFunctionMsg = RejectedCloudFunctionMsg

    @property
    def PrevNode(self):
        return self._PrevNode

    @PrevNode.setter
    def PrevNode(self, PrevNode):
        self._PrevNode = PrevNode


    def _deserialize(self, params):
        self._NodeId = params.get("NodeId")
        self._NodeName = params.get("NodeName")
        self._NodeType = params.get("NodeType")
        self._NextNode = params.get("NextNode")
        if params.get("Opinion") is not None:
            self._Opinion = ApproveOpinion()
            self._Opinion._deserialize(params.get("Opinion"))
        self._ScfName = params.get("ScfName")
        self._SubStatus = params.get("SubStatus")
        self._ApprovedUin = params.get("ApprovedUin")
        self._CreateTime = params.get("CreateTime")
        self._Msg = params.get("Msg")
        if params.get("Users") is not None:
            self._Users = ApproveUser()
            self._Users._deserialize(params.get("Users"))
        self._IsApprove = params.get("IsApprove")
        self._ApproveId = params.get("ApproveId")
        self._ApproveMethod = params.get("ApproveMethod")
        self._ApproveType = params.get("ApproveType")
        self._CallMethod = params.get("CallMethod")
        self._DataHubId = params.get("DataHubId")
        self._TaskName = params.get("TaskName")
        self._CKafkaRegion = params.get("CKafkaRegion")
        self._ExternalUrl = params.get("ExternalUrl")
        self._ParallelNodes = params.get("ParallelNodes")
        self._RejectedCloudFunctionMsg = params.get("RejectedCloudFunctionMsg")
        self._PrevNode = params.get("PrevNode")
        memeber_set = set(params.keys())
        for name, value in vars(self).items():
            property_name = name[1:]
            if property_name in memeber_set:
                memeber_set.remove(property_name)
        if len(memeber_set) > 0:
            warnings.warn("%s fileds are useless." % ",".join(memeber_set))
        