huaweicloudsdkgaussdbforopengauss 3.1.118__py2.py3-none-any.whl → 3.1.120__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 (39) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +30 -0
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +635 -0
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +635 -0
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +30 -0
  5. huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_node_option.py +142 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_node_result.py +144 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_request.py +139 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_request_body.py +458 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_response.py +725 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/delete_limit_task_request.py +142 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/delete_limit_task_response.py +85 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/error_response.py +142 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/limit_task_rule_info_option.py +170 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_request.py +404 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_response.py +203 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_response_result.py +695 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_request.py +229 -0
  18. huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_response.py +203 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_response_result.py +144 -0
  20. huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_node_option.py +142 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_request.py +142 -0
  22. huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_response.py +406 -0
  23. huaweicloudsdkgaussdbforopengauss/v3/model/start_my_sql_compatibility_request_body.py +114 -0
  24. huaweicloudsdkgaussdbforopengauss/v3/model/start_mysql_compatibility_request.py +168 -0
  25. huaweicloudsdkgaussdbforopengauss/v3/model/start_mysql_compatibility_response.py +116 -0
  26. huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_request.py +168 -0
  27. huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_request_body.py +114 -0
  28. huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_response.py +116 -0
  29. huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_request.py +167 -0
  30. huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_request_body.py +318 -0
  31. huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_response.py +406 -0
  32. huaweicloudsdkgaussdbforopengauss/v3/model/update_my_sql_compatibility_request_body.py +115 -0
  33. huaweicloudsdkgaussdbforopengauss/v3/model/update_mysql_compatibility_request.py +168 -0
  34. huaweicloudsdkgaussdbforopengauss/v3/model/update_mysql_compatibility_response.py +116 -0
  35. {huaweicloudsdkgaussdbforopengauss-3.1.118.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/METADATA +2 -2
  36. {huaweicloudsdkgaussdbforopengauss-3.1.118.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/RECORD +39 -9
  37. {huaweicloudsdkgaussdbforopengauss-3.1.118.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/LICENSE +0 -0
  38. {huaweicloudsdkgaussdbforopengauss-3.1.118.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/WHEEL +0 -0
  39. {huaweicloudsdkgaussdbforopengauss-3.1.118.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteLimitTaskRequest:
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_id': 'str',
21
+ 'instance_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'task_id': 'task_id',
26
+ 'instance_id': 'instance_id'
27
+ }
28
+
29
+ def __init__(self, task_id=None, instance_id=None):
30
+ """DeleteLimitTaskRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param task_id: 限流任务id。
35
+ :type task_id: str
36
+ :param instance_id: 实例ID。
37
+ :type instance_id: str
38
+ """
39
+
40
+
41
+
42
+ self._task_id = None
43
+ self._instance_id = None
44
+ self.discriminator = None
45
+
46
+ self.task_id = task_id
47
+ self.instance_id = instance_id
48
+
49
+ @property
50
+ def task_id(self):
51
+ """Gets the task_id of this DeleteLimitTaskRequest.
52
+
53
+ 限流任务id。
54
+
55
+ :return: The task_id of this DeleteLimitTaskRequest.
56
+ :rtype: str
57
+ """
58
+ return self._task_id
59
+
60
+ @task_id.setter
61
+ def task_id(self, task_id):
62
+ """Sets the task_id of this DeleteLimitTaskRequest.
63
+
64
+ 限流任务id。
65
+
66
+ :param task_id: The task_id of this DeleteLimitTaskRequest.
67
+ :type task_id: str
68
+ """
69
+ self._task_id = task_id
70
+
71
+ @property
72
+ def instance_id(self):
73
+ """Gets the instance_id of this DeleteLimitTaskRequest.
74
+
75
+ 实例ID。
76
+
77
+ :return: The instance_id of this DeleteLimitTaskRequest.
78
+ :rtype: str
79
+ """
80
+ return self._instance_id
81
+
82
+ @instance_id.setter
83
+ def instance_id(self, instance_id):
84
+ """Sets the instance_id of this DeleteLimitTaskRequest.
85
+
86
+ 实例ID。
87
+
88
+ :param instance_id: The instance_id of this DeleteLimitTaskRequest.
89
+ :type instance_id: str
90
+ """
91
+ self._instance_id = instance_id
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, DeleteLimitTaskRequest):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ 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 DeleteLimitTaskResponse(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
+ """DeleteLimitTaskResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(DeleteLimitTaskResponse, 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, DeleteLimitTaskResponse):
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,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ErrorResponse:
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
+ 'error_code': 'str',
21
+ 'error_msg': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'error_code': 'error_code',
26
+ 'error_msg': 'error_msg'
27
+ }
28
+
29
+ def __init__(self, error_code=None, error_msg=None):
30
+ """ErrorResponse
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param error_code: 错误码。
35
+ :type error_code: str
36
+ :param error_msg: 错误消息。
37
+ :type error_msg: str
38
+ """
39
+
40
+
41
+
42
+ self._error_code = None
43
+ self._error_msg = None
44
+ self.discriminator = None
45
+
46
+ self.error_code = error_code
47
+ self.error_msg = error_msg
48
+
49
+ @property
50
+ def error_code(self):
51
+ """Gets the error_code of this ErrorResponse.
52
+
53
+ 错误码。
54
+
55
+ :return: The error_code of this ErrorResponse.
56
+ :rtype: str
57
+ """
58
+ return self._error_code
59
+
60
+ @error_code.setter
61
+ def error_code(self, error_code):
62
+ """Sets the error_code of this ErrorResponse.
63
+
64
+ 错误码。
65
+
66
+ :param error_code: The error_code of this ErrorResponse.
67
+ :type error_code: str
68
+ """
69
+ self._error_code = error_code
70
+
71
+ @property
72
+ def error_msg(self):
73
+ """Gets the error_msg of this ErrorResponse.
74
+
75
+ 错误消息。
76
+
77
+ :return: The error_msg of this ErrorResponse.
78
+ :rtype: str
79
+ """
80
+ return self._error_msg
81
+
82
+ @error_msg.setter
83
+ def error_msg(self, error_msg):
84
+ """Sets the error_msg of this ErrorResponse.
85
+
86
+ 错误消息。
87
+
88
+ :param error_msg: The error_msg of this ErrorResponse.
89
+ :type error_msg: str
90
+ """
91
+ self._error_msg = error_msg
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, ErrorResponse):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other
@@ -0,0 +1,170 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class LimitTaskRuleInfoOption:
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
+ 'node_id': 'str',
21
+ 'rule_id': 'str',
22
+ 'status': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'node_id': 'node_id',
27
+ 'rule_id': 'rule_id',
28
+ 'status': 'status'
29
+ }
30
+
31
+ def __init__(self, node_id=None, rule_id=None, status=None):
32
+ """LimitTaskRuleInfoOption
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param node_id: 节点id。
37
+ :type node_id: str
38
+ :param rule_id: 规则id。
39
+ :type rule_id: str
40
+ :param status: 状态,当前支持:CREATING,UPDATEING,DELETING,WAIT_EXCUTE,EXCUTING,TIME_OVER,DELETED,CREATE_FAILED,UPDATE_FAILED,DELETE_FAILED,EXCEPTION。
41
+ :type status: str
42
+ """
43
+
44
+
45
+
46
+ self._node_id = None
47
+ self._rule_id = None
48
+ self._status = None
49
+ self.discriminator = None
50
+
51
+ self.node_id = node_id
52
+ self.rule_id = rule_id
53
+ self.status = status
54
+
55
+ @property
56
+ def node_id(self):
57
+ """Gets the node_id of this LimitTaskRuleInfoOption.
58
+
59
+ 节点id。
60
+
61
+ :return: The node_id of this LimitTaskRuleInfoOption.
62
+ :rtype: str
63
+ """
64
+ return self._node_id
65
+
66
+ @node_id.setter
67
+ def node_id(self, node_id):
68
+ """Sets the node_id of this LimitTaskRuleInfoOption.
69
+
70
+ 节点id。
71
+
72
+ :param node_id: The node_id of this LimitTaskRuleInfoOption.
73
+ :type node_id: str
74
+ """
75
+ self._node_id = node_id
76
+
77
+ @property
78
+ def rule_id(self):
79
+ """Gets the rule_id of this LimitTaskRuleInfoOption.
80
+
81
+ 规则id。
82
+
83
+ :return: The rule_id of this LimitTaskRuleInfoOption.
84
+ :rtype: str
85
+ """
86
+ return self._rule_id
87
+
88
+ @rule_id.setter
89
+ def rule_id(self, rule_id):
90
+ """Sets the rule_id of this LimitTaskRuleInfoOption.
91
+
92
+ 规则id。
93
+
94
+ :param rule_id: The rule_id of this LimitTaskRuleInfoOption.
95
+ :type rule_id: str
96
+ """
97
+ self._rule_id = rule_id
98
+
99
+ @property
100
+ def status(self):
101
+ """Gets the status of this LimitTaskRuleInfoOption.
102
+
103
+ 状态,当前支持:CREATING,UPDATEING,DELETING,WAIT_EXCUTE,EXCUTING,TIME_OVER,DELETED,CREATE_FAILED,UPDATE_FAILED,DELETE_FAILED,EXCEPTION。
104
+
105
+ :return: The status of this LimitTaskRuleInfoOption.
106
+ :rtype: str
107
+ """
108
+ return self._status
109
+
110
+ @status.setter
111
+ def status(self, status):
112
+ """Sets the status of this LimitTaskRuleInfoOption.
113
+
114
+ 状态,当前支持:CREATING,UPDATEING,DELETING,WAIT_EXCUTE,EXCUTING,TIME_OVER,DELETED,CREATE_FAILED,UPDATE_FAILED,DELETE_FAILED,EXCEPTION。
115
+
116
+ :param status: The status of this LimitTaskRuleInfoOption.
117
+ :type status: str
118
+ """
119
+ self._status = status
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, LimitTaskRuleInfoOption):
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