huaweicloudsdkgaussdb 3.1.102__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.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/METADATA +2 -2
  118. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/RECORD +121 -11
  119. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/LICENSE +0 -0
  120. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.dist-info}/WHEEL +0 -0
  121. {huaweicloudsdkgaussdb-3.1.102.dist-info → huaweicloudsdkgaussdb-3.1.103.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 UpdateClickHouseLtsConfigRequest:
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': 'CreateChLtsConfigRequestBody'
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
+ """UpdateClickHouseLtsConfigRequest
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 UpdateClickHouseLtsConfigRequest
37
+ :type body: :class:`huaweicloudsdkgaussdb.v3.CreateChLtsConfigRequestBody`
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 UpdateClickHouseLtsConfigRequest.
54
+
55
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
56
+
57
+ :return: The x_language of this UpdateClickHouseLtsConfigRequest.
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 UpdateClickHouseLtsConfigRequest.
65
+
66
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
67
+
68
+ :param x_language: The x_language of this UpdateClickHouseLtsConfigRequest.
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 UpdateClickHouseLtsConfigRequest.
76
+
77
+ :return: The body of this UpdateClickHouseLtsConfigRequest.
78
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.CreateChLtsConfigRequestBody`
79
+ """
80
+ return self._body
81
+
82
+ @body.setter
83
+ def body(self, body):
84
+ """Sets the body of this UpdateClickHouseLtsConfigRequest.
85
+
86
+ :param body: The body of this UpdateClickHouseLtsConfigRequest.
87
+ :type body: :class:`huaweicloudsdkgaussdb.v3.CreateChLtsConfigRequestBody`
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, UpdateClickHouseLtsConfigRequest):
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,85 @@
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 UpdateClickHouseLtsConfigResponse(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
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ """UpdateClickHouseLtsConfigResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(UpdateClickHouseLtsConfigResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, UpdateClickHouseLtsConfigResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other
@@ -0,0 +1,168 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateClickHouseSlowLogSensitiveStatusRequest:
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': 'ChSlowlogSensitiveResponse'
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
+ """UpdateClickHouseSlowLogSensitiveStatusRequest
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 UpdateClickHouseSlowLogSensitiveStatusRequest
41
+ :type body: :class:`huaweicloudsdkgaussdb.v3.ChSlowlogSensitiveResponse`
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 UpdateClickHouseSlowLogSensitiveStatusRequest.
60
+
61
+ ClickHouse实例ID,严格匹配UUID规则。
62
+
63
+ :return: The instance_id of this UpdateClickHouseSlowLogSensitiveStatusRequest.
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 UpdateClickHouseSlowLogSensitiveStatusRequest.
71
+
72
+ ClickHouse实例ID,严格匹配UUID规则。
73
+
74
+ :param instance_id: The instance_id of this UpdateClickHouseSlowLogSensitiveStatusRequest.
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 UpdateClickHouseSlowLogSensitiveStatusRequest.
82
+
83
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
84
+
85
+ :return: The x_language of this UpdateClickHouseSlowLogSensitiveStatusRequest.
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 UpdateClickHouseSlowLogSensitiveStatusRequest.
93
+
94
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
95
+
96
+ :param x_language: The x_language of this UpdateClickHouseSlowLogSensitiveStatusRequest.
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 UpdateClickHouseSlowLogSensitiveStatusRequest.
104
+
105
+ :return: The body of this UpdateClickHouseSlowLogSensitiveStatusRequest.
106
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ChSlowlogSensitiveResponse`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ """Sets the body of this UpdateClickHouseSlowLogSensitiveStatusRequest.
113
+
114
+ :param body: The body of this UpdateClickHouseSlowLogSensitiveStatusRequest.
115
+ :type body: :class:`huaweicloudsdkgaussdb.v3.ChSlowlogSensitiveResponse`
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, UpdateClickHouseSlowLogSensitiveStatusRequest):
162
+ return False
163
+
164
+ return self.__dict__ == other.__dict__
165
+
166
+ def __ne__(self, other):
167
+ """Returns true if both objects are not equal"""
168
+ return not self == other
@@ -0,0 +1,116 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class UpdateClickHouseSlowLogSensitiveStatusResponse(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
+ 'open_slow_log_switch': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'open_slow_log_switch': 'open_slow_log_switch'
26
+ }
27
+
28
+ def __init__(self, open_slow_log_switch=None):
29
+ """UpdateClickHouseSlowLogSensitiveStatusResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param open_slow_log_switch: 慢日志脱敏开关。
34
+ :type open_slow_log_switch: str
35
+ """
36
+
37
+ super(UpdateClickHouseSlowLogSensitiveStatusResponse, self).__init__()
38
+
39
+ self._open_slow_log_switch = None
40
+ self.discriminator = None
41
+
42
+ if open_slow_log_switch is not None:
43
+ self.open_slow_log_switch = open_slow_log_switch
44
+
45
+ @property
46
+ def open_slow_log_switch(self):
47
+ """Gets the open_slow_log_switch of this UpdateClickHouseSlowLogSensitiveStatusResponse.
48
+
49
+ 慢日志脱敏开关。
50
+
51
+ :return: The open_slow_log_switch of this UpdateClickHouseSlowLogSensitiveStatusResponse.
52
+ :rtype: str
53
+ """
54
+ return self._open_slow_log_switch
55
+
56
+ @open_slow_log_switch.setter
57
+ def open_slow_log_switch(self, open_slow_log_switch):
58
+ """Sets the open_slow_log_switch of this UpdateClickHouseSlowLogSensitiveStatusResponse.
59
+
60
+ 慢日志脱敏开关。
61
+
62
+ :param open_slow_log_switch: The open_slow_log_switch of this UpdateClickHouseSlowLogSensitiveStatusResponse.
63
+ :type open_slow_log_switch: str
64
+ """
65
+ self._open_slow_log_switch = open_slow_log_switch
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, UpdateClickHouseSlowLogSensitiveStatusResponse):
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkgaussdb
3
- Version: 3.1.102
3
+ Version: 3.1.103
4
4
  Summary: GaussDB
5
5
  Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
6
6
  Author: HuaweiCloud SDK
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
22
22
  Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: huaweicloudsdkcore >=3.1.102
25
+ Requires-Dist: huaweicloudsdkcore >=3.1.103
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).