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,168 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CheckClickHouseTableConfigRequest:
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
+ 'instance_id': 'str',
21
+ 'x_language': 'str',
22
+ 'body': 'CheckChDatabaseTableConfigRequestBody'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'instance_id': 'instance_id',
27
+ 'x_language': 'X-Language',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, instance_id=None, x_language=None, body=None):
32
+ """CheckClickHouseTableConfigRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param instance_id: ClickHouse实例ID,严格匹配UUID规则。
37
+ :type instance_id: str
38
+ :param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
39
+ :type x_language: str
40
+ :param body: Body of the CheckClickHouseTableConfigRequest
41
+ :type body: :class:`huaweicloudsdkgaussdb.v3.CheckChDatabaseTableConfigRequestBody`
42
+ """
43
+
44
+
45
+
46
+ self._instance_id = None
47
+ self._x_language = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ self.instance_id = instance_id
52
+ if x_language is not None:
53
+ self.x_language = x_language
54
+ if body is not None:
55
+ self.body = body
56
+
57
+ @property
58
+ def instance_id(self):
59
+ """Gets the instance_id of this CheckClickHouseTableConfigRequest.
60
+
61
+ ClickHouse实例ID,严格匹配UUID规则。
62
+
63
+ :return: The instance_id of this CheckClickHouseTableConfigRequest.
64
+ :rtype: str
65
+ """
66
+ return self._instance_id
67
+
68
+ @instance_id.setter
69
+ def instance_id(self, instance_id):
70
+ """Sets the instance_id of this CheckClickHouseTableConfigRequest.
71
+
72
+ ClickHouse实例ID,严格匹配UUID规则。
73
+
74
+ :param instance_id: The instance_id of this CheckClickHouseTableConfigRequest.
75
+ :type instance_id: str
76
+ """
77
+ self._instance_id = instance_id
78
+
79
+ @property
80
+ def x_language(self):
81
+ """Gets the x_language of this CheckClickHouseTableConfigRequest.
82
+
83
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
84
+
85
+ :return: The x_language of this CheckClickHouseTableConfigRequest.
86
+ :rtype: str
87
+ """
88
+ return self._x_language
89
+
90
+ @x_language.setter
91
+ def x_language(self, x_language):
92
+ """Sets the x_language of this CheckClickHouseTableConfigRequest.
93
+
94
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
95
+
96
+ :param x_language: The x_language of this CheckClickHouseTableConfigRequest.
97
+ :type x_language: str
98
+ """
99
+ self._x_language = x_language
100
+
101
+ @property
102
+ def body(self):
103
+ """Gets the body of this CheckClickHouseTableConfigRequest.
104
+
105
+ :return: The body of this CheckClickHouseTableConfigRequest.
106
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CheckChDatabaseTableConfigRequestBody`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ """Sets the body of this CheckClickHouseTableConfigRequest.
113
+
114
+ :param body: The body of this CheckClickHouseTableConfigRequest.
115
+ :type body: :class:`huaweicloudsdkgaussdb.v3.CheckChDatabaseTableConfigRequestBody`
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, CheckClickHouseTableConfigRequest):
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,145 @@
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 CheckClickHouseTableConfigResponse(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
+ 'source_database_name': 'str',
22
+ 'table_config_check_results': 'list[ChDatabaseTableConfigCheckResult]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'source_database_name': 'source_database_name',
27
+ 'table_config_check_results': 'table_config_check_results'
28
+ }
29
+
30
+ def __init__(self, source_database_name=None, table_config_check_results=None):
31
+ """CheckClickHouseTableConfigResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param source_database_name: 源数据库名。
36
+ :type source_database_name: str
37
+ :param table_config_check_results: 表配置检查结果。
38
+ :type table_config_check_results: list[:class:`huaweicloudsdkgaussdb.v3.ChDatabaseTableConfigCheckResult`]
39
+ """
40
+
41
+ super(CheckClickHouseTableConfigResponse, self).__init__()
42
+
43
+ self._source_database_name = None
44
+ self._table_config_check_results = None
45
+ self.discriminator = None
46
+
47
+ if source_database_name is not None:
48
+ self.source_database_name = source_database_name
49
+ if table_config_check_results is not None:
50
+ self.table_config_check_results = table_config_check_results
51
+
52
+ @property
53
+ def source_database_name(self):
54
+ """Gets the source_database_name of this CheckClickHouseTableConfigResponse.
55
+
56
+ 源数据库名。
57
+
58
+ :return: The source_database_name of this CheckClickHouseTableConfigResponse.
59
+ :rtype: str
60
+ """
61
+ return self._source_database_name
62
+
63
+ @source_database_name.setter
64
+ def source_database_name(self, source_database_name):
65
+ """Sets the source_database_name of this CheckClickHouseTableConfigResponse.
66
+
67
+ 源数据库名。
68
+
69
+ :param source_database_name: The source_database_name of this CheckClickHouseTableConfigResponse.
70
+ :type source_database_name: str
71
+ """
72
+ self._source_database_name = source_database_name
73
+
74
+ @property
75
+ def table_config_check_results(self):
76
+ """Gets the table_config_check_results of this CheckClickHouseTableConfigResponse.
77
+
78
+ 表配置检查结果。
79
+
80
+ :return: The table_config_check_results of this CheckClickHouseTableConfigResponse.
81
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.ChDatabaseTableConfigCheckResult`]
82
+ """
83
+ return self._table_config_check_results
84
+
85
+ @table_config_check_results.setter
86
+ def table_config_check_results(self, table_config_check_results):
87
+ """Sets the table_config_check_results of this CheckClickHouseTableConfigResponse.
88
+
89
+ 表配置检查结果。
90
+
91
+ :param table_config_check_results: The table_config_check_results of this CheckClickHouseTableConfigResponse.
92
+ :type table_config_check_results: list[:class:`huaweicloudsdkgaussdb.v3.ChDatabaseTableConfigCheckResult`]
93
+ """
94
+ self._table_config_check_results = table_config_check_results
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, CheckClickHouseTableConfigResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other
@@ -0,0 +1,140 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CheckStarrocksParamsRequest:
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
+ 'body': 'CheckStarrocksParamsRequestBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'x_language': 'X-Language',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, x_language=None, body=None):
30
+ """CheckStarrocksParamsRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
35
+ :type x_language: str
36
+ :param body: Body of the CheckStarrocksParamsRequest
37
+ :type body: :class:`huaweicloudsdkgaussdb.v3.CheckStarrocksParamsRequestBody`
38
+ """
39
+
40
+
41
+
42
+ self._x_language = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ if x_language is not None:
47
+ self.x_language = x_language
48
+ if body is not None:
49
+ self.body = body
50
+
51
+ @property
52
+ def x_language(self):
53
+ """Gets the x_language of this CheckStarrocksParamsRequest.
54
+
55
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
56
+
57
+ :return: The x_language of this CheckStarrocksParamsRequest.
58
+ :rtype: str
59
+ """
60
+ return self._x_language
61
+
62
+ @x_language.setter
63
+ def x_language(self, x_language):
64
+ """Sets the x_language of this CheckStarrocksParamsRequest.
65
+
66
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
67
+
68
+ :param x_language: The x_language of this CheckStarrocksParamsRequest.
69
+ :type x_language: str
70
+ """
71
+ self._x_language = x_language
72
+
73
+ @property
74
+ def body(self):
75
+ """Gets the body of this CheckStarrocksParamsRequest.
76
+
77
+ :return: The body of this CheckStarrocksParamsRequest.
78
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CheckStarrocksParamsRequestBody`
79
+ """
80
+ return self._body
81
+
82
+ @body.setter
83
+ def body(self, body):
84
+ """Sets the body of this CheckStarrocksParamsRequest.
85
+
86
+ :param body: The body of this CheckStarrocksParamsRequest.
87
+ :type body: :class:`huaweicloudsdkgaussdb.v3.CheckStarrocksParamsRequestBody`
88
+ """
89
+ self._body = body
90
+
91
+ def to_dict(self):
92
+ """Returns the model properties as a dict"""
93
+ result = {}
94
+
95
+ for attr, _ in six.iteritems(self.openapi_types):
96
+ value = getattr(self, attr)
97
+ if isinstance(value, list):
98
+ result[attr] = list(map(
99
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
100
+ value
101
+ ))
102
+ elif hasattr(value, "to_dict"):
103
+ result[attr] = value.to_dict()
104
+ elif isinstance(value, dict):
105
+ result[attr] = dict(map(
106
+ lambda item: (item[0], item[1].to_dict())
107
+ if hasattr(item[1], "to_dict") else item,
108
+ value.items()
109
+ ))
110
+ else:
111
+ if attr in self.sensitive_list:
112
+ result[attr] = "****"
113
+ else:
114
+ result[attr] = value
115
+
116
+ return result
117
+
118
+ def to_str(self):
119
+ """Returns the string representation of the model"""
120
+ import simplejson as json
121
+ if six.PY2:
122
+ import sys
123
+ reload(sys)
124
+ sys.setdefaultencoding("utf-8")
125
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
126
+
127
+ def __repr__(self):
128
+ """For `print`"""
129
+ return self.to_str()
130
+
131
+ def __eq__(self, other):
132
+ """Returns true if both objects are equal"""
133
+ if not isinstance(other, CheckStarrocksParamsRequest):
134
+ return False
135
+
136
+ return self.__dict__ == other.__dict__
137
+
138
+ def __ne__(self, other):
139
+ """Returns true if both objects are not equal"""
140
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CheckStarrocksParamsRequestBody:
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_configuration_id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'source_configuration_id': 'source_configuration_id'
25
+ }
26
+
27
+ def __init__(self, source_configuration_id=None):
28
+ """CheckStarrocksParamsRequestBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param source_configuration_id: 需要进行比较的源参数模板ID。通过ListStarrocksInstanceInfo接口获得。
33
+ :type source_configuration_id: str
34
+ """
35
+
36
+
37
+
38
+ self._source_configuration_id = None
39
+ self.discriminator = None
40
+
41
+ self.source_configuration_id = source_configuration_id
42
+
43
+ @property
44
+ def source_configuration_id(self):
45
+ """Gets the source_configuration_id of this CheckStarrocksParamsRequestBody.
46
+
47
+ 需要进行比较的源参数模板ID。通过ListStarrocksInstanceInfo接口获得。
48
+
49
+ :return: The source_configuration_id of this CheckStarrocksParamsRequestBody.
50
+ :rtype: str
51
+ """
52
+ return self._source_configuration_id
53
+
54
+ @source_configuration_id.setter
55
+ def source_configuration_id(self, source_configuration_id):
56
+ """Sets the source_configuration_id of this CheckStarrocksParamsRequestBody.
57
+
58
+ 需要进行比较的源参数模板ID。通过ListStarrocksInstanceInfo接口获得。
59
+
60
+ :param source_configuration_id: The source_configuration_id of this CheckStarrocksParamsRequestBody.
61
+ :type source_configuration_id: str
62
+ """
63
+ self._source_configuration_id = source_configuration_id
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, CheckStarrocksParamsRequestBody):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ 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 CheckStarrocksParamsResponse(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
+ 'check_starrocks_params_responce': 'list[ParamGroupParameterDifferences]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'check_starrocks_params_responce': 'check_starrocks_params_responce'
26
+ }
27
+
28
+ def __init__(self, check_starrocks_params_responce=None):
29
+ """CheckStarrocksParamsResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param check_starrocks_params_responce: 参数之间区别的集合。
34
+ :type check_starrocks_params_responce: list[:class:`huaweicloudsdkgaussdb.v3.ParamGroupParameterDifferences`]
35
+ """
36
+
37
+ super(CheckStarrocksParamsResponse, self).__init__()
38
+
39
+ self._check_starrocks_params_responce = None
40
+ self.discriminator = None
41
+
42
+ if check_starrocks_params_responce is not None:
43
+ self.check_starrocks_params_responce = check_starrocks_params_responce
44
+
45
+ @property
46
+ def check_starrocks_params_responce(self):
47
+ """Gets the check_starrocks_params_responce of this CheckStarrocksParamsResponse.
48
+
49
+ 参数之间区别的集合。
50
+
51
+ :return: The check_starrocks_params_responce of this CheckStarrocksParamsResponse.
52
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.ParamGroupParameterDifferences`]
53
+ """
54
+ return self._check_starrocks_params_responce
55
+
56
+ @check_starrocks_params_responce.setter
57
+ def check_starrocks_params_responce(self, check_starrocks_params_responce):
58
+ """Sets the check_starrocks_params_responce of this CheckStarrocksParamsResponse.
59
+
60
+ 参数之间区别的集合。
61
+
62
+ :param check_starrocks_params_responce: The check_starrocks_params_responce of this CheckStarrocksParamsResponse.
63
+ :type check_starrocks_params_responce: list[:class:`huaweicloudsdkgaussdb.v3.ParamGroupParameterDifferences`]
64
+ """
65
+ self._check_starrocks_params_responce = check_starrocks_params_responce
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, CheckStarrocksParamsResponse):
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