huaweicloudsdkgaussdb 3.1.103__py2.py3-none-any.whl → 3.1.105__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 (23) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +14 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +347 -0
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +347 -0
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +14 -0
  5. huaweicloudsdkgaussdb/v3/model/check_starrocks_params_request.py +140 -0
  6. huaweicloudsdkgaussdb/v3/model/check_starrocks_params_request_body.py +114 -0
  7. huaweicloudsdkgaussdb/v3/model/check_starrocks_params_response.py +116 -0
  8. huaweicloudsdkgaussdb/v3/model/resize_star_rocks_flavor_request.py +168 -0
  9. huaweicloudsdkgaussdb/v3/model/resize_star_rocks_flavor_response.py +116 -0
  10. huaweicloudsdkgaussdb/v3/model/show_starrocks_params_request.py +229 -0
  11. huaweicloudsdkgaussdb/v3/model/show_starrocks_params_response.py +170 -0
  12. huaweicloudsdkgaussdb/v3/model/sr_flavor_resize_req.py +144 -0
  13. huaweicloudsdkgaussdb/v3/model/sync_star_rocks_users_request.py +168 -0
  14. huaweicloudsdkgaussdb/v3/model/sync_star_rocks_users_response.py +116 -0
  15. huaweicloudsdkgaussdb/v3/model/update_param_info.py +142 -0
  16. huaweicloudsdkgaussdb/v3/model/update_starrocks_params_request.py +168 -0
  17. huaweicloudsdkgaussdb/v3/model/update_starrocks_params_response.py +145 -0
  18. huaweicloudsdkgaussdb/v3/model/user_sync_req.py +114 -0
  19. {huaweicloudsdkgaussdb-3.1.103.dist-info → huaweicloudsdkgaussdb-3.1.105.dist-info}/METADATA +2 -2
  20. {huaweicloudsdkgaussdb-3.1.103.dist-info → huaweicloudsdkgaussdb-3.1.105.dist-info}/RECORD +23 -9
  21. {huaweicloudsdkgaussdb-3.1.103.dist-info → huaweicloudsdkgaussdb-3.1.105.dist-info}/LICENSE +0 -0
  22. {huaweicloudsdkgaussdb-3.1.103.dist-info → huaweicloudsdkgaussdb-3.1.105.dist-info}/WHEEL +0 -0
  23. {huaweicloudsdkgaussdb-3.1.103.dist-info → huaweicloudsdkgaussdb-3.1.105.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,170 @@
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 ShowStarrocksParamsResponse(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
+ 'configurations': 'ParameterConfigurationInfo',
22
+ 'total_count': 'int',
23
+ 'parameter_values': 'list[ParameterValuesInfo]'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'configurations': 'configurations',
28
+ 'total_count': 'total_count',
29
+ 'parameter_values': 'parameter_values'
30
+ }
31
+
32
+ def __init__(self, configurations=None, total_count=None, parameter_values=None):
33
+ """ShowStarrocksParamsResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param configurations:
38
+ :type configurations: :class:`huaweicloudsdkgaussdb.v3.ParameterConfigurationInfo`
39
+ :param total_count: 参数信息的总数。
40
+ :type total_count: int
41
+ :param parameter_values: 参数对象。
42
+ :type parameter_values: list[:class:`huaweicloudsdkgaussdb.v3.ParameterValuesInfo`]
43
+ """
44
+
45
+ super(ShowStarrocksParamsResponse, self).__init__()
46
+
47
+ self._configurations = None
48
+ self._total_count = None
49
+ self._parameter_values = None
50
+ self.discriminator = None
51
+
52
+ if configurations is not None:
53
+ self.configurations = configurations
54
+ if total_count is not None:
55
+ self.total_count = total_count
56
+ if parameter_values is not None:
57
+ self.parameter_values = parameter_values
58
+
59
+ @property
60
+ def configurations(self):
61
+ """Gets the configurations of this ShowStarrocksParamsResponse.
62
+
63
+ :return: The configurations of this ShowStarrocksParamsResponse.
64
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ParameterConfigurationInfo`
65
+ """
66
+ return self._configurations
67
+
68
+ @configurations.setter
69
+ def configurations(self, configurations):
70
+ """Sets the configurations of this ShowStarrocksParamsResponse.
71
+
72
+ :param configurations: The configurations of this ShowStarrocksParamsResponse.
73
+ :type configurations: :class:`huaweicloudsdkgaussdb.v3.ParameterConfigurationInfo`
74
+ """
75
+ self._configurations = configurations
76
+
77
+ @property
78
+ def total_count(self):
79
+ """Gets the total_count of this ShowStarrocksParamsResponse.
80
+
81
+ 参数信息的总数。
82
+
83
+ :return: The total_count of this ShowStarrocksParamsResponse.
84
+ :rtype: int
85
+ """
86
+ return self._total_count
87
+
88
+ @total_count.setter
89
+ def total_count(self, total_count):
90
+ """Sets the total_count of this ShowStarrocksParamsResponse.
91
+
92
+ 参数信息的总数。
93
+
94
+ :param total_count: The total_count of this ShowStarrocksParamsResponse.
95
+ :type total_count: int
96
+ """
97
+ self._total_count = total_count
98
+
99
+ @property
100
+ def parameter_values(self):
101
+ """Gets the parameter_values of this ShowStarrocksParamsResponse.
102
+
103
+ 参数对象。
104
+
105
+ :return: The parameter_values of this ShowStarrocksParamsResponse.
106
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.ParameterValuesInfo`]
107
+ """
108
+ return self._parameter_values
109
+
110
+ @parameter_values.setter
111
+ def parameter_values(self, parameter_values):
112
+ """Sets the parameter_values of this ShowStarrocksParamsResponse.
113
+
114
+ 参数对象。
115
+
116
+ :param parameter_values: The parameter_values of this ShowStarrocksParamsResponse.
117
+ :type parameter_values: list[:class:`huaweicloudsdkgaussdb.v3.ParameterValuesInfo`]
118
+ """
119
+ self._parameter_values = parameter_values
120
+
121
+ def to_dict(self):
122
+ """Returns the model properties as a dict"""
123
+ result = {}
124
+
125
+ for attr, _ in six.iteritems(self.openapi_types):
126
+ value = getattr(self, attr)
127
+ if isinstance(value, list):
128
+ result[attr] = list(map(
129
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
130
+ value
131
+ ))
132
+ elif hasattr(value, "to_dict"):
133
+ result[attr] = value.to_dict()
134
+ elif isinstance(value, dict):
135
+ result[attr] = dict(map(
136
+ lambda item: (item[0], item[1].to_dict())
137
+ if hasattr(item[1], "to_dict") else item,
138
+ value.items()
139
+ ))
140
+ else:
141
+ if attr in self.sensitive_list:
142
+ result[attr] = "****"
143
+ else:
144
+ result[attr] = value
145
+
146
+ return result
147
+
148
+ def to_str(self):
149
+ """Returns the string representation of the model"""
150
+ import simplejson as json
151
+ if six.PY2:
152
+ import sys
153
+ reload(sys)
154
+ sys.setdefaultencoding("utf-8")
155
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
156
+
157
+ def __repr__(self):
158
+ """For `print`"""
159
+ return self.to_str()
160
+
161
+ def __eq__(self, other):
162
+ """Returns true if both objects are equal"""
163
+ if not isinstance(other, ShowStarrocksParamsResponse):
164
+ return False
165
+
166
+ return self.__dict__ == other.__dict__
167
+
168
+ def __ne__(self, other):
169
+ """Returns true if both objects are not equal"""
170
+ 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 SrFlavorResizeReq:
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
+ 'fe_flavor_id': 'str',
21
+ 'be_flavor_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'fe_flavor_id': 'fe_flavor_id',
26
+ 'be_flavor_id': 'be_flavor_id'
27
+ }
28
+
29
+ def __init__(self, fe_flavor_id=None, be_flavor_id=None):
30
+ """SrFlavorResizeReq
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param fe_flavor_id: FE节点CPU、内存规格ID。填空或者不填视为规格ID与原规格ID保持一致。
35
+ :type fe_flavor_id: str
36
+ :param be_flavor_id: BE节点CPU、内存规格ID。填空或者不填视为规格ID与原规格ID保持一致。
37
+ :type be_flavor_id: str
38
+ """
39
+
40
+
41
+
42
+ self._fe_flavor_id = None
43
+ self._be_flavor_id = None
44
+ self.discriminator = None
45
+
46
+ if fe_flavor_id is not None:
47
+ self.fe_flavor_id = fe_flavor_id
48
+ if be_flavor_id is not None:
49
+ self.be_flavor_id = be_flavor_id
50
+
51
+ @property
52
+ def fe_flavor_id(self):
53
+ """Gets the fe_flavor_id of this SrFlavorResizeReq.
54
+
55
+ FE节点CPU、内存规格ID。填空或者不填视为规格ID与原规格ID保持一致。
56
+
57
+ :return: The fe_flavor_id of this SrFlavorResizeReq.
58
+ :rtype: str
59
+ """
60
+ return self._fe_flavor_id
61
+
62
+ @fe_flavor_id.setter
63
+ def fe_flavor_id(self, fe_flavor_id):
64
+ """Sets the fe_flavor_id of this SrFlavorResizeReq.
65
+
66
+ FE节点CPU、内存规格ID。填空或者不填视为规格ID与原规格ID保持一致。
67
+
68
+ :param fe_flavor_id: The fe_flavor_id of this SrFlavorResizeReq.
69
+ :type fe_flavor_id: str
70
+ """
71
+ self._fe_flavor_id = fe_flavor_id
72
+
73
+ @property
74
+ def be_flavor_id(self):
75
+ """Gets the be_flavor_id of this SrFlavorResizeReq.
76
+
77
+ BE节点CPU、内存规格ID。填空或者不填视为规格ID与原规格ID保持一致。
78
+
79
+ :return: The be_flavor_id of this SrFlavorResizeReq.
80
+ :rtype: str
81
+ """
82
+ return self._be_flavor_id
83
+
84
+ @be_flavor_id.setter
85
+ def be_flavor_id(self, be_flavor_id):
86
+ """Sets the be_flavor_id of this SrFlavorResizeReq.
87
+
88
+ BE节点CPU、内存规格ID。填空或者不填视为规格ID与原规格ID保持一致。
89
+
90
+ :param be_flavor_id: The be_flavor_id of this SrFlavorResizeReq.
91
+ :type be_flavor_id: str
92
+ """
93
+ self._be_flavor_id = be_flavor_id
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, SrFlavorResizeReq):
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,168 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SyncStarRocksUsersRequest:
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': 'UserSyncReq'
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
+ """SyncStarRocksUsersRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param instance_id: StarRocks实例ID。
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 SyncStarRocksUsersRequest
41
+ :type body: :class:`huaweicloudsdkgaussdb.v3.UserSyncReq`
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 SyncStarRocksUsersRequest.
60
+
61
+ StarRocks实例ID。
62
+
63
+ :return: The instance_id of this SyncStarRocksUsersRequest.
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 SyncStarRocksUsersRequest.
71
+
72
+ StarRocks实例ID。
73
+
74
+ :param instance_id: The instance_id of this SyncStarRocksUsersRequest.
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 SyncStarRocksUsersRequest.
82
+
83
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
84
+
85
+ :return: The x_language of this SyncStarRocksUsersRequest.
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 SyncStarRocksUsersRequest.
93
+
94
+ 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
95
+
96
+ :param x_language: The x_language of this SyncStarRocksUsersRequest.
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 SyncStarRocksUsersRequest.
104
+
105
+ :return: The body of this SyncStarRocksUsersRequest.
106
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.UserSyncReq`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ """Sets the body of this SyncStarRocksUsersRequest.
113
+
114
+ :param body: The body of this SyncStarRocksUsersRequest.
115
+ :type body: :class:`huaweicloudsdkgaussdb.v3.UserSyncReq`
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, SyncStarRocksUsersRequest):
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 SyncStarRocksUsersResponse(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
+ 'success': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'success': 'success'
26
+ }
27
+
28
+ def __init__(self, success=None):
29
+ """SyncStarRocksUsersResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param success: 开启行列分流是否成功。
34
+ :type success: str
35
+ """
36
+
37
+ super(SyncStarRocksUsersResponse, self).__init__()
38
+
39
+ self._success = None
40
+ self.discriminator = None
41
+
42
+ if success is not None:
43
+ self.success = success
44
+
45
+ @property
46
+ def success(self):
47
+ """Gets the success of this SyncStarRocksUsersResponse.
48
+
49
+ 开启行列分流是否成功。
50
+
51
+ :return: The success of this SyncStarRocksUsersResponse.
52
+ :rtype: str
53
+ """
54
+ return self._success
55
+
56
+ @success.setter
57
+ def success(self, success):
58
+ """Sets the success of this SyncStarRocksUsersResponse.
59
+
60
+ 开启行列分流是否成功。
61
+
62
+ :param success: The success of this SyncStarRocksUsersResponse.
63
+ :type success: str
64
+ """
65
+ self._success = success
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, SyncStarRocksUsersResponse):
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