huaweicloudsdkgaussdb 3.1.164__py3-none-any.whl → 3.1.166__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 +54 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1239 -48
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +1239 -48
- huaweicloudsdkgaussdb/v3/model/__init__.py +54 -0
- huaweicloudsdkgaussdb/v3/model/audit_log_detail.py +231 -0
- huaweicloudsdkgaussdb/v3/model/audit_log_download_link_request_body.py +114 -0
- huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_request.py +140 -0
- huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_request_body.py +171 -0
- huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/create_proxy_dns_name_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/create_proxy_dns_name_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/database_tables_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/delete_proxy_private_dns_name_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/delete_proxy_private_dns_name_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/htap_error_log_detail_response_error_log_list.py +226 -0
- huaweicloudsdkgaussdb/v3/model/htap_error_log_query_request_body.py +255 -0
- huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_instance.py +284 -0
- huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_instance_lts_configs.py +138 -0
- huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_lts_configs.py +198 -0
- huaweicloudsdkgaussdb/v3/model/htap_node_info_response_body_node_list.py +170 -0
- huaweicloudsdkgaussdb/v3/model/list_audit_logs_request.py +255 -0
- huaweicloudsdkgaussdb/v3/model/list_audit_logs_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/list_instance_node_request.py +142 -0
- huaweicloudsdkgaussdb/v3/model/list_instance_node_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_req.py +114 -0
- huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/proxy_flavor.py +260 -0
- huaweicloudsdkgaussdb/v3/model/proxy_flavor_group.py +144 -0
- huaweicloudsdkgaussdb/v3/model/query_data_base_request_v3.py +144 -0
- huaweicloudsdkgaussdb/v3/model/query_table_request_v3.py +202 -0
- huaweicloudsdkgaussdb/v3/model/rds_error_log_download.py +289 -0
- huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_request_body.py +172 -0
- huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_audit_log_download_link_request.py +168 -0
- huaweicloudsdkgaussdb/v3/model/show_audit_log_download_link_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_audit_log_policy_request.py +143 -0
- huaweicloudsdkgaussdb/v3/model/show_audit_log_policy_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/show_error_log_download_link_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/show_error_log_download_link_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_htap_error_log_detail_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/show_htap_error_log_detail_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_htap_lts_config_request.py +259 -0
- huaweicloudsdkgaussdb/v3/model/show_htap_lts_config_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_instance_databases_for_htap_request.py +225 -0
- huaweicloudsdkgaussdb/v3/model/show_instance_databases_for_htap_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/show_instance_tables_for_htap_request.py +225 -0
- huaweicloudsdkgaussdb/v3/model/show_instance_tables_for_htap_response.py +145 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_flavors_by_az_code_request.py +171 -0
- huaweicloudsdkgaussdb/v3/model/show_proxy_flavors_by_az_code_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/show_table_meta_info_request.py +201 -0
- huaweicloudsdkgaussdb/v3/model/show_table_meta_info_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/table_meta_info.py +260 -0
- huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name.py +142 -0
- huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name_request.py +196 -0
- huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/upgrade_databases_single_instance.py +142 -0
- {huaweicloudsdkgaussdb-3.1.164.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/METADATA +9 -10
- {huaweicloudsdkgaussdb-3.1.164.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/RECORD +62 -9
- {huaweicloudsdkgaussdb-3.1.164.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/WHEEL +1 -2
- huaweicloudsdkgaussdb-3.1.164.dist-info/top_level.txt +0 -1
- {huaweicloudsdkgaussdb-3.1.164.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info/licenses}/LICENSE +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 ListInstanceNodeRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'instance_id': 'str',
|
21
|
+
'x_language': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'instance_id': 'instance_id',
|
26
|
+
'x_language': 'X-Language'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, instance_id=None, x_language=None):
|
30
|
+
r"""ListInstanceNodeRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param instance_id: **参数解释**: HTAP标准版实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in17,长度为36个字符。 **默认取值**: 不涉及。
|
35
|
+
:type instance_id: str
|
36
|
+
:param x_language: **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
37
|
+
:type x_language: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._instance_id = None
|
43
|
+
self._x_language = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.instance_id = instance_id
|
47
|
+
self.x_language = x_language
|
48
|
+
|
49
|
+
@property
|
50
|
+
def instance_id(self):
|
51
|
+
r"""Gets the instance_id of this ListInstanceNodeRequest.
|
52
|
+
|
53
|
+
**参数解释**: HTAP标准版实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in17,长度为36个字符。 **默认取值**: 不涉及。
|
54
|
+
|
55
|
+
:return: The instance_id of this ListInstanceNodeRequest.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._instance_id
|
59
|
+
|
60
|
+
@instance_id.setter
|
61
|
+
def instance_id(self, instance_id):
|
62
|
+
r"""Sets the instance_id of this ListInstanceNodeRequest.
|
63
|
+
|
64
|
+
**参数解释**: HTAP标准版实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in17,长度为36个字符。 **默认取值**: 不涉及。
|
65
|
+
|
66
|
+
:param instance_id: The instance_id of this ListInstanceNodeRequest.
|
67
|
+
:type instance_id: str
|
68
|
+
"""
|
69
|
+
self._instance_id = instance_id
|
70
|
+
|
71
|
+
@property
|
72
|
+
def x_language(self):
|
73
|
+
r"""Gets the x_language of this ListInstanceNodeRequest.
|
74
|
+
|
75
|
+
**参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
76
|
+
|
77
|
+
:return: The x_language of this ListInstanceNodeRequest.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._x_language
|
81
|
+
|
82
|
+
@x_language.setter
|
83
|
+
def x_language(self, x_language):
|
84
|
+
r"""Sets the x_language of this ListInstanceNodeRequest.
|
85
|
+
|
86
|
+
**参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
87
|
+
|
88
|
+
:param x_language: The x_language of this ListInstanceNodeRequest.
|
89
|
+
:type x_language: str
|
90
|
+
"""
|
91
|
+
self._x_language = x_language
|
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, ListInstanceNodeRequest):
|
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,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 ListInstanceNodeResponse(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
|
+
'node_list': 'list[HtapNodeInfoResponseBodyNodeList]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'node_list': 'node_list'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, node_list=None):
|
29
|
+
r"""ListInstanceNodeResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param node_list: **参数解释**: HTAP标准版实例节点列表。 **约束限制**: 不涉及。
|
34
|
+
:type node_list: list[:class:`huaweicloudsdkgaussdb.v3.HtapNodeInfoResponseBodyNodeList`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ListInstanceNodeResponse, self).__init__()
|
38
|
+
|
39
|
+
self._node_list = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if node_list is not None:
|
43
|
+
self.node_list = node_list
|
44
|
+
|
45
|
+
@property
|
46
|
+
def node_list(self):
|
47
|
+
r"""Gets the node_list of this ListInstanceNodeResponse.
|
48
|
+
|
49
|
+
**参数解释**: HTAP标准版实例节点列表。 **约束限制**: 不涉及。
|
50
|
+
|
51
|
+
:return: The node_list of this ListInstanceNodeResponse.
|
52
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.HtapNodeInfoResponseBodyNodeList`]
|
53
|
+
"""
|
54
|
+
return self._node_list
|
55
|
+
|
56
|
+
@node_list.setter
|
57
|
+
def node_list(self, node_list):
|
58
|
+
r"""Sets the node_list of this ListInstanceNodeResponse.
|
59
|
+
|
60
|
+
**参数解释**: HTAP标准版实例节点列表。 **约束限制**: 不涉及。
|
61
|
+
|
62
|
+
:param node_list: The node_list of this ListInstanceNodeResponse.
|
63
|
+
:type node_list: list[:class:`huaweicloudsdkgaussdb.v3.HtapNodeInfoResponseBodyNodeList`]
|
64
|
+
"""
|
65
|
+
self._node_list = node_list
|
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, ListInstanceNodeResponse):
|
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,114 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ModifyStarRocksSecurityGroupReq:
|
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
|
+
'security_group_id': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'security_group_id': 'security_group_id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, security_group_id=None):
|
28
|
+
r"""ModifyStarRocksSecurityGroupReq
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param security_group_id: 安全组ID。如果实例所选用的子网开启网络ACL进行访问控制,则该参数非必选。如果未开启ACL进行访问控制,则该参数必选。获取方法如下: 方法1:登录虚拟私有云服务的控制台界面,在安全组的详情页面查找安全组ID。 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考查询安全组列表。
|
33
|
+
:type security_group_id: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._security_group_id = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.security_group_id = security_group_id
|
42
|
+
|
43
|
+
@property
|
44
|
+
def security_group_id(self):
|
45
|
+
r"""Gets the security_group_id of this ModifyStarRocksSecurityGroupReq.
|
46
|
+
|
47
|
+
安全组ID。如果实例所选用的子网开启网络ACL进行访问控制,则该参数非必选。如果未开启ACL进行访问控制,则该参数必选。获取方法如下: 方法1:登录虚拟私有云服务的控制台界面,在安全组的详情页面查找安全组ID。 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考查询安全组列表。
|
48
|
+
|
49
|
+
:return: The security_group_id of this ModifyStarRocksSecurityGroupReq.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._security_group_id
|
53
|
+
|
54
|
+
@security_group_id.setter
|
55
|
+
def security_group_id(self, security_group_id):
|
56
|
+
r"""Sets the security_group_id of this ModifyStarRocksSecurityGroupReq.
|
57
|
+
|
58
|
+
安全组ID。如果实例所选用的子网开启网络ACL进行访问控制,则该参数非必选。如果未开启ACL进行访问控制,则该参数必选。获取方法如下: 方法1:登录虚拟私有云服务的控制台界面,在安全组的详情页面查找安全组ID。 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考查询安全组列表。
|
59
|
+
|
60
|
+
:param security_group_id: The security_group_id of this ModifyStarRocksSecurityGroupReq.
|
61
|
+
:type security_group_id: str
|
62
|
+
"""
|
63
|
+
self._security_group_id = security_group_id
|
64
|
+
|
65
|
+
def to_dict(self):
|
66
|
+
"""Returns the model properties as a dict"""
|
67
|
+
result = {}
|
68
|
+
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
70
|
+
value = getattr(self, attr)
|
71
|
+
if isinstance(value, list):
|
72
|
+
result[attr] = list(map(
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
74
|
+
value
|
75
|
+
))
|
76
|
+
elif hasattr(value, "to_dict"):
|
77
|
+
result[attr] = value.to_dict()
|
78
|
+
elif isinstance(value, dict):
|
79
|
+
result[attr] = dict(map(
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
82
|
+
value.items()
|
83
|
+
))
|
84
|
+
else:
|
85
|
+
if attr in self.sensitive_list:
|
86
|
+
result[attr] = "****"
|
87
|
+
else:
|
88
|
+
result[attr] = value
|
89
|
+
|
90
|
+
return result
|
91
|
+
|
92
|
+
def to_str(self):
|
93
|
+
"""Returns the string representation of the model"""
|
94
|
+
import simplejson as json
|
95
|
+
if six.PY2:
|
96
|
+
import sys
|
97
|
+
reload(sys)
|
98
|
+
sys.setdefaultencoding("utf-8")
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
100
|
+
|
101
|
+
def __repr__(self):
|
102
|
+
"""For `print`"""
|
103
|
+
return self.to_str()
|
104
|
+
|
105
|
+
def __eq__(self, other):
|
106
|
+
"""Returns true if both objects are equal"""
|
107
|
+
if not isinstance(other, ModifyStarRocksSecurityGroupReq):
|
108
|
+
return False
|
109
|
+
|
110
|
+
return self.__dict__ == other.__dict__
|
111
|
+
|
112
|
+
def __ne__(self, other):
|
113
|
+
"""Returns true if both objects are not equal"""
|
114
|
+
return not self == other
|
@@ -0,0 +1,168 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ModifyStarRocksSecurityGroupRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'instance_id': 'str',
|
21
|
+
'x_language': 'str',
|
22
|
+
'body': 'ModifyStarRocksSecurityGroupReq'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'instance_id': 'instance_id',
|
27
|
+
'x_language': 'X-Language',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, instance_id=None, x_language=None, body=None):
|
32
|
+
r"""ModifyStarRocksSecurityGroupRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param instance_id: StarRocks实例ID,严格匹配UUID规则。
|
37
|
+
:type instance_id: str
|
38
|
+
:param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
39
|
+
:type x_language: str
|
40
|
+
:param body: Body of the ModifyStarRocksSecurityGroupRequest
|
41
|
+
:type body: :class:`huaweicloudsdkgaussdb.v3.ModifyStarRocksSecurityGroupReq`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._instance_id = None
|
47
|
+
self._x_language = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.instance_id = instance_id
|
52
|
+
if x_language is not None:
|
53
|
+
self.x_language = x_language
|
54
|
+
if body is not None:
|
55
|
+
self.body = body
|
56
|
+
|
57
|
+
@property
|
58
|
+
def instance_id(self):
|
59
|
+
r"""Gets the instance_id of this ModifyStarRocksSecurityGroupRequest.
|
60
|
+
|
61
|
+
StarRocks实例ID,严格匹配UUID规则。
|
62
|
+
|
63
|
+
:return: The instance_id of this ModifyStarRocksSecurityGroupRequest.
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._instance_id
|
67
|
+
|
68
|
+
@instance_id.setter
|
69
|
+
def instance_id(self, instance_id):
|
70
|
+
r"""Sets the instance_id of this ModifyStarRocksSecurityGroupRequest.
|
71
|
+
|
72
|
+
StarRocks实例ID,严格匹配UUID规则。
|
73
|
+
|
74
|
+
:param instance_id: The instance_id of this ModifyStarRocksSecurityGroupRequest.
|
75
|
+
:type instance_id: str
|
76
|
+
"""
|
77
|
+
self._instance_id = instance_id
|
78
|
+
|
79
|
+
@property
|
80
|
+
def x_language(self):
|
81
|
+
r"""Gets the x_language of this ModifyStarRocksSecurityGroupRequest.
|
82
|
+
|
83
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
84
|
+
|
85
|
+
:return: The x_language of this ModifyStarRocksSecurityGroupRequest.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._x_language
|
89
|
+
|
90
|
+
@x_language.setter
|
91
|
+
def x_language(self, x_language):
|
92
|
+
r"""Sets the x_language of this ModifyStarRocksSecurityGroupRequest.
|
93
|
+
|
94
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
95
|
+
|
96
|
+
:param x_language: The x_language of this ModifyStarRocksSecurityGroupRequest.
|
97
|
+
:type x_language: str
|
98
|
+
"""
|
99
|
+
self._x_language = x_language
|
100
|
+
|
101
|
+
@property
|
102
|
+
def body(self):
|
103
|
+
r"""Gets the body of this ModifyStarRocksSecurityGroupRequest.
|
104
|
+
|
105
|
+
:return: The body of this ModifyStarRocksSecurityGroupRequest.
|
106
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.ModifyStarRocksSecurityGroupReq`
|
107
|
+
"""
|
108
|
+
return self._body
|
109
|
+
|
110
|
+
@body.setter
|
111
|
+
def body(self, body):
|
112
|
+
r"""Sets the body of this ModifyStarRocksSecurityGroupRequest.
|
113
|
+
|
114
|
+
:param body: The body of this ModifyStarRocksSecurityGroupRequest.
|
115
|
+
:type body: :class:`huaweicloudsdkgaussdb.v3.ModifyStarRocksSecurityGroupReq`
|
116
|
+
"""
|
117
|
+
self._body = body
|
118
|
+
|
119
|
+
def to_dict(self):
|
120
|
+
"""Returns the model properties as a dict"""
|
121
|
+
result = {}
|
122
|
+
|
123
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
124
|
+
value = getattr(self, attr)
|
125
|
+
if isinstance(value, list):
|
126
|
+
result[attr] = list(map(
|
127
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
128
|
+
value
|
129
|
+
))
|
130
|
+
elif hasattr(value, "to_dict"):
|
131
|
+
result[attr] = value.to_dict()
|
132
|
+
elif isinstance(value, dict):
|
133
|
+
result[attr] = dict(map(
|
134
|
+
lambda item: (item[0], item[1].to_dict())
|
135
|
+
if hasattr(item[1], "to_dict") else item,
|
136
|
+
value.items()
|
137
|
+
))
|
138
|
+
else:
|
139
|
+
if attr in self.sensitive_list:
|
140
|
+
result[attr] = "****"
|
141
|
+
else:
|
142
|
+
result[attr] = value
|
143
|
+
|
144
|
+
return result
|
145
|
+
|
146
|
+
def to_str(self):
|
147
|
+
"""Returns the string representation of the model"""
|
148
|
+
import simplejson as json
|
149
|
+
if six.PY2:
|
150
|
+
import sys
|
151
|
+
reload(sys)
|
152
|
+
sys.setdefaultencoding("utf-8")
|
153
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
154
|
+
|
155
|
+
def __repr__(self):
|
156
|
+
"""For `print`"""
|
157
|
+
return self.to_str()
|
158
|
+
|
159
|
+
def __eq__(self, other):
|
160
|
+
"""Returns true if both objects are equal"""
|
161
|
+
if not isinstance(other, ModifyStarRocksSecurityGroupRequest):
|
162
|
+
return False
|
163
|
+
|
164
|
+
return self.__dict__ == other.__dict__
|
165
|
+
|
166
|
+
def __ne__(self, other):
|
167
|
+
"""Returns true if both objects are not equal"""
|
168
|
+
return not self == other
|
@@ -0,0 +1,116 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ModifyStarRocksSecurityGroupResponse(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
|
+
'workflow_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'workflow_id': 'workflow_id'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, workflow_id=None):
|
29
|
+
r"""ModifyStarRocksSecurityGroupResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param workflow_id: 工作流ID。
|
34
|
+
:type workflow_id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ModifyStarRocksSecurityGroupResponse, self).__init__()
|
38
|
+
|
39
|
+
self._workflow_id = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if workflow_id is not None:
|
43
|
+
self.workflow_id = workflow_id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def workflow_id(self):
|
47
|
+
r"""Gets the workflow_id of this ModifyStarRocksSecurityGroupResponse.
|
48
|
+
|
49
|
+
工作流ID。
|
50
|
+
|
51
|
+
:return: The workflow_id of this ModifyStarRocksSecurityGroupResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._workflow_id
|
55
|
+
|
56
|
+
@workflow_id.setter
|
57
|
+
def workflow_id(self, workflow_id):
|
58
|
+
r"""Sets the workflow_id of this ModifyStarRocksSecurityGroupResponse.
|
59
|
+
|
60
|
+
工作流ID。
|
61
|
+
|
62
|
+
:param workflow_id: The workflow_id of this ModifyStarRocksSecurityGroupResponse.
|
63
|
+
:type workflow_id: str
|
64
|
+
"""
|
65
|
+
self._workflow_id = workflow_id
|
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, ModifyStarRocksSecurityGroupResponse):
|
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
|