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.
- huaweicloudsdkgaussdbforopengauss/v3/__init__.py +30 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +635 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +635 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +30 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_node_option.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_node_result.py +144 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_request.py +139 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_request_body.py +458 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_limit_task_response.py +725 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_limit_task_request.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_limit_task_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/error_response.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/limit_task_rule_info_option.py +170 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_request.py +404 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_response.py +203 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_limit_task_response_result.py +695 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_request.py +229 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_response.py +203 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_node_limit_sql_model_response_result.py +144 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_node_option.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_request.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_limit_task_response.py +406 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_my_sql_compatibility_request_body.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_mysql_compatibility_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/start_mysql_compatibility_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_request_body.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/stop_instance_response.py +116 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_request.py +167 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_request_body.py +318 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_limit_task_response.py +406 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_my_sql_compatibility_request_body.py +115 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_mysql_compatibility_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/update_mysql_compatibility_response.py +116 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.118.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.118.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/RECORD +39 -9
- {huaweicloudsdkgaussdbforopengauss-3.1.118.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.118.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.120.dist-info}/WHEEL +0 -0
- {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 ShowLimitTaskNodeOption:
|
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
|
+
"""ShowLimitTaskNodeOption
|
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
|
+
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 ShowLimitTaskNodeOption.
|
52
|
+
|
53
|
+
节点id。
|
54
|
+
|
55
|
+
:return: The node_id of this ShowLimitTaskNodeOption.
|
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 ShowLimitTaskNodeOption.
|
63
|
+
|
64
|
+
节点id。
|
65
|
+
|
66
|
+
:param node_id: The node_id of this ShowLimitTaskNodeOption.
|
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 ShowLimitTaskNodeOption.
|
74
|
+
|
75
|
+
该节点执行的sql语句id。
|
76
|
+
|
77
|
+
:return: The sql_id of this ShowLimitTaskNodeOption.
|
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 ShowLimitTaskNodeOption.
|
85
|
+
|
86
|
+
该节点执行的sql语句id。
|
87
|
+
|
88
|
+
:param sql_id: The sql_id of this ShowLimitTaskNodeOption.
|
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, ShowLimitTaskNodeOption):
|
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,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowLimitTaskRequest:
|
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
|
+
"""ShowLimitTaskRequest
|
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 ShowLimitTaskRequest.
|
52
|
+
|
53
|
+
限流任务id。
|
54
|
+
|
55
|
+
:return: The task_id of this ShowLimitTaskRequest.
|
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 ShowLimitTaskRequest.
|
63
|
+
|
64
|
+
限流任务id。
|
65
|
+
|
66
|
+
:param task_id: The task_id of this ShowLimitTaskRequest.
|
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 ShowLimitTaskRequest.
|
74
|
+
|
75
|
+
实例ID。
|
76
|
+
|
77
|
+
:return: The instance_id of this ShowLimitTaskRequest.
|
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 ShowLimitTaskRequest.
|
85
|
+
|
86
|
+
实例ID。
|
87
|
+
|
88
|
+
:param instance_id: The instance_id of this ShowLimitTaskRequest.
|
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, ShowLimitTaskRequest):
|
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,406 @@
|
|
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 ShowLimitTaskResponse(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
|
+
'task_name': 'str',
|
22
|
+
'limit_type': 'str',
|
23
|
+
'parallel_size': 'int',
|
24
|
+
'start_time': 'str',
|
25
|
+
'end_time': 'str',
|
26
|
+
'task_running_time': 'int',
|
27
|
+
'limit_count': 'int',
|
28
|
+
'rule_name': 'str',
|
29
|
+
'memory_utilization': 'int',
|
30
|
+
'cpu_utilization': 'int',
|
31
|
+
'limit_task_rule_info_list': 'list[LimitTaskRuleInfoOption]'
|
32
|
+
}
|
33
|
+
|
34
|
+
attribute_map = {
|
35
|
+
'task_name': 'task_name',
|
36
|
+
'limit_type': 'limit_type',
|
37
|
+
'parallel_size': 'parallel_size',
|
38
|
+
'start_time': 'start_time',
|
39
|
+
'end_time': 'end_time',
|
40
|
+
'task_running_time': 'task_running_time',
|
41
|
+
'limit_count': 'limit_count',
|
42
|
+
'rule_name': 'rule_name',
|
43
|
+
'memory_utilization': 'memory_utilization',
|
44
|
+
'cpu_utilization': 'cpu_utilization',
|
45
|
+
'limit_task_rule_info_list': 'limit_task_rule_info_list'
|
46
|
+
}
|
47
|
+
|
48
|
+
def __init__(self, task_name=None, limit_type=None, parallel_size=None, start_time=None, end_time=None, task_running_time=None, limit_count=None, rule_name=None, memory_utilization=None, cpu_utilization=None, limit_task_rule_info_list=None):
|
49
|
+
"""ShowLimitTaskResponse
|
50
|
+
|
51
|
+
The model defined in huaweicloud sdk
|
52
|
+
|
53
|
+
:param task_name: 限流任务名传。
|
54
|
+
:type task_name: str
|
55
|
+
:param limit_type: 任务限流类型。
|
56
|
+
:type limit_type: str
|
57
|
+
:param parallel_size: 并发数。
|
58
|
+
:type parallel_size: int
|
59
|
+
:param start_time: 限流任务开始时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。
|
60
|
+
:type start_time: str
|
61
|
+
:param end_time: 限流任务结束时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。
|
62
|
+
:type end_time: str
|
63
|
+
:param task_running_time: 限流任务已执行时间,单位秒。
|
64
|
+
:type task_running_time: int
|
65
|
+
:param limit_count: 限流任务拦截次数。
|
66
|
+
:type limit_count: int
|
67
|
+
:param rule_name: 规则名。
|
68
|
+
:type rule_name: str
|
69
|
+
:param memory_utilization: 内存利用率,仅当任务类型为SESSION_ACTIVE_MAX_COUNT时,返回该值且与请求参数相同。
|
70
|
+
:type memory_utilization: int
|
71
|
+
:param cpu_utilization: cpu利用率,仅当任务类型为SESSION_ACTIVE_MAX_COUNT时,返回该值且与请求参数相同。
|
72
|
+
:type cpu_utilization: int
|
73
|
+
:param limit_task_rule_info_list: 限流任务列表
|
74
|
+
:type limit_task_rule_info_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.LimitTaskRuleInfoOption`]
|
75
|
+
"""
|
76
|
+
|
77
|
+
super(ShowLimitTaskResponse, self).__init__()
|
78
|
+
|
79
|
+
self._task_name = None
|
80
|
+
self._limit_type = None
|
81
|
+
self._parallel_size = None
|
82
|
+
self._start_time = None
|
83
|
+
self._end_time = None
|
84
|
+
self._task_running_time = None
|
85
|
+
self._limit_count = None
|
86
|
+
self._rule_name = None
|
87
|
+
self._memory_utilization = None
|
88
|
+
self._cpu_utilization = None
|
89
|
+
self._limit_task_rule_info_list = None
|
90
|
+
self.discriminator = None
|
91
|
+
|
92
|
+
if task_name is not None:
|
93
|
+
self.task_name = task_name
|
94
|
+
if limit_type is not None:
|
95
|
+
self.limit_type = limit_type
|
96
|
+
if parallel_size is not None:
|
97
|
+
self.parallel_size = parallel_size
|
98
|
+
if start_time is not None:
|
99
|
+
self.start_time = start_time
|
100
|
+
if end_time is not None:
|
101
|
+
self.end_time = end_time
|
102
|
+
if task_running_time is not None:
|
103
|
+
self.task_running_time = task_running_time
|
104
|
+
if limit_count is not None:
|
105
|
+
self.limit_count = limit_count
|
106
|
+
if rule_name is not None:
|
107
|
+
self.rule_name = rule_name
|
108
|
+
if memory_utilization is not None:
|
109
|
+
self.memory_utilization = memory_utilization
|
110
|
+
if cpu_utilization is not None:
|
111
|
+
self.cpu_utilization = cpu_utilization
|
112
|
+
if limit_task_rule_info_list is not None:
|
113
|
+
self.limit_task_rule_info_list = limit_task_rule_info_list
|
114
|
+
|
115
|
+
@property
|
116
|
+
def task_name(self):
|
117
|
+
"""Gets the task_name of this ShowLimitTaskResponse.
|
118
|
+
|
119
|
+
限流任务名传。
|
120
|
+
|
121
|
+
:return: The task_name of this ShowLimitTaskResponse.
|
122
|
+
:rtype: str
|
123
|
+
"""
|
124
|
+
return self._task_name
|
125
|
+
|
126
|
+
@task_name.setter
|
127
|
+
def task_name(self, task_name):
|
128
|
+
"""Sets the task_name of this ShowLimitTaskResponse.
|
129
|
+
|
130
|
+
限流任务名传。
|
131
|
+
|
132
|
+
:param task_name: The task_name of this ShowLimitTaskResponse.
|
133
|
+
:type task_name: str
|
134
|
+
"""
|
135
|
+
self._task_name = task_name
|
136
|
+
|
137
|
+
@property
|
138
|
+
def limit_type(self):
|
139
|
+
"""Gets the limit_type of this ShowLimitTaskResponse.
|
140
|
+
|
141
|
+
任务限流类型。
|
142
|
+
|
143
|
+
:return: The limit_type of this ShowLimitTaskResponse.
|
144
|
+
:rtype: str
|
145
|
+
"""
|
146
|
+
return self._limit_type
|
147
|
+
|
148
|
+
@limit_type.setter
|
149
|
+
def limit_type(self, limit_type):
|
150
|
+
"""Sets the limit_type of this ShowLimitTaskResponse.
|
151
|
+
|
152
|
+
任务限流类型。
|
153
|
+
|
154
|
+
:param limit_type: The limit_type of this ShowLimitTaskResponse.
|
155
|
+
:type limit_type: str
|
156
|
+
"""
|
157
|
+
self._limit_type = limit_type
|
158
|
+
|
159
|
+
@property
|
160
|
+
def parallel_size(self):
|
161
|
+
"""Gets the parallel_size of this ShowLimitTaskResponse.
|
162
|
+
|
163
|
+
并发数。
|
164
|
+
|
165
|
+
:return: The parallel_size of this ShowLimitTaskResponse.
|
166
|
+
:rtype: int
|
167
|
+
"""
|
168
|
+
return self._parallel_size
|
169
|
+
|
170
|
+
@parallel_size.setter
|
171
|
+
def parallel_size(self, parallel_size):
|
172
|
+
"""Sets the parallel_size of this ShowLimitTaskResponse.
|
173
|
+
|
174
|
+
并发数。
|
175
|
+
|
176
|
+
:param parallel_size: The parallel_size of this ShowLimitTaskResponse.
|
177
|
+
:type parallel_size: int
|
178
|
+
"""
|
179
|
+
self._parallel_size = parallel_size
|
180
|
+
|
181
|
+
@property
|
182
|
+
def start_time(self):
|
183
|
+
"""Gets the start_time of this ShowLimitTaskResponse.
|
184
|
+
|
185
|
+
限流任务开始时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。
|
186
|
+
|
187
|
+
:return: The start_time of this ShowLimitTaskResponse.
|
188
|
+
:rtype: str
|
189
|
+
"""
|
190
|
+
return self._start_time
|
191
|
+
|
192
|
+
@start_time.setter
|
193
|
+
def start_time(self, start_time):
|
194
|
+
"""Sets the start_time of this ShowLimitTaskResponse.
|
195
|
+
|
196
|
+
限流任务开始时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。
|
197
|
+
|
198
|
+
:param start_time: The start_time of this ShowLimitTaskResponse.
|
199
|
+
:type start_time: str
|
200
|
+
"""
|
201
|
+
self._start_time = start_time
|
202
|
+
|
203
|
+
@property
|
204
|
+
def end_time(self):
|
205
|
+
"""Gets the end_time of this ShowLimitTaskResponse.
|
206
|
+
|
207
|
+
限流任务结束时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。
|
208
|
+
|
209
|
+
:return: The end_time of this ShowLimitTaskResponse.
|
210
|
+
:rtype: str
|
211
|
+
"""
|
212
|
+
return self._end_time
|
213
|
+
|
214
|
+
@end_time.setter
|
215
|
+
def end_time(self, end_time):
|
216
|
+
"""Sets the end_time of this ShowLimitTaskResponse.
|
217
|
+
|
218
|
+
限流任务结束时间,格式为yyyy-mm-ddThh:mm:ssZ,当前时间指UTC时间。
|
219
|
+
|
220
|
+
:param end_time: The end_time of this ShowLimitTaskResponse.
|
221
|
+
:type end_time: str
|
222
|
+
"""
|
223
|
+
self._end_time = end_time
|
224
|
+
|
225
|
+
@property
|
226
|
+
def task_running_time(self):
|
227
|
+
"""Gets the task_running_time of this ShowLimitTaskResponse.
|
228
|
+
|
229
|
+
限流任务已执行时间,单位秒。
|
230
|
+
|
231
|
+
:return: The task_running_time of this ShowLimitTaskResponse.
|
232
|
+
:rtype: int
|
233
|
+
"""
|
234
|
+
return self._task_running_time
|
235
|
+
|
236
|
+
@task_running_time.setter
|
237
|
+
def task_running_time(self, task_running_time):
|
238
|
+
"""Sets the task_running_time of this ShowLimitTaskResponse.
|
239
|
+
|
240
|
+
限流任务已执行时间,单位秒。
|
241
|
+
|
242
|
+
:param task_running_time: The task_running_time of this ShowLimitTaskResponse.
|
243
|
+
:type task_running_time: int
|
244
|
+
"""
|
245
|
+
self._task_running_time = task_running_time
|
246
|
+
|
247
|
+
@property
|
248
|
+
def limit_count(self):
|
249
|
+
"""Gets the limit_count of this ShowLimitTaskResponse.
|
250
|
+
|
251
|
+
限流任务拦截次数。
|
252
|
+
|
253
|
+
:return: The limit_count of this ShowLimitTaskResponse.
|
254
|
+
:rtype: int
|
255
|
+
"""
|
256
|
+
return self._limit_count
|
257
|
+
|
258
|
+
@limit_count.setter
|
259
|
+
def limit_count(self, limit_count):
|
260
|
+
"""Sets the limit_count of this ShowLimitTaskResponse.
|
261
|
+
|
262
|
+
限流任务拦截次数。
|
263
|
+
|
264
|
+
:param limit_count: The limit_count of this ShowLimitTaskResponse.
|
265
|
+
:type limit_count: int
|
266
|
+
"""
|
267
|
+
self._limit_count = limit_count
|
268
|
+
|
269
|
+
@property
|
270
|
+
def rule_name(self):
|
271
|
+
"""Gets the rule_name of this ShowLimitTaskResponse.
|
272
|
+
|
273
|
+
规则名。
|
274
|
+
|
275
|
+
:return: The rule_name of this ShowLimitTaskResponse.
|
276
|
+
:rtype: str
|
277
|
+
"""
|
278
|
+
return self._rule_name
|
279
|
+
|
280
|
+
@rule_name.setter
|
281
|
+
def rule_name(self, rule_name):
|
282
|
+
"""Sets the rule_name of this ShowLimitTaskResponse.
|
283
|
+
|
284
|
+
规则名。
|
285
|
+
|
286
|
+
:param rule_name: The rule_name of this ShowLimitTaskResponse.
|
287
|
+
:type rule_name: str
|
288
|
+
"""
|
289
|
+
self._rule_name = rule_name
|
290
|
+
|
291
|
+
@property
|
292
|
+
def memory_utilization(self):
|
293
|
+
"""Gets the memory_utilization of this ShowLimitTaskResponse.
|
294
|
+
|
295
|
+
内存利用率,仅当任务类型为SESSION_ACTIVE_MAX_COUNT时,返回该值且与请求参数相同。
|
296
|
+
|
297
|
+
:return: The memory_utilization of this ShowLimitTaskResponse.
|
298
|
+
:rtype: int
|
299
|
+
"""
|
300
|
+
return self._memory_utilization
|
301
|
+
|
302
|
+
@memory_utilization.setter
|
303
|
+
def memory_utilization(self, memory_utilization):
|
304
|
+
"""Sets the memory_utilization of this ShowLimitTaskResponse.
|
305
|
+
|
306
|
+
内存利用率,仅当任务类型为SESSION_ACTIVE_MAX_COUNT时,返回该值且与请求参数相同。
|
307
|
+
|
308
|
+
:param memory_utilization: The memory_utilization of this ShowLimitTaskResponse.
|
309
|
+
:type memory_utilization: int
|
310
|
+
"""
|
311
|
+
self._memory_utilization = memory_utilization
|
312
|
+
|
313
|
+
@property
|
314
|
+
def cpu_utilization(self):
|
315
|
+
"""Gets the cpu_utilization of this ShowLimitTaskResponse.
|
316
|
+
|
317
|
+
cpu利用率,仅当任务类型为SESSION_ACTIVE_MAX_COUNT时,返回该值且与请求参数相同。
|
318
|
+
|
319
|
+
:return: The cpu_utilization of this ShowLimitTaskResponse.
|
320
|
+
:rtype: int
|
321
|
+
"""
|
322
|
+
return self._cpu_utilization
|
323
|
+
|
324
|
+
@cpu_utilization.setter
|
325
|
+
def cpu_utilization(self, cpu_utilization):
|
326
|
+
"""Sets the cpu_utilization of this ShowLimitTaskResponse.
|
327
|
+
|
328
|
+
cpu利用率,仅当任务类型为SESSION_ACTIVE_MAX_COUNT时,返回该值且与请求参数相同。
|
329
|
+
|
330
|
+
:param cpu_utilization: The cpu_utilization of this ShowLimitTaskResponse.
|
331
|
+
:type cpu_utilization: int
|
332
|
+
"""
|
333
|
+
self._cpu_utilization = cpu_utilization
|
334
|
+
|
335
|
+
@property
|
336
|
+
def limit_task_rule_info_list(self):
|
337
|
+
"""Gets the limit_task_rule_info_list of this ShowLimitTaskResponse.
|
338
|
+
|
339
|
+
限流任务列表
|
340
|
+
|
341
|
+
:return: The limit_task_rule_info_list of this ShowLimitTaskResponse.
|
342
|
+
:rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.LimitTaskRuleInfoOption`]
|
343
|
+
"""
|
344
|
+
return self._limit_task_rule_info_list
|
345
|
+
|
346
|
+
@limit_task_rule_info_list.setter
|
347
|
+
def limit_task_rule_info_list(self, limit_task_rule_info_list):
|
348
|
+
"""Sets the limit_task_rule_info_list of this ShowLimitTaskResponse.
|
349
|
+
|
350
|
+
限流任务列表
|
351
|
+
|
352
|
+
:param limit_task_rule_info_list: The limit_task_rule_info_list of this ShowLimitTaskResponse.
|
353
|
+
:type limit_task_rule_info_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.LimitTaskRuleInfoOption`]
|
354
|
+
"""
|
355
|
+
self._limit_task_rule_info_list = limit_task_rule_info_list
|
356
|
+
|
357
|
+
def to_dict(self):
|
358
|
+
"""Returns the model properties as a dict"""
|
359
|
+
result = {}
|
360
|
+
|
361
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
362
|
+
value = getattr(self, attr)
|
363
|
+
if isinstance(value, list):
|
364
|
+
result[attr] = list(map(
|
365
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
366
|
+
value
|
367
|
+
))
|
368
|
+
elif hasattr(value, "to_dict"):
|
369
|
+
result[attr] = value.to_dict()
|
370
|
+
elif isinstance(value, dict):
|
371
|
+
result[attr] = dict(map(
|
372
|
+
lambda item: (item[0], item[1].to_dict())
|
373
|
+
if hasattr(item[1], "to_dict") else item,
|
374
|
+
value.items()
|
375
|
+
))
|
376
|
+
else:
|
377
|
+
if attr in self.sensitive_list:
|
378
|
+
result[attr] = "****"
|
379
|
+
else:
|
380
|
+
result[attr] = value
|
381
|
+
|
382
|
+
return result
|
383
|
+
|
384
|
+
def to_str(self):
|
385
|
+
"""Returns the string representation of the model"""
|
386
|
+
import simplejson as json
|
387
|
+
if six.PY2:
|
388
|
+
import sys
|
389
|
+
reload(sys)
|
390
|
+
sys.setdefaultencoding("utf-8")
|
391
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
392
|
+
|
393
|
+
def __repr__(self):
|
394
|
+
"""For `print`"""
|
395
|
+
return self.to_str()
|
396
|
+
|
397
|
+
def __eq__(self, other):
|
398
|
+
"""Returns true if both objects are equal"""
|
399
|
+
if not isinstance(other, ShowLimitTaskResponse):
|
400
|
+
return False
|
401
|
+
|
402
|
+
return self.__dict__ == other.__dict__
|
403
|
+
|
404
|
+
def __ne__(self, other):
|
405
|
+
"""Returns true if both objects are not equal"""
|
406
|
+
return not self == other
|