huaweicloudsdkgaussdb 3.1.165__py3-none-any.whl → 3.1.167__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +54 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1239 -48
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +1239 -48
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +54 -0
  5. huaweicloudsdkgaussdb/v3/model/audit_log_detail.py +231 -0
  6. huaweicloudsdkgaussdb/v3/model/audit_log_download_link_request_body.py +114 -0
  7. huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_request.py +140 -0
  8. huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_request_body.py +171 -0
  9. huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_response.py +116 -0
  10. huaweicloudsdkgaussdb/v3/model/create_proxy_dns_name_request.py +171 -0
  11. huaweicloudsdkgaussdb/v3/model/create_proxy_dns_name_response.py +116 -0
  12. huaweicloudsdkgaussdb/v3/model/database_tables_info.py +144 -0
  13. huaweicloudsdkgaussdb/v3/model/delete_proxy_private_dns_name_request.py +171 -0
  14. huaweicloudsdkgaussdb/v3/model/delete_proxy_private_dns_name_response.py +116 -0
  15. huaweicloudsdkgaussdb/v3/model/htap_error_log_detail_response_error_log_list.py +226 -0
  16. huaweicloudsdkgaussdb/v3/model/htap_error_log_query_request_body.py +255 -0
  17. huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_instance.py +284 -0
  18. huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_instance_lts_configs.py +138 -0
  19. huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_lts_configs.py +198 -0
  20. huaweicloudsdkgaussdb/v3/model/htap_node_info_response_body_node_list.py +170 -0
  21. huaweicloudsdkgaussdb/v3/model/list_audit_logs_request.py +255 -0
  22. huaweicloudsdkgaussdb/v3/model/list_audit_logs_response.py +145 -0
  23. huaweicloudsdkgaussdb/v3/model/list_instance_node_request.py +142 -0
  24. huaweicloudsdkgaussdb/v3/model/list_instance_node_response.py +116 -0
  25. huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_req.py +114 -0
  26. huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_request.py +168 -0
  27. huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_response.py +116 -0
  28. huaweicloudsdkgaussdb/v3/model/proxy_flavor.py +260 -0
  29. huaweicloudsdkgaussdb/v3/model/proxy_flavor_group.py +144 -0
  30. huaweicloudsdkgaussdb/v3/model/query_data_base_request_v3.py +144 -0
  31. huaweicloudsdkgaussdb/v3/model/query_table_request_v3.py +202 -0
  32. huaweicloudsdkgaussdb/v3/model/rds_error_log_download.py +289 -0
  33. huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_request.py +168 -0
  34. huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_request_body.py +172 -0
  35. huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_response.py +145 -0
  36. huaweicloudsdkgaussdb/v3/model/show_audit_log_download_link_request.py +168 -0
  37. huaweicloudsdkgaussdb/v3/model/show_audit_log_download_link_response.py +116 -0
  38. huaweicloudsdkgaussdb/v3/model/show_audit_log_policy_request.py +143 -0
  39. huaweicloudsdkgaussdb/v3/model/show_audit_log_policy_response.py +174 -0
  40. huaweicloudsdkgaussdb/v3/model/show_error_log_download_link_request.py +171 -0
  41. huaweicloudsdkgaussdb/v3/model/show_error_log_download_link_response.py +145 -0
  42. huaweicloudsdkgaussdb/v3/model/show_htap_error_log_detail_request.py +167 -0
  43. huaweicloudsdkgaussdb/v3/model/show_htap_error_log_detail_response.py +116 -0
  44. huaweicloudsdkgaussdb/v3/model/show_htap_lts_config_request.py +259 -0
  45. huaweicloudsdkgaussdb/v3/model/show_htap_lts_config_response.py +145 -0
  46. huaweicloudsdkgaussdb/v3/model/show_instance_databases_for_htap_request.py +225 -0
  47. huaweicloudsdkgaussdb/v3/model/show_instance_databases_for_htap_response.py +174 -0
  48. huaweicloudsdkgaussdb/v3/model/show_instance_tables_for_htap_request.py +225 -0
  49. huaweicloudsdkgaussdb/v3/model/show_instance_tables_for_htap_response.py +145 -0
  50. huaweicloudsdkgaussdb/v3/model/show_proxy_flavors_by_az_code_request.py +171 -0
  51. huaweicloudsdkgaussdb/v3/model/show_proxy_flavors_by_az_code_response.py +116 -0
  52. huaweicloudsdkgaussdb/v3/model/show_table_meta_info_request.py +201 -0
  53. huaweicloudsdkgaussdb/v3/model/show_table_meta_info_response.py +174 -0
  54. huaweicloudsdkgaussdb/v3/model/table_meta_info.py +260 -0
  55. huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name.py +142 -0
  56. huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name_request.py +196 -0
  57. huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name_response.py +116 -0
  58. huaweicloudsdkgaussdb/v3/model/upgrade_databases_single_instance.py +142 -0
  59. {huaweicloudsdkgaussdb-3.1.165.dist-info → huaweicloudsdkgaussdb-3.1.167.dist-info}/METADATA +9 -10
  60. {huaweicloudsdkgaussdb-3.1.165.dist-info → huaweicloudsdkgaussdb-3.1.167.dist-info}/RECORD +62 -9
  61. {huaweicloudsdkgaussdb-3.1.165.dist-info → huaweicloudsdkgaussdb-3.1.167.dist-info}/WHEEL +1 -2
  62. huaweicloudsdkgaussdb-3.1.165.dist-info/top_level.txt +0 -1
  63. {huaweicloudsdkgaussdb-3.1.165.dist-info → huaweicloudsdkgaussdb-3.1.167.dist-info/licenses}/LICENSE +0 -0
@@ -0,0 +1,174 @@
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 ShowTableMetaInfoResponse(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
+ 'table_meta_infos': 'list[TableMetaInfo]',
22
+ 'table_names': 'list[str]',
23
+ 'database_names': 'list[str]'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'table_meta_infos': 'table_meta_infos',
28
+ 'table_names': 'table_names',
29
+ 'database_names': 'database_names'
30
+ }
31
+
32
+ def __init__(self, table_meta_infos=None, table_names=None, database_names=None):
33
+ r"""ShowTableMetaInfoResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param table_meta_infos: 要版本升级的批量实例。
38
+ :type table_meta_infos: list[:class:`huaweicloudsdkgaussdb.v3.TableMetaInfo`]
39
+ :param table_names: 数据表名称
40
+ :type table_names: list[str]
41
+ :param database_names: 数据库名称
42
+ :type database_names: list[str]
43
+ """
44
+
45
+ super(ShowTableMetaInfoResponse, self).__init__()
46
+
47
+ self._table_meta_infos = None
48
+ self._table_names = None
49
+ self._database_names = None
50
+ self.discriminator = None
51
+
52
+ if table_meta_infos is not None:
53
+ self.table_meta_infos = table_meta_infos
54
+ if table_names is not None:
55
+ self.table_names = table_names
56
+ if database_names is not None:
57
+ self.database_names = database_names
58
+
59
+ @property
60
+ def table_meta_infos(self):
61
+ r"""Gets the table_meta_infos of this ShowTableMetaInfoResponse.
62
+
63
+ 要版本升级的批量实例。
64
+
65
+ :return: The table_meta_infos of this ShowTableMetaInfoResponse.
66
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.TableMetaInfo`]
67
+ """
68
+ return self._table_meta_infos
69
+
70
+ @table_meta_infos.setter
71
+ def table_meta_infos(self, table_meta_infos):
72
+ r"""Sets the table_meta_infos of this ShowTableMetaInfoResponse.
73
+
74
+ 要版本升级的批量实例。
75
+
76
+ :param table_meta_infos: The table_meta_infos of this ShowTableMetaInfoResponse.
77
+ :type table_meta_infos: list[:class:`huaweicloudsdkgaussdb.v3.TableMetaInfo`]
78
+ """
79
+ self._table_meta_infos = table_meta_infos
80
+
81
+ @property
82
+ def table_names(self):
83
+ r"""Gets the table_names of this ShowTableMetaInfoResponse.
84
+
85
+ 数据表名称
86
+
87
+ :return: The table_names of this ShowTableMetaInfoResponse.
88
+ :rtype: list[str]
89
+ """
90
+ return self._table_names
91
+
92
+ @table_names.setter
93
+ def table_names(self, table_names):
94
+ r"""Sets the table_names of this ShowTableMetaInfoResponse.
95
+
96
+ 数据表名称
97
+
98
+ :param table_names: The table_names of this ShowTableMetaInfoResponse.
99
+ :type table_names: list[str]
100
+ """
101
+ self._table_names = table_names
102
+
103
+ @property
104
+ def database_names(self):
105
+ r"""Gets the database_names of this ShowTableMetaInfoResponse.
106
+
107
+ 数据库名称
108
+
109
+ :return: The database_names of this ShowTableMetaInfoResponse.
110
+ :rtype: list[str]
111
+ """
112
+ return self._database_names
113
+
114
+ @database_names.setter
115
+ def database_names(self, database_names):
116
+ r"""Sets the database_names of this ShowTableMetaInfoResponse.
117
+
118
+ 数据库名称
119
+
120
+ :param database_names: The database_names of this ShowTableMetaInfoResponse.
121
+ :type database_names: list[str]
122
+ """
123
+ self._database_names = database_names
124
+
125
+ def to_dict(self):
126
+ """Returns the model properties as a dict"""
127
+ result = {}
128
+
129
+ for attr, _ in six.iteritems(self.openapi_types):
130
+ value = getattr(self, attr)
131
+ if isinstance(value, list):
132
+ result[attr] = list(map(
133
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
134
+ value
135
+ ))
136
+ elif hasattr(value, "to_dict"):
137
+ result[attr] = value.to_dict()
138
+ elif isinstance(value, dict):
139
+ result[attr] = dict(map(
140
+ lambda item: (item[0], item[1].to_dict())
141
+ if hasattr(item[1], "to_dict") else item,
142
+ value.items()
143
+ ))
144
+ else:
145
+ if attr in self.sensitive_list:
146
+ result[attr] = "****"
147
+ else:
148
+ result[attr] = value
149
+
150
+ return result
151
+
152
+ def to_str(self):
153
+ """Returns the string representation of the model"""
154
+ import simplejson as json
155
+ if six.PY2:
156
+ import sys
157
+ reload(sys)
158
+ sys.setdefaultencoding("utf-8")
159
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
160
+
161
+ def __repr__(self):
162
+ """For `print`"""
163
+ return self.to_str()
164
+
165
+ def __eq__(self, other):
166
+ """Returns true if both objects are equal"""
167
+ if not isinstance(other, ShowTableMetaInfoResponse):
168
+ return False
169
+
170
+ return self.__dict__ == other.__dict__
171
+
172
+ def __ne__(self, other):
173
+ """Returns true if both objects are not equal"""
174
+ return not self == other
@@ -0,0 +1,260 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TableMetaInfo:
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
+ 'column_type': 'str',
21
+ 'extra': 'str',
22
+ 'is_nullable': 'str',
23
+ 'column_default': 'str',
24
+ 'column_key': 'str',
25
+ 'column_name': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'column_type': 'column_type',
30
+ 'extra': 'extra',
31
+ 'is_nullable': 'is_nullable',
32
+ 'column_default': 'column_default',
33
+ 'column_key': 'column_key',
34
+ 'column_name': 'column_name'
35
+ }
36
+
37
+ def __init__(self, column_type=None, extra=None, is_nullable=None, column_default=None, column_key=None, column_name=None):
38
+ r"""TableMetaInfo
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param column_type: 列的数据类型
43
+ :type column_type: str
44
+ :param extra: 额外的信息,例如是否是自动递增列
45
+ :type extra: str
46
+ :param is_nullable: 是否允许为NULL
47
+ :type is_nullable: str
48
+ :param column_default: 列的默认值
49
+ :type column_default: str
50
+ :param column_key: 是否是索引列
51
+ :type column_key: str
52
+ :param column_name: 列名
53
+ :type column_name: str
54
+ """
55
+
56
+
57
+
58
+ self._column_type = None
59
+ self._extra = None
60
+ self._is_nullable = None
61
+ self._column_default = None
62
+ self._column_key = None
63
+ self._column_name = None
64
+ self.discriminator = None
65
+
66
+ if column_type is not None:
67
+ self.column_type = column_type
68
+ if extra is not None:
69
+ self.extra = extra
70
+ if is_nullable is not None:
71
+ self.is_nullable = is_nullable
72
+ if column_default is not None:
73
+ self.column_default = column_default
74
+ if column_key is not None:
75
+ self.column_key = column_key
76
+ if column_name is not None:
77
+ self.column_name = column_name
78
+
79
+ @property
80
+ def column_type(self):
81
+ r"""Gets the column_type of this TableMetaInfo.
82
+
83
+ 列的数据类型
84
+
85
+ :return: The column_type of this TableMetaInfo.
86
+ :rtype: str
87
+ """
88
+ return self._column_type
89
+
90
+ @column_type.setter
91
+ def column_type(self, column_type):
92
+ r"""Sets the column_type of this TableMetaInfo.
93
+
94
+ 列的数据类型
95
+
96
+ :param column_type: The column_type of this TableMetaInfo.
97
+ :type column_type: str
98
+ """
99
+ self._column_type = column_type
100
+
101
+ @property
102
+ def extra(self):
103
+ r"""Gets the extra of this TableMetaInfo.
104
+
105
+ 额外的信息,例如是否是自动递增列
106
+
107
+ :return: The extra of this TableMetaInfo.
108
+ :rtype: str
109
+ """
110
+ return self._extra
111
+
112
+ @extra.setter
113
+ def extra(self, extra):
114
+ r"""Sets the extra of this TableMetaInfo.
115
+
116
+ 额外的信息,例如是否是自动递增列
117
+
118
+ :param extra: The extra of this TableMetaInfo.
119
+ :type extra: str
120
+ """
121
+ self._extra = extra
122
+
123
+ @property
124
+ def is_nullable(self):
125
+ r"""Gets the is_nullable of this TableMetaInfo.
126
+
127
+ 是否允许为NULL
128
+
129
+ :return: The is_nullable of this TableMetaInfo.
130
+ :rtype: str
131
+ """
132
+ return self._is_nullable
133
+
134
+ @is_nullable.setter
135
+ def is_nullable(self, is_nullable):
136
+ r"""Sets the is_nullable of this TableMetaInfo.
137
+
138
+ 是否允许为NULL
139
+
140
+ :param is_nullable: The is_nullable of this TableMetaInfo.
141
+ :type is_nullable: str
142
+ """
143
+ self._is_nullable = is_nullable
144
+
145
+ @property
146
+ def column_default(self):
147
+ r"""Gets the column_default of this TableMetaInfo.
148
+
149
+ 列的默认值
150
+
151
+ :return: The column_default of this TableMetaInfo.
152
+ :rtype: str
153
+ """
154
+ return self._column_default
155
+
156
+ @column_default.setter
157
+ def column_default(self, column_default):
158
+ r"""Sets the column_default of this TableMetaInfo.
159
+
160
+ 列的默认值
161
+
162
+ :param column_default: The column_default of this TableMetaInfo.
163
+ :type column_default: str
164
+ """
165
+ self._column_default = column_default
166
+
167
+ @property
168
+ def column_key(self):
169
+ r"""Gets the column_key of this TableMetaInfo.
170
+
171
+ 是否是索引列
172
+
173
+ :return: The column_key of this TableMetaInfo.
174
+ :rtype: str
175
+ """
176
+ return self._column_key
177
+
178
+ @column_key.setter
179
+ def column_key(self, column_key):
180
+ r"""Sets the column_key of this TableMetaInfo.
181
+
182
+ 是否是索引列
183
+
184
+ :param column_key: The column_key of this TableMetaInfo.
185
+ :type column_key: str
186
+ """
187
+ self._column_key = column_key
188
+
189
+ @property
190
+ def column_name(self):
191
+ r"""Gets the column_name of this TableMetaInfo.
192
+
193
+ 列名
194
+
195
+ :return: The column_name of this TableMetaInfo.
196
+ :rtype: str
197
+ """
198
+ return self._column_name
199
+
200
+ @column_name.setter
201
+ def column_name(self, column_name):
202
+ r"""Sets the column_name of this TableMetaInfo.
203
+
204
+ 列名
205
+
206
+ :param column_name: The column_name of this TableMetaInfo.
207
+ :type column_name: str
208
+ """
209
+ self._column_name = column_name
210
+
211
+ def to_dict(self):
212
+ """Returns the model properties as a dict"""
213
+ result = {}
214
+
215
+ for attr, _ in six.iteritems(self.openapi_types):
216
+ value = getattr(self, attr)
217
+ if isinstance(value, list):
218
+ result[attr] = list(map(
219
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
220
+ value
221
+ ))
222
+ elif hasattr(value, "to_dict"):
223
+ result[attr] = value.to_dict()
224
+ elif isinstance(value, dict):
225
+ result[attr] = dict(map(
226
+ lambda item: (item[0], item[1].to_dict())
227
+ if hasattr(item[1], "to_dict") else item,
228
+ value.items()
229
+ ))
230
+ else:
231
+ if attr in self.sensitive_list:
232
+ result[attr] = "****"
233
+ else:
234
+ result[attr] = value
235
+
236
+ return result
237
+
238
+ def to_str(self):
239
+ """Returns the string representation of the model"""
240
+ import simplejson as json
241
+ if six.PY2:
242
+ import sys
243
+ reload(sys)
244
+ sys.setdefaultencoding("utf-8")
245
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
246
+
247
+ def __repr__(self):
248
+ """For `print`"""
249
+ return self.to_str()
250
+
251
+ def __eq__(self, other):
252
+ """Returns true if both objects are equal"""
253
+ if not isinstance(other, TableMetaInfo):
254
+ return False
255
+
256
+ return self.__dict__ == other.__dict__
257
+
258
+ def __ne__(self, other):
259
+ """Returns true if both objects are not equal"""
260
+ 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 UpdateProxyPrivateDnsName:
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
+ 'new_dns_name': 'str',
21
+ 'vpc_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'new_dns_name': 'new_dns_name',
26
+ 'vpc_id': 'vpc_id'
27
+ }
28
+
29
+ def __init__(self, new_dns_name=None, vpc_id=None):
30
+ r"""UpdateProxyPrivateDnsName
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param new_dns_name: **参数解释**: 新的dns名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
35
+ :type new_dns_name: str
36
+ :param vpc_id: **参数解释**: 虚拟私有云ID,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
37
+ :type vpc_id: str
38
+ """
39
+
40
+
41
+
42
+ self._new_dns_name = None
43
+ self._vpc_id = None
44
+ self.discriminator = None
45
+
46
+ self.new_dns_name = new_dns_name
47
+ self.vpc_id = vpc_id
48
+
49
+ @property
50
+ def new_dns_name(self):
51
+ r"""Gets the new_dns_name of this UpdateProxyPrivateDnsName.
52
+
53
+ **参数解释**: 新的dns名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
54
+
55
+ :return: The new_dns_name of this UpdateProxyPrivateDnsName.
56
+ :rtype: str
57
+ """
58
+ return self._new_dns_name
59
+
60
+ @new_dns_name.setter
61
+ def new_dns_name(self, new_dns_name):
62
+ r"""Sets the new_dns_name of this UpdateProxyPrivateDnsName.
63
+
64
+ **参数解释**: 新的dns名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
65
+
66
+ :param new_dns_name: The new_dns_name of this UpdateProxyPrivateDnsName.
67
+ :type new_dns_name: str
68
+ """
69
+ self._new_dns_name = new_dns_name
70
+
71
+ @property
72
+ def vpc_id(self):
73
+ r"""Gets the vpc_id of this UpdateProxyPrivateDnsName.
74
+
75
+ **参数解释**: 虚拟私有云ID,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
76
+
77
+ :return: The vpc_id of this UpdateProxyPrivateDnsName.
78
+ :rtype: str
79
+ """
80
+ return self._vpc_id
81
+
82
+ @vpc_id.setter
83
+ def vpc_id(self, vpc_id):
84
+ r"""Sets the vpc_id of this UpdateProxyPrivateDnsName.
85
+
86
+ **参数解释**: 虚拟私有云ID,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
87
+
88
+ :param vpc_id: The vpc_id of this UpdateProxyPrivateDnsName.
89
+ :type vpc_id: str
90
+ """
91
+ self._vpc_id = vpc_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, UpdateProxyPrivateDnsName):
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