huaweicloudsdkgaussdb 3.1.102__py2.py3-none-any.whl → 3.1.104__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 (135) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +125 -1
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +2738 -317
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +2738 -317
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +125 -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/check_starrocks_params_request.py +140 -0
  33. huaweicloudsdkgaussdb/v3/model/check_starrocks_params_request_body.py +114 -0
  34. huaweicloudsdkgaussdb/v3/model/check_starrocks_params_response.py +116 -0
  35. huaweicloudsdkgaussdb/v3/model/click_house_database_user_info.py +199 -0
  36. huaweicloudsdkgaussdb/v3/model/click_house_database_user_p_sinfo.py +170 -0
  37. huaweicloudsdkgaussdb/v3/model/click_house_database_user_p_winfo.py +142 -0
  38. huaweicloudsdkgaussdb/v3/model/click_house_engine_info.py +142 -0
  39. huaweicloudsdkgaussdb/v3/model/click_house_node_info.py +979 -0
  40. huaweicloudsdkgaussdb/v3/model/click_house_node_info_datastore.py +170 -0
  41. huaweicloudsdkgaussdb/v3/model/click_house_node_info_response_body_node_list.py +170 -0
  42. huaweicloudsdkgaussdb/v3/model/click_house_node_info_volume.py +200 -0
  43. huaweicloudsdkgaussdb/v3/model/click_house_resize_flavor_request_body.py +171 -0
  44. huaweicloudsdkgaussdb/v3/model/create_ch_database_replication_request_body.py +171 -0
  45. huaweicloudsdkgaussdb/v3/model/create_ch_instance_info.py +522 -0
  46. huaweicloudsdkgaussdb/v3/model/create_ch_instance_info_pay_info.py +226 -0
  47. huaweicloudsdkgaussdb/v3/model/create_ch_instance_info_tags_info.py +144 -0
  48. huaweicloudsdkgaussdb/v3/model/{sr_create_instance_rsp_instance_tags_info_tags.py → create_ch_instance_info_tags_info_tags.py} +11 -11
  49. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body.py +376 -0
  50. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_ha.py +114 -0
  51. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_pay_info.py +231 -0
  52. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_tags_info.py +114 -0
  53. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_tags_info_sys_tags.py +142 -0
  54. huaweicloudsdkgaussdb/v3/model/create_ch_instance_request_body_volume.py +142 -0
  55. huaweicloudsdkgaussdb/v3/model/create_ch_lts_config_request_body.py +114 -0
  56. huaweicloudsdkgaussdb/v3/model/create_ch_lts_config_request_body_log_configs.py +198 -0
  57. huaweicloudsdkgaussdb/v3/model/create_click_house_data_base_replication_request.py +168 -0
  58. huaweicloudsdkgaussdb/v3/model/create_click_house_data_base_replication_response.py +116 -0
  59. huaweicloudsdkgaussdb/v3/model/create_click_house_database_user_request.py +168 -0
  60. huaweicloudsdkgaussdb/v3/model/create_click_house_database_user_response.py +116 -0
  61. huaweicloudsdkgaussdb/v3/model/create_click_house_instance_request.py +168 -0
  62. huaweicloudsdkgaussdb/v3/model/create_click_house_instance_response.py +141 -0
  63. huaweicloudsdkgaussdb/v3/model/delete_ch_lts_config_request_body.py +114 -0
  64. huaweicloudsdkgaussdb/v3/model/delete_ch_lts_config_request_body_log_configs.py +142 -0
  65. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_config_request.py +171 -0
  66. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_config_response.py +116 -0
  67. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_replication_request.py +171 -0
  68. huaweicloudsdkgaussdb/v3/model/delete_click_house_data_base_replication_response.py +116 -0
  69. huaweicloudsdkgaussdb/v3/model/delete_click_house_database_user_request.py +171 -0
  70. huaweicloudsdkgaussdb/v3/model/delete_click_house_database_user_response.py +116 -0
  71. huaweicloudsdkgaussdb/v3/model/delete_click_house_instance_request.py +171 -0
  72. huaweicloudsdkgaussdb/v3/model/delete_click_house_instance_response.py +116 -0
  73. huaweicloudsdkgaussdb/v3/model/delete_click_house_lts_config_request.py +140 -0
  74. huaweicloudsdkgaussdb/v3/model/delete_click_house_lts_config_response.py +85 -0
  75. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_parameter_request.py +143 -0
  76. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_parameter_response.py +116 -0
  77. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_config_request.py +171 -0
  78. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_config_response.py +307 -0
  79. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_request.py +201 -0
  80. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_replication_response.py +174 -0
  81. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_request.py +230 -0
  82. huaweicloudsdkgaussdb/v3/model/list_click_house_data_base_response.py +145 -0
  83. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_node_request.py +143 -0
  84. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_node_response.py +116 -0
  85. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_request.py +171 -0
  86. huaweicloudsdkgaussdb/v3/model/list_click_house_instance_response.py +112 -0
  87. huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication.py +114 -0
  88. huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication_request.py +167 -0
  89. huaweicloudsdkgaussdb/v3/model/pause_star_rocks_data_replication_response.py +116 -0
  90. huaweicloudsdkgaussdb/v3/model/reboot_click_house_instance_request.py +143 -0
  91. huaweicloudsdkgaussdb/v3/model/reboot_click_house_instance_response.py +116 -0
  92. huaweicloudsdkgaussdb/v3/model/resize_click_house_flavor_request.py +168 -0
  93. huaweicloudsdkgaussdb/v3/model/resize_click_house_flavor_response.py +116 -0
  94. huaweicloudsdkgaussdb/v3/model/resize_click_house_instance_request.py +168 -0
  95. huaweicloudsdkgaussdb/v3/model/resize_click_house_instance_response.py +116 -0
  96. huaweicloudsdkgaussdb/v3/model/resize_star_rocks_flavor_request.py +168 -0
  97. huaweicloudsdkgaussdb/v3/model/resize_star_rocks_flavor_response.py +116 -0
  98. huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication.py +114 -0
  99. huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication_request.py +167 -0
  100. huaweicloudsdkgaussdb/v3/model/resume_star_rocks_data_replication_response.py +116 -0
  101. huaweicloudsdkgaussdb/v3/model/show_click_house_database_user_request.py +230 -0
  102. huaweicloudsdkgaussdb/v3/model/show_click_house_database_user_response.py +145 -0
  103. huaweicloudsdkgaussdb/v3/model/show_click_house_database_users_user_details.py +198 -0
  104. huaweicloudsdkgaussdb/v3/model/show_click_house_lts_config_request.py +260 -0
  105. huaweicloudsdkgaussdb/v3/model/show_click_house_lts_config_response.py +145 -0
  106. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_detail_request.py +168 -0
  107. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_detail_response.py +116 -0
  108. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_sensitive_status_request.py +143 -0
  109. huaweicloudsdkgaussdb/v3/model/show_click_house_slow_log_sensitive_status_response.py +116 -0
  110. huaweicloudsdkgaussdb/v3/model/show_starrocks_params_request.py +229 -0
  111. huaweicloudsdkgaussdb/v3/model/show_starrocks_params_response.py +170 -0
  112. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +4 -4
  113. huaweicloudsdkgaussdb/v3/model/sr_flavor_resize_req.py +144 -0
  114. huaweicloudsdkgaussdb/v3/model/sync_star_rocks_users_request.py +168 -0
  115. huaweicloudsdkgaussdb/v3/model/sync_star_rocks_users_response.py +116 -0
  116. huaweicloudsdkgaussdb/v3/model/update_ch_database_config_request_body.py +199 -0
  117. huaweicloudsdkgaussdb/v3/model/update_click_house_data_base_config_request.py +168 -0
  118. huaweicloudsdkgaussdb/v3/model/update_click_house_data_base_config_response.py +116 -0
  119. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_password_request.py +168 -0
  120. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_password_response.py +116 -0
  121. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_permission_request.py +168 -0
  122. huaweicloudsdkgaussdb/v3/model/update_click_house_database_user_permission_response.py +116 -0
  123. huaweicloudsdkgaussdb/v3/model/update_click_house_lts_config_request.py +140 -0
  124. huaweicloudsdkgaussdb/v3/model/update_click_house_lts_config_response.py +85 -0
  125. huaweicloudsdkgaussdb/v3/model/update_click_house_slow_log_sensitive_status_request.py +168 -0
  126. huaweicloudsdkgaussdb/v3/model/update_click_house_slow_log_sensitive_status_response.py +116 -0
  127. huaweicloudsdkgaussdb/v3/model/update_param_info.py +142 -0
  128. huaweicloudsdkgaussdb/v3/model/update_starrocks_params_request.py +168 -0
  129. huaweicloudsdkgaussdb/v3/model/update_starrocks_params_response.py +145 -0
  130. huaweicloudsdkgaussdb/v3/model/user_sync_req.py +114 -0
  131. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.104.dist-info}/METADATA +2 -2
  132. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.104.dist-info}/RECORD +135 -11
  133. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.104.dist-info}/LICENSE +0 -0
  134. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.104.dist-info}/WHEEL +0 -0
  135. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.104.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,171 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateChDatabaseReplicationRequestBody:
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
+ 'source_instance_id': 'str',
21
+ 'source_node_id': 'str',
22
+ 'source_database': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'source_instance_id': 'source_instance_id',
27
+ 'source_node_id': 'source_node_id',
28
+ 'source_database': 'source_database'
29
+ }
30
+
31
+ def __init__(self, source_instance_id=None, source_node_id=None, source_database=None):
32
+ """CreateChDatabaseReplicationRequestBody
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param source_instance_id: 源实例ID。
37
+ :type source_instance_id: str
38
+ :param source_node_id: 源节点ID。GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID。
39
+ :type source_node_id: str
40
+ :param source_database: 源数据库。
41
+ :type source_database: str
42
+ """
43
+
44
+
45
+
46
+ self._source_instance_id = None
47
+ self._source_node_id = None
48
+ self._source_database = None
49
+ self.discriminator = None
50
+
51
+ self.source_instance_id = source_instance_id
52
+ if source_node_id is not None:
53
+ self.source_node_id = source_node_id
54
+ self.source_database = source_database
55
+
56
+ @property
57
+ def source_instance_id(self):
58
+ """Gets the source_instance_id of this CreateChDatabaseReplicationRequestBody.
59
+
60
+ 源实例ID。
61
+
62
+ :return: The source_instance_id of this CreateChDatabaseReplicationRequestBody.
63
+ :rtype: str
64
+ """
65
+ return self._source_instance_id
66
+
67
+ @source_instance_id.setter
68
+ def source_instance_id(self, source_instance_id):
69
+ """Sets the source_instance_id of this CreateChDatabaseReplicationRequestBody.
70
+
71
+ 源实例ID。
72
+
73
+ :param source_instance_id: The source_instance_id of this CreateChDatabaseReplicationRequestBody.
74
+ :type source_instance_id: str
75
+ """
76
+ self._source_instance_id = source_instance_id
77
+
78
+ @property
79
+ def source_node_id(self):
80
+ """Gets the source_node_id of this CreateChDatabaseReplicationRequestBody.
81
+
82
+ 源节点ID。GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID。
83
+
84
+ :return: The source_node_id of this CreateChDatabaseReplicationRequestBody.
85
+ :rtype: str
86
+ """
87
+ return self._source_node_id
88
+
89
+ @source_node_id.setter
90
+ def source_node_id(self, source_node_id):
91
+ """Sets the source_node_id of this CreateChDatabaseReplicationRequestBody.
92
+
93
+ 源节点ID。GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID。
94
+
95
+ :param source_node_id: The source_node_id of this CreateChDatabaseReplicationRequestBody.
96
+ :type source_node_id: str
97
+ """
98
+ self._source_node_id = source_node_id
99
+
100
+ @property
101
+ def source_database(self):
102
+ """Gets the source_database of this CreateChDatabaseReplicationRequestBody.
103
+
104
+ 源数据库。
105
+
106
+ :return: The source_database of this CreateChDatabaseReplicationRequestBody.
107
+ :rtype: str
108
+ """
109
+ return self._source_database
110
+
111
+ @source_database.setter
112
+ def source_database(self, source_database):
113
+ """Sets the source_database of this CreateChDatabaseReplicationRequestBody.
114
+
115
+ 源数据库。
116
+
117
+ :param source_database: The source_database of this CreateChDatabaseReplicationRequestBody.
118
+ :type source_database: str
119
+ """
120
+ self._source_database = source_database
121
+
122
+ def to_dict(self):
123
+ """Returns the model properties as a dict"""
124
+ result = {}
125
+
126
+ for attr, _ in six.iteritems(self.openapi_types):
127
+ value = getattr(self, attr)
128
+ if isinstance(value, list):
129
+ result[attr] = list(map(
130
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
131
+ value
132
+ ))
133
+ elif hasattr(value, "to_dict"):
134
+ result[attr] = value.to_dict()
135
+ elif isinstance(value, dict):
136
+ result[attr] = dict(map(
137
+ lambda item: (item[0], item[1].to_dict())
138
+ if hasattr(item[1], "to_dict") else item,
139
+ value.items()
140
+ ))
141
+ else:
142
+ if attr in self.sensitive_list:
143
+ result[attr] = "****"
144
+ else:
145
+ result[attr] = value
146
+
147
+ return result
148
+
149
+ def to_str(self):
150
+ """Returns the string representation of the model"""
151
+ import simplejson as json
152
+ if six.PY2:
153
+ import sys
154
+ reload(sys)
155
+ sys.setdefaultencoding("utf-8")
156
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
157
+
158
+ def __repr__(self):
159
+ """For `print`"""
160
+ return self.to_str()
161
+
162
+ def __eq__(self, other):
163
+ """Returns true if both objects are equal"""
164
+ if not isinstance(other, CreateChDatabaseReplicationRequestBody):
165
+ return False
166
+
167
+ return self.__dict__ == other.__dict__
168
+
169
+ def __ne__(self, other):
170
+ """Returns true if both objects are not equal"""
171
+ return not self == other
@@ -0,0 +1,522 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateChInstanceInfo:
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
+ 'id': 'str',
21
+ 'az_code': 'str',
22
+ 'az_mode': 'str',
23
+ 'name': 'str',
24
+ 'engine': 'ClickHouseEngineInfo',
25
+ 'vpc_id': 'str',
26
+ 'security_group_id': 'str',
27
+ 'subnet_id': 'str',
28
+ 'db_user': 'str',
29
+ 'port': 'int',
30
+ 'ha_mode': 'str',
31
+ 'pay_info': 'CreateChInstanceInfoPayInfo',
32
+ 'ssl_option': 'bool',
33
+ 'status': 'str',
34
+ 'region': 'str',
35
+ 'tags_info': 'CreateChInstanceInfoTagsInfo'
36
+ }
37
+
38
+ attribute_map = {
39
+ 'id': 'id',
40
+ 'az_code': 'az_code',
41
+ 'az_mode': 'az_mode',
42
+ 'name': 'name',
43
+ 'engine': 'engine',
44
+ 'vpc_id': 'vpc_id',
45
+ 'security_group_id': 'security_group_id',
46
+ 'subnet_id': 'subnet_id',
47
+ 'db_user': 'db_user',
48
+ 'port': 'port',
49
+ 'ha_mode': 'ha_mode',
50
+ 'pay_info': 'pay_info',
51
+ 'ssl_option': 'ssl_option',
52
+ 'status': 'status',
53
+ 'region': 'region',
54
+ 'tags_info': 'tags_info'
55
+ }
56
+
57
+ def __init__(self, id=None, az_code=None, az_mode=None, name=None, engine=None, vpc_id=None, security_group_id=None, subnet_id=None, db_user=None, port=None, ha_mode=None, pay_info=None, ssl_option=None, status=None, region=None, tags_info=None):
58
+ """CreateChInstanceInfo
59
+
60
+ The model defined in huaweicloud sdk
61
+
62
+ :param id: 实例ID。
63
+ :type id: str
64
+ :param az_code: 可用区。
65
+ :type az_code: str
66
+ :param az_mode: 可用区模式。 取值范围: - single:单可用区 - double:多可用区
67
+ :type az_mode: str
68
+ :param name: 实例名。
69
+ :type name: str
70
+ :param engine:
71
+ :type engine: :class:`huaweicloudsdkgaussdb.v3.ClickHouseEngineInfo`
72
+ :param vpc_id: 虚拟私有云ID。
73
+ :type vpc_id: str
74
+ :param security_group_id: 安全组ID。
75
+ :type security_group_id: str
76
+ :param subnet_id: 子网ID。
77
+ :type subnet_id: str
78
+ :param db_user: 数据库用户。
79
+ :type db_user: str
80
+ :param port: 数据库端口。取值范围:0~65535。
81
+ :type port: int
82
+ :param ha_mode: 部署模式。 取值范围: - Single:单机 - Ha:主备
83
+ :type ha_mode: str
84
+ :param pay_info:
85
+ :type pay_info: :class:`huaweicloudsdkgaussdb.v3.CreateChInstanceInfoPayInfo`
86
+ :param ssl_option: SSL开关。
87
+ :type ssl_option: bool
88
+ :param status: 实例状态。 取值范围: - creating:创建 - normal:正常 - abnormal:异常 - createfailed:创建失败 - deleted:已删除
89
+ :type status: str
90
+ :param region: 实例所在区。
91
+ :type region: str
92
+ :param tags_info:
93
+ :type tags_info: :class:`huaweicloudsdkgaussdb.v3.CreateChInstanceInfoTagsInfo`
94
+ """
95
+
96
+
97
+
98
+ self._id = None
99
+ self._az_code = None
100
+ self._az_mode = None
101
+ self._name = None
102
+ self._engine = None
103
+ self._vpc_id = None
104
+ self._security_group_id = None
105
+ self._subnet_id = None
106
+ self._db_user = None
107
+ self._port = None
108
+ self._ha_mode = None
109
+ self._pay_info = None
110
+ self._ssl_option = None
111
+ self._status = None
112
+ self._region = None
113
+ self._tags_info = None
114
+ self.discriminator = None
115
+
116
+ self.id = id
117
+ self.az_code = az_code
118
+ self.az_mode = az_mode
119
+ self.name = name
120
+ self.engine = engine
121
+ self.vpc_id = vpc_id
122
+ self.security_group_id = security_group_id
123
+ self.subnet_id = subnet_id
124
+ self.db_user = db_user
125
+ self.port = port
126
+ self.ha_mode = ha_mode
127
+ self.pay_info = pay_info
128
+ self.ssl_option = ssl_option
129
+ self.status = status
130
+ self.region = region
131
+ self.tags_info = tags_info
132
+
133
+ @property
134
+ def id(self):
135
+ """Gets the id of this CreateChInstanceInfo.
136
+
137
+ 实例ID。
138
+
139
+ :return: The id of this CreateChInstanceInfo.
140
+ :rtype: str
141
+ """
142
+ return self._id
143
+
144
+ @id.setter
145
+ def id(self, id):
146
+ """Sets the id of this CreateChInstanceInfo.
147
+
148
+ 实例ID。
149
+
150
+ :param id: The id of this CreateChInstanceInfo.
151
+ :type id: str
152
+ """
153
+ self._id = id
154
+
155
+ @property
156
+ def az_code(self):
157
+ """Gets the az_code of this CreateChInstanceInfo.
158
+
159
+ 可用区。
160
+
161
+ :return: The az_code of this CreateChInstanceInfo.
162
+ :rtype: str
163
+ """
164
+ return self._az_code
165
+
166
+ @az_code.setter
167
+ def az_code(self, az_code):
168
+ """Sets the az_code of this CreateChInstanceInfo.
169
+
170
+ 可用区。
171
+
172
+ :param az_code: The az_code of this CreateChInstanceInfo.
173
+ :type az_code: str
174
+ """
175
+ self._az_code = az_code
176
+
177
+ @property
178
+ def az_mode(self):
179
+ """Gets the az_mode of this CreateChInstanceInfo.
180
+
181
+ 可用区模式。 取值范围: - single:单可用区 - double:多可用区
182
+
183
+ :return: The az_mode of this CreateChInstanceInfo.
184
+ :rtype: str
185
+ """
186
+ return self._az_mode
187
+
188
+ @az_mode.setter
189
+ def az_mode(self, az_mode):
190
+ """Sets the az_mode of this CreateChInstanceInfo.
191
+
192
+ 可用区模式。 取值范围: - single:单可用区 - double:多可用区
193
+
194
+ :param az_mode: The az_mode of this CreateChInstanceInfo.
195
+ :type az_mode: str
196
+ """
197
+ self._az_mode = az_mode
198
+
199
+ @property
200
+ def name(self):
201
+ """Gets the name of this CreateChInstanceInfo.
202
+
203
+ 实例名。
204
+
205
+ :return: The name of this CreateChInstanceInfo.
206
+ :rtype: str
207
+ """
208
+ return self._name
209
+
210
+ @name.setter
211
+ def name(self, name):
212
+ """Sets the name of this CreateChInstanceInfo.
213
+
214
+ 实例名。
215
+
216
+ :param name: The name of this CreateChInstanceInfo.
217
+ :type name: str
218
+ """
219
+ self._name = name
220
+
221
+ @property
222
+ def engine(self):
223
+ """Gets the engine of this CreateChInstanceInfo.
224
+
225
+ :return: The engine of this CreateChInstanceInfo.
226
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ClickHouseEngineInfo`
227
+ """
228
+ return self._engine
229
+
230
+ @engine.setter
231
+ def engine(self, engine):
232
+ """Sets the engine of this CreateChInstanceInfo.
233
+
234
+ :param engine: The engine of this CreateChInstanceInfo.
235
+ :type engine: :class:`huaweicloudsdkgaussdb.v3.ClickHouseEngineInfo`
236
+ """
237
+ self._engine = engine
238
+
239
+ @property
240
+ def vpc_id(self):
241
+ """Gets the vpc_id of this CreateChInstanceInfo.
242
+
243
+ 虚拟私有云ID。
244
+
245
+ :return: The vpc_id of this CreateChInstanceInfo.
246
+ :rtype: str
247
+ """
248
+ return self._vpc_id
249
+
250
+ @vpc_id.setter
251
+ def vpc_id(self, vpc_id):
252
+ """Sets the vpc_id of this CreateChInstanceInfo.
253
+
254
+ 虚拟私有云ID。
255
+
256
+ :param vpc_id: The vpc_id of this CreateChInstanceInfo.
257
+ :type vpc_id: str
258
+ """
259
+ self._vpc_id = vpc_id
260
+
261
+ @property
262
+ def security_group_id(self):
263
+ """Gets the security_group_id of this CreateChInstanceInfo.
264
+
265
+ 安全组ID。
266
+
267
+ :return: The security_group_id of this CreateChInstanceInfo.
268
+ :rtype: str
269
+ """
270
+ return self._security_group_id
271
+
272
+ @security_group_id.setter
273
+ def security_group_id(self, security_group_id):
274
+ """Sets the security_group_id of this CreateChInstanceInfo.
275
+
276
+ 安全组ID。
277
+
278
+ :param security_group_id: The security_group_id of this CreateChInstanceInfo.
279
+ :type security_group_id: str
280
+ """
281
+ self._security_group_id = security_group_id
282
+
283
+ @property
284
+ def subnet_id(self):
285
+ """Gets the subnet_id of this CreateChInstanceInfo.
286
+
287
+ 子网ID。
288
+
289
+ :return: The subnet_id of this CreateChInstanceInfo.
290
+ :rtype: str
291
+ """
292
+ return self._subnet_id
293
+
294
+ @subnet_id.setter
295
+ def subnet_id(self, subnet_id):
296
+ """Sets the subnet_id of this CreateChInstanceInfo.
297
+
298
+ 子网ID。
299
+
300
+ :param subnet_id: The subnet_id of this CreateChInstanceInfo.
301
+ :type subnet_id: str
302
+ """
303
+ self._subnet_id = subnet_id
304
+
305
+ @property
306
+ def db_user(self):
307
+ """Gets the db_user of this CreateChInstanceInfo.
308
+
309
+ 数据库用户。
310
+
311
+ :return: The db_user of this CreateChInstanceInfo.
312
+ :rtype: str
313
+ """
314
+ return self._db_user
315
+
316
+ @db_user.setter
317
+ def db_user(self, db_user):
318
+ """Sets the db_user of this CreateChInstanceInfo.
319
+
320
+ 数据库用户。
321
+
322
+ :param db_user: The db_user of this CreateChInstanceInfo.
323
+ :type db_user: str
324
+ """
325
+ self._db_user = db_user
326
+
327
+ @property
328
+ def port(self):
329
+ """Gets the port of this CreateChInstanceInfo.
330
+
331
+ 数据库端口。取值范围:0~65535。
332
+
333
+ :return: The port of this CreateChInstanceInfo.
334
+ :rtype: int
335
+ """
336
+ return self._port
337
+
338
+ @port.setter
339
+ def port(self, port):
340
+ """Sets the port of this CreateChInstanceInfo.
341
+
342
+ 数据库端口。取值范围:0~65535。
343
+
344
+ :param port: The port of this CreateChInstanceInfo.
345
+ :type port: int
346
+ """
347
+ self._port = port
348
+
349
+ @property
350
+ def ha_mode(self):
351
+ """Gets the ha_mode of this CreateChInstanceInfo.
352
+
353
+ 部署模式。 取值范围: - Single:单机 - Ha:主备
354
+
355
+ :return: The ha_mode of this CreateChInstanceInfo.
356
+ :rtype: str
357
+ """
358
+ return self._ha_mode
359
+
360
+ @ha_mode.setter
361
+ def ha_mode(self, ha_mode):
362
+ """Sets the ha_mode of this CreateChInstanceInfo.
363
+
364
+ 部署模式。 取值范围: - Single:单机 - Ha:主备
365
+
366
+ :param ha_mode: The ha_mode of this CreateChInstanceInfo.
367
+ :type ha_mode: str
368
+ """
369
+ self._ha_mode = ha_mode
370
+
371
+ @property
372
+ def pay_info(self):
373
+ """Gets the pay_info of this CreateChInstanceInfo.
374
+
375
+ :return: The pay_info of this CreateChInstanceInfo.
376
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateChInstanceInfoPayInfo`
377
+ """
378
+ return self._pay_info
379
+
380
+ @pay_info.setter
381
+ def pay_info(self, pay_info):
382
+ """Sets the pay_info of this CreateChInstanceInfo.
383
+
384
+ :param pay_info: The pay_info of this CreateChInstanceInfo.
385
+ :type pay_info: :class:`huaweicloudsdkgaussdb.v3.CreateChInstanceInfoPayInfo`
386
+ """
387
+ self._pay_info = pay_info
388
+
389
+ @property
390
+ def ssl_option(self):
391
+ """Gets the ssl_option of this CreateChInstanceInfo.
392
+
393
+ SSL开关。
394
+
395
+ :return: The ssl_option of this CreateChInstanceInfo.
396
+ :rtype: bool
397
+ """
398
+ return self._ssl_option
399
+
400
+ @ssl_option.setter
401
+ def ssl_option(self, ssl_option):
402
+ """Sets the ssl_option of this CreateChInstanceInfo.
403
+
404
+ SSL开关。
405
+
406
+ :param ssl_option: The ssl_option of this CreateChInstanceInfo.
407
+ :type ssl_option: bool
408
+ """
409
+ self._ssl_option = ssl_option
410
+
411
+ @property
412
+ def status(self):
413
+ """Gets the status of this CreateChInstanceInfo.
414
+
415
+ 实例状态。 取值范围: - creating:创建 - normal:正常 - abnormal:异常 - createfailed:创建失败 - deleted:已删除
416
+
417
+ :return: The status of this CreateChInstanceInfo.
418
+ :rtype: str
419
+ """
420
+ return self._status
421
+
422
+ @status.setter
423
+ def status(self, status):
424
+ """Sets the status of this CreateChInstanceInfo.
425
+
426
+ 实例状态。 取值范围: - creating:创建 - normal:正常 - abnormal:异常 - createfailed:创建失败 - deleted:已删除
427
+
428
+ :param status: The status of this CreateChInstanceInfo.
429
+ :type status: str
430
+ """
431
+ self._status = status
432
+
433
+ @property
434
+ def region(self):
435
+ """Gets the region of this CreateChInstanceInfo.
436
+
437
+ 实例所在区。
438
+
439
+ :return: The region of this CreateChInstanceInfo.
440
+ :rtype: str
441
+ """
442
+ return self._region
443
+
444
+ @region.setter
445
+ def region(self, region):
446
+ """Sets the region of this CreateChInstanceInfo.
447
+
448
+ 实例所在区。
449
+
450
+ :param region: The region of this CreateChInstanceInfo.
451
+ :type region: str
452
+ """
453
+ self._region = region
454
+
455
+ @property
456
+ def tags_info(self):
457
+ """Gets the tags_info of this CreateChInstanceInfo.
458
+
459
+ :return: The tags_info of this CreateChInstanceInfo.
460
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateChInstanceInfoTagsInfo`
461
+ """
462
+ return self._tags_info
463
+
464
+ @tags_info.setter
465
+ def tags_info(self, tags_info):
466
+ """Sets the tags_info of this CreateChInstanceInfo.
467
+
468
+ :param tags_info: The tags_info of this CreateChInstanceInfo.
469
+ :type tags_info: :class:`huaweicloudsdkgaussdb.v3.CreateChInstanceInfoTagsInfo`
470
+ """
471
+ self._tags_info = tags_info
472
+
473
+ def to_dict(self):
474
+ """Returns the model properties as a dict"""
475
+ result = {}
476
+
477
+ for attr, _ in six.iteritems(self.openapi_types):
478
+ value = getattr(self, attr)
479
+ if isinstance(value, list):
480
+ result[attr] = list(map(
481
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
482
+ value
483
+ ))
484
+ elif hasattr(value, "to_dict"):
485
+ result[attr] = value.to_dict()
486
+ elif isinstance(value, dict):
487
+ result[attr] = dict(map(
488
+ lambda item: (item[0], item[1].to_dict())
489
+ if hasattr(item[1], "to_dict") else item,
490
+ value.items()
491
+ ))
492
+ else:
493
+ if attr in self.sensitive_list:
494
+ result[attr] = "****"
495
+ else:
496
+ result[attr] = value
497
+
498
+ return result
499
+
500
+ def to_str(self):
501
+ """Returns the string representation of the model"""
502
+ import simplejson as json
503
+ if six.PY2:
504
+ import sys
505
+ reload(sys)
506
+ sys.setdefaultencoding("utf-8")
507
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
508
+
509
+ def __repr__(self):
510
+ """For `print`"""
511
+ return self.to_str()
512
+
513
+ def __eq__(self, other):
514
+ """Returns true if both objects are equal"""
515
+ if not isinstance(other, CreateChInstanceInfo):
516
+ return False
517
+
518
+ return self.__dict__ == other.__dict__
519
+
520
+ def __ne__(self, other):
521
+ """Returns true if both objects are not equal"""
522
+ return not self == other