huaweicloudsdkgaussdb 3.1.95__py2.py3-none-any.whl → 3.1.97__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 +69 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1101 -66
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +1101 -66
- huaweicloudsdkgaussdb/v3/model/__init__.py +69 -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/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/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_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/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.95.dist-info → huaweicloudsdkgaussdb-3.1.97.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.97.dist-info}/RECORD +78 -9
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.97.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.97.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.95.dist-info → huaweicloudsdkgaussdb-3.1.97.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,145 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ShowStarRocksDatabaseUserResponse(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
|
+
'user_details': 'list[ShowStarRocksDatabaseUsersUserDetails]',
|
22
|
+
'total_count': 'int'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'user_details': 'user_details',
|
27
|
+
'total_count': 'total_count'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, user_details=None, total_count=None):
|
31
|
+
"""ShowStarRocksDatabaseUserResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param user_details: 数据库账户信息。
|
36
|
+
:type user_details: list[:class:`huaweicloudsdkgaussdb.v3.ShowStarRocksDatabaseUsersUserDetails`]
|
37
|
+
:param total_count: 数据库账户数量。
|
38
|
+
:type total_count: int
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ShowStarRocksDatabaseUserResponse, self).__init__()
|
42
|
+
|
43
|
+
self._user_details = None
|
44
|
+
self._total_count = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if user_details is not None:
|
48
|
+
self.user_details = user_details
|
49
|
+
if total_count is not None:
|
50
|
+
self.total_count = total_count
|
51
|
+
|
52
|
+
@property
|
53
|
+
def user_details(self):
|
54
|
+
"""Gets the user_details of this ShowStarRocksDatabaseUserResponse.
|
55
|
+
|
56
|
+
数据库账户信息。
|
57
|
+
|
58
|
+
:return: The user_details of this ShowStarRocksDatabaseUserResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.ShowStarRocksDatabaseUsersUserDetails`]
|
60
|
+
"""
|
61
|
+
return self._user_details
|
62
|
+
|
63
|
+
@user_details.setter
|
64
|
+
def user_details(self, user_details):
|
65
|
+
"""Sets the user_details of this ShowStarRocksDatabaseUserResponse.
|
66
|
+
|
67
|
+
数据库账户信息。
|
68
|
+
|
69
|
+
:param user_details: The user_details of this ShowStarRocksDatabaseUserResponse.
|
70
|
+
:type user_details: list[:class:`huaweicloudsdkgaussdb.v3.ShowStarRocksDatabaseUsersUserDetails`]
|
71
|
+
"""
|
72
|
+
self._user_details = user_details
|
73
|
+
|
74
|
+
@property
|
75
|
+
def total_count(self):
|
76
|
+
"""Gets the total_count of this ShowStarRocksDatabaseUserResponse.
|
77
|
+
|
78
|
+
数据库账户数量。
|
79
|
+
|
80
|
+
:return: The total_count of this ShowStarRocksDatabaseUserResponse.
|
81
|
+
:rtype: int
|
82
|
+
"""
|
83
|
+
return self._total_count
|
84
|
+
|
85
|
+
@total_count.setter
|
86
|
+
def total_count(self, total_count):
|
87
|
+
"""Sets the total_count of this ShowStarRocksDatabaseUserResponse.
|
88
|
+
|
89
|
+
数据库账户数量。
|
90
|
+
|
91
|
+
:param total_count: The total_count of this ShowStarRocksDatabaseUserResponse.
|
92
|
+
:type total_count: int
|
93
|
+
"""
|
94
|
+
self._total_count = total_count
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ShowStarRocksDatabaseUserResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|
@@ -0,0 +1,198 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowStarRocksDatabaseUsersUserDetails:
|
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
|
+
'user_name': 'str',
|
21
|
+
'data_bases': 'list[str]',
|
22
|
+
'dml': 'int',
|
23
|
+
'ddl': 'int'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'user_name': 'user_name',
|
28
|
+
'data_bases': 'data_bases',
|
29
|
+
'dml': 'dml',
|
30
|
+
'ddl': 'ddl'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, user_name=None, data_bases=None, dml=None, ddl=None):
|
34
|
+
"""ShowStarRocksDatabaseUsersUserDetails
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param user_name: 数据库账户名。
|
39
|
+
:type user_name: str
|
40
|
+
:param data_bases: 已授权数据库。
|
41
|
+
:type data_bases: list[str]
|
42
|
+
:param dml: DML授权。 - 0:读写权限 - 1:只读权限 - 2:只读和设置权限 - 3:读写和设置权限
|
43
|
+
:type dml: int
|
44
|
+
:param ddl: DDL授权。 - 0:无DDL权限 - 1:有DDL权限
|
45
|
+
:type ddl: int
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._user_name = None
|
51
|
+
self._data_bases = None
|
52
|
+
self._dml = None
|
53
|
+
self._ddl = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.user_name = user_name
|
57
|
+
self.data_bases = data_bases
|
58
|
+
self.dml = dml
|
59
|
+
self.ddl = ddl
|
60
|
+
|
61
|
+
@property
|
62
|
+
def user_name(self):
|
63
|
+
"""Gets the user_name of this ShowStarRocksDatabaseUsersUserDetails.
|
64
|
+
|
65
|
+
数据库账户名。
|
66
|
+
|
67
|
+
:return: The user_name of this ShowStarRocksDatabaseUsersUserDetails.
|
68
|
+
:rtype: str
|
69
|
+
"""
|
70
|
+
return self._user_name
|
71
|
+
|
72
|
+
@user_name.setter
|
73
|
+
def user_name(self, user_name):
|
74
|
+
"""Sets the user_name of this ShowStarRocksDatabaseUsersUserDetails.
|
75
|
+
|
76
|
+
数据库账户名。
|
77
|
+
|
78
|
+
:param user_name: The user_name of this ShowStarRocksDatabaseUsersUserDetails.
|
79
|
+
:type user_name: str
|
80
|
+
"""
|
81
|
+
self._user_name = user_name
|
82
|
+
|
83
|
+
@property
|
84
|
+
def data_bases(self):
|
85
|
+
"""Gets the data_bases of this ShowStarRocksDatabaseUsersUserDetails.
|
86
|
+
|
87
|
+
已授权数据库。
|
88
|
+
|
89
|
+
:return: The data_bases of this ShowStarRocksDatabaseUsersUserDetails.
|
90
|
+
:rtype: list[str]
|
91
|
+
"""
|
92
|
+
return self._data_bases
|
93
|
+
|
94
|
+
@data_bases.setter
|
95
|
+
def data_bases(self, data_bases):
|
96
|
+
"""Sets the data_bases of this ShowStarRocksDatabaseUsersUserDetails.
|
97
|
+
|
98
|
+
已授权数据库。
|
99
|
+
|
100
|
+
:param data_bases: The data_bases of this ShowStarRocksDatabaseUsersUserDetails.
|
101
|
+
:type data_bases: list[str]
|
102
|
+
"""
|
103
|
+
self._data_bases = data_bases
|
104
|
+
|
105
|
+
@property
|
106
|
+
def dml(self):
|
107
|
+
"""Gets the dml of this ShowStarRocksDatabaseUsersUserDetails.
|
108
|
+
|
109
|
+
DML授权。 - 0:读写权限 - 1:只读权限 - 2:只读和设置权限 - 3:读写和设置权限
|
110
|
+
|
111
|
+
:return: The dml of this ShowStarRocksDatabaseUsersUserDetails.
|
112
|
+
:rtype: int
|
113
|
+
"""
|
114
|
+
return self._dml
|
115
|
+
|
116
|
+
@dml.setter
|
117
|
+
def dml(self, dml):
|
118
|
+
"""Sets the dml of this ShowStarRocksDatabaseUsersUserDetails.
|
119
|
+
|
120
|
+
DML授权。 - 0:读写权限 - 1:只读权限 - 2:只读和设置权限 - 3:读写和设置权限
|
121
|
+
|
122
|
+
:param dml: The dml of this ShowStarRocksDatabaseUsersUserDetails.
|
123
|
+
:type dml: int
|
124
|
+
"""
|
125
|
+
self._dml = dml
|
126
|
+
|
127
|
+
@property
|
128
|
+
def ddl(self):
|
129
|
+
"""Gets the ddl of this ShowStarRocksDatabaseUsersUserDetails.
|
130
|
+
|
131
|
+
DDL授权。 - 0:无DDL权限 - 1:有DDL权限
|
132
|
+
|
133
|
+
:return: The ddl of this ShowStarRocksDatabaseUsersUserDetails.
|
134
|
+
:rtype: int
|
135
|
+
"""
|
136
|
+
return self._ddl
|
137
|
+
|
138
|
+
@ddl.setter
|
139
|
+
def ddl(self, ddl):
|
140
|
+
"""Sets the ddl of this ShowStarRocksDatabaseUsersUserDetails.
|
141
|
+
|
142
|
+
DDL授权。 - 0:无DDL权限 - 1:有DDL权限
|
143
|
+
|
144
|
+
:param ddl: The ddl of this ShowStarRocksDatabaseUsersUserDetails.
|
145
|
+
:type ddl: int
|
146
|
+
"""
|
147
|
+
self._ddl = ddl
|
148
|
+
|
149
|
+
def to_dict(self):
|
150
|
+
"""Returns the model properties as a dict"""
|
151
|
+
result = {}
|
152
|
+
|
153
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
154
|
+
value = getattr(self, attr)
|
155
|
+
if isinstance(value, list):
|
156
|
+
result[attr] = list(map(
|
157
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
158
|
+
value
|
159
|
+
))
|
160
|
+
elif hasattr(value, "to_dict"):
|
161
|
+
result[attr] = value.to_dict()
|
162
|
+
elif isinstance(value, dict):
|
163
|
+
result[attr] = dict(map(
|
164
|
+
lambda item: (item[0], item[1].to_dict())
|
165
|
+
if hasattr(item[1], "to_dict") else item,
|
166
|
+
value.items()
|
167
|
+
))
|
168
|
+
else:
|
169
|
+
if attr in self.sensitive_list:
|
170
|
+
result[attr] = "****"
|
171
|
+
else:
|
172
|
+
result[attr] = value
|
173
|
+
|
174
|
+
return result
|
175
|
+
|
176
|
+
def to_str(self):
|
177
|
+
"""Returns the string representation of the model"""
|
178
|
+
import simplejson as json
|
179
|
+
if six.PY2:
|
180
|
+
import sys
|
181
|
+
reload(sys)
|
182
|
+
sys.setdefaultencoding("utf-8")
|
183
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
184
|
+
|
185
|
+
def __repr__(self):
|
186
|
+
"""For `print`"""
|
187
|
+
return self.to_str()
|
188
|
+
|
189
|
+
def __eq__(self, other):
|
190
|
+
"""Returns true if both objects are equal"""
|
191
|
+
if not isinstance(other, ShowStarRocksDatabaseUsersUserDetails):
|
192
|
+
return False
|
193
|
+
|
194
|
+
return self.__dict__ == other.__dict__
|
195
|
+
|
196
|
+
def __ne__(self, other):
|
197
|
+
"""Returns true if both objects are not equal"""
|
198
|
+
return not self == other
|