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,231 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DbParameter:
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
+ 'param_name': 'str',
21
+ 'data_type': 'str',
22
+ 'default_value': 'str',
23
+ 'value_range': 'str',
24
+ 'description': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'param_name': 'param_name',
29
+ 'data_type': 'data_type',
30
+ 'default_value': 'default_value',
31
+ 'value_range': 'value_range',
32
+ 'description': 'description'
33
+ }
34
+
35
+ def __init__(self, param_name=None, data_type=None, default_value=None, value_range=None, description=None):
36
+ """DbParameter
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param param_name: 参数名称。
41
+ :type param_name: str
42
+ :param data_type: 参数类型。
43
+ :type data_type: str
44
+ :param default_value: 参数默认值。
45
+ :type default_value: str
46
+ :param value_range: 参数取值范围。
47
+ :type value_range: str
48
+ :param description: 参数描述。
49
+ :type description: str
50
+ """
51
+
52
+
53
+
54
+ self._param_name = None
55
+ self._data_type = None
56
+ self._default_value = None
57
+ self._value_range = None
58
+ self._description = None
59
+ self.discriminator = None
60
+
61
+ if param_name is not None:
62
+ self.param_name = param_name
63
+ if data_type is not None:
64
+ self.data_type = data_type
65
+ if default_value is not None:
66
+ self.default_value = default_value
67
+ if value_range is not None:
68
+ self.value_range = value_range
69
+ if description is not None:
70
+ self.description = description
71
+
72
+ @property
73
+ def param_name(self):
74
+ """Gets the param_name of this DbParameter.
75
+
76
+ 参数名称。
77
+
78
+ :return: The param_name of this DbParameter.
79
+ :rtype: str
80
+ """
81
+ return self._param_name
82
+
83
+ @param_name.setter
84
+ def param_name(self, param_name):
85
+ """Sets the param_name of this DbParameter.
86
+
87
+ 参数名称。
88
+
89
+ :param param_name: The param_name of this DbParameter.
90
+ :type param_name: str
91
+ """
92
+ self._param_name = param_name
93
+
94
+ @property
95
+ def data_type(self):
96
+ """Gets the data_type of this DbParameter.
97
+
98
+ 参数类型。
99
+
100
+ :return: The data_type of this DbParameter.
101
+ :rtype: str
102
+ """
103
+ return self._data_type
104
+
105
+ @data_type.setter
106
+ def data_type(self, data_type):
107
+ """Sets the data_type of this DbParameter.
108
+
109
+ 参数类型。
110
+
111
+ :param data_type: The data_type of this DbParameter.
112
+ :type data_type: str
113
+ """
114
+ self._data_type = data_type
115
+
116
+ @property
117
+ def default_value(self):
118
+ """Gets the default_value of this DbParameter.
119
+
120
+ 参数默认值。
121
+
122
+ :return: The default_value of this DbParameter.
123
+ :rtype: str
124
+ """
125
+ return self._default_value
126
+
127
+ @default_value.setter
128
+ def default_value(self, default_value):
129
+ """Sets the default_value of this DbParameter.
130
+
131
+ 参数默认值。
132
+
133
+ :param default_value: The default_value of this DbParameter.
134
+ :type default_value: str
135
+ """
136
+ self._default_value = default_value
137
+
138
+ @property
139
+ def value_range(self):
140
+ """Gets the value_range of this DbParameter.
141
+
142
+ 参数取值范围。
143
+
144
+ :return: The value_range of this DbParameter.
145
+ :rtype: str
146
+ """
147
+ return self._value_range
148
+
149
+ @value_range.setter
150
+ def value_range(self, value_range):
151
+ """Sets the value_range of this DbParameter.
152
+
153
+ 参数取值范围。
154
+
155
+ :param value_range: The value_range of this DbParameter.
156
+ :type value_range: str
157
+ """
158
+ self._value_range = value_range
159
+
160
+ @property
161
+ def description(self):
162
+ """Gets the description of this DbParameter.
163
+
164
+ 参数描述。
165
+
166
+ :return: The description of this DbParameter.
167
+ :rtype: str
168
+ """
169
+ return self._description
170
+
171
+ @description.setter
172
+ def description(self, description):
173
+ """Sets the description of this DbParameter.
174
+
175
+ 参数描述。
176
+
177
+ :param description: The description of this DbParameter.
178
+ :type description: str
179
+ """
180
+ self._description = description
181
+
182
+ def to_dict(self):
183
+ """Returns the model properties as a dict"""
184
+ result = {}
185
+
186
+ for attr, _ in six.iteritems(self.openapi_types):
187
+ value = getattr(self, attr)
188
+ if isinstance(value, list):
189
+ result[attr] = list(map(
190
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
191
+ value
192
+ ))
193
+ elif hasattr(value, "to_dict"):
194
+ result[attr] = value.to_dict()
195
+ elif isinstance(value, dict):
196
+ result[attr] = dict(map(
197
+ lambda item: (item[0], item[1].to_dict())
198
+ if hasattr(item[1], "to_dict") else item,
199
+ value.items()
200
+ ))
201
+ else:
202
+ if attr in self.sensitive_list:
203
+ result[attr] = "****"
204
+ else:
205
+ result[attr] = value
206
+
207
+ return result
208
+
209
+ def to_str(self):
210
+ """Returns the string representation of the model"""
211
+ import simplejson as json
212
+ if six.PY2:
213
+ import sys
214
+ reload(sys)
215
+ sys.setdefaultencoding("utf-8")
216
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
217
+
218
+ def __repr__(self):
219
+ """For `print`"""
220
+ return self.to_str()
221
+
222
+ def __eq__(self, other):
223
+ """Returns true if both objects are equal"""
224
+ if not isinstance(other, DbParameter):
225
+ return False
226
+
227
+ return self.__dict__ == other.__dict__
228
+
229
+ def __ne__(self, other):
230
+ """Returns true if both objects are not equal"""
231
+ return not self == other
@@ -0,0 +1,115 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteStarRocksDataReplication:
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
+ 'task_name': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'task_name': 'task_name'
25
+ }
26
+
27
+ def __init__(self, task_name=None):
28
+ """DeleteStarRocksDataReplication
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param task_name: 数据同步任务名。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
33
+ :type task_name: str
34
+ """
35
+
36
+
37
+
38
+ self._task_name = None
39
+ self.discriminator = None
40
+
41
+ if task_name is not None:
42
+ self.task_name = task_name
43
+
44
+ @property
45
+ def task_name(self):
46
+ """Gets the task_name of this DeleteStarRocksDataReplication.
47
+
48
+ 数据同步任务名。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
49
+
50
+ :return: The task_name of this DeleteStarRocksDataReplication.
51
+ :rtype: str
52
+ """
53
+ return self._task_name
54
+
55
+ @task_name.setter
56
+ def task_name(self, task_name):
57
+ """Sets the task_name of this DeleteStarRocksDataReplication.
58
+
59
+ 数据同步任务名。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
60
+
61
+ :param task_name: The task_name of this DeleteStarRocksDataReplication.
62
+ :type task_name: str
63
+ """
64
+ self._task_name = task_name
65
+
66
+ def to_dict(self):
67
+ """Returns the model properties as a dict"""
68
+ result = {}
69
+
70
+ for attr, _ in six.iteritems(self.openapi_types):
71
+ value = getattr(self, attr)
72
+ if isinstance(value, list):
73
+ result[attr] = list(map(
74
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
75
+ value
76
+ ))
77
+ elif hasattr(value, "to_dict"):
78
+ result[attr] = value.to_dict()
79
+ elif isinstance(value, dict):
80
+ result[attr] = dict(map(
81
+ lambda item: (item[0], item[1].to_dict())
82
+ if hasattr(item[1], "to_dict") else item,
83
+ value.items()
84
+ ))
85
+ else:
86
+ if attr in self.sensitive_list:
87
+ result[attr] = "****"
88
+ else:
89
+ result[attr] = value
90
+
91
+ return result
92
+
93
+ def to_str(self):
94
+ """Returns the string representation of the model"""
95
+ import simplejson as json
96
+ if six.PY2:
97
+ import sys
98
+ reload(sys)
99
+ sys.setdefaultencoding("utf-8")
100
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
101
+
102
+ def __repr__(self):
103
+ """For `print`"""
104
+ return self.to_str()
105
+
106
+ def __eq__(self, other):
107
+ """Returns true if both objects are equal"""
108
+ if not isinstance(other, DeleteStarRocksDataReplication):
109
+ return False
110
+
111
+ return self.__dict__ == other.__dict__
112
+
113
+ def __ne__(self, other):
114
+ """Returns true if both objects are not equal"""
115
+ 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 DeleteStarRocksDataReplicationRequest:
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': 'DeleteStarRocksDataReplication'
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
+ """DeleteStarRocksDataReplicationRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param instance_id: StarRocks实例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 DeleteStarRocksDataReplicationRequest
41
+ :type body: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDataReplication`
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
+ self.x_language = x_language
53
+ if body is not None:
54
+ self.body = body
55
+
56
+ @property
57
+ def instance_id(self):
58
+ """Gets the instance_id of this DeleteStarRocksDataReplicationRequest.
59
+
60
+ StarRocks实例ID,严格匹配UUID规则。
61
+
62
+ :return: The instance_id of this DeleteStarRocksDataReplicationRequest.
63
+ :rtype: str
64
+ """
65
+ return self._instance_id
66
+
67
+ @instance_id.setter
68
+ def instance_id(self, instance_id):
69
+ """Sets the instance_id of this DeleteStarRocksDataReplicationRequest.
70
+
71
+ StarRocks实例ID,严格匹配UUID规则。
72
+
73
+ :param instance_id: The instance_id of this DeleteStarRocksDataReplicationRequest.
74
+ :type instance_id: str
75
+ """
76
+ self._instance_id = instance_id
77
+
78
+ @property
79
+ def x_language(self):
80
+ """Gets the x_language of this DeleteStarRocksDataReplicationRequest.
81
+
82
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
83
+
84
+ :return: The x_language of this DeleteStarRocksDataReplicationRequest.
85
+ :rtype: str
86
+ """
87
+ return self._x_language
88
+
89
+ @x_language.setter
90
+ def x_language(self, x_language):
91
+ """Sets the x_language of this DeleteStarRocksDataReplicationRequest.
92
+
93
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
94
+
95
+ :param x_language: The x_language of this DeleteStarRocksDataReplicationRequest.
96
+ :type x_language: str
97
+ """
98
+ self._x_language = x_language
99
+
100
+ @property
101
+ def body(self):
102
+ """Gets the body of this DeleteStarRocksDataReplicationRequest.
103
+
104
+ :return: The body of this DeleteStarRocksDataReplicationRequest.
105
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDataReplication`
106
+ """
107
+ return self._body
108
+
109
+ @body.setter
110
+ def body(self, body):
111
+ """Sets the body of this DeleteStarRocksDataReplicationRequest.
112
+
113
+ :param body: The body of this DeleteStarRocksDataReplicationRequest.
114
+ :type body: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDataReplication`
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, DeleteStarRocksDataReplicationRequest):
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,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 DeleteStarRocksDataReplicationResponse(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
+ 'job_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'job_id': 'job_id'
26
+ }
27
+
28
+ def __init__(self, job_id=None):
29
+ """DeleteStarRocksDataReplicationResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param job_id: 删除同步任务工作ID。
34
+ :type job_id: str
35
+ """
36
+
37
+ super(DeleteStarRocksDataReplicationResponse, self).__init__()
38
+
39
+ self._job_id = None
40
+ self.discriminator = None
41
+
42
+ if job_id is not None:
43
+ self.job_id = job_id
44
+
45
+ @property
46
+ def job_id(self):
47
+ """Gets the job_id of this DeleteStarRocksDataReplicationResponse.
48
+
49
+ 删除同步任务工作ID。
50
+
51
+ :return: The job_id of this DeleteStarRocksDataReplicationResponse.
52
+ :rtype: str
53
+ """
54
+ return self._job_id
55
+
56
+ @job_id.setter
57
+ def job_id(self, job_id):
58
+ """Sets the job_id of this DeleteStarRocksDataReplicationResponse.
59
+
60
+ 删除同步任务工作ID。
61
+
62
+ :param job_id: The job_id of this DeleteStarRocksDataReplicationResponse.
63
+ :type job_id: str
64
+ """
65
+ self._job_id = job_id
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, DeleteStarRocksDataReplicationResponse):
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