huaweicloudsdkgaussdbforopengauss 3.1.119__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.119.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/METADATA +2 -2
  36. {huaweicloudsdkgaussdbforopengauss-3.1.119.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/RECORD +39 -9
  37. {huaweicloudsdkgaussdbforopengauss-3.1.119.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/LICENSE +0 -0
  38. {huaweicloudsdkgaussdbforopengauss-3.1.119.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/WHEEL +0 -0
  39. {huaweicloudsdkgaussdbforopengauss-3.1.119.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/top_level.txt +0 -0
@@ -46,6 +46,11 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.create_gauss_db_instance_respons
46
46
  from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_request import CreateInstanceRequest
47
47
  from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_resp_item import CreateInstanceRespItem
48
48
  from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_response import CreateInstanceResponse
49
+ from huaweicloudsdkgaussdbforopengauss.v3.model.create_limit_task_node_option import CreateLimitTaskNodeOption
50
+ from huaweicloudsdkgaussdbforopengauss.v3.model.create_limit_task_node_result import CreateLimitTaskNodeResult
51
+ from huaweicloudsdkgaussdbforopengauss.v3.model.create_limit_task_request import CreateLimitTaskRequest
52
+ from huaweicloudsdkgaussdbforopengauss.v3.model.create_limit_task_request_body import CreateLimitTaskRequestBody
53
+ from huaweicloudsdkgaussdbforopengauss.v3.model.create_limit_task_response import CreateLimitTaskResponse
49
54
  from huaweicloudsdkgaussdbforopengauss.v3.model.create_manual_backup_request import CreateManualBackupRequest
50
55
  from huaweicloudsdkgaussdbforopengauss.v3.model.create_manual_backup_request_body import CreateManualBackupRequestBody
51
56
  from huaweicloudsdkgaussdbforopengauss.v3.model.create_manual_backup_response import CreateManualBackupResponse
@@ -68,6 +73,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_tag_request impo
68
73
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_tag_response import DeleteInstanceTagResponse
69
74
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_job_request import DeleteJobRequest
70
75
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_job_response import DeleteJobResponse
76
+ from huaweicloudsdkgaussdbforopengauss.v3.model.delete_limit_task_request import DeleteLimitTaskRequest
77
+ from huaweicloudsdkgaussdbforopengauss.v3.model.delete_limit_task_response import DeleteLimitTaskResponse
71
78
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_manual_backup_request import DeleteManualBackupRequest
72
79
  from huaweicloudsdkgaussdbforopengauss.v3.model.delete_manual_backup_response import DeleteManualBackupResponse
73
80
  from huaweicloudsdkgaussdbforopengauss.v3.model.download_backup_error_response import DownloadBackupErrorResponse
@@ -75,6 +82,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.download_backup_request import D
75
82
  from huaweicloudsdkgaussdbforopengauss.v3.model.download_backup_response import DownloadBackupResponse
76
83
  from huaweicloudsdkgaussdbforopengauss.v3.model.download_object import DownloadObject
77
84
  from huaweicloudsdkgaussdbforopengauss.v3.model.eps_quotas_option import EpsQuotasOption
85
+ from huaweicloudsdkgaussdbforopengauss.v3.model.error_response import ErrorResponse
78
86
  from huaweicloudsdkgaussdbforopengauss.v3.model.flavor import Flavor
79
87
  from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_error_response import FlavorErrorResponse
80
88
  from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_result import FlavorResult
@@ -103,6 +111,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.instances_list_result import Ins
103
111
  from huaweicloudsdkgaussdbforopengauss.v3.model.instances_result import InstancesResult
104
112
  from huaweicloudsdkgaussdbforopengauss.v3.model.job_detail import JobDetail
105
113
  from huaweicloudsdkgaussdbforopengauss.v3.model.job_instance_info import JobInstanceInfo
114
+ from huaweicloudsdkgaussdbforopengauss.v3.model.limit_task_rule_info_option import LimitTaskRuleInfoOption
106
115
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_applicable_instances_request import ListApplicableInstancesRequest
107
116
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_applicable_instances_response import ListApplicableInstancesResponse
108
117
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_applied_histories_request import ListAppliedHistoriesRequest
@@ -163,6 +172,12 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_instances_response import L
163
172
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_instances_result import ListInstancesResult
164
173
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_kernel_plugins_request import ListKernelPluginsRequest
165
174
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_kernel_plugins_response import ListKernelPluginsResponse
175
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_limit_task_request import ListLimitTaskRequest
176
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_limit_task_response import ListLimitTaskResponse
177
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_limit_task_response_result import ListLimitTaskResponseResult
178
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_node_limit_sql_model_request import ListNodeLimitSqlModelRequest
179
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_node_limit_sql_model_response import ListNodeLimitSqlModelResponse
180
+ from huaweicloudsdkgaussdbforopengauss.v3.model.list_node_limit_sql_model_response_result import ListNodeLimitSqlModelResponseResult
166
181
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_param_group_templates_request import ListParamGroupTemplatesRequest
167
182
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_param_group_templates_response import ListParamGroupTemplatesResponse
168
183
  from huaweicloudsdkgaussdbforopengauss.v3.model.list_plugin_extensions_request import ListPluginExtensionsRequest
@@ -297,6 +312,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_snapshot_request i
297
312
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_snapshot_response import ShowInstanceSnapshotResponse
298
313
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_job_detail_request import ShowJobDetailRequest
299
314
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_job_detail_response import ShowJobDetailResponse
315
+ from huaweicloudsdkgaussdbforopengauss.v3.model.show_limit_task_node_option import ShowLimitTaskNodeOption
316
+ from huaweicloudsdkgaussdbforopengauss.v3.model.show_limit_task_request import ShowLimitTaskRequest
317
+ from huaweicloudsdkgaussdbforopengauss.v3.model.show_limit_task_response import ShowLimitTaskResponse
300
318
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_project_quotas_request import ShowProjectQuotasRequest
301
319
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_project_quotas_response import ShowProjectQuotasResponse
302
320
  from huaweicloudsdkgaussdbforopengauss.v3.model.show_recycle_policy_request import ShowRecyclePolicyRequest
@@ -311,8 +329,14 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.slow_log_download_info import Sl
311
329
  from huaweicloudsdkgaussdbforopengauss.v3.model.start_instance_request import StartInstanceRequest
312
330
  from huaweicloudsdkgaussdbforopengauss.v3.model.start_instance_request_body import StartInstanceRequestBody
313
331
  from huaweicloudsdkgaussdbforopengauss.v3.model.start_instance_response import StartInstanceResponse
332
+ from huaweicloudsdkgaussdbforopengauss.v3.model.start_my_sql_compatibility_request_body import StartMySQLCompatibilityRequestBody
333
+ from huaweicloudsdkgaussdbforopengauss.v3.model.start_mysql_compatibility_request import StartMysqlCompatibilityRequest
334
+ from huaweicloudsdkgaussdbforopengauss.v3.model.start_mysql_compatibility_response import StartMysqlCompatibilityResponse
314
335
  from huaweicloudsdkgaussdbforopengauss.v3.model.stop_backup_request import StopBackupRequest
315
336
  from huaweicloudsdkgaussdbforopengauss.v3.model.stop_backup_response import StopBackupResponse
337
+ from huaweicloudsdkgaussdbforopengauss.v3.model.stop_instance_request import StopInstanceRequest
338
+ from huaweicloudsdkgaussdbforopengauss.v3.model.stop_instance_request_body import StopInstanceRequestBody
339
+ from huaweicloudsdkgaussdbforopengauss.v3.model.stop_instance_response import StopInstanceResponse
316
340
  from huaweicloudsdkgaussdbforopengauss.v3.model.storage import Storage
317
341
  from huaweicloudsdkgaussdbforopengauss.v3.model.switch_configuration_request import SwitchConfigurationRequest
318
342
  from huaweicloudsdkgaussdbforopengauss.v3.model.switch_configuration_response import SwitchConfigurationResponse
@@ -328,6 +352,12 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_configuration_re
328
352
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_configuration_response import UpdateInstanceConfigurationResponse
329
353
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_name_request import UpdateInstanceNameRequest
330
354
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_instance_name_response import UpdateInstanceNameResponse
355
+ from huaweicloudsdkgaussdbforopengauss.v3.model.update_limit_task_request import UpdateLimitTaskRequest
356
+ from huaweicloudsdkgaussdbforopengauss.v3.model.update_limit_task_request_body import UpdateLimitTaskRequestBody
357
+ from huaweicloudsdkgaussdbforopengauss.v3.model.update_limit_task_response import UpdateLimitTaskResponse
358
+ from huaweicloudsdkgaussdbforopengauss.v3.model.update_my_sql_compatibility_request_body import UpdateMySQLCompatibilityRequestBody
359
+ from huaweicloudsdkgaussdbforopengauss.v3.model.update_mysql_compatibility_request import UpdateMysqlCompatibilityRequest
360
+ from huaweicloudsdkgaussdbforopengauss.v3.model.update_mysql_compatibility_response import UpdateMysqlCompatibilityResponse
331
361
  from huaweicloudsdkgaussdbforopengauss.v3.model.update_name_request_body import UpdateNameRequestBody
332
362
  from huaweicloudsdkgaussdbforopengauss.v3.model.upgrade_action_info import UpgradeActionInfo
333
363
  from huaweicloudsdkgaussdbforopengauss.v3.model.upgrade_error_response_body import UpgradeErrorResponseBody
@@ -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 CreateLimitTaskNodeOption:
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
+ 'sql_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'node_id': 'node_id',
26
+ 'sql_id': 'sql_id'
27
+ }
28
+
29
+ def __init__(self, node_id=None, sql_id=None):
30
+ """CreateLimitTaskNodeOption
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param node_id: 节点id。
35
+ :type node_id: str
36
+ :param sql_id: 该节点执行的sql语句id。如果类型为SQL_ID,必须与limit_type_value值一致。
37
+ :type sql_id: str
38
+ """
39
+
40
+
41
+
42
+ self._node_id = None
43
+ self._sql_id = None
44
+ self.discriminator = None
45
+
46
+ self.node_id = node_id
47
+ self.sql_id = sql_id
48
+
49
+ @property
50
+ def node_id(self):
51
+ """Gets the node_id of this CreateLimitTaskNodeOption.
52
+
53
+ 节点id。
54
+
55
+ :return: The node_id of this CreateLimitTaskNodeOption.
56
+ :rtype: str
57
+ """
58
+ return self._node_id
59
+
60
+ @node_id.setter
61
+ def node_id(self, node_id):
62
+ """Sets the node_id of this CreateLimitTaskNodeOption.
63
+
64
+ 节点id。
65
+
66
+ :param node_id: The node_id of this CreateLimitTaskNodeOption.
67
+ :type node_id: str
68
+ """
69
+ self._node_id = node_id
70
+
71
+ @property
72
+ def sql_id(self):
73
+ """Gets the sql_id of this CreateLimitTaskNodeOption.
74
+
75
+ 该节点执行的sql语句id。如果类型为SQL_ID,必须与limit_type_value值一致。
76
+
77
+ :return: The sql_id of this CreateLimitTaskNodeOption.
78
+ :rtype: str
79
+ """
80
+ return self._sql_id
81
+
82
+ @sql_id.setter
83
+ def sql_id(self, sql_id):
84
+ """Sets the sql_id of this CreateLimitTaskNodeOption.
85
+
86
+ 该节点执行的sql语句id。如果类型为SQL_ID,必须与limit_type_value值一致。
87
+
88
+ :param sql_id: The sql_id of this CreateLimitTaskNodeOption.
89
+ :type sql_id: str
90
+ """
91
+ self._sql_id = sql_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, CreateLimitTaskNodeOption):
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,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateLimitTaskNodeResult:
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
+ 'sql_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'node_id': 'node_id',
26
+ 'sql_id': 'sql_id'
27
+ }
28
+
29
+ def __init__(self, node_id=None, sql_id=None):
30
+ """CreateLimitTaskNodeResult
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param node_id: 节点id。
35
+ :type node_id: str
36
+ :param sql_id: 该节点执行的sql语句id。
37
+ :type sql_id: str
38
+ """
39
+
40
+
41
+
42
+ self._node_id = None
43
+ self._sql_id = None
44
+ self.discriminator = None
45
+
46
+ if node_id is not None:
47
+ self.node_id = node_id
48
+ if sql_id is not None:
49
+ self.sql_id = sql_id
50
+
51
+ @property
52
+ def node_id(self):
53
+ """Gets the node_id of this CreateLimitTaskNodeResult.
54
+
55
+ 节点id。
56
+
57
+ :return: The node_id of this CreateLimitTaskNodeResult.
58
+ :rtype: str
59
+ """
60
+ return self._node_id
61
+
62
+ @node_id.setter
63
+ def node_id(self, node_id):
64
+ """Sets the node_id of this CreateLimitTaskNodeResult.
65
+
66
+ 节点id。
67
+
68
+ :param node_id: The node_id of this CreateLimitTaskNodeResult.
69
+ :type node_id: str
70
+ """
71
+ self._node_id = node_id
72
+
73
+ @property
74
+ def sql_id(self):
75
+ """Gets the sql_id of this CreateLimitTaskNodeResult.
76
+
77
+ 该节点执行的sql语句id。
78
+
79
+ :return: The sql_id of this CreateLimitTaskNodeResult.
80
+ :rtype: str
81
+ """
82
+ return self._sql_id
83
+
84
+ @sql_id.setter
85
+ def sql_id(self, sql_id):
86
+ """Sets the sql_id of this CreateLimitTaskNodeResult.
87
+
88
+ 该节点执行的sql语句id。
89
+
90
+ :param sql_id: The sql_id of this CreateLimitTaskNodeResult.
91
+ :type sql_id: str
92
+ """
93
+ self._sql_id = sql_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, CreateLimitTaskNodeResult):
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,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateLimitTaskRequest:
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
+ 'body': 'CreateLimitTaskRequestBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'instance_id': 'instance_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, instance_id=None, body=None):
30
+ """CreateLimitTaskRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param instance_id: 实例ID。
35
+ :type instance_id: str
36
+ :param body: Body of the CreateLimitTaskRequest
37
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateLimitTaskRequestBody`
38
+ """
39
+
40
+
41
+
42
+ self._instance_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.instance_id = instance_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def instance_id(self):
52
+ """Gets the instance_id of this CreateLimitTaskRequest.
53
+
54
+ 实例ID。
55
+
56
+ :return: The instance_id of this CreateLimitTaskRequest.
57
+ :rtype: str
58
+ """
59
+ return self._instance_id
60
+
61
+ @instance_id.setter
62
+ def instance_id(self, instance_id):
63
+ """Sets the instance_id of this CreateLimitTaskRequest.
64
+
65
+ 实例ID。
66
+
67
+ :param instance_id: The instance_id of this CreateLimitTaskRequest.
68
+ :type instance_id: str
69
+ """
70
+ self._instance_id = instance_id
71
+
72
+ @property
73
+ def body(self):
74
+ """Gets the body of this CreateLimitTaskRequest.
75
+
76
+ :return: The body of this CreateLimitTaskRequest.
77
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateLimitTaskRequestBody`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ """Sets the body of this CreateLimitTaskRequest.
84
+
85
+ :param body: The body of this CreateLimitTaskRequest.
86
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.CreateLimitTaskRequestBody`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, CreateLimitTaskRequest):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other