huaweicloudsdkgaussdb 3.1.101__py2.py3-none-any.whl → 3.1.103__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.
Files changed (121) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +111 -1
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +2346 -272
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +2346 -272
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +111 -1
  5. huaweicloudsdkgaussdb/v3/model/ch_database_config_check_result.py +170 -0
  6. huaweicloudsdkgaussdb/v3/model/ch_database_config_response.py +142 -0
  7. huaweicloudsdkgaussdb/v3/model/ch_database_configs_info.py +142 -0
  8. huaweicloudsdkgaussdb/v3/model/ch_database_parameter_info.py +226 -0
  9. huaweicloudsdkgaussdb/v3/model/ch_database_replication_info.py +254 -0
  10. huaweicloudsdkgaussdb/v3/model/ch_database_table_config_check_result.py +170 -0
  11. huaweicloudsdkgaussdb/v3/model/ch_database_table_repl_config_info.py +142 -0
  12. huaweicloudsdkgaussdb/v3/model/ch_database_tables_configs_info.py +142 -0
  13. huaweicloudsdkgaussdb/v3/model/ch_enlarge_volume_request_body.py +114 -0
  14. huaweicloudsdkgaussdb/v3/model/ch_instance_lts_configs.py +140 -0
  15. huaweicloudsdkgaussdb/v3/model/ch_instance_lts_configs_instance.py +318 -0
  16. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance.py +1179 -0
  17. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_groups.py +198 -0
  18. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_ops_window.py +171 -0
  19. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_param_group.py +144 -0
  20. huaweicloudsdkgaussdb/v3/model/ch_instances_info_rsponse_instance_port_info.py +226 -0
  21. huaweicloudsdkgaussdb/v3/model/ch_lts_configs.py +202 -0
  22. huaweicloudsdkgaussdb/v3/model/ch_query_action_info.py +318 -0
  23. huaweicloudsdkgaussdb/v3/model/ch_slow_log_detail_response_slow_log_list.py +450 -0
  24. huaweicloudsdkgaussdb/v3/model/ch_slow_log_query_request_body.py +285 -0
  25. huaweicloudsdkgaussdb/v3/model/ch_slowlog_sensitive_response.py +114 -0
  26. huaweicloudsdkgaussdb/v3/model/check_ch_database_config_request_body.py +223 -0
  27. huaweicloudsdkgaussdb/v3/model/check_ch_database_table_config_request_body.py +251 -0
  28. huaweicloudsdkgaussdb/v3/model/check_click_house_data_base_config_request.py +168 -0
  29. huaweicloudsdkgaussdb/v3/model/check_click_house_data_base_config_response.py +145 -0
  30. huaweicloudsdkgaussdb/v3/model/check_click_house_table_config_request.py +168 -0
  31. huaweicloudsdkgaussdb/v3/model/check_click_house_table_config_response.py +145 -0
  32. huaweicloudsdkgaussdb/v3/model/click_house_database_user_info.py +199 -0
  33. huaweicloudsdkgaussdb/v3/model/click_house_database_user_p_sinfo.py +170 -0
  34. huaweicloudsdkgaussdb/v3/model/click_house_database_user_p_winfo.py +142 -0
  35. huaweicloudsdkgaussdb/v3/model/click_house_engine_info.py +142 -0
  36. huaweicloudsdkgaussdb/v3/model/click_house_node_info.py +979 -0
  37. huaweicloudsdkgaussdb/v3/model/click_house_node_info_datastore.py +170 -0
  38. huaweicloudsdkgaussdb/v3/model/click_house_node_info_response_body_node_list.py +170 -0
  39. huaweicloudsdkgaussdb/v3/model/click_house_node_info_volume.py +200 -0
  40. huaweicloudsdkgaussdb/v3/model/click_house_resize_flavor_request_body.py +171 -0
  41. huaweicloudsdkgaussdb/v3/model/create_ch_database_replication_request_body.py +171 -0
  42. huaweicloudsdkgaussdb/v3/model/create_ch_instance_info.py +522 -0
  43. huaweicloudsdkgaussdb/v3/model/create_ch_instance_info_pay_info.py +226 -0
  44. huaweicloudsdkgaussdb/v3/model/create_ch_instance_info_tags_info.py +144 -0
  45. huaweicloudsdkgaussdb/v3/model/{sr_create_instance_rsp_instance_tags_info_tags.py → create_ch_instance_info_tags_info_tags.py} +11 -11
  46. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body.py +376 -0
  47. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_ha.py +114 -0
  48. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_pay_info.py +231 -0
  49. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_tags_info.py +114 -0
  50. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_tags_info_sys_tags.py +142 -0
  51. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_volume.py +142 -0
  52. huaweicloudsdkgaussdb/v3/model/create_ch_lts_config_request_body.py +114 -0
  53. huaweicloudsdkgaussdb/v3/model/create_ch_lts_config_request_body_log_configs.py +198 -0
  54. huaweicloudsdkgaussdb/v3/model/create_click_house_data_base_replication_request.py +168 -0
  55. huaweicloudsdkgaussdb/v3/model/create_click_house_data_base_replication_response.py +116 -0
  56. huaweicloudsdkgaussdb/v3/model/create_click_house_database_user_request.py +168 -0
  57. huaweicloudsdkgaussdb/v3/model/create_click_house_database_user_response.py +116 -0
  58. huaweicloudsdkgaussdb/v3/model/create_click_house_instance_request.py +168 -0
  59. huaweicloudsdkgaussdb/v3/model/create_click_house_instance_response.py +141 -0
  60. huaweicloudsdkgaussdb/v3/model/delete_ch_lts_config_request_body.py +114 -0
  61. huaweicloudsdkgaussdb/v3/model/delete_ch_lts_config_request_body_log_configs.py +142 -0
  62. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_config_request.py +171 -0
  63. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_config_response.py +116 -0
  64. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_replication_request.py +171 -0
  65. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_replication_response.py +116 -0
  66. huaweicloudsdkgaussdb/v3/model/delete_click_house_database_user_request.py +171 -0
  67. huaweicloudsdkgaussdb/v3/model/delete_click_house_database_user_response.py +116 -0
  68. huaweicloudsdkgaussdb/v3/model/delete_click_house_instance_request.py +171 -0
  69. huaweicloudsdkgaussdb/v3/model/delete_click_house_instance_response.py +116 -0
  70. huaweicloudsdkgaussdb/v3/model/delete_click_house_lts_config_request.py +140 -0
  71. huaweicloudsdkgaussdb/v3/model/delete_click_house_lts_config_response.py +85 -0
  72. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_parameter_request.py +143 -0
  73. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_parameter_response.py +116 -0
  74. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_config_request.py +171 -0
  75. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_config_response.py +307 -0
  76. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_request.py +201 -0
  77. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_response.py +174 -0
  78. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_request.py +230 -0
  79. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_response.py +145 -0
  80. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_node_request.py +143 -0
  81. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_node_response.py +116 -0
  82. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_request.py +171 -0
  83. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_response.py +112 -0
  84. huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication.py +114 -0
  85. huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication_request.py +167 -0
  86. huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication_response.py +116 -0
  87. huaweicloudsdkgaussdb/v3/model/reboot_click_house_instance_request.py +143 -0
  88. huaweicloudsdkgaussdb/v3/model/reboot_click_house_instance_response.py +116 -0
  89. huaweicloudsdkgaussdb/v3/model/resize_click_house_flavor_request.py +168 -0
  90. huaweicloudsdkgaussdb/v3/model/resize_click_house_flavor_response.py +116 -0
  91. huaweicloudsdkgaussdb/v3/model/resize_click_house_instance_request.py +168 -0
  92. huaweicloudsdkgaussdb/v3/model/resize_click_house_instance_response.py +116 -0
  93. huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication.py +114 -0
  94. huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication_request.py +167 -0
  95. huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication_response.py +116 -0
  96. huaweicloudsdkgaussdb/v3/model/show_click_house_database_user_request.py +230 -0
  97. huaweicloudsdkgaussdb/v3/model/show_click_house_database_user_response.py +145 -0
  98. huaweicloudsdkgaussdb/v3/model/show_click_house_database_users_user_details.py +198 -0
  99. huaweicloudsdkgaussdb/v3/model/show_click_house_lts_config_request.py +260 -0
  100. huaweicloudsdkgaussdb/v3/model/show_click_house_lts_config_response.py +145 -0
  101. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_detail_request.py +168 -0
  102. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_detail_response.py +116 -0
  103. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_sensitive_status_request.py +143 -0
  104. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_sensitive_status_response.py +116 -0
  105. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +4 -4
  106. huaweicloudsdkgaussdb/v3/model/update_ch_database_config_request_body.py +199 -0
  107. huaweicloudsdkgaussdb/v3/model/update_click_house_data_base_config_request.py +168 -0
  108. huaweicloudsdkgaussdb/v3/model/update_click_house_data_base_config_response.py +116 -0
  109. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_password_request.py +168 -0
  110. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_password_response.py +116 -0
  111. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_permission_request.py +168 -0
  112. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_permission_response.py +116 -0
  113. huaweicloudsdkgaussdb/v3/model/update_click_house_lts_config_request.py +140 -0
  114. huaweicloudsdkgaussdb/v3/model/update_click_house_lts_config_response.py +85 -0
  115. huaweicloudsdkgaussdb/v3/model/update_click_house_slow_log_sensitive_status_request.py +168 -0
  116. huaweicloudsdkgaussdb/v3/model/update_click_house_slow_log_sensitive_status_response.py +116 -0
  117. {huaweicloudsdkgaussdb-3.1.101.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/METADATA +2 -2
  118. {huaweicloudsdkgaussdb-3.1.101.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/RECORD +121 -11
  119. {huaweicloudsdkgaussdb-3.1.101.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/LICENSE +0 -0
  120. {huaweicloudsdkgaussdb-3.1.101.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/WHEEL +0 -0
  121. {huaweicloudsdkgaussdb-3.1.101.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,226 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateChInstanceInfoPayInfo:
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
+ 'pay_model': 'str',
21
+ 'order_id': 'str',
22
+ 'period': 'str',
23
+ 'period_type': 'str',
24
+ 'is_auto_renew': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'pay_model': 'pay_model',
29
+ 'order_id': 'order_id',
30
+ 'period': 'period',
31
+ 'period_type': 'period_type',
32
+ 'is_auto_renew': 'is_auto_renew'
33
+ }
34
+
35
+ def __init__(self, pay_model=None, order_id=None, period=None, period_type=None, is_auto_renew=None):
36
+ """CreateChInstanceInfoPayInfo
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param pay_model: 计费模式。默认0。 取值范围: - 0:按需计费 - 1:包周期
41
+ :type pay_model: str
42
+ :param order_id: 包周期计费ID。
43
+ :type order_id: str
44
+ :param period: 包周期周期。
45
+ :type period: str
46
+ :param period_type: 包周期周期类型。 取值范围: - 2:包月 - 3:包年
47
+ :type period_type: str
48
+ :param is_auto_renew: 包周期是否自动续费。 取值范围: - 1:自动续费 - 0:不自动续费
49
+ :type is_auto_renew: str
50
+ """
51
+
52
+
53
+
54
+ self._pay_model = None
55
+ self._order_id = None
56
+ self._period = None
57
+ self._period_type = None
58
+ self._is_auto_renew = None
59
+ self.discriminator = None
60
+
61
+ self.pay_model = pay_model
62
+ self.order_id = order_id
63
+ self.period = period
64
+ self.period_type = period_type
65
+ self.is_auto_renew = is_auto_renew
66
+
67
+ @property
68
+ def pay_model(self):
69
+ """Gets the pay_model of this CreateChInstanceInfoPayInfo.
70
+
71
+ 计费模式。默认0。 取值范围: - 0:按需计费 - 1:包周期
72
+
73
+ :return: The pay_model of this CreateChInstanceInfoPayInfo.
74
+ :rtype: str
75
+ """
76
+ return self._pay_model
77
+
78
+ @pay_model.setter
79
+ def pay_model(self, pay_model):
80
+ """Sets the pay_model of this CreateChInstanceInfoPayInfo.
81
+
82
+ 计费模式。默认0。 取值范围: - 0:按需计费 - 1:包周期
83
+
84
+ :param pay_model: The pay_model of this CreateChInstanceInfoPayInfo.
85
+ :type pay_model: str
86
+ """
87
+ self._pay_model = pay_model
88
+
89
+ @property
90
+ def order_id(self):
91
+ """Gets the order_id of this CreateChInstanceInfoPayInfo.
92
+
93
+ 包周期计费ID。
94
+
95
+ :return: The order_id of this CreateChInstanceInfoPayInfo.
96
+ :rtype: str
97
+ """
98
+ return self._order_id
99
+
100
+ @order_id.setter
101
+ def order_id(self, order_id):
102
+ """Sets the order_id of this CreateChInstanceInfoPayInfo.
103
+
104
+ 包周期计费ID。
105
+
106
+ :param order_id: The order_id of this CreateChInstanceInfoPayInfo.
107
+ :type order_id: str
108
+ """
109
+ self._order_id = order_id
110
+
111
+ @property
112
+ def period(self):
113
+ """Gets the period of this CreateChInstanceInfoPayInfo.
114
+
115
+ 包周期周期。
116
+
117
+ :return: The period of this CreateChInstanceInfoPayInfo.
118
+ :rtype: str
119
+ """
120
+ return self._period
121
+
122
+ @period.setter
123
+ def period(self, period):
124
+ """Sets the period of this CreateChInstanceInfoPayInfo.
125
+
126
+ 包周期周期。
127
+
128
+ :param period: The period of this CreateChInstanceInfoPayInfo.
129
+ :type period: str
130
+ """
131
+ self._period = period
132
+
133
+ @property
134
+ def period_type(self):
135
+ """Gets the period_type of this CreateChInstanceInfoPayInfo.
136
+
137
+ 包周期周期类型。 取值范围: - 2:包月 - 3:包年
138
+
139
+ :return: The period_type of this CreateChInstanceInfoPayInfo.
140
+ :rtype: str
141
+ """
142
+ return self._period_type
143
+
144
+ @period_type.setter
145
+ def period_type(self, period_type):
146
+ """Sets the period_type of this CreateChInstanceInfoPayInfo.
147
+
148
+ 包周期周期类型。 取值范围: - 2:包月 - 3:包年
149
+
150
+ :param period_type: The period_type of this CreateChInstanceInfoPayInfo.
151
+ :type period_type: str
152
+ """
153
+ self._period_type = period_type
154
+
155
+ @property
156
+ def is_auto_renew(self):
157
+ """Gets the is_auto_renew of this CreateChInstanceInfoPayInfo.
158
+
159
+ 包周期是否自动续费。 取值范围: - 1:自动续费 - 0:不自动续费
160
+
161
+ :return: The is_auto_renew of this CreateChInstanceInfoPayInfo.
162
+ :rtype: str
163
+ """
164
+ return self._is_auto_renew
165
+
166
+ @is_auto_renew.setter
167
+ def is_auto_renew(self, is_auto_renew):
168
+ """Sets the is_auto_renew of this CreateChInstanceInfoPayInfo.
169
+
170
+ 包周期是否自动续费。 取值范围: - 1:自动续费 - 0:不自动续费
171
+
172
+ :param is_auto_renew: The is_auto_renew of this CreateChInstanceInfoPayInfo.
173
+ :type is_auto_renew: str
174
+ """
175
+ self._is_auto_renew = is_auto_renew
176
+
177
+ def to_dict(self):
178
+ """Returns the model properties as a dict"""
179
+ result = {}
180
+
181
+ for attr, _ in six.iteritems(self.openapi_types):
182
+ value = getattr(self, attr)
183
+ if isinstance(value, list):
184
+ result[attr] = list(map(
185
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
186
+ value
187
+ ))
188
+ elif hasattr(value, "to_dict"):
189
+ result[attr] = value.to_dict()
190
+ elif isinstance(value, dict):
191
+ result[attr] = dict(map(
192
+ lambda item: (item[0], item[1].to_dict())
193
+ if hasattr(item[1], "to_dict") else item,
194
+ value.items()
195
+ ))
196
+ else:
197
+ if attr in self.sensitive_list:
198
+ result[attr] = "****"
199
+ else:
200
+ result[attr] = value
201
+
202
+ return result
203
+
204
+ def to_str(self):
205
+ """Returns the string representation of the model"""
206
+ import simplejson as json
207
+ if six.PY2:
208
+ import sys
209
+ reload(sys)
210
+ sys.setdefaultencoding("utf-8")
211
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
212
+
213
+ def __repr__(self):
214
+ """For `print`"""
215
+ return self.to_str()
216
+
217
+ def __eq__(self, other):
218
+ """Returns true if both objects are equal"""
219
+ if not isinstance(other, CreateChInstanceInfoPayInfo):
220
+ return False
221
+
222
+ return self.__dict__ == other.__dict__
223
+
224
+ def __ne__(self, other):
225
+ """Returns true if both objects are not equal"""
226
+ return not self == other
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateChInstanceInfoTagsInfo:
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
+ 'tags': 'list[CreateChInstanceInfoTagsInfoTags]',
21
+ 'sys_tags': 'list[CreateChInstanceInfoTagsInfoTags]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'tags': 'tags',
26
+ 'sys_tags': 'sys_tags'
27
+ }
28
+
29
+ def __init__(self, tags=None, sys_tags=None):
30
+ """CreateChInstanceInfoTagsInfo
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param tags: 用户标签。
35
+ :type tags: list[:class:`huaweicloudsdkgaussdb.v3.CreateChInstanceInfoTagsInfoTags`]
36
+ :param sys_tags: 系统标签。
37
+ :type sys_tags: list[:class:`huaweicloudsdkgaussdb.v3.CreateChInstanceInfoTagsInfoTags`]
38
+ """
39
+
40
+
41
+
42
+ self._tags = None
43
+ self._sys_tags = None
44
+ self.discriminator = None
45
+
46
+ if tags is not None:
47
+ self.tags = tags
48
+ if sys_tags is not None:
49
+ self.sys_tags = sys_tags
50
+
51
+ @property
52
+ def tags(self):
53
+ """Gets the tags of this CreateChInstanceInfoTagsInfo.
54
+
55
+ 用户标签。
56
+
57
+ :return: The tags of this CreateChInstanceInfoTagsInfo.
58
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.CreateChInstanceInfoTagsInfoTags`]
59
+ """
60
+ return self._tags
61
+
62
+ @tags.setter
63
+ def tags(self, tags):
64
+ """Sets the tags of this CreateChInstanceInfoTagsInfo.
65
+
66
+ 用户标签。
67
+
68
+ :param tags: The tags of this CreateChInstanceInfoTagsInfo.
69
+ :type tags: list[:class:`huaweicloudsdkgaussdb.v3.CreateChInstanceInfoTagsInfoTags`]
70
+ """
71
+ self._tags = tags
72
+
73
+ @property
74
+ def sys_tags(self):
75
+ """Gets the sys_tags of this CreateChInstanceInfoTagsInfo.
76
+
77
+ 系统标签。
78
+
79
+ :return: The sys_tags of this CreateChInstanceInfoTagsInfo.
80
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.CreateChInstanceInfoTagsInfoTags`]
81
+ """
82
+ return self._sys_tags
83
+
84
+ @sys_tags.setter
85
+ def sys_tags(self, sys_tags):
86
+ """Sets the sys_tags of this CreateChInstanceInfoTagsInfo.
87
+
88
+ 系统标签。
89
+
90
+ :param sys_tags: The sys_tags of this CreateChInstanceInfoTagsInfo.
91
+ :type sys_tags: list[:class:`huaweicloudsdkgaussdb.v3.CreateChInstanceInfoTagsInfoTags`]
92
+ """
93
+ self._sys_tags = sys_tags
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, CreateChInstanceInfoTagsInfo):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -5,7 +5,7 @@ import six
5
5
  from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
6
 
7
7
 
8
- class SrCreateInstanceRspInstanceTagsInfoTags:
8
+ class CreateChInstanceInfoTagsInfoTags:
9
9
 
10
10
  """
11
11
  Attributes:
@@ -27,7 +27,7 @@ class SrCreateInstanceRspInstanceTagsInfoTags:
27
27
  }
28
28
 
29
29
  def __init__(self, key=None, value=None):
30
- """SrCreateInstanceRspInstanceTagsInfoTags
30
+ """CreateChInstanceInfoTagsInfoTags
31
31
 
32
32
  The model defined in huaweicloud sdk
33
33
 
@@ -50,44 +50,44 @@ class SrCreateInstanceRspInstanceTagsInfoTags:
50
50
 
51
51
  @property
52
52
  def key(self):
53
- """Gets the key of this SrCreateInstanceRspInstanceTagsInfoTags.
53
+ """Gets the key of this CreateChInstanceInfoTagsInfoTags.
54
54
 
55
55
  标签键。
56
56
 
57
- :return: The key of this SrCreateInstanceRspInstanceTagsInfoTags.
57
+ :return: The key of this CreateChInstanceInfoTagsInfoTags.
58
58
  :rtype: str
59
59
  """
60
60
  return self._key
61
61
 
62
62
  @key.setter
63
63
  def key(self, key):
64
- """Sets the key of this SrCreateInstanceRspInstanceTagsInfoTags.
64
+ """Sets the key of this CreateChInstanceInfoTagsInfoTags.
65
65
 
66
66
  标签键。
67
67
 
68
- :param key: The key of this SrCreateInstanceRspInstanceTagsInfoTags.
68
+ :param key: The key of this CreateChInstanceInfoTagsInfoTags.
69
69
  :type key: str
70
70
  """
71
71
  self._key = key
72
72
 
73
73
  @property
74
74
  def value(self):
75
- """Gets the value of this SrCreateInstanceRspInstanceTagsInfoTags.
75
+ """Gets the value of this CreateChInstanceInfoTagsInfoTags.
76
76
 
77
77
  标签值。
78
78
 
79
- :return: The value of this SrCreateInstanceRspInstanceTagsInfoTags.
79
+ :return: The value of this CreateChInstanceInfoTagsInfoTags.
80
80
  :rtype: str
81
81
  """
82
82
  return self._value
83
83
 
84
84
  @value.setter
85
85
  def value(self, value):
86
- """Sets the value of this SrCreateInstanceRspInstanceTagsInfoTags.
86
+ """Sets the value of this CreateChInstanceInfoTagsInfoTags.
87
87
 
88
88
  标签值。
89
89
 
90
- :param value: The value of this SrCreateInstanceRspInstanceTagsInfoTags.
90
+ :param value: The value of this CreateChInstanceInfoTagsInfoTags.
91
91
  :type value: str
92
92
  """
93
93
  self._value = value
@@ -134,7 +134,7 @@ class SrCreateInstanceRspInstanceTagsInfoTags:
134
134
 
135
135
  def __eq__(self, other):
136
136
  """Returns true if both objects are equal"""
137
- if not isinstance(other, SrCreateInstanceRspInstanceTagsInfoTags):
137
+ if not isinstance(other, CreateChInstanceInfoTagsInfoTags):
138
138
  return False
139
139
 
140
140
  return self.__dict__ == other.__dict__