huaweicloudsdkgaussdb 3.1.145__py2.py3-none-any.whl → 3.1.146__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,202 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ModifyAutoExpandPolicyReq:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'switch_option': 'bool',
21
+ 'limit_size': 'int',
22
+ 'trigger_available_percent': 'int',
23
+ 'step_percent': 'int'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'switch_option': 'switch_option',
28
+ 'limit_size': 'limit_size',
29
+ 'trigger_available_percent': 'trigger_available_percent',
30
+ 'step_percent': 'step_percent'
31
+ }
32
+
33
+ def __init__(self, switch_option=None, limit_size=None, trigger_available_percent=None, step_percent=None):
34
+ r"""ModifyAutoExpandPolicyReq
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param switch_option: **参数解释**: 自动扩容策略开关。 **取值范围**: - true:表示开启。 - false:表示关闭。
39
+ :type switch_option: bool
40
+ :param limit_size: **参数解释**: 存储自动扩容上限,需要为10的倍数,单位GB。 **取值范围**: 10 - 最大容量上限。 示例:500
41
+ :type limit_size: int
42
+ :param trigger_available_percent: **参数解释**: 可用存储空间率。 **取值范围**: - 10 - 15 - 20
43
+ :type trigger_available_percent: int
44
+ :param step_percent: **参数解释**: 扩容步长百分比。 **取值范围**: 5 - 50
45
+ :type step_percent: int
46
+ """
47
+
48
+
49
+
50
+ self._switch_option = None
51
+ self._limit_size = None
52
+ self._trigger_available_percent = None
53
+ self._step_percent = None
54
+ self.discriminator = None
55
+
56
+ if switch_option is not None:
57
+ self.switch_option = switch_option
58
+ if limit_size is not None:
59
+ self.limit_size = limit_size
60
+ if trigger_available_percent is not None:
61
+ self.trigger_available_percent = trigger_available_percent
62
+ if step_percent is not None:
63
+ self.step_percent = step_percent
64
+
65
+ @property
66
+ def switch_option(self):
67
+ r"""Gets the switch_option of this ModifyAutoExpandPolicyReq.
68
+
69
+ **参数解释**: 自动扩容策略开关。 **取值范围**: - true:表示开启。 - false:表示关闭。
70
+
71
+ :return: The switch_option of this ModifyAutoExpandPolicyReq.
72
+ :rtype: bool
73
+ """
74
+ return self._switch_option
75
+
76
+ @switch_option.setter
77
+ def switch_option(self, switch_option):
78
+ r"""Sets the switch_option of this ModifyAutoExpandPolicyReq.
79
+
80
+ **参数解释**: 自动扩容策略开关。 **取值范围**: - true:表示开启。 - false:表示关闭。
81
+
82
+ :param switch_option: The switch_option of this ModifyAutoExpandPolicyReq.
83
+ :type switch_option: bool
84
+ """
85
+ self._switch_option = switch_option
86
+
87
+ @property
88
+ def limit_size(self):
89
+ r"""Gets the limit_size of this ModifyAutoExpandPolicyReq.
90
+
91
+ **参数解释**: 存储自动扩容上限,需要为10的倍数,单位GB。 **取值范围**: 10 - 最大容量上限。 示例:500
92
+
93
+ :return: The limit_size of this ModifyAutoExpandPolicyReq.
94
+ :rtype: int
95
+ """
96
+ return self._limit_size
97
+
98
+ @limit_size.setter
99
+ def limit_size(self, limit_size):
100
+ r"""Sets the limit_size of this ModifyAutoExpandPolicyReq.
101
+
102
+ **参数解释**: 存储自动扩容上限,需要为10的倍数,单位GB。 **取值范围**: 10 - 最大容量上限。 示例:500
103
+
104
+ :param limit_size: The limit_size of this ModifyAutoExpandPolicyReq.
105
+ :type limit_size: int
106
+ """
107
+ self._limit_size = limit_size
108
+
109
+ @property
110
+ def trigger_available_percent(self):
111
+ r"""Gets the trigger_available_percent of this ModifyAutoExpandPolicyReq.
112
+
113
+ **参数解释**: 可用存储空间率。 **取值范围**: - 10 - 15 - 20
114
+
115
+ :return: The trigger_available_percent of this ModifyAutoExpandPolicyReq.
116
+ :rtype: int
117
+ """
118
+ return self._trigger_available_percent
119
+
120
+ @trigger_available_percent.setter
121
+ def trigger_available_percent(self, trigger_available_percent):
122
+ r"""Sets the trigger_available_percent of this ModifyAutoExpandPolicyReq.
123
+
124
+ **参数解释**: 可用存储空间率。 **取值范围**: - 10 - 15 - 20
125
+
126
+ :param trigger_available_percent: The trigger_available_percent of this ModifyAutoExpandPolicyReq.
127
+ :type trigger_available_percent: int
128
+ """
129
+ self._trigger_available_percent = trigger_available_percent
130
+
131
+ @property
132
+ def step_percent(self):
133
+ r"""Gets the step_percent of this ModifyAutoExpandPolicyReq.
134
+
135
+ **参数解释**: 扩容步长百分比。 **取值范围**: 5 - 50
136
+
137
+ :return: The step_percent of this ModifyAutoExpandPolicyReq.
138
+ :rtype: int
139
+ """
140
+ return self._step_percent
141
+
142
+ @step_percent.setter
143
+ def step_percent(self, step_percent):
144
+ r"""Sets the step_percent of this ModifyAutoExpandPolicyReq.
145
+
146
+ **参数解释**: 扩容步长百分比。 **取值范围**: 5 - 50
147
+
148
+ :param step_percent: The step_percent of this ModifyAutoExpandPolicyReq.
149
+ :type step_percent: int
150
+ """
151
+ self._step_percent = step_percent
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.openapi_types):
158
+ value = getattr(self, attr)
159
+ if isinstance(value, list):
160
+ result[attr] = list(map(
161
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
+ value
163
+ ))
164
+ elif hasattr(value, "to_dict"):
165
+ result[attr] = value.to_dict()
166
+ elif isinstance(value, dict):
167
+ result[attr] = dict(map(
168
+ lambda item: (item[0], item[1].to_dict())
169
+ if hasattr(item[1], "to_dict") else item,
170
+ value.items()
171
+ ))
172
+ else:
173
+ if attr in self.sensitive_list:
174
+ result[attr] = "****"
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ import simplejson as json
183
+ if six.PY2:
184
+ import sys
185
+ reload(sys)
186
+ sys.setdefaultencoding("utf-8")
187
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
+
189
+ def __repr__(self):
190
+ """For `print`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, ModifyAutoExpandPolicyReq):
196
+ return False
197
+
198
+ return self.__dict__ == other.__dict__
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ return not self == other
@@ -0,0 +1,168 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ModifyAutoExpandPolicyRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'x_language': 'str',
21
+ 'instance_id': 'str',
22
+ 'body': 'ModifyAutoExpandPolicyReq'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'x_language': 'X-Language',
27
+ 'instance_id': 'instance_id',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, x_language=None, instance_id=None, body=None):
32
+ r"""ModifyAutoExpandPolicyRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param x_language: **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us。
37
+ :type x_language: str
38
+ :param instance_id: **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
39
+ :type instance_id: str
40
+ :param body: Body of the ModifyAutoExpandPolicyRequest
41
+ :type body: :class:`huaweicloudsdkgaussdb.v3.ModifyAutoExpandPolicyReq`
42
+ """
43
+
44
+
45
+
46
+ self._x_language = None
47
+ self._instance_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ if x_language is not None:
52
+ self.x_language = x_language
53
+ self.instance_id = instance_id
54
+ if body is not None:
55
+ self.body = body
56
+
57
+ @property
58
+ def x_language(self):
59
+ r"""Gets the x_language of this ModifyAutoExpandPolicyRequest.
60
+
61
+ **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us。
62
+
63
+ :return: The x_language of this ModifyAutoExpandPolicyRequest.
64
+ :rtype: str
65
+ """
66
+ return self._x_language
67
+
68
+ @x_language.setter
69
+ def x_language(self, x_language):
70
+ r"""Sets the x_language of this ModifyAutoExpandPolicyRequest.
71
+
72
+ **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us。
73
+
74
+ :param x_language: The x_language of this ModifyAutoExpandPolicyRequest.
75
+ :type x_language: str
76
+ """
77
+ self._x_language = x_language
78
+
79
+ @property
80
+ def instance_id(self):
81
+ r"""Gets the instance_id of this ModifyAutoExpandPolicyRequest.
82
+
83
+ **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
84
+
85
+ :return: The instance_id of this ModifyAutoExpandPolicyRequest.
86
+ :rtype: str
87
+ """
88
+ return self._instance_id
89
+
90
+ @instance_id.setter
91
+ def instance_id(self, instance_id):
92
+ r"""Sets the instance_id of this ModifyAutoExpandPolicyRequest.
93
+
94
+ **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
95
+
96
+ :param instance_id: The instance_id of this ModifyAutoExpandPolicyRequest.
97
+ :type instance_id: str
98
+ """
99
+ self._instance_id = instance_id
100
+
101
+ @property
102
+ def body(self):
103
+ r"""Gets the body of this ModifyAutoExpandPolicyRequest.
104
+
105
+ :return: The body of this ModifyAutoExpandPolicyRequest.
106
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ModifyAutoExpandPolicyReq`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ r"""Sets the body of this ModifyAutoExpandPolicyRequest.
113
+
114
+ :param body: The body of this ModifyAutoExpandPolicyRequest.
115
+ :type body: :class:`huaweicloudsdkgaussdb.v3.ModifyAutoExpandPolicyReq`
116
+ """
117
+ self._body = body
118
+
119
+ def to_dict(self):
120
+ """Returns the model properties as a dict"""
121
+ result = {}
122
+
123
+ for attr, _ in six.iteritems(self.openapi_types):
124
+ value = getattr(self, attr)
125
+ if isinstance(value, list):
126
+ result[attr] = list(map(
127
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
128
+ value
129
+ ))
130
+ elif hasattr(value, "to_dict"):
131
+ result[attr] = value.to_dict()
132
+ elif isinstance(value, dict):
133
+ result[attr] = dict(map(
134
+ lambda item: (item[0], item[1].to_dict())
135
+ if hasattr(item[1], "to_dict") else item,
136
+ value.items()
137
+ ))
138
+ else:
139
+ if attr in self.sensitive_list:
140
+ result[attr] = "****"
141
+ else:
142
+ result[attr] = value
143
+
144
+ return result
145
+
146
+ def to_str(self):
147
+ """Returns the string representation of the model"""
148
+ import simplejson as json
149
+ if six.PY2:
150
+ import sys
151
+ reload(sys)
152
+ sys.setdefaultencoding("utf-8")
153
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
154
+
155
+ def __repr__(self):
156
+ """For `print`"""
157
+ return self.to_str()
158
+
159
+ def __eq__(self, other):
160
+ """Returns true if both objects are equal"""
161
+ if not isinstance(other, ModifyAutoExpandPolicyRequest):
162
+ return False
163
+
164
+ return self.__dict__ == other.__dict__
165
+
166
+ def __ne__(self, other):
167
+ """Returns true if both objects are not equal"""
168
+ return not self == other
@@ -0,0 +1,116 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class ModifyAutoExpandPolicyResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'result': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'result': 'result'
26
+ }
27
+
28
+ def __init__(self, result=None):
29
+ r"""ModifyAutoExpandPolicyResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param result: 修改结果。
34
+ :type result: str
35
+ """
36
+
37
+ super(ModifyAutoExpandPolicyResponse, self).__init__()
38
+
39
+ self._result = None
40
+ self.discriminator = None
41
+
42
+ if result is not None:
43
+ self.result = result
44
+
45
+ @property
46
+ def result(self):
47
+ r"""Gets the result of this ModifyAutoExpandPolicyResponse.
48
+
49
+ 修改结果。
50
+
51
+ :return: The result of this ModifyAutoExpandPolicyResponse.
52
+ :rtype: str
53
+ """
54
+ return self._result
55
+
56
+ @result.setter
57
+ def result(self, result):
58
+ r"""Sets the result of this ModifyAutoExpandPolicyResponse.
59
+
60
+ 修改结果。
61
+
62
+ :param result: The result of this ModifyAutoExpandPolicyResponse.
63
+ :type result: str
64
+ """
65
+ self._result = result
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, ModifyAutoExpandPolicyResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other
@@ -29,7 +29,7 @@ class ModifyNodeDataIpRequest:
29
29
 
30
30
  The model defined in huaweicloud sdk
31
31
 
32
- :param internal_ip: **参数解释**: 内网IP地址。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认值**: 不涉及。
32
+ :param internal_ip: **参数解释**: 内网IP地址。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认值**: 不涉及。
33
33
  :type internal_ip: str
34
34
  """
35
35
 
@@ -44,7 +44,7 @@ class ModifyNodeDataIpRequest:
44
44
  def internal_ip(self):
45
45
  r"""Gets the internal_ip of this ModifyNodeDataIpRequest.
46
46
 
47
- **参数解释**: 内网IP地址。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认值**: 不涉及。
47
+ **参数解释**: 内网IP地址。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认值**: 不涉及。
48
48
 
49
49
  :return: The internal_ip of this ModifyNodeDataIpRequest.
50
50
  :rtype: str
@@ -55,7 +55,7 @@ class ModifyNodeDataIpRequest:
55
55
  def internal_ip(self, internal_ip):
56
56
  r"""Sets the internal_ip of this ModifyNodeDataIpRequest.
57
57
 
58
- **参数解释**: 内网IP地址。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认值**: 不涉及。
58
+ **参数解释**: 内网IP地址。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认值**: 不涉及。
59
59
 
60
60
  :param internal_ip: The internal_ip of this ModifyNodeDataIpRequest.
61
61
  :type internal_ip: str
@@ -0,0 +1,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowAutoExpandPolicyRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'x_language': 'str',
21
+ 'instance_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'x_language': 'X-Language',
26
+ 'instance_id': 'instance_id'
27
+ }
28
+
29
+ def __init__(self, x_language=None, instance_id=None):
30
+ r"""ShowAutoExpandPolicyRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param x_language: **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us。
35
+ :type x_language: str
36
+ :param instance_id: **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
37
+ :type instance_id: str
38
+ """
39
+
40
+
41
+
42
+ self._x_language = None
43
+ self._instance_id = None
44
+ self.discriminator = None
45
+
46
+ if x_language is not None:
47
+ self.x_language = x_language
48
+ self.instance_id = instance_id
49
+
50
+ @property
51
+ def x_language(self):
52
+ r"""Gets the x_language of this ShowAutoExpandPolicyRequest.
53
+
54
+ **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us。
55
+
56
+ :return: The x_language of this ShowAutoExpandPolicyRequest.
57
+ :rtype: str
58
+ """
59
+ return self._x_language
60
+
61
+ @x_language.setter
62
+ def x_language(self, x_language):
63
+ r"""Sets the x_language of this ShowAutoExpandPolicyRequest.
64
+
65
+ **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认值**: en-us。
66
+
67
+ :param x_language: The x_language of this ShowAutoExpandPolicyRequest.
68
+ :type x_language: str
69
+ """
70
+ self._x_language = x_language
71
+
72
+ @property
73
+ def instance_id(self):
74
+ r"""Gets the instance_id of this ShowAutoExpandPolicyRequest.
75
+
76
+ **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
77
+
78
+ :return: The instance_id of this ShowAutoExpandPolicyRequest.
79
+ :rtype: str
80
+ """
81
+ return self._instance_id
82
+
83
+ @instance_id.setter
84
+ def instance_id(self, instance_id):
85
+ r"""Sets the instance_id of this ShowAutoExpandPolicyRequest.
86
+
87
+ **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
88
+
89
+ :param instance_id: The instance_id of this ShowAutoExpandPolicyRequest.
90
+ :type instance_id: str
91
+ """
92
+ self._instance_id = instance_id
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, ShowAutoExpandPolicyRequest):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ return not self == other