huaweicloud-sdk-python-v3/huaweicloud-sdk-antiddos/huaweicloudsdkantiddos/v1/model/alert_config_resp_warn_conf...

322 lines
9.4 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class AlertConfigRespWarnConfig:
"""
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 = {
'anti_d_do_s': 'bool',
'back_doors': 'bool',
'bruce_force': 'bool',
'high_privilege': 'bool',
'remote_login': 'bool',
'send_frequency': 'int',
'waf': 'bool',
'weak_password': 'bool'
}
attribute_map = {
'anti_d_do_s': 'antiDDoS',
'back_doors': 'back_doors',
'bruce_force': 'bruce_force',
'high_privilege': 'high_privilege',
'remote_login': 'remote_login',
'send_frequency': 'send_frequency',
'waf': 'waf',
'weak_password': 'weak_password'
}
def __init__(self, anti_d_do_s=None, back_doors=None, bruce_force=None, high_privilege=None, remote_login=None, send_frequency=None, waf=None, weak_password=None):
"""AlertConfigRespWarnConfig
The model defined in huaweicloud sdk
:param anti_d_do_s: DDoS攻击
:type anti_d_do_s: bool
:param back_doors: 网页后门
:type back_doors: bool
:param bruce_force: 暴力破解系统登录FTPDB
:type bruce_force: bool
:param high_privilege: 数据库进程权限过高
:type high_privilege: bool
:param remote_login: 异地登录提醒
:type remote_login: bool
:param send_frequency: 取值范围: - 0表示每天一次 - 1表示半小时一次 对于HID必选。
:type send_frequency: int
:param waf: 保留字段
:type waf: bool
:param weak_password: 弱口令(系统,数据库)
:type weak_password: bool
"""
self._anti_d_do_s = None
self._back_doors = None
self._bruce_force = None
self._high_privilege = None
self._remote_login = None
self._send_frequency = None
self._waf = None
self._weak_password = None
self.discriminator = None
self.anti_d_do_s = anti_d_do_s
if back_doors is not None:
self.back_doors = back_doors
if bruce_force is not None:
self.bruce_force = bruce_force
if high_privilege is not None:
self.high_privilege = high_privilege
if remote_login is not None:
self.remote_login = remote_login
if send_frequency is not None:
self.send_frequency = send_frequency
if waf is not None:
self.waf = waf
if weak_password is not None:
self.weak_password = weak_password
@property
def anti_d_do_s(self):
"""Gets the anti_d_do_s of this AlertConfigRespWarnConfig.
DDoS攻击
:return: The anti_d_do_s of this AlertConfigRespWarnConfig.
:rtype: bool
"""
return self._anti_d_do_s
@anti_d_do_s.setter
def anti_d_do_s(self, anti_d_do_s):
"""Sets the anti_d_do_s of this AlertConfigRespWarnConfig.
DDoS攻击
:param anti_d_do_s: The anti_d_do_s of this AlertConfigRespWarnConfig.
:type anti_d_do_s: bool
"""
self._anti_d_do_s = anti_d_do_s
@property
def back_doors(self):
"""Gets the back_doors of this AlertConfigRespWarnConfig.
网页后门
:return: The back_doors of this AlertConfigRespWarnConfig.
:rtype: bool
"""
return self._back_doors
@back_doors.setter
def back_doors(self, back_doors):
"""Sets the back_doors of this AlertConfigRespWarnConfig.
网页后门
:param back_doors: The back_doors of this AlertConfigRespWarnConfig.
:type back_doors: bool
"""
self._back_doors = back_doors
@property
def bruce_force(self):
"""Gets the bruce_force of this AlertConfigRespWarnConfig.
暴力破解系统登录FTPDB
:return: The bruce_force of this AlertConfigRespWarnConfig.
:rtype: bool
"""
return self._bruce_force
@bruce_force.setter
def bruce_force(self, bruce_force):
"""Sets the bruce_force of this AlertConfigRespWarnConfig.
暴力破解系统登录FTPDB
:param bruce_force: The bruce_force of this AlertConfigRespWarnConfig.
:type bruce_force: bool
"""
self._bruce_force = bruce_force
@property
def high_privilege(self):
"""Gets the high_privilege of this AlertConfigRespWarnConfig.
数据库进程权限过高
:return: The high_privilege of this AlertConfigRespWarnConfig.
:rtype: bool
"""
return self._high_privilege
@high_privilege.setter
def high_privilege(self, high_privilege):
"""Sets the high_privilege of this AlertConfigRespWarnConfig.
数据库进程权限过高
:param high_privilege: The high_privilege of this AlertConfigRespWarnConfig.
:type high_privilege: bool
"""
self._high_privilege = high_privilege
@property
def remote_login(self):
"""Gets the remote_login of this AlertConfigRespWarnConfig.
异地登录提醒
:return: The remote_login of this AlertConfigRespWarnConfig.
:rtype: bool
"""
return self._remote_login
@remote_login.setter
def remote_login(self, remote_login):
"""Sets the remote_login of this AlertConfigRespWarnConfig.
异地登录提醒
:param remote_login: The remote_login of this AlertConfigRespWarnConfig.
:type remote_login: bool
"""
self._remote_login = remote_login
@property
def send_frequency(self):
"""Gets the send_frequency of this AlertConfigRespWarnConfig.
取值范围: - 0表示每天一次 - 1表示半小时一次 对于HID必选。
:return: The send_frequency of this AlertConfigRespWarnConfig.
:rtype: int
"""
return self._send_frequency
@send_frequency.setter
def send_frequency(self, send_frequency):
"""Sets the send_frequency of this AlertConfigRespWarnConfig.
取值范围: - 0表示每天一次 - 1表示半小时一次 对于HID必选。
:param send_frequency: The send_frequency of this AlertConfigRespWarnConfig.
:type send_frequency: int
"""
self._send_frequency = send_frequency
@property
def waf(self):
"""Gets the waf of this AlertConfigRespWarnConfig.
保留字段
:return: The waf of this AlertConfigRespWarnConfig.
:rtype: bool
"""
return self._waf
@waf.setter
def waf(self, waf):
"""Sets the waf of this AlertConfigRespWarnConfig.
保留字段
:param waf: The waf of this AlertConfigRespWarnConfig.
:type waf: bool
"""
self._waf = waf
@property
def weak_password(self):
"""Gets the weak_password of this AlertConfigRespWarnConfig.
弱口令(系统,数据库)
:return: The weak_password of this AlertConfigRespWarnConfig.
:rtype: bool
"""
return self._weak_password
@weak_password.setter
def weak_password(self, weak_password):
"""Sets the weak_password of this AlertConfigRespWarnConfig.
弱口令(系统,数据库)
:param weak_password: The weak_password of this AlertConfigRespWarnConfig.
:type weak_password: bool
"""
self._weak_password = weak_password
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"""
import simplejson as json
if six.PY2:
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
def __repr__(self):
"""For `print`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, AlertConfigRespWarnConfig):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other