huaweicloudsdkgaussdb 3.1.94__py2.py3-none-any.whl → 3.1.96__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 +97 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1591 -0
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +1591 -0
- huaweicloudsdkgaussdb/v3/model/__init__.py +97 -0
- huaweicloudsdkgaussdb/v3/model/check_data_base_config_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/check_data_base_config_response.py +232 -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/check_table_config_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/check_table_config_response.py +203 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication.py +227 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_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/data_base_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/db_config.py +144 -0
- huaweicloudsdkgaussdb/v3/model/db_config_check_request_v3.py +285 -0
- huaweicloudsdkgaussdb/v3/model/db_config_check_result.py +173 -0
- huaweicloudsdkgaussdb/v3/model/db_parameter.py +231 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication.py +115 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_response.py +116 -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_star_rocks_data_bases_request.py +229 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_request.py +170 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_response.py +336 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_request.py +200 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_request.py +142 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_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/star_rocks_replication_info.py +318 -0
- huaweicloudsdkgaussdb/v3/model/table_config_check_request_v3.py +285 -0
- huaweicloudsdkgaussdb/v3/model/table_config_check_result.py +173 -0
- huaweicloudsdkgaussdb/v3/model/table_repl_config.py +173 -0
- huaweicloudsdkgaussdb/v3/model/tables_config.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.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/RECORD +106 -9
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.96.dist-info}/top_level.txt +0 -0
@@ -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 ListStarrocksInstanceInfoResponse(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
|
+
'instances': 'list[StarRocksInstanceInfoInstances]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'instances': 'instances'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, instances=None):
|
29
|
+
"""ListStarrocksInstanceInfoResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param instances: 实例信息。
|
34
|
+
:type instances: list[:class:`huaweicloudsdkgaussdb.v3.StarRocksInstanceInfoInstances`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ListStarrocksInstanceInfoResponse, self).__init__()
|
38
|
+
|
39
|
+
self._instances = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if instances is not None:
|
43
|
+
self.instances = instances
|
44
|
+
|
45
|
+
@property
|
46
|
+
def instances(self):
|
47
|
+
"""Gets the instances of this ListStarrocksInstanceInfoResponse.
|
48
|
+
|
49
|
+
实例信息。
|
50
|
+
|
51
|
+
:return: The instances of this ListStarrocksInstanceInfoResponse.
|
52
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.StarRocksInstanceInfoInstances`]
|
53
|
+
"""
|
54
|
+
return self._instances
|
55
|
+
|
56
|
+
@instances.setter
|
57
|
+
def instances(self, instances):
|
58
|
+
"""Sets the instances of this ListStarrocksInstanceInfoResponse.
|
59
|
+
|
60
|
+
实例信息。
|
61
|
+
|
62
|
+
:param instances: The instances of this ListStarrocksInstanceInfoResponse.
|
63
|
+
:type instances: list[:class:`huaweicloudsdkgaussdb.v3.StarRocksInstanceInfoInstances`]
|
64
|
+
"""
|
65
|
+
self._instances = instances
|
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, ListStarrocksInstanceInfoResponse):
|
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
|
@@ -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 ParamGroup:
|
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
|
+
'id': 'str',
|
21
|
+
'name': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'id': 'id',
|
26
|
+
'name': 'name'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, id=None, name=None):
|
30
|
+
"""ParamGroup
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param id: 参数组ID。
|
35
|
+
:type id: str
|
36
|
+
:param name: 参数组名。
|
37
|
+
:type name: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._id = None
|
43
|
+
self._name = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if id is not None:
|
47
|
+
self.id = id
|
48
|
+
if name is not None:
|
49
|
+
self.name = name
|
50
|
+
|
51
|
+
@property
|
52
|
+
def id(self):
|
53
|
+
"""Gets the id of this ParamGroup.
|
54
|
+
|
55
|
+
参数组ID。
|
56
|
+
|
57
|
+
:return: The id of this ParamGroup.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._id
|
61
|
+
|
62
|
+
@id.setter
|
63
|
+
def id(self, id):
|
64
|
+
"""Sets the id of this ParamGroup.
|
65
|
+
|
66
|
+
参数组ID。
|
67
|
+
|
68
|
+
:param id: The id of this ParamGroup.
|
69
|
+
:type id: str
|
70
|
+
"""
|
71
|
+
self._id = id
|
72
|
+
|
73
|
+
@property
|
74
|
+
def name(self):
|
75
|
+
"""Gets the name of this ParamGroup.
|
76
|
+
|
77
|
+
参数组名。
|
78
|
+
|
79
|
+
:return: The name of this ParamGroup.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._name
|
83
|
+
|
84
|
+
@name.setter
|
85
|
+
def name(self, name):
|
86
|
+
"""Sets the name of this ParamGroup.
|
87
|
+
|
88
|
+
参数组名。
|
89
|
+
|
90
|
+
:param name: The name of this ParamGroup.
|
91
|
+
:type name: str
|
92
|
+
"""
|
93
|
+
self._name = name
|
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, ParamGroup):
|
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,318 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class QueryAction:
|
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
|
+
'id': 'str',
|
21
|
+
'action': 'str',
|
22
|
+
'object_id': 'str',
|
23
|
+
'type': 'str',
|
24
|
+
'job_id': 'str',
|
25
|
+
'status': 'str',
|
26
|
+
'created_at': 'int',
|
27
|
+
'updated_at': 'int'
|
28
|
+
}
|
29
|
+
|
30
|
+
attribute_map = {
|
31
|
+
'id': 'id',
|
32
|
+
'action': 'action',
|
33
|
+
'object_id': 'object_id',
|
34
|
+
'type': 'type',
|
35
|
+
'job_id': 'job_id',
|
36
|
+
'status': 'status',
|
37
|
+
'created_at': 'created_at',
|
38
|
+
'updated_at': 'updated_at'
|
39
|
+
}
|
40
|
+
|
41
|
+
def __init__(self, id=None, action=None, object_id=None, type=None, job_id=None, status=None, created_at=None, updated_at=None):
|
42
|
+
"""QueryAction
|
43
|
+
|
44
|
+
The model defined in huaweicloud sdk
|
45
|
+
|
46
|
+
:param id: 实例或节点动作ID。
|
47
|
+
:type id: str
|
48
|
+
:param action: 实例或节点动作名称。
|
49
|
+
:type action: str
|
50
|
+
:param object_id: 实例或节点动作对象ID。
|
51
|
+
:type object_id: str
|
52
|
+
:param type: 实例或节点动作类型。
|
53
|
+
:type type: str
|
54
|
+
:param job_id: 实例或节点动作任务ID。
|
55
|
+
:type job_id: str
|
56
|
+
:param status: 实例或节点动作状态。
|
57
|
+
:type status: str
|
58
|
+
:param created_at: 实例或节点动作创建时间。
|
59
|
+
:type created_at: int
|
60
|
+
:param updated_at: 实例或节点动作更新时间。
|
61
|
+
:type updated_at: int
|
62
|
+
"""
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
self._id = None
|
67
|
+
self._action = None
|
68
|
+
self._object_id = None
|
69
|
+
self._type = None
|
70
|
+
self._job_id = None
|
71
|
+
self._status = None
|
72
|
+
self._created_at = None
|
73
|
+
self._updated_at = None
|
74
|
+
self.discriminator = None
|
75
|
+
|
76
|
+
if id is not None:
|
77
|
+
self.id = id
|
78
|
+
if action is not None:
|
79
|
+
self.action = action
|
80
|
+
if object_id is not None:
|
81
|
+
self.object_id = object_id
|
82
|
+
if type is not None:
|
83
|
+
self.type = type
|
84
|
+
if job_id is not None:
|
85
|
+
self.job_id = job_id
|
86
|
+
if status is not None:
|
87
|
+
self.status = status
|
88
|
+
if created_at is not None:
|
89
|
+
self.created_at = created_at
|
90
|
+
if updated_at is not None:
|
91
|
+
self.updated_at = updated_at
|
92
|
+
|
93
|
+
@property
|
94
|
+
def id(self):
|
95
|
+
"""Gets the id of this QueryAction.
|
96
|
+
|
97
|
+
实例或节点动作ID。
|
98
|
+
|
99
|
+
:return: The id of this QueryAction.
|
100
|
+
:rtype: str
|
101
|
+
"""
|
102
|
+
return self._id
|
103
|
+
|
104
|
+
@id.setter
|
105
|
+
def id(self, id):
|
106
|
+
"""Sets the id of this QueryAction.
|
107
|
+
|
108
|
+
实例或节点动作ID。
|
109
|
+
|
110
|
+
:param id: The id of this QueryAction.
|
111
|
+
:type id: str
|
112
|
+
"""
|
113
|
+
self._id = id
|
114
|
+
|
115
|
+
@property
|
116
|
+
def action(self):
|
117
|
+
"""Gets the action of this QueryAction.
|
118
|
+
|
119
|
+
实例或节点动作名称。
|
120
|
+
|
121
|
+
:return: The action of this QueryAction.
|
122
|
+
:rtype: str
|
123
|
+
"""
|
124
|
+
return self._action
|
125
|
+
|
126
|
+
@action.setter
|
127
|
+
def action(self, action):
|
128
|
+
"""Sets the action of this QueryAction.
|
129
|
+
|
130
|
+
实例或节点动作名称。
|
131
|
+
|
132
|
+
:param action: The action of this QueryAction.
|
133
|
+
:type action: str
|
134
|
+
"""
|
135
|
+
self._action = action
|
136
|
+
|
137
|
+
@property
|
138
|
+
def object_id(self):
|
139
|
+
"""Gets the object_id of this QueryAction.
|
140
|
+
|
141
|
+
实例或节点动作对象ID。
|
142
|
+
|
143
|
+
:return: The object_id of this QueryAction.
|
144
|
+
:rtype: str
|
145
|
+
"""
|
146
|
+
return self._object_id
|
147
|
+
|
148
|
+
@object_id.setter
|
149
|
+
def object_id(self, object_id):
|
150
|
+
"""Sets the object_id of this QueryAction.
|
151
|
+
|
152
|
+
实例或节点动作对象ID。
|
153
|
+
|
154
|
+
:param object_id: The object_id of this QueryAction.
|
155
|
+
:type object_id: str
|
156
|
+
"""
|
157
|
+
self._object_id = object_id
|
158
|
+
|
159
|
+
@property
|
160
|
+
def type(self):
|
161
|
+
"""Gets the type of this QueryAction.
|
162
|
+
|
163
|
+
实例或节点动作类型。
|
164
|
+
|
165
|
+
:return: The type of this QueryAction.
|
166
|
+
:rtype: str
|
167
|
+
"""
|
168
|
+
return self._type
|
169
|
+
|
170
|
+
@type.setter
|
171
|
+
def type(self, type):
|
172
|
+
"""Sets the type of this QueryAction.
|
173
|
+
|
174
|
+
实例或节点动作类型。
|
175
|
+
|
176
|
+
:param type: The type of this QueryAction.
|
177
|
+
:type type: str
|
178
|
+
"""
|
179
|
+
self._type = type
|
180
|
+
|
181
|
+
@property
|
182
|
+
def job_id(self):
|
183
|
+
"""Gets the job_id of this QueryAction.
|
184
|
+
|
185
|
+
实例或节点动作任务ID。
|
186
|
+
|
187
|
+
:return: The job_id of this QueryAction.
|
188
|
+
:rtype: str
|
189
|
+
"""
|
190
|
+
return self._job_id
|
191
|
+
|
192
|
+
@job_id.setter
|
193
|
+
def job_id(self, job_id):
|
194
|
+
"""Sets the job_id of this QueryAction.
|
195
|
+
|
196
|
+
实例或节点动作任务ID。
|
197
|
+
|
198
|
+
:param job_id: The job_id of this QueryAction.
|
199
|
+
:type job_id: str
|
200
|
+
"""
|
201
|
+
self._job_id = job_id
|
202
|
+
|
203
|
+
@property
|
204
|
+
def status(self):
|
205
|
+
"""Gets the status of this QueryAction.
|
206
|
+
|
207
|
+
实例或节点动作状态。
|
208
|
+
|
209
|
+
:return: The status of this QueryAction.
|
210
|
+
:rtype: str
|
211
|
+
"""
|
212
|
+
return self._status
|
213
|
+
|
214
|
+
@status.setter
|
215
|
+
def status(self, status):
|
216
|
+
"""Sets the status of this QueryAction.
|
217
|
+
|
218
|
+
实例或节点动作状态。
|
219
|
+
|
220
|
+
:param status: The status of this QueryAction.
|
221
|
+
:type status: str
|
222
|
+
"""
|
223
|
+
self._status = status
|
224
|
+
|
225
|
+
@property
|
226
|
+
def created_at(self):
|
227
|
+
"""Gets the created_at of this QueryAction.
|
228
|
+
|
229
|
+
实例或节点动作创建时间。
|
230
|
+
|
231
|
+
:return: The created_at of this QueryAction.
|
232
|
+
:rtype: int
|
233
|
+
"""
|
234
|
+
return self._created_at
|
235
|
+
|
236
|
+
@created_at.setter
|
237
|
+
def created_at(self, created_at):
|
238
|
+
"""Sets the created_at of this QueryAction.
|
239
|
+
|
240
|
+
实例或节点动作创建时间。
|
241
|
+
|
242
|
+
:param created_at: The created_at of this QueryAction.
|
243
|
+
:type created_at: int
|
244
|
+
"""
|
245
|
+
self._created_at = created_at
|
246
|
+
|
247
|
+
@property
|
248
|
+
def updated_at(self):
|
249
|
+
"""Gets the updated_at of this QueryAction.
|
250
|
+
|
251
|
+
实例或节点动作更新时间。
|
252
|
+
|
253
|
+
:return: The updated_at of this QueryAction.
|
254
|
+
:rtype: int
|
255
|
+
"""
|
256
|
+
return self._updated_at
|
257
|
+
|
258
|
+
@updated_at.setter
|
259
|
+
def updated_at(self, updated_at):
|
260
|
+
"""Sets the updated_at of this QueryAction.
|
261
|
+
|
262
|
+
实例或节点动作更新时间。
|
263
|
+
|
264
|
+
:param updated_at: The updated_at of this QueryAction.
|
265
|
+
:type updated_at: int
|
266
|
+
"""
|
267
|
+
self._updated_at = updated_at
|
268
|
+
|
269
|
+
def to_dict(self):
|
270
|
+
"""Returns the model properties as a dict"""
|
271
|
+
result = {}
|
272
|
+
|
273
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
274
|
+
value = getattr(self, attr)
|
275
|
+
if isinstance(value, list):
|
276
|
+
result[attr] = list(map(
|
277
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
278
|
+
value
|
279
|
+
))
|
280
|
+
elif hasattr(value, "to_dict"):
|
281
|
+
result[attr] = value.to_dict()
|
282
|
+
elif isinstance(value, dict):
|
283
|
+
result[attr] = dict(map(
|
284
|
+
lambda item: (item[0], item[1].to_dict())
|
285
|
+
if hasattr(item[1], "to_dict") else item,
|
286
|
+
value.items()
|
287
|
+
))
|
288
|
+
else:
|
289
|
+
if attr in self.sensitive_list:
|
290
|
+
result[attr] = "****"
|
291
|
+
else:
|
292
|
+
result[attr] = value
|
293
|
+
|
294
|
+
return result
|
295
|
+
|
296
|
+
def to_str(self):
|
297
|
+
"""Returns the string representation of the model"""
|
298
|
+
import simplejson as json
|
299
|
+
if six.PY2:
|
300
|
+
import sys
|
301
|
+
reload(sys)
|
302
|
+
sys.setdefaultencoding("utf-8")
|
303
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
304
|
+
|
305
|
+
def __repr__(self):
|
306
|
+
"""For `print`"""
|
307
|
+
return self.to_str()
|
308
|
+
|
309
|
+
def __eq__(self, other):
|
310
|
+
"""Returns true if both objects are equal"""
|
311
|
+
if not isinstance(other, QueryAction):
|
312
|
+
return False
|
313
|
+
|
314
|
+
return self.__dict__ == other.__dict__
|
315
|
+
|
316
|
+
def __ne__(self, other):
|
317
|
+
"""Returns true if both objects are not equal"""
|
318
|
+
return not self == other
|