volcengine-python-sdk 4.0.19__py2.py3-none-any.whl → 4.0.21__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.

Potentially problematic release.


This version of volcengine-python-sdk might be problematic. Click here for more details.

Files changed (112) hide show
  1. volcengine_python_sdk-4.0.21.dist-info/METADATA +214 -0
  2. {volcengine_python_sdk-4.0.19.dist-info → volcengine_python_sdk-4.0.21.dist-info}/RECORD +98 -74
  3. {volcengine_python_sdk-4.0.19.dist-info → volcengine_python_sdk-4.0.21.dist-info}/WHEEL +1 -1
  4. volcenginesdkalb/__init__.py +0 -2
  5. volcenginesdkalb/models/__init__.py +0 -2
  6. volcenginesdkalb/models/convert_forward_group_config_for_create_rules_input.py +3 -3
  7. volcenginesdkalb/models/convert_forward_group_config_for_modify_rules_input.py +3 -3
  8. volcenginesdkalb/models/convert_redirect_config_for_describe_rules_output.py +6 -6
  9. volcenginesdkalb/models/server_group_sticky_session_for_create_rules_input.py +3 -3
  10. volcenginesdkalb/models/server_group_sticky_session_for_describe_rules_output.py +3 -3
  11. volcenginesdkalb/models/server_group_sticky_session_for_modify_rules_input.py +3 -3
  12. volcenginesdkalb/models/traffic_limit_config_for_create_rules_input.py +3 -3
  13. volcenginesdkalb/models/traffic_limit_config_for_modify_rules_input.py +3 -3
  14. volcenginesdkarkruntime/resources/images/images.py +1 -1
  15. volcenginesdkarkruntime/resources/responses/input_items.py +2 -2
  16. volcenginesdkarkruntime/resources/responses/responses.py +4 -1
  17. volcenginesdkarkruntime/types/images/images.py +3 -0
  18. volcenginesdkcore/api_client.py +1 -1
  19. volcenginesdkcore/configuration.py +1 -1
  20. volcenginesdkrdsmysqlv2/__init__.py +39 -25
  21. volcenginesdkrdsmysqlv2/api/rds_mysql_v2_api.py +1347 -1153
  22. volcenginesdkrdsmysqlv2/models/__init__.py +39 -25
  23. volcenginesdkrdsmysqlv2/models/address_for_describe_db_instance_endpoints_output.py +305 -0
  24. volcenginesdkrdsmysqlv2/models/allow_list_for_describe_allow_lists_output.py +27 -1
  25. volcenginesdkrdsmysqlv2/models/basic_info_for_describe_db_instance_detail_output.py +1 -105
  26. volcenginesdkrdsmysqlv2/models/change_object_for_sync_allow_list_output.py +331 -0
  27. volcenginesdkrdsmysqlv2/models/charge_detail_for_describe_db_instance_charge_detail_output.py +383 -0
  28. volcenginesdkrdsmysqlv2/models/create_db_endpoint_request.py +27 -1
  29. volcenginesdkrdsmysqlv2/models/create_db_instance_request.py +27 -1
  30. volcenginesdkrdsmysqlv2/models/create_dr_db_instance_request.py +27 -1
  31. volcenginesdkrdsmysqlv2/models/db_instance_attribute_for_describe_db_instance_attribute_output.py +825 -0
  32. volcenginesdkrdsmysqlv2/models/describe_allow_lists_request.py +29 -3
  33. volcenginesdkrdsmysqlv2/models/describe_backup_policy_response.py +53 -1
  34. volcenginesdkrdsmysqlv2/models/describe_db_disaster_recovery_instances_request.py +124 -0
  35. volcenginesdkrdsmysqlv2/models/describe_db_disaster_recovery_instances_response.py +305 -0
  36. volcenginesdkrdsmysqlv2/models/{describe_db_auto_scaling_config_request.py → describe_db_instance_attribute_request.py} +9 -9
  37. volcenginesdkrdsmysqlv2/models/describe_db_instance_attribute_response.py +123 -0
  38. volcenginesdkrdsmysqlv2/models/describe_db_instance_charge_detail_request.py +124 -0
  39. volcenginesdkrdsmysqlv2/models/describe_db_instance_charge_detail_response.py +123 -0
  40. volcenginesdkrdsmysqlv2/models/describe_db_instance_endpoints_request.py +124 -0
  41. volcenginesdkrdsmysqlv2/models/describe_db_instance_endpoints_response.py +123 -0
  42. volcenginesdkrdsmysqlv2/models/describe_db_instance_ha_config_request.py +124 -0
  43. volcenginesdkrdsmysqlv2/models/{describe_available_cross_region_request.py → describe_db_instance_ha_config_response.py} +36 -37
  44. volcenginesdkrdsmysqlv2/models/describe_db_instance_price_detail_response.py +29 -3
  45. volcenginesdkrdsmysqlv2/models/{describe_cross_backup_policy_request.py → describe_db_instance_tde_request.py} +9 -9
  46. volcenginesdkrdsmysqlv2/models/describe_db_instance_tde_response.py +123 -0
  47. volcenginesdkrdsmysqlv2/models/describe_db_proxy_price_detail_response.py +27 -1
  48. volcenginesdkrdsmysqlv2/models/describe_db_proxy_request.py +124 -0
  49. volcenginesdkrdsmysqlv2/models/describe_db_proxy_response.py +123 -0
  50. volcenginesdkrdsmysqlv2/models/describe_resource_usage_request.py +124 -0
  51. volcenginesdkrdsmysqlv2/models/describe_resource_usage_response.py +565 -0
  52. volcenginesdkrdsmysqlv2/models/disaster_recovery_instance_for_describe_db_disaster_recovery_instances_output.py +279 -0
  53. volcenginesdkrdsmysqlv2/models/endpoint_for_describe_db_instance_detail_output.py +27 -1
  54. volcenginesdkrdsmysqlv2/models/endpoint_for_describe_db_instance_endpoints_output.py +669 -0
  55. volcenginesdkrdsmysqlv2/models/maintenance_window_for_describe_db_instance_attribute_output.py +175 -0
  56. volcenginesdkrdsmysqlv2/models/modify_backup_policy_request.py +53 -1
  57. volcenginesdkrdsmysqlv2/models/modify_backup_policy_response.py +53 -1
  58. volcenginesdkrdsmysqlv2/models/modify_db_endpoint_request.py +53 -1
  59. volcenginesdkrdsmysqlv2/models/modify_db_instance_tde_request.py +281 -0
  60. volcenginesdkrdsmysqlv2/models/{modify_db_auto_scaling_config_response.py → modify_db_instance_tde_response.py} +5 -5
  61. volcenginesdkrdsmysqlv2/models/{upgrade_db_instance_kernel_version_request.py → modify_db_instance_type_request.py} +55 -29
  62. volcenginesdkrdsmysqlv2/models/{restore_to_cross_region_instance_response.py → modify_db_instance_type_response.py} +13 -13
  63. volcenginesdkrdsmysqlv2/models/node_for_describe_db_instance_ha_config_output.py +435 -0
  64. volcenginesdkrdsmysqlv2/models/{node_info_for_restore_to_cross_region_instance_input.py → node_info_for_modify_db_instance_type_input.py} +25 -25
  65. volcenginesdkalb/models/convert_forward_group_config_server_group_tuple_for_create_rules_input.py → volcenginesdkrdsmysqlv2/models/proxy_detail_for_describe_db_proxy_output.py +37 -37
  66. volcenginesdkrdsmysqlv2/models/{describe_available_cross_region_response.py → proxy_node_custom_for_create_db_instance_input.py} +22 -22
  67. volcenginesdkrdsmysqlv2/models/proxy_node_custom_for_create_dr_db_instance_input.py +123 -0
  68. volcenginesdkrdsmysqlv2/models/proxy_node_custom_for_rebuild_db_instance_input.py +123 -0
  69. volcenginesdkrdsmysqlv2/models/proxy_node_custom_for_restore_to_new_instance_input.py +123 -0
  70. volcenginesdkrdsmysqlv2/models/proxy_resource_info_for_describe_db_proxy_output.py +175 -0
  71. volcenginesdkalb/models/convert_forward_group_config_server_group_tuple_for_modify_rules_input.py → volcenginesdkrdsmysqlv2/models/read_only_node_weight_for_describe_db_instance_endpoints_output.py +54 -28
  72. volcenginesdkrdsmysqlv2/models/rebuild_db_instance_request.py +27 -1
  73. volcenginesdkrdsmysqlv2/models/restore_to_new_instance_request.py +27 -1
  74. volcenginesdkrdsmysqlv2/models/sync_allow_list_request.py +150 -0
  75. volcenginesdkrdsmysqlv2/models/sync_allow_list_response.py +123 -0
  76. volcenginesdkrdsmysqlv2/models/{instance_tag_for_restore_to_cross_region_instance_input.py → tag_for_describe_db_instance_attribute_output.py} +13 -13
  77. volcenginesdkresourceshare/__init__.py +12 -0
  78. volcenginesdkresourceshare/api/resource_share_api.py +291 -0
  79. volcenginesdkresourceshare/models/__init__.py +12 -0
  80. volcenginesdkresourceshare/models/create_resource_share_request.py +29 -3
  81. volcenginesdkresourceshare/models/create_resource_share_response.py +29 -1
  82. volcenginesdkresourceshare/models/describe_resource_shares_request.py +31 -6
  83. volcenginesdkresourceshare/models/list_tags_for_resources_request.py +228 -0
  84. volcenginesdkrdsmysqlv2/models/describe_cross_region_backup_db_instances_response.py → volcenginesdkresourceshare/models/list_tags_for_resources_response.py +53 -27
  85. volcenginesdkresourceshare/models/resource_share_for_describe_resource_shares_output.py +27 -1
  86. volcenginesdkresourceshare/models/resource_tag_for_list_tags_for_resources_output.py +201 -0
  87. volcenginesdkresourceshare/models/tag_filter_for_describe_resource_shares_input.py +149 -0
  88. volcenginesdkresourceshare/models/tag_filter_for_list_tags_for_resources_input.py +149 -0
  89. volcenginesdkresourceshare/models/tag_for_create_resource_share_input.py +149 -0
  90. volcenginesdkresourceshare/models/tag_for_describe_resource_shares_output.py +149 -0
  91. volcenginesdkresourceshare/models/tag_for_tag_resources_input.py +151 -0
  92. volcenginesdkresourceshare/models/tag_resources_request.py +176 -0
  93. volcenginesdkrdsmysqlv2/models/upgrade_db_instance_kernel_version_response.py → volcenginesdkresourceshare/models/tag_resources_response.py +6 -6
  94. volcenginesdkresourceshare/models/untag_resources_request.py +176 -0
  95. volcenginesdkrdsmysqlv2/models/modify_db_instance_auto_upgrade_minor_version_response.py → volcenginesdkresourceshare/models/untag_resources_response.py +6 -6
  96. volcengine_python_sdk-4.0.19.dist-info/METADATA +0 -20
  97. volcenginesdkrdsmysqlv2/models/auto_storage_scaling_config_for_restore_to_cross_region_instance_input.py +0 -175
  98. volcenginesdkrdsmysqlv2/models/charge_info_for_restore_to_cross_region_instance_input.py +0 -227
  99. volcenginesdkrdsmysqlv2/models/data_for_describe_cross_region_backup_db_instances_output.py +0 -357
  100. volcenginesdkrdsmysqlv2/models/describe_cross_backup_policy_response.py +0 -227
  101. volcenginesdkrdsmysqlv2/models/describe_cross_region_backup_db_instances_request.py +0 -279
  102. volcenginesdkrdsmysqlv2/models/describe_db_auto_scaling_config_response.py +0 -227
  103. volcenginesdkrdsmysqlv2/models/modify_cross_backup_policy_request.py +0 -228
  104. volcenginesdkrdsmysqlv2/models/modify_cross_backup_policy_response.py +0 -227
  105. volcenginesdkrdsmysqlv2/models/modify_db_auto_scaling_config_request.py +0 -150
  106. volcenginesdkrdsmysqlv2/models/modify_db_instance_auto_upgrade_minor_version_request.py +0 -151
  107. volcenginesdkrdsmysqlv2/models/restore_to_cross_region_instance_request.py +0 -597
  108. volcenginesdkrdsmysqlv2/models/storage_config_for_describe_db_auto_scaling_config_output.py +0 -175
  109. volcenginesdkrdsmysqlv2/models/storage_config_for_modify_db_auto_scaling_config_input.py +0 -175
  110. {volcengine_python_sdk-4.0.19.dist-info → volcengine_python_sdk-4.0.21.dist-info/licenses}/LICENSE.txt +0 -0
  111. {volcengine_python_sdk-4.0.19.dist-info → volcengine_python_sdk-4.0.21.dist-info/licenses}/NOTICE.md +0 -0
  112. {volcengine_python_sdk-4.0.19.dist-info → volcengine_python_sdk-4.0.21.dist-info}/top_level.txt +0 -0
@@ -1,357 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- rds_mysql_v2
5
-
6
- No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
-
8
- OpenAPI spec version: common-version
9
-
10
- Generated by: https://github.com/swagger-api/swagger-codegen.git
11
- """
12
-
13
-
14
- import pprint
15
- import re # noqa: F401
16
-
17
- import six
18
-
19
- from volcenginesdkcore.configuration import Configuration
20
-
21
-
22
- class DataForDescribeCrossRegionBackupDBInstancesOutput(object):
23
- """NOTE: This class is auto generated by the swagger code generator program.
24
-
25
- Do not edit the class manually.
26
- """
27
-
28
- """
29
- Attributes:
30
- swagger_types (dict): The key is attribute name
31
- and the value is attribute type.
32
- attribute_map (dict): The key is attribute name
33
- and the value is json key in definition.
34
- """
35
- swagger_types = {
36
- 'backup_enabled': 'bool',
37
- 'db_engine_version': 'str',
38
- 'instance_id': 'str',
39
- 'instance_name': 'str',
40
- 'instance_status': 'str',
41
- 'log_backup_enabled': 'bool',
42
- 'project_name': 'str',
43
- 'region_id': 'str',
44
- 'retention': 'int',
45
- 'service_enable_time': 'str'
46
- }
47
-
48
- attribute_map = {
49
- 'backup_enabled': 'BackupEnabled',
50
- 'db_engine_version': 'DBEngineVersion',
51
- 'instance_id': 'InstanceId',
52
- 'instance_name': 'InstanceName',
53
- 'instance_status': 'InstanceStatus',
54
- 'log_backup_enabled': 'LogBackupEnabled',
55
- 'project_name': 'ProjectName',
56
- 'region_id': 'RegionId',
57
- 'retention': 'Retention',
58
- 'service_enable_time': 'ServiceEnableTime'
59
- }
60
-
61
- def __init__(self, backup_enabled=None, db_engine_version=None, instance_id=None, instance_name=None, instance_status=None, log_backup_enabled=None, project_name=None, region_id=None, retention=None, service_enable_time=None, _configuration=None): # noqa: E501
62
- """DataForDescribeCrossRegionBackupDBInstancesOutput - a model defined in Swagger""" # noqa: E501
63
- if _configuration is None:
64
- _configuration = Configuration()
65
- self._configuration = _configuration
66
-
67
- self._backup_enabled = None
68
- self._db_engine_version = None
69
- self._instance_id = None
70
- self._instance_name = None
71
- self._instance_status = None
72
- self._log_backup_enabled = None
73
- self._project_name = None
74
- self._region_id = None
75
- self._retention = None
76
- self._service_enable_time = None
77
- self.discriminator = None
78
-
79
- if backup_enabled is not None:
80
- self.backup_enabled = backup_enabled
81
- if db_engine_version is not None:
82
- self.db_engine_version = db_engine_version
83
- if instance_id is not None:
84
- self.instance_id = instance_id
85
- if instance_name is not None:
86
- self.instance_name = instance_name
87
- if instance_status is not None:
88
- self.instance_status = instance_status
89
- if log_backup_enabled is not None:
90
- self.log_backup_enabled = log_backup_enabled
91
- if project_name is not None:
92
- self.project_name = project_name
93
- if region_id is not None:
94
- self.region_id = region_id
95
- if retention is not None:
96
- self.retention = retention
97
- if service_enable_time is not None:
98
- self.service_enable_time = service_enable_time
99
-
100
- @property
101
- def backup_enabled(self):
102
- """Gets the backup_enabled of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
103
-
104
-
105
- :return: The backup_enabled of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
106
- :rtype: bool
107
- """
108
- return self._backup_enabled
109
-
110
- @backup_enabled.setter
111
- def backup_enabled(self, backup_enabled):
112
- """Sets the backup_enabled of this DataForDescribeCrossRegionBackupDBInstancesOutput.
113
-
114
-
115
- :param backup_enabled: The backup_enabled of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
116
- :type: bool
117
- """
118
-
119
- self._backup_enabled = backup_enabled
120
-
121
- @property
122
- def db_engine_version(self):
123
- """Gets the db_engine_version of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
124
-
125
-
126
- :return: The db_engine_version of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
127
- :rtype: str
128
- """
129
- return self._db_engine_version
130
-
131
- @db_engine_version.setter
132
- def db_engine_version(self, db_engine_version):
133
- """Sets the db_engine_version of this DataForDescribeCrossRegionBackupDBInstancesOutput.
134
-
135
-
136
- :param db_engine_version: The db_engine_version of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
137
- :type: str
138
- """
139
-
140
- self._db_engine_version = db_engine_version
141
-
142
- @property
143
- def instance_id(self):
144
- """Gets the instance_id of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
145
-
146
-
147
- :return: The instance_id of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
148
- :rtype: str
149
- """
150
- return self._instance_id
151
-
152
- @instance_id.setter
153
- def instance_id(self, instance_id):
154
- """Sets the instance_id of this DataForDescribeCrossRegionBackupDBInstancesOutput.
155
-
156
-
157
- :param instance_id: The instance_id of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
158
- :type: str
159
- """
160
-
161
- self._instance_id = instance_id
162
-
163
- @property
164
- def instance_name(self):
165
- """Gets the instance_name of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
166
-
167
-
168
- :return: The instance_name of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
169
- :rtype: str
170
- """
171
- return self._instance_name
172
-
173
- @instance_name.setter
174
- def instance_name(self, instance_name):
175
- """Sets the instance_name of this DataForDescribeCrossRegionBackupDBInstancesOutput.
176
-
177
-
178
- :param instance_name: The instance_name of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
179
- :type: str
180
- """
181
-
182
- self._instance_name = instance_name
183
-
184
- @property
185
- def instance_status(self):
186
- """Gets the instance_status of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
187
-
188
-
189
- :return: The instance_status of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
190
- :rtype: str
191
- """
192
- return self._instance_status
193
-
194
- @instance_status.setter
195
- def instance_status(self, instance_status):
196
- """Sets the instance_status of this DataForDescribeCrossRegionBackupDBInstancesOutput.
197
-
198
-
199
- :param instance_status: The instance_status of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
200
- :type: str
201
- """
202
-
203
- self._instance_status = instance_status
204
-
205
- @property
206
- def log_backup_enabled(self):
207
- """Gets the log_backup_enabled of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
208
-
209
-
210
- :return: The log_backup_enabled of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
211
- :rtype: bool
212
- """
213
- return self._log_backup_enabled
214
-
215
- @log_backup_enabled.setter
216
- def log_backup_enabled(self, log_backup_enabled):
217
- """Sets the log_backup_enabled of this DataForDescribeCrossRegionBackupDBInstancesOutput.
218
-
219
-
220
- :param log_backup_enabled: The log_backup_enabled of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
221
- :type: bool
222
- """
223
-
224
- self._log_backup_enabled = log_backup_enabled
225
-
226
- @property
227
- def project_name(self):
228
- """Gets the project_name of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
229
-
230
-
231
- :return: The project_name of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
232
- :rtype: str
233
- """
234
- return self._project_name
235
-
236
- @project_name.setter
237
- def project_name(self, project_name):
238
- """Sets the project_name of this DataForDescribeCrossRegionBackupDBInstancesOutput.
239
-
240
-
241
- :param project_name: The project_name of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
242
- :type: str
243
- """
244
-
245
- self._project_name = project_name
246
-
247
- @property
248
- def region_id(self):
249
- """Gets the region_id of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
250
-
251
-
252
- :return: The region_id of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
253
- :rtype: str
254
- """
255
- return self._region_id
256
-
257
- @region_id.setter
258
- def region_id(self, region_id):
259
- """Sets the region_id of this DataForDescribeCrossRegionBackupDBInstancesOutput.
260
-
261
-
262
- :param region_id: The region_id of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
263
- :type: str
264
- """
265
-
266
- self._region_id = region_id
267
-
268
- @property
269
- def retention(self):
270
- """Gets the retention of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
271
-
272
-
273
- :return: The retention of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
274
- :rtype: int
275
- """
276
- return self._retention
277
-
278
- @retention.setter
279
- def retention(self, retention):
280
- """Sets the retention of this DataForDescribeCrossRegionBackupDBInstancesOutput.
281
-
282
-
283
- :param retention: The retention of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
284
- :type: int
285
- """
286
-
287
- self._retention = retention
288
-
289
- @property
290
- def service_enable_time(self):
291
- """Gets the service_enable_time of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
292
-
293
-
294
- :return: The service_enable_time of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
295
- :rtype: str
296
- """
297
- return self._service_enable_time
298
-
299
- @service_enable_time.setter
300
- def service_enable_time(self, service_enable_time):
301
- """Sets the service_enable_time of this DataForDescribeCrossRegionBackupDBInstancesOutput.
302
-
303
-
304
- :param service_enable_time: The service_enable_time of this DataForDescribeCrossRegionBackupDBInstancesOutput. # noqa: E501
305
- :type: str
306
- """
307
-
308
- self._service_enable_time = service_enable_time
309
-
310
- def to_dict(self):
311
- """Returns the model properties as a dict"""
312
- result = {}
313
-
314
- for attr, _ in six.iteritems(self.swagger_types):
315
- value = getattr(self, attr)
316
- if isinstance(value, list):
317
- result[attr] = list(map(
318
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
319
- value
320
- ))
321
- elif hasattr(value, "to_dict"):
322
- result[attr] = value.to_dict()
323
- elif isinstance(value, dict):
324
- result[attr] = dict(map(
325
- lambda item: (item[0], item[1].to_dict())
326
- if hasattr(item[1], "to_dict") else item,
327
- value.items()
328
- ))
329
- else:
330
- result[attr] = value
331
- if issubclass(DataForDescribeCrossRegionBackupDBInstancesOutput, dict):
332
- for key, value in self.items():
333
- result[key] = value
334
-
335
- return result
336
-
337
- def to_str(self):
338
- """Returns the string representation of the model"""
339
- return pprint.pformat(self.to_dict())
340
-
341
- def __repr__(self):
342
- """For `print` and `pprint`"""
343
- return self.to_str()
344
-
345
- def __eq__(self, other):
346
- """Returns true if both objects are equal"""
347
- if not isinstance(other, DataForDescribeCrossRegionBackupDBInstancesOutput):
348
- return False
349
-
350
- return self.to_dict() == other.to_dict()
351
-
352
- def __ne__(self, other):
353
- """Returns true if both objects are not equal"""
354
- if not isinstance(other, DataForDescribeCrossRegionBackupDBInstancesOutput):
355
- return True
356
-
357
- return self.to_dict() != other.to_dict()
@@ -1,227 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- rds_mysql_v2
5
-
6
- No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
-
8
- OpenAPI spec version: common-version
9
-
10
- Generated by: https://github.com/swagger-api/swagger-codegen.git
11
- """
12
-
13
-
14
- import pprint
15
- import re # noqa: F401
16
-
17
- import six
18
-
19
- from volcenginesdkcore.configuration import Configuration
20
-
21
-
22
- class DescribeCrossBackupPolicyResponse(object):
23
- """NOTE: This class is auto generated by the swagger code generator program.
24
-
25
- Do not edit the class manually.
26
- """
27
-
28
- """
29
- Attributes:
30
- swagger_types (dict): The key is attribute name
31
- and the value is attribute type.
32
- attribute_map (dict): The key is attribute name
33
- and the value is json key in definition.
34
- """
35
- swagger_types = {
36
- 'backup_enabled': 'bool',
37
- 'cross_backup_region': 'str',
38
- 'instance_id': 'str',
39
- 'log_backup_enabled': 'bool',
40
- 'retention': 'int'
41
- }
42
-
43
- attribute_map = {
44
- 'backup_enabled': 'BackupEnabled',
45
- 'cross_backup_region': 'CrossBackupRegion',
46
- 'instance_id': 'InstanceId',
47
- 'log_backup_enabled': 'LogBackupEnabled',
48
- 'retention': 'Retention'
49
- }
50
-
51
- def __init__(self, backup_enabled=None, cross_backup_region=None, instance_id=None, log_backup_enabled=None, retention=None, _configuration=None): # noqa: E501
52
- """DescribeCrossBackupPolicyResponse - a model defined in Swagger""" # noqa: E501
53
- if _configuration is None:
54
- _configuration = Configuration()
55
- self._configuration = _configuration
56
-
57
- self._backup_enabled = None
58
- self._cross_backup_region = None
59
- self._instance_id = None
60
- self._log_backup_enabled = None
61
- self._retention = None
62
- self.discriminator = None
63
-
64
- if backup_enabled is not None:
65
- self.backup_enabled = backup_enabled
66
- if cross_backup_region is not None:
67
- self.cross_backup_region = cross_backup_region
68
- if instance_id is not None:
69
- self.instance_id = instance_id
70
- if log_backup_enabled is not None:
71
- self.log_backup_enabled = log_backup_enabled
72
- if retention is not None:
73
- self.retention = retention
74
-
75
- @property
76
- def backup_enabled(self):
77
- """Gets the backup_enabled of this DescribeCrossBackupPolicyResponse. # noqa: E501
78
-
79
-
80
- :return: The backup_enabled of this DescribeCrossBackupPolicyResponse. # noqa: E501
81
- :rtype: bool
82
- """
83
- return self._backup_enabled
84
-
85
- @backup_enabled.setter
86
- def backup_enabled(self, backup_enabled):
87
- """Sets the backup_enabled of this DescribeCrossBackupPolicyResponse.
88
-
89
-
90
- :param backup_enabled: The backup_enabled of this DescribeCrossBackupPolicyResponse. # noqa: E501
91
- :type: bool
92
- """
93
-
94
- self._backup_enabled = backup_enabled
95
-
96
- @property
97
- def cross_backup_region(self):
98
- """Gets the cross_backup_region of this DescribeCrossBackupPolicyResponse. # noqa: E501
99
-
100
-
101
- :return: The cross_backup_region of this DescribeCrossBackupPolicyResponse. # noqa: E501
102
- :rtype: str
103
- """
104
- return self._cross_backup_region
105
-
106
- @cross_backup_region.setter
107
- def cross_backup_region(self, cross_backup_region):
108
- """Sets the cross_backup_region of this DescribeCrossBackupPolicyResponse.
109
-
110
-
111
- :param cross_backup_region: The cross_backup_region of this DescribeCrossBackupPolicyResponse. # noqa: E501
112
- :type: str
113
- """
114
-
115
- self._cross_backup_region = cross_backup_region
116
-
117
- @property
118
- def instance_id(self):
119
- """Gets the instance_id of this DescribeCrossBackupPolicyResponse. # noqa: E501
120
-
121
-
122
- :return: The instance_id of this DescribeCrossBackupPolicyResponse. # noqa: E501
123
- :rtype: str
124
- """
125
- return self._instance_id
126
-
127
- @instance_id.setter
128
- def instance_id(self, instance_id):
129
- """Sets the instance_id of this DescribeCrossBackupPolicyResponse.
130
-
131
-
132
- :param instance_id: The instance_id of this DescribeCrossBackupPolicyResponse. # noqa: E501
133
- :type: str
134
- """
135
-
136
- self._instance_id = instance_id
137
-
138
- @property
139
- def log_backup_enabled(self):
140
- """Gets the log_backup_enabled of this DescribeCrossBackupPolicyResponse. # noqa: E501
141
-
142
-
143
- :return: The log_backup_enabled of this DescribeCrossBackupPolicyResponse. # noqa: E501
144
- :rtype: bool
145
- """
146
- return self._log_backup_enabled
147
-
148
- @log_backup_enabled.setter
149
- def log_backup_enabled(self, log_backup_enabled):
150
- """Sets the log_backup_enabled of this DescribeCrossBackupPolicyResponse.
151
-
152
-
153
- :param log_backup_enabled: The log_backup_enabled of this DescribeCrossBackupPolicyResponse. # noqa: E501
154
- :type: bool
155
- """
156
-
157
- self._log_backup_enabled = log_backup_enabled
158
-
159
- @property
160
- def retention(self):
161
- """Gets the retention of this DescribeCrossBackupPolicyResponse. # noqa: E501
162
-
163
-
164
- :return: The retention of this DescribeCrossBackupPolicyResponse. # noqa: E501
165
- :rtype: int
166
- """
167
- return self._retention
168
-
169
- @retention.setter
170
- def retention(self, retention):
171
- """Sets the retention of this DescribeCrossBackupPolicyResponse.
172
-
173
-
174
- :param retention: The retention of this DescribeCrossBackupPolicyResponse. # noqa: E501
175
- :type: int
176
- """
177
-
178
- self._retention = retention
179
-
180
- def to_dict(self):
181
- """Returns the model properties as a dict"""
182
- result = {}
183
-
184
- for attr, _ in six.iteritems(self.swagger_types):
185
- value = getattr(self, attr)
186
- if isinstance(value, list):
187
- result[attr] = list(map(
188
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
189
- value
190
- ))
191
- elif hasattr(value, "to_dict"):
192
- result[attr] = value.to_dict()
193
- elif isinstance(value, dict):
194
- result[attr] = dict(map(
195
- lambda item: (item[0], item[1].to_dict())
196
- if hasattr(item[1], "to_dict") else item,
197
- value.items()
198
- ))
199
- else:
200
- result[attr] = value
201
- if issubclass(DescribeCrossBackupPolicyResponse, dict):
202
- for key, value in self.items():
203
- result[key] = value
204
-
205
- return result
206
-
207
- def to_str(self):
208
- """Returns the string representation of the model"""
209
- return pprint.pformat(self.to_dict())
210
-
211
- def __repr__(self):
212
- """For `print` and `pprint`"""
213
- return self.to_str()
214
-
215
- def __eq__(self, other):
216
- """Returns true if both objects are equal"""
217
- if not isinstance(other, DescribeCrossBackupPolicyResponse):
218
- return False
219
-
220
- return self.to_dict() == other.to_dict()
221
-
222
- def __ne__(self, other):
223
- """Returns true if both objects are not equal"""
224
- if not isinstance(other, DescribeCrossBackupPolicyResponse):
225
- return True
226
-
227
- return self.to_dict() != other.to_dict()