# coding: utf-8 import pprint import re import six class SendVerificationCodeV2Req: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ sensitive_list = [] openapi_types = { 'customer_id': 'str', 'email': 'str', 'lang': 'str', 'receiver_type': 'int', 'scene': 'int', 'timeout': 'int' } attribute_map = { 'customer_id': 'customer_id', 'email': 'email', 'lang': 'lang', 'receiver_type': 'receiver_type', 'scene': 'scene', 'timeout': 'timeout' } def __init__(self, customer_id=None, email=None, lang=None, receiver_type=None, scene=29, timeout=None): """SendVerificationCodeV2Req - a model defined in huaweicloud sdk""" self._customer_id = None self._email = None self._lang = None self._receiver_type = None self._scene = None self._timeout = None self.discriminator = None if customer_id is not None: self.customer_id = customer_id if email is not None: self.email = email if lang is not None: self.lang = lang self.receiver_type = receiver_type if scene is not None: self.scene = scene if timeout is not None: self.timeout = timeout @property def customer_id(self): """Gets the customer_id of this SendVerificationCodeV2Req. |参数名称:客户ID,如果scene=18的时候必填。| |参数约束及描述:客户ID,如果scene=18的时候必填。| :return: The customer_id of this SendVerificationCodeV2Req. :rtype: str """ return self._customer_id @customer_id.setter def customer_id(self, customer_id): """Sets the customer_id of this SendVerificationCodeV2Req. |参数名称:客户ID,如果scene=18的时候必填。| |参数约束及描述:客户ID,如果scene=18的时候必填。| :param customer_id: The customer_id of this SendVerificationCodeV2Req. :type: str """ self._customer_id = customer_id @property def email(self): """Gets the email of this SendVerificationCodeV2Req. |参数名称:指定发送邮箱地址。| |参数约束及描述:指定发送邮箱地址。| :return: The email of this SendVerificationCodeV2Req. :rtype: str """ return self._email @email.setter def email(self, email): """Sets the email of this SendVerificationCodeV2Req. |参数名称:指定发送邮箱地址。| |参数约束及描述:指定发送邮箱地址。| :param email: The email of this SendVerificationCodeV2Req. :type: str """ self._email = email @property def lang(self): """Gets the lang of this SendVerificationCodeV2Req. |参数名称:根据语言如果查询不到对应模板信息,就取系统默认语言对应的模板信息。zh-cn:中文;en-us:英文。| |参数约束及描述:根据语言如果查询不到对应模板信息,就取系统默认语言对应的模板信息。zh-cn:中文;en-us:英文。| :return: The lang of this SendVerificationCodeV2Req. :rtype: str """ return self._lang @lang.setter def lang(self, lang): """Sets the lang of this SendVerificationCodeV2Req. |参数名称:根据语言如果查询不到对应模板信息,就取系统默认语言对应的模板信息。zh-cn:中文;en-us:英文。| |参数约束及描述:根据语言如果查询不到对应模板信息,就取系统默认语言对应的模板信息。zh-cn:中文;en-us:英文。| :param lang: The lang of this SendVerificationCodeV2Req. :type: str """ self._lang = lang @property def receiver_type(self): """Gets the receiver_type of this SendVerificationCodeV2Req. |参数名称:发送类型:1:发送短信验证码。2:发送邮件验证码。| |参数的约束及描述:发送类型:1:发送短信验证码。2:发送邮件验证码。| :return: The receiver_type of this SendVerificationCodeV2Req. :rtype: int """ return self._receiver_type @receiver_type.setter def receiver_type(self, receiver_type): """Sets the receiver_type of this SendVerificationCodeV2Req. |参数名称:发送类型:1:发送短信验证码。2:发送邮件验证码。| |参数的约束及描述:发送类型:1:发送短信验证码。2:发送邮件验证码。| :param receiver_type: The receiver_type of this SendVerificationCodeV2Req. :type: int """ self._receiver_type = receiver_type @property def scene(self): """Gets the scene of this SendVerificationCodeV2Req. |参数名称:场景| |参数的约束及描述:该参数非必填,29:注册;18:实名认证个人银行卡认证;不填写默认为29| :return: The scene of this SendVerificationCodeV2Req. :rtype: int """ return self._scene @scene.setter def scene(self, scene): """Sets the scene of this SendVerificationCodeV2Req. |参数名称:场景| |参数的约束及描述:该参数非必填,29:注册;18:实名认证个人银行卡认证;不填写默认为29| :param scene: The scene of this SendVerificationCodeV2Req. :type: int """ self._scene = scene @property def timeout(self): """Gets the timeout of this SendVerificationCodeV2Req. |参数名称:验证码超时时间。如果不填的话,采用系统默认超时时间5分钟。单位:分钟| |参数的约束及描述:验证码超时时间。如果不填的话,采用系统默认超时时间5分钟。单位:分钟| :return: The timeout of this SendVerificationCodeV2Req. :rtype: int """ return self._timeout @timeout.setter def timeout(self, timeout): """Sets the timeout of this SendVerificationCodeV2Req. |参数名称:验证码超时时间。如果不填的话,采用系统默认超时时间5分钟。单位:分钟| |参数的约束及描述:验证码超时时间。如果不填的话,采用系统默认超时时间5分钟。单位:分钟| :param timeout: The timeout of this SendVerificationCodeV2Req. :type: int """ self._timeout = timeout def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: if attr in self.sensitive_list: result[attr] = "****" else: result[attr] = value return result def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict()) def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, SendVerificationCodeV2Req): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other