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.
- huaweicloudsdkgaussdb/v3/__init__.py +97 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1591 -0
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +1591 -0
- huaweicloudsdkgaussdb/v3/model/__init__.py +97 -0
- huaweicloudsdkgaussdb/v3/model/check_data_base_config_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/check_data_base_config_response.py +232 -0
- huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/check_star_rocks_resource_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/check_table_config_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/check_table_config_response.py +203 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication.py +227 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_database_user_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/create_starrocks_instance_response.py +141 -0
- huaweicloudsdkgaussdb/v3/model/data_base_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/db_config.py +144 -0
- huaweicloudsdkgaussdb/v3/model/db_config_check_request_v3.py +285 -0
- huaweicloudsdkgaussdb/v3/model/db_config_check_result.py +173 -0
- huaweicloudsdkgaussdb/v3/model/db_parameter.py +231 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication.py +115 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_database_user_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_starrocks_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/htap_flavor_info_flavors.py +318 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_available_zones.py +173 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_instance_state.py +202 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_instances.py +832 -0
- huaweicloudsdkgaussdb/v3/model/htap_instance_list_network.py +173 -0
- huaweicloudsdkgaussdb/v3/model/htap_storage_type_storage_type.py +173 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_data_store_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_data_store_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_flavor_request.py +230 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_flavor_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_instance_info_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/list_htap_storage_type_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_request.py +229 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_request.py +170 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_response.py +336 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_request.py +200 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_request.py +142 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/list_starrocks_instance_info_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/param_group.py +144 -0
- huaweicloudsdkgaussdb/v3/model/query_action.py +318 -0
- huaweicloudsdkgaussdb/v3/model/readable_node_infos.py +173 -0
- huaweicloudsdkgaussdb/v3/model/resource_check.py +138 -0
- huaweicloudsdkgaussdb/v3/model/resource_check_resource.py +367 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_instance_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/restart_starrocks_node_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_request.py +228 -0
- huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_user_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_star_rocks_database_users_user_details.py +198 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance.py +538 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_engine.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_pay_info.py +231 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_sys_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_create_instance_rsp_instance_tags_info_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/sr_data_stores_datastores.py +173 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request.py +459 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_be_volume.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_engine.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_fe_volume.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_ha.py +114 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info.py +114 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_create_request_tags_info_sys_tags.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_info.py +228 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_sinfo.py +201 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_database_user_p_winfo.py +142 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_datastore.py +173 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_groups.py +231 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_instances.py +1292 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_nodes.py +1006 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_ops_window.py +173 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_port_info.py +115 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_sys_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_tags_info_tags.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_instance_info_volume.py +144 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_replication_info.py +318 -0
- huaweicloudsdkgaussdb/v3/model/table_config_check_request_v3.py +285 -0
- huaweicloudsdkgaussdb/v3/model/table_config_check_result.py +173 -0
- huaweicloudsdkgaussdb/v3/model/table_repl_config.py +173 -0
- huaweicloudsdkgaussdb/v3/model/tables_config.py +144 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_password_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/update_star_rocks_database_user_permission_response.py +116 -0
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/RECORD +106 -9
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class StarRocksInstanceInfoOpsWindow:
|
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
|
+
'period': 'str',
|
21
|
+
'start_time': 'str',
|
22
|
+
'end_time': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'period': 'period',
|
27
|
+
'start_time': 'start_time',
|
28
|
+
'end_time': 'end_time'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, period=None, start_time=None, end_time=None):
|
32
|
+
"""StarRocksInstanceInfoOpsWindow
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param period: 时间窗周期。
|
37
|
+
:type period: str
|
38
|
+
:param start_time: 时间窗开始时间。
|
39
|
+
:type start_time: str
|
40
|
+
:param end_time: 时间窗结束时间。
|
41
|
+
:type end_time: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._period = None
|
47
|
+
self._start_time = None
|
48
|
+
self._end_time = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if period is not None:
|
52
|
+
self.period = period
|
53
|
+
if start_time is not None:
|
54
|
+
self.start_time = start_time
|
55
|
+
if end_time is not None:
|
56
|
+
self.end_time = end_time
|
57
|
+
|
58
|
+
@property
|
59
|
+
def period(self):
|
60
|
+
"""Gets the period of this StarRocksInstanceInfoOpsWindow.
|
61
|
+
|
62
|
+
时间窗周期。
|
63
|
+
|
64
|
+
:return: The period of this StarRocksInstanceInfoOpsWindow.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._period
|
68
|
+
|
69
|
+
@period.setter
|
70
|
+
def period(self, period):
|
71
|
+
"""Sets the period of this StarRocksInstanceInfoOpsWindow.
|
72
|
+
|
73
|
+
时间窗周期。
|
74
|
+
|
75
|
+
:param period: The period of this StarRocksInstanceInfoOpsWindow.
|
76
|
+
:type period: str
|
77
|
+
"""
|
78
|
+
self._period = period
|
79
|
+
|
80
|
+
@property
|
81
|
+
def start_time(self):
|
82
|
+
"""Gets the start_time of this StarRocksInstanceInfoOpsWindow.
|
83
|
+
|
84
|
+
时间窗开始时间。
|
85
|
+
|
86
|
+
:return: The start_time of this StarRocksInstanceInfoOpsWindow.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._start_time
|
90
|
+
|
91
|
+
@start_time.setter
|
92
|
+
def start_time(self, start_time):
|
93
|
+
"""Sets the start_time of this StarRocksInstanceInfoOpsWindow.
|
94
|
+
|
95
|
+
时间窗开始时间。
|
96
|
+
|
97
|
+
:param start_time: The start_time of this StarRocksInstanceInfoOpsWindow.
|
98
|
+
:type start_time: str
|
99
|
+
"""
|
100
|
+
self._start_time = start_time
|
101
|
+
|
102
|
+
@property
|
103
|
+
def end_time(self):
|
104
|
+
"""Gets the end_time of this StarRocksInstanceInfoOpsWindow.
|
105
|
+
|
106
|
+
时间窗结束时间。
|
107
|
+
|
108
|
+
:return: The end_time of this StarRocksInstanceInfoOpsWindow.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._end_time
|
112
|
+
|
113
|
+
@end_time.setter
|
114
|
+
def end_time(self, end_time):
|
115
|
+
"""Sets the end_time of this StarRocksInstanceInfoOpsWindow.
|
116
|
+
|
117
|
+
时间窗结束时间。
|
118
|
+
|
119
|
+
:param end_time: The end_time of this StarRocksInstanceInfoOpsWindow.
|
120
|
+
:type end_time: str
|
121
|
+
"""
|
122
|
+
self._end_time = end_time
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, StarRocksInstanceInfoOpsWindow):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
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 StarRocksInstanceInfoPortInfo:
|
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
|
+
'mysql_port': 'int'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'mysql_port': 'mysql_port'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, mysql_port=None):
|
28
|
+
"""StarRocksInstanceInfoPortInfo
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param mysql_port: MySQL端口号。默认3306。
|
33
|
+
:type mysql_port: int
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._mysql_port = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if mysql_port is not None:
|
42
|
+
self.mysql_port = mysql_port
|
43
|
+
|
44
|
+
@property
|
45
|
+
def mysql_port(self):
|
46
|
+
"""Gets the mysql_port of this StarRocksInstanceInfoPortInfo.
|
47
|
+
|
48
|
+
MySQL端口号。默认3306。
|
49
|
+
|
50
|
+
:return: The mysql_port of this StarRocksInstanceInfoPortInfo.
|
51
|
+
:rtype: int
|
52
|
+
"""
|
53
|
+
return self._mysql_port
|
54
|
+
|
55
|
+
@mysql_port.setter
|
56
|
+
def mysql_port(self, mysql_port):
|
57
|
+
"""Sets the mysql_port of this StarRocksInstanceInfoPortInfo.
|
58
|
+
|
59
|
+
MySQL端口号。默认3306。
|
60
|
+
|
61
|
+
:param mysql_port: The mysql_port of this StarRocksInstanceInfoPortInfo.
|
62
|
+
:type mysql_port: int
|
63
|
+
"""
|
64
|
+
self._mysql_port = mysql_port
|
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, StarRocksInstanceInfoPortInfo):
|
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,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class StarRocksInstanceInfoTagsInfo:
|
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
|
+
'tags': 'list[StarRocksInstanceInfoTagsInfoTags]',
|
21
|
+
'sys_tags': 'list[StarRocksInstanceInfoTagsInfoSysTags]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'tags': 'tags',
|
26
|
+
'sys_tags': 'sys_tags'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, tags=None, sys_tags=None):
|
30
|
+
"""StarRocksInstanceInfoTagsInfo
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param tags: 用户标签。
|
35
|
+
:type tags: list[:class:`huaweicloudsdkgaussdb.v3.StarRocksInstanceInfoTagsInfoTags`]
|
36
|
+
:param sys_tags: 系统标签。
|
37
|
+
:type sys_tags: list[:class:`huaweicloudsdkgaussdb.v3.StarRocksInstanceInfoTagsInfoSysTags`]
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._tags = None
|
43
|
+
self._sys_tags = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if tags is not None:
|
47
|
+
self.tags = tags
|
48
|
+
if sys_tags is not None:
|
49
|
+
self.sys_tags = sys_tags
|
50
|
+
|
51
|
+
@property
|
52
|
+
def tags(self):
|
53
|
+
"""Gets the tags of this StarRocksInstanceInfoTagsInfo.
|
54
|
+
|
55
|
+
用户标签。
|
56
|
+
|
57
|
+
:return: The tags of this StarRocksInstanceInfoTagsInfo.
|
58
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.StarRocksInstanceInfoTagsInfoTags`]
|
59
|
+
"""
|
60
|
+
return self._tags
|
61
|
+
|
62
|
+
@tags.setter
|
63
|
+
def tags(self, tags):
|
64
|
+
"""Sets the tags of this StarRocksInstanceInfoTagsInfo.
|
65
|
+
|
66
|
+
用户标签。
|
67
|
+
|
68
|
+
:param tags: The tags of this StarRocksInstanceInfoTagsInfo.
|
69
|
+
:type tags: list[:class:`huaweicloudsdkgaussdb.v3.StarRocksInstanceInfoTagsInfoTags`]
|
70
|
+
"""
|
71
|
+
self._tags = tags
|
72
|
+
|
73
|
+
@property
|
74
|
+
def sys_tags(self):
|
75
|
+
"""Gets the sys_tags of this StarRocksInstanceInfoTagsInfo.
|
76
|
+
|
77
|
+
系统标签。
|
78
|
+
|
79
|
+
:return: The sys_tags of this StarRocksInstanceInfoTagsInfo.
|
80
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.StarRocksInstanceInfoTagsInfoSysTags`]
|
81
|
+
"""
|
82
|
+
return self._sys_tags
|
83
|
+
|
84
|
+
@sys_tags.setter
|
85
|
+
def sys_tags(self, sys_tags):
|
86
|
+
"""Sets the sys_tags of this StarRocksInstanceInfoTagsInfo.
|
87
|
+
|
88
|
+
系统标签。
|
89
|
+
|
90
|
+
:param sys_tags: The sys_tags of this StarRocksInstanceInfoTagsInfo.
|
91
|
+
:type sys_tags: list[:class:`huaweicloudsdkgaussdb.v3.StarRocksInstanceInfoTagsInfoSysTags`]
|
92
|
+
"""
|
93
|
+
self._sys_tags = sys_tags
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, StarRocksInstanceInfoTagsInfo):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class StarRocksInstanceInfoTagsInfoSysTags:
|
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
|
+
'key': 'str',
|
21
|
+
'value': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'key': 'key',
|
26
|
+
'value': 'value'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, key=None, value=None):
|
30
|
+
"""StarRocksInstanceInfoTagsInfoSysTags
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param key: 标签键。最大长度36个unicode字符。key不能为空或者空字符串,不能为空格。 字符集:A-Z,a-z ,0-9,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。
|
35
|
+
:type key: str
|
36
|
+
:param value: 标签值。最大长度43个unicode字符。可以为空字符串。 字符集:A-Z,a-z ,0-9,‘.’,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。
|
37
|
+
:type value: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._key = None
|
43
|
+
self._value = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if key is not None:
|
47
|
+
self.key = key
|
48
|
+
if value is not None:
|
49
|
+
self.value = value
|
50
|
+
|
51
|
+
@property
|
52
|
+
def key(self):
|
53
|
+
"""Gets the key of this StarRocksInstanceInfoTagsInfoSysTags.
|
54
|
+
|
55
|
+
标签键。最大长度36个unicode字符。key不能为空或者空字符串,不能为空格。 字符集:A-Z,a-z ,0-9,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。
|
56
|
+
|
57
|
+
:return: The key of this StarRocksInstanceInfoTagsInfoSysTags.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._key
|
61
|
+
|
62
|
+
@key.setter
|
63
|
+
def key(self, key):
|
64
|
+
"""Sets the key of this StarRocksInstanceInfoTagsInfoSysTags.
|
65
|
+
|
66
|
+
标签键。最大长度36个unicode字符。key不能为空或者空字符串,不能为空格。 字符集:A-Z,a-z ,0-9,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。
|
67
|
+
|
68
|
+
:param key: The key of this StarRocksInstanceInfoTagsInfoSysTags.
|
69
|
+
:type key: str
|
70
|
+
"""
|
71
|
+
self._key = key
|
72
|
+
|
73
|
+
@property
|
74
|
+
def value(self):
|
75
|
+
"""Gets the value of this StarRocksInstanceInfoTagsInfoSysTags.
|
76
|
+
|
77
|
+
标签值。最大长度43个unicode字符。可以为空字符串。 字符集:A-Z,a-z ,0-9,‘.’,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。
|
78
|
+
|
79
|
+
:return: The value of this StarRocksInstanceInfoTagsInfoSysTags.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._value
|
83
|
+
|
84
|
+
@value.setter
|
85
|
+
def value(self, value):
|
86
|
+
"""Sets the value of this StarRocksInstanceInfoTagsInfoSysTags.
|
87
|
+
|
88
|
+
标签值。最大长度43个unicode字符。可以为空字符串。 字符集:A-Z,a-z ,0-9,‘.’,‘-’,‘_’,UNICODE字符(\\u4E00-\\u9FFF)。
|
89
|
+
|
90
|
+
:param value: The value of this StarRocksInstanceInfoTagsInfoSysTags.
|
91
|
+
:type value: str
|
92
|
+
"""
|
93
|
+
self._value = value
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, StarRocksInstanceInfoTagsInfoSysTags):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|