huaweicloudsdkgaussdb 3.1.165__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.165.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/METADATA +9 -10
- {huaweicloudsdkgaussdb-3.1.165.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/RECORD +62 -9
- {huaweicloudsdkgaussdb-3.1.165.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/WHEEL +1 -2
- huaweicloudsdkgaussdb-3.1.165.dist-info/top_level.txt +0 -1
- {huaweicloudsdkgaussdb-3.1.165.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info/licenses}/LICENSE +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 CreateProxyDnsNameResponse(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
|
+
'job_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'job_id': 'job_id'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, job_id=None):
|
29
|
+
r"""CreateProxyDnsNameResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param job_id: 任务ID。
|
34
|
+
:type job_id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CreateProxyDnsNameResponse, self).__init__()
|
38
|
+
|
39
|
+
self._job_id = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if job_id is not None:
|
43
|
+
self.job_id = job_id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def job_id(self):
|
47
|
+
r"""Gets the job_id of this CreateProxyDnsNameResponse.
|
48
|
+
|
49
|
+
任务ID。
|
50
|
+
|
51
|
+
:return: The job_id of this CreateProxyDnsNameResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._job_id
|
55
|
+
|
56
|
+
@job_id.setter
|
57
|
+
def job_id(self, job_id):
|
58
|
+
r"""Sets the job_id of this CreateProxyDnsNameResponse.
|
59
|
+
|
60
|
+
任务ID。
|
61
|
+
|
62
|
+
:param job_id: The job_id of this CreateProxyDnsNameResponse.
|
63
|
+
:type job_id: str
|
64
|
+
"""
|
65
|
+
self._job_id = job_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, CreateProxyDnsNameResponse):
|
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 DatabaseTablesInfo:
|
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
|
+
'database': 'str',
|
21
|
+
'tables': 'list[str]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'database': 'database',
|
26
|
+
'tables': 'tables'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, database=None, tables=None):
|
30
|
+
r"""DatabaseTablesInfo
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param database: **参数解释**: 查询的数据库名称。 **约束限制**: 支持英文大小写字母、数字、下划线。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
35
|
+
:type database: str
|
36
|
+
:param tables: **参数解释**: 查询的数据表名称。 **约束限制**: 支持英文大小写字母、数字、下划线。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
37
|
+
:type tables: list[str]
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._database = None
|
43
|
+
self._tables = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if database is not None:
|
47
|
+
self.database = database
|
48
|
+
if tables is not None:
|
49
|
+
self.tables = tables
|
50
|
+
|
51
|
+
@property
|
52
|
+
def database(self):
|
53
|
+
r"""Gets the database of this DatabaseTablesInfo.
|
54
|
+
|
55
|
+
**参数解释**: 查询的数据库名称。 **约束限制**: 支持英文大小写字母、数字、下划线。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
56
|
+
|
57
|
+
:return: The database of this DatabaseTablesInfo.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._database
|
61
|
+
|
62
|
+
@database.setter
|
63
|
+
def database(self, database):
|
64
|
+
r"""Sets the database of this DatabaseTablesInfo.
|
65
|
+
|
66
|
+
**参数解释**: 查询的数据库名称。 **约束限制**: 支持英文大小写字母、数字、下划线。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
67
|
+
|
68
|
+
:param database: The database of this DatabaseTablesInfo.
|
69
|
+
:type database: str
|
70
|
+
"""
|
71
|
+
self._database = database
|
72
|
+
|
73
|
+
@property
|
74
|
+
def tables(self):
|
75
|
+
r"""Gets the tables of this DatabaseTablesInfo.
|
76
|
+
|
77
|
+
**参数解释**: 查询的数据表名称。 **约束限制**: 支持英文大小写字母、数字、下划线。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
78
|
+
|
79
|
+
:return: The tables of this DatabaseTablesInfo.
|
80
|
+
:rtype: list[str]
|
81
|
+
"""
|
82
|
+
return self._tables
|
83
|
+
|
84
|
+
@tables.setter
|
85
|
+
def tables(self, tables):
|
86
|
+
r"""Sets the tables of this DatabaseTablesInfo.
|
87
|
+
|
88
|
+
**参数解释**: 查询的数据表名称。 **约束限制**: 支持英文大小写字母、数字、下划线。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
89
|
+
|
90
|
+
:param tables: The tables of this DatabaseTablesInfo.
|
91
|
+
:type tables: list[str]
|
92
|
+
"""
|
93
|
+
self._tables = tables
|
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, DatabaseTablesInfo):
|
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,171 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DeleteProxyPrivateDnsNameRequest:
|
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
|
+
'x_language': 'str',
|
21
|
+
'instance_id': 'str',
|
22
|
+
'proxy_id': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'x_language': 'X-Language',
|
27
|
+
'instance_id': 'instance_id',
|
28
|
+
'proxy_id': 'proxy_id'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, x_language=None, instance_id=None, proxy_id=None):
|
32
|
+
r"""DeleteProxyPrivateDnsNameRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param x_language: **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
37
|
+
:type x_language: str
|
38
|
+
:param instance_id: **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
|
39
|
+
:type instance_id: str
|
40
|
+
:param proxy_id: **参数解释**: 数据库代理ID,严格匹配UUID规则。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为po01,长度为36个字符。 **默认取值**: 不涉及。
|
41
|
+
:type proxy_id: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._x_language = None
|
47
|
+
self._instance_id = None
|
48
|
+
self._proxy_id = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if x_language is not None:
|
52
|
+
self.x_language = x_language
|
53
|
+
self.instance_id = instance_id
|
54
|
+
self.proxy_id = proxy_id
|
55
|
+
|
56
|
+
@property
|
57
|
+
def x_language(self):
|
58
|
+
r"""Gets the x_language of this DeleteProxyPrivateDnsNameRequest.
|
59
|
+
|
60
|
+
**参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
61
|
+
|
62
|
+
:return: The x_language of this DeleteProxyPrivateDnsNameRequest.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._x_language
|
66
|
+
|
67
|
+
@x_language.setter
|
68
|
+
def x_language(self, x_language):
|
69
|
+
r"""Sets the x_language of this DeleteProxyPrivateDnsNameRequest.
|
70
|
+
|
71
|
+
**参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
|
72
|
+
|
73
|
+
:param x_language: The x_language of this DeleteProxyPrivateDnsNameRequest.
|
74
|
+
:type x_language: str
|
75
|
+
"""
|
76
|
+
self._x_language = x_language
|
77
|
+
|
78
|
+
@property
|
79
|
+
def instance_id(self):
|
80
|
+
r"""Gets the instance_id of this DeleteProxyPrivateDnsNameRequest.
|
81
|
+
|
82
|
+
**参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
|
83
|
+
|
84
|
+
:return: The instance_id of this DeleteProxyPrivateDnsNameRequest.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._instance_id
|
88
|
+
|
89
|
+
@instance_id.setter
|
90
|
+
def instance_id(self, instance_id):
|
91
|
+
r"""Sets the instance_id of this DeleteProxyPrivateDnsNameRequest.
|
92
|
+
|
93
|
+
**参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
|
94
|
+
|
95
|
+
:param instance_id: The instance_id of this DeleteProxyPrivateDnsNameRequest.
|
96
|
+
:type instance_id: str
|
97
|
+
"""
|
98
|
+
self._instance_id = instance_id
|
99
|
+
|
100
|
+
@property
|
101
|
+
def proxy_id(self):
|
102
|
+
r"""Gets the proxy_id of this DeleteProxyPrivateDnsNameRequest.
|
103
|
+
|
104
|
+
**参数解释**: 数据库代理ID,严格匹配UUID规则。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为po01,长度为36个字符。 **默认取值**: 不涉及。
|
105
|
+
|
106
|
+
:return: The proxy_id of this DeleteProxyPrivateDnsNameRequest.
|
107
|
+
:rtype: str
|
108
|
+
"""
|
109
|
+
return self._proxy_id
|
110
|
+
|
111
|
+
@proxy_id.setter
|
112
|
+
def proxy_id(self, proxy_id):
|
113
|
+
r"""Sets the proxy_id of this DeleteProxyPrivateDnsNameRequest.
|
114
|
+
|
115
|
+
**参数解释**: 数据库代理ID,严格匹配UUID规则。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为po01,长度为36个字符。 **默认取值**: 不涉及。
|
116
|
+
|
117
|
+
:param proxy_id: The proxy_id of this DeleteProxyPrivateDnsNameRequest.
|
118
|
+
:type proxy_id: str
|
119
|
+
"""
|
120
|
+
self._proxy_id = proxy_id
|
121
|
+
|
122
|
+
def to_dict(self):
|
123
|
+
"""Returns the model properties as a dict"""
|
124
|
+
result = {}
|
125
|
+
|
126
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
127
|
+
value = getattr(self, attr)
|
128
|
+
if isinstance(value, list):
|
129
|
+
result[attr] = list(map(
|
130
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
131
|
+
value
|
132
|
+
))
|
133
|
+
elif hasattr(value, "to_dict"):
|
134
|
+
result[attr] = value.to_dict()
|
135
|
+
elif isinstance(value, dict):
|
136
|
+
result[attr] = dict(map(
|
137
|
+
lambda item: (item[0], item[1].to_dict())
|
138
|
+
if hasattr(item[1], "to_dict") else item,
|
139
|
+
value.items()
|
140
|
+
))
|
141
|
+
else:
|
142
|
+
if attr in self.sensitive_list:
|
143
|
+
result[attr] = "****"
|
144
|
+
else:
|
145
|
+
result[attr] = value
|
146
|
+
|
147
|
+
return result
|
148
|
+
|
149
|
+
def to_str(self):
|
150
|
+
"""Returns the string representation of the model"""
|
151
|
+
import simplejson as json
|
152
|
+
if six.PY2:
|
153
|
+
import sys
|
154
|
+
reload(sys)
|
155
|
+
sys.setdefaultencoding("utf-8")
|
156
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
157
|
+
|
158
|
+
def __repr__(self):
|
159
|
+
"""For `print`"""
|
160
|
+
return self.to_str()
|
161
|
+
|
162
|
+
def __eq__(self, other):
|
163
|
+
"""Returns true if both objects are equal"""
|
164
|
+
if not isinstance(other, DeleteProxyPrivateDnsNameRequest):
|
165
|
+
return False
|
166
|
+
|
167
|
+
return self.__dict__ == other.__dict__
|
168
|
+
|
169
|
+
def __ne__(self, other):
|
170
|
+
"""Returns true if both objects are not equal"""
|
171
|
+
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 DeleteProxyPrivateDnsNameResponse(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
|
+
'job_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'job_id': 'job_id'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, job_id=None):
|
29
|
+
r"""DeleteProxyPrivateDnsNameResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param job_id: 任务ID。
|
34
|
+
:type job_id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(DeleteProxyPrivateDnsNameResponse, self).__init__()
|
38
|
+
|
39
|
+
self._job_id = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if job_id is not None:
|
43
|
+
self.job_id = job_id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def job_id(self):
|
47
|
+
r"""Gets the job_id of this DeleteProxyPrivateDnsNameResponse.
|
48
|
+
|
49
|
+
任务ID。
|
50
|
+
|
51
|
+
:return: The job_id of this DeleteProxyPrivateDnsNameResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._job_id
|
55
|
+
|
56
|
+
@job_id.setter
|
57
|
+
def job_id(self, job_id):
|
58
|
+
r"""Sets the job_id of this DeleteProxyPrivateDnsNameResponse.
|
59
|
+
|
60
|
+
任务ID。
|
61
|
+
|
62
|
+
:param job_id: The job_id of this DeleteProxyPrivateDnsNameResponse.
|
63
|
+
:type job_id: str
|
64
|
+
"""
|
65
|
+
self._job_id = job_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, DeleteProxyPrivateDnsNameResponse):
|
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
|