huaweicloudsdkgaussdb 3.1.94__py2.py3-none-any.whl → 3.1.96__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 (106) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +97 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1591 -0
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +1591 -0
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +97 -0
  5. huaweicloudsdkgaussdb/v3/model/check_data_base_config_request.py +167 -0
  6. huaweicloudsdkgaussdb/v3/model/check_data_base_config_response.py +232 -0
  7. huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_request.py +140 -0
  8. huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_response.py +116 -0
  9. huaweicloudsdkgaussdb/v3/model/check_table_config_request.py +167 -0
  10. huaweicloudsdkgaussdb/v3/model/check_table_config_response.py +203 -0
  11. huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication.py +227 -0
  12. huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_request.py +167 -0
  13. huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_response.py +116 -0
  14. huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_request.py +168 -0
  15. huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_response.py +116 -0
  16. huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_request.py +168 -0
  17. huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_response.py +141 -0
  18. huaweicloudsdkgaussdb/v3/model/data_base_info.py +144 -0
  19. huaweicloudsdkgaussdb/v3/model/db_config.py +144 -0
  20. huaweicloudsdkgaussdb/v3/model/db_config_check_request_v3.py +285 -0
  21. huaweicloudsdkgaussdb/v3/model/db_config_check_result.py +173 -0
  22. huaweicloudsdkgaussdb/v3/model/db_parameter.py +231 -0
  23. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication.py +115 -0
  24. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_request.py +167 -0
  25. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_response.py +116 -0
  26. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_request.py +171 -0
  27. huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_response.py +116 -0
  28. huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_request.py +171 -0
  29. huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_response.py +116 -0
  30. huaweicloudsdkgaussdb/v3/model/htap_flavor_info_flavors.py +318 -0
  31. huaweicloudsdkgaussdb/v3/model/htap_instance_list_available_zones.py +173 -0
  32. huaweicloudsdkgaussdb/v3/model/htap_instance_list_instance_state.py +202 -0
  33. huaweicloudsdkgaussdb/v3/model/htap_instance_list_instances.py +832 -0
  34. huaweicloudsdkgaussdb/v3/model/htap_instance_list_network.py +173 -0
  35. huaweicloudsdkgaussdb/v3/model/htap_storage_type_storage_type.py +173 -0
  36. huaweicloudsdkgaussdb/v3/model/list_htap_data_store_request.py +143 -0
  37. huaweicloudsdkgaussdb/v3/model/list_htap_data_store_response.py +116 -0
  38. huaweicloudsdkgaussdb/v3/model/list_htap_flavor_request.py +230 -0
  39. huaweicloudsdkgaussdb/v3/model/list_htap_flavor_response.py +116 -0
  40. huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_request.py +143 -0
  41. huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_response.py +174 -0
  42. huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_request.py +171 -0
  43. huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_response.py +116 -0
  44. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_request.py +229 -0
  45. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_response.py +174 -0
  46. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_request.py +170 -0
  47. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_response.py +336 -0
  48. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_request.py +200 -0
  49. huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_response.py +174 -0
  50. huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_request.py +142 -0
  51. huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_response.py +116 -0
  52. huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_request.py +171 -0
  53. huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_response.py +116 -0
  54. huaweicloudsdkgaussdb/v3/model/param_group.py +144 -0
  55. huaweicloudsdkgaussdb/v3/model/query_action.py +318 -0
  56. huaweicloudsdkgaussdb/v3/model/readable_node_infos.py +173 -0
  57. huaweicloudsdkgaussdb/v3/model/resource_check.py +138 -0
  58. huaweicloudsdkgaussdb/v3/model/resource_check_resource.py +367 -0
  59. huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_request.py +143 -0
  60. huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_response.py +116 -0
  61. huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_request.py +171 -0
  62. huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_response.py +116 -0
  63. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_request.py +228 -0
  64. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_response.py +145 -0
  65. huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_users_user_details.py +198 -0
  66. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance.py +538 -0
  67. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_engine.py +144 -0
  68. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_pay_info.py +231 -0
  69. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +144 -0
  70. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_sys_tags.py +144 -0
  71. huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_tags.py +144 -0
  72. huaweicloudsdkgaussdb/v3/model/sr_data_stores_datastores.py +173 -0
  73. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request.py +459 -0
  74. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_be_volume.py +142 -0
  75. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_engine.py +142 -0
  76. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_fe_volume.py +142 -0
  77. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_ha.py +114 -0
  78. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info.py +114 -0
  79. huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info_sys_tags.py +142 -0
  80. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_info.py +228 -0
  81. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_sinfo.py +201 -0
  82. huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_winfo.py +142 -0
  83. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_datastore.py +173 -0
  84. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_groups.py +231 -0
  85. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_instances.py +1292 -0
  86. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_nodes.py +1006 -0
  87. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_ops_window.py +173 -0
  88. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_port_info.py +115 -0
  89. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info.py +144 -0
  90. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_sys_tags.py +144 -0
  91. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_tags.py +144 -0
  92. huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_volume.py +144 -0
  93. huaweicloudsdkgaussdb/v3/model/star_rocks_replication_info.py +318 -0
  94. huaweicloudsdkgaussdb/v3/model/table_config_check_request_v3.py +285 -0
  95. huaweicloudsdkgaussdb/v3/model/table_config_check_result.py +173 -0
  96. huaweicloudsdkgaussdb/v3/model/table_repl_config.py +173 -0
  97. huaweicloudsdkgaussdb/v3/model/tables_config.py +144 -0
  98. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_request.py +168 -0
  99. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_response.py +116 -0
  100. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_request.py +168 -0
  101. huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_response.py +116 -0
  102. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/METADATA +2 -2
  103. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/RECORD +106 -9
  104. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/LICENSE +0 -0
  105. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/WHEEL +0 -0
  106. {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/top_level.txt +0 -0
@@ -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 CheckStarRocksResourceRequest:
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': 'ResourceCheck'
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
+ """CheckStarRocksResourceRequest
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 CheckStarRocksResourceRequest
37
+ :type body: :class:`huaweicloudsdkgaussdb.v3.ResourceCheck`
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 CheckStarRocksResourceRequest.
54
+
55
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
56
+
57
+ :return: The x_language of this CheckStarRocksResourceRequest.
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 CheckStarRocksResourceRequest.
65
+
66
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
67
+
68
+ :param x_language: The x_language of this CheckStarRocksResourceRequest.
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 CheckStarRocksResourceRequest.
76
+
77
+ :return: The body of this CheckStarRocksResourceRequest.
78
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ResourceCheck`
79
+ """
80
+ return self._body
81
+
82
+ @body.setter
83
+ def body(self, body):
84
+ """Sets the body of this CheckStarRocksResourceRequest.
85
+
86
+ :param body: The body of this CheckStarRocksResourceRequest.
87
+ :type body: :class:`huaweicloudsdkgaussdb.v3.ResourceCheck`
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, CheckStarRocksResourceRequest):
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,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 CheckStarRocksResourceResponse(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': 'bool'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'result': 'result'
26
+ }
27
+
28
+ def __init__(self, result=None):
29
+ """CheckStarRocksResourceResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param result: 检查结果。
34
+ :type result: bool
35
+ """
36
+
37
+ super(CheckStarRocksResourceResponse, 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
+ """Gets the result of this CheckStarRocksResourceResponse.
48
+
49
+ 检查结果。
50
+
51
+ :return: The result of this CheckStarRocksResourceResponse.
52
+ :rtype: bool
53
+ """
54
+ return self._result
55
+
56
+ @result.setter
57
+ def result(self, result):
58
+ """Sets the result of this CheckStarRocksResourceResponse.
59
+
60
+ 检查结果。
61
+
62
+ :param result: The result of this CheckStarRocksResourceResponse.
63
+ :type result: bool
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, CheckStarRocksResourceResponse):
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
@@ -0,0 +1,167 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CheckTableConfigRequest:
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': 'TableConfigCheckRequestV3'
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
+ """CheckTableConfigRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
37
+ :type x_language: str
38
+ :param instance_id: StarRocks实例ID,严格匹配UUID规则。
39
+ :type instance_id: str
40
+ :param body: Body of the CheckTableConfigRequest
41
+ :type body: :class:`huaweicloudsdkgaussdb.v3.TableConfigCheckRequestV3`
42
+ """
43
+
44
+
45
+
46
+ self._x_language = None
47
+ self._instance_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ self.x_language = x_language
52
+ self.instance_id = instance_id
53
+ if body is not None:
54
+ self.body = body
55
+
56
+ @property
57
+ def x_language(self):
58
+ """Gets the x_language of this CheckTableConfigRequest.
59
+
60
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
61
+
62
+ :return: The x_language of this CheckTableConfigRequest.
63
+ :rtype: str
64
+ """
65
+ return self._x_language
66
+
67
+ @x_language.setter
68
+ def x_language(self, x_language):
69
+ """Sets the x_language of this CheckTableConfigRequest.
70
+
71
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
72
+
73
+ :param x_language: The x_language of this CheckTableConfigRequest.
74
+ :type x_language: str
75
+ """
76
+ self._x_language = x_language
77
+
78
+ @property
79
+ def instance_id(self):
80
+ """Gets the instance_id of this CheckTableConfigRequest.
81
+
82
+ StarRocks实例ID,严格匹配UUID规则。
83
+
84
+ :return: The instance_id of this CheckTableConfigRequest.
85
+ :rtype: str
86
+ """
87
+ return self._instance_id
88
+
89
+ @instance_id.setter
90
+ def instance_id(self, instance_id):
91
+ """Sets the instance_id of this CheckTableConfigRequest.
92
+
93
+ StarRocks实例ID,严格匹配UUID规则。
94
+
95
+ :param instance_id: The instance_id of this CheckTableConfigRequest.
96
+ :type instance_id: str
97
+ """
98
+ self._instance_id = instance_id
99
+
100
+ @property
101
+ def body(self):
102
+ """Gets the body of this CheckTableConfigRequest.
103
+
104
+ :return: The body of this CheckTableConfigRequest.
105
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.TableConfigCheckRequestV3`
106
+ """
107
+ return self._body
108
+
109
+ @body.setter
110
+ def body(self, body):
111
+ """Sets the body of this CheckTableConfigRequest.
112
+
113
+ :param body: The body of this CheckTableConfigRequest.
114
+ :type body: :class:`huaweicloudsdkgaussdb.v3.TableConfigCheckRequestV3`
115
+ """
116
+ self._body = body
117
+
118
+ def to_dict(self):
119
+ """Returns the model properties as a dict"""
120
+ result = {}
121
+
122
+ for attr, _ in six.iteritems(self.openapi_types):
123
+ value = getattr(self, attr)
124
+ if isinstance(value, list):
125
+ result[attr] = list(map(
126
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
127
+ value
128
+ ))
129
+ elif hasattr(value, "to_dict"):
130
+ result[attr] = value.to_dict()
131
+ elif isinstance(value, dict):
132
+ result[attr] = dict(map(
133
+ lambda item: (item[0], item[1].to_dict())
134
+ if hasattr(item[1], "to_dict") else item,
135
+ value.items()
136
+ ))
137
+ else:
138
+ if attr in self.sensitive_list:
139
+ result[attr] = "****"
140
+ else:
141
+ result[attr] = value
142
+
143
+ return result
144
+
145
+ def to_str(self):
146
+ """Returns the string representation of the model"""
147
+ import simplejson as json
148
+ if six.PY2:
149
+ import sys
150
+ reload(sys)
151
+ sys.setdefaultencoding("utf-8")
152
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
153
+
154
+ def __repr__(self):
155
+ """For `print`"""
156
+ return self.to_str()
157
+
158
+ def __eq__(self, other):
159
+ """Returns true if both objects are equal"""
160
+ if not isinstance(other, CheckTableConfigRequest):
161
+ return False
162
+
163
+ return self.__dict__ == other.__dict__
164
+
165
+ def __ne__(self, other):
166
+ """Returns true if both objects are not equal"""
167
+ return not self == other
@@ -0,0 +1,203 @@
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 CheckTableConfigResponse(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
+ 'target_database_name': 'str',
23
+ 'tbl_config_check_results': 'list[TableConfigCheckResult]',
24
+ 'task_name': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'source_database_name': 'source_database_name',
29
+ 'target_database_name': 'target_database_name',
30
+ 'tbl_config_check_results': 'tbl_config_check_results',
31
+ 'task_name': 'task_name'
32
+ }
33
+
34
+ def __init__(self, source_database_name=None, target_database_name=None, tbl_config_check_results=None, task_name=None):
35
+ """CheckTableConfigResponse
36
+
37
+ The model defined in huaweicloud sdk
38
+
39
+ :param source_database_name: GaussDB(for MySQL)数据库名。
40
+ :type source_database_name: str
41
+ :param target_database_name: 目标数据库名。
42
+ :type target_database_name: str
43
+ :param tbl_config_check_results: 表配置检查结果。
44
+ :type tbl_config_check_results: list[:class:`huaweicloudsdkgaussdb.v3.TableConfigCheckResult`]
45
+ :param task_name: 同步任务名称。
46
+ :type task_name: str
47
+ """
48
+
49
+ super(CheckTableConfigResponse, self).__init__()
50
+
51
+ self._source_database_name = None
52
+ self._target_database_name = None
53
+ self._tbl_config_check_results = None
54
+ self._task_name = None
55
+ self.discriminator = None
56
+
57
+ if source_database_name is not None:
58
+ self.source_database_name = source_database_name
59
+ if target_database_name is not None:
60
+ self.target_database_name = target_database_name
61
+ if tbl_config_check_results is not None:
62
+ self.tbl_config_check_results = tbl_config_check_results
63
+ if task_name is not None:
64
+ self.task_name = task_name
65
+
66
+ @property
67
+ def source_database_name(self):
68
+ """Gets the source_database_name of this CheckTableConfigResponse.
69
+
70
+ GaussDB(for MySQL)数据库名。
71
+
72
+ :return: The source_database_name of this CheckTableConfigResponse.
73
+ :rtype: str
74
+ """
75
+ return self._source_database_name
76
+
77
+ @source_database_name.setter
78
+ def source_database_name(self, source_database_name):
79
+ """Sets the source_database_name of this CheckTableConfigResponse.
80
+
81
+ GaussDB(for MySQL)数据库名。
82
+
83
+ :param source_database_name: The source_database_name of this CheckTableConfigResponse.
84
+ :type source_database_name: str
85
+ """
86
+ self._source_database_name = source_database_name
87
+
88
+ @property
89
+ def target_database_name(self):
90
+ """Gets the target_database_name of this CheckTableConfigResponse.
91
+
92
+ 目标数据库名。
93
+
94
+ :return: The target_database_name of this CheckTableConfigResponse.
95
+ :rtype: str
96
+ """
97
+ return self._target_database_name
98
+
99
+ @target_database_name.setter
100
+ def target_database_name(self, target_database_name):
101
+ """Sets the target_database_name of this CheckTableConfigResponse.
102
+
103
+ 目标数据库名。
104
+
105
+ :param target_database_name: The target_database_name of this CheckTableConfigResponse.
106
+ :type target_database_name: str
107
+ """
108
+ self._target_database_name = target_database_name
109
+
110
+ @property
111
+ def tbl_config_check_results(self):
112
+ """Gets the tbl_config_check_results of this CheckTableConfigResponse.
113
+
114
+ 表配置检查结果。
115
+
116
+ :return: The tbl_config_check_results of this CheckTableConfigResponse.
117
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.TableConfigCheckResult`]
118
+ """
119
+ return self._tbl_config_check_results
120
+
121
+ @tbl_config_check_results.setter
122
+ def tbl_config_check_results(self, tbl_config_check_results):
123
+ """Sets the tbl_config_check_results of this CheckTableConfigResponse.
124
+
125
+ 表配置检查结果。
126
+
127
+ :param tbl_config_check_results: The tbl_config_check_results of this CheckTableConfigResponse.
128
+ :type tbl_config_check_results: list[:class:`huaweicloudsdkgaussdb.v3.TableConfigCheckResult`]
129
+ """
130
+ self._tbl_config_check_results = tbl_config_check_results
131
+
132
+ @property
133
+ def task_name(self):
134
+ """Gets the task_name of this CheckTableConfigResponse.
135
+
136
+ 同步任务名称。
137
+
138
+ :return: The task_name of this CheckTableConfigResponse.
139
+ :rtype: str
140
+ """
141
+ return self._task_name
142
+
143
+ @task_name.setter
144
+ def task_name(self, task_name):
145
+ """Sets the task_name of this CheckTableConfigResponse.
146
+
147
+ 同步任务名称。
148
+
149
+ :param task_name: The task_name of this CheckTableConfigResponse.
150
+ :type task_name: str
151
+ """
152
+ self._task_name = task_name
153
+
154
+ def to_dict(self):
155
+ """Returns the model properties as a dict"""
156
+ result = {}
157
+
158
+ for attr, _ in six.iteritems(self.openapi_types):
159
+ value = getattr(self, attr)
160
+ if isinstance(value, list):
161
+ result[attr] = list(map(
162
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
163
+ value
164
+ ))
165
+ elif hasattr(value, "to_dict"):
166
+ result[attr] = value.to_dict()
167
+ elif isinstance(value, dict):
168
+ result[attr] = dict(map(
169
+ lambda item: (item[0], item[1].to_dict())
170
+ if hasattr(item[1], "to_dict") else item,
171
+ value.items()
172
+ ))
173
+ else:
174
+ if attr in self.sensitive_list:
175
+ result[attr] = "****"
176
+ else:
177
+ result[attr] = value
178
+
179
+ return result
180
+
181
+ def to_str(self):
182
+ """Returns the string representation of the model"""
183
+ import simplejson as json
184
+ if six.PY2:
185
+ import sys
186
+ reload(sys)
187
+ sys.setdefaultencoding("utf-8")
188
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
189
+
190
+ def __repr__(self):
191
+ """For `print`"""
192
+ return self.to_str()
193
+
194
+ def __eq__(self, other):
195
+ """Returns true if both objects are equal"""
196
+ if not isinstance(other, CheckTableConfigResponse):
197
+ return False
198
+
199
+ return self.__dict__ == other.__dict__
200
+
201
+ def __ne__(self, other):
202
+ """Returns true if both objects are not equal"""
203
+ return not self == other