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,228 +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 ModifyCrossBackupPolicyRequest(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
- """ModifyCrossBackupPolicyRequest - 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
- self.instance_id = instance_id
69
- if log_backup_enabled is not None:
70
- self.log_backup_enabled = log_backup_enabled
71
- if retention is not None:
72
- self.retention = retention
73
-
74
- @property
75
- def backup_enabled(self):
76
- """Gets the backup_enabled of this ModifyCrossBackupPolicyRequest. # noqa: E501
77
-
78
-
79
- :return: The backup_enabled of this ModifyCrossBackupPolicyRequest. # noqa: E501
80
- :rtype: bool
81
- """
82
- return self._backup_enabled
83
-
84
- @backup_enabled.setter
85
- def backup_enabled(self, backup_enabled):
86
- """Sets the backup_enabled of this ModifyCrossBackupPolicyRequest.
87
-
88
-
89
- :param backup_enabled: The backup_enabled of this ModifyCrossBackupPolicyRequest. # noqa: E501
90
- :type: bool
91
- """
92
-
93
- self._backup_enabled = backup_enabled
94
-
95
- @property
96
- def cross_backup_region(self):
97
- """Gets the cross_backup_region of this ModifyCrossBackupPolicyRequest. # noqa: E501
98
-
99
-
100
- :return: The cross_backup_region of this ModifyCrossBackupPolicyRequest. # noqa: E501
101
- :rtype: str
102
- """
103
- return self._cross_backup_region
104
-
105
- @cross_backup_region.setter
106
- def cross_backup_region(self, cross_backup_region):
107
- """Sets the cross_backup_region of this ModifyCrossBackupPolicyRequest.
108
-
109
-
110
- :param cross_backup_region: The cross_backup_region of this ModifyCrossBackupPolicyRequest. # noqa: E501
111
- :type: str
112
- """
113
-
114
- self._cross_backup_region = cross_backup_region
115
-
116
- @property
117
- def instance_id(self):
118
- """Gets the instance_id of this ModifyCrossBackupPolicyRequest. # noqa: E501
119
-
120
-
121
- :return: The instance_id of this ModifyCrossBackupPolicyRequest. # noqa: E501
122
- :rtype: str
123
- """
124
- return self._instance_id
125
-
126
- @instance_id.setter
127
- def instance_id(self, instance_id):
128
- """Sets the instance_id of this ModifyCrossBackupPolicyRequest.
129
-
130
-
131
- :param instance_id: The instance_id of this ModifyCrossBackupPolicyRequest. # noqa: E501
132
- :type: str
133
- """
134
- if self._configuration.client_side_validation and instance_id is None:
135
- raise ValueError("Invalid value for `instance_id`, must not be `None`") # noqa: E501
136
-
137
- self._instance_id = instance_id
138
-
139
- @property
140
- def log_backup_enabled(self):
141
- """Gets the log_backup_enabled of this ModifyCrossBackupPolicyRequest. # noqa: E501
142
-
143
-
144
- :return: The log_backup_enabled of this ModifyCrossBackupPolicyRequest. # noqa: E501
145
- :rtype: bool
146
- """
147
- return self._log_backup_enabled
148
-
149
- @log_backup_enabled.setter
150
- def log_backup_enabled(self, log_backup_enabled):
151
- """Sets the log_backup_enabled of this ModifyCrossBackupPolicyRequest.
152
-
153
-
154
- :param log_backup_enabled: The log_backup_enabled of this ModifyCrossBackupPolicyRequest. # noqa: E501
155
- :type: bool
156
- """
157
-
158
- self._log_backup_enabled = log_backup_enabled
159
-
160
- @property
161
- def retention(self):
162
- """Gets the retention of this ModifyCrossBackupPolicyRequest. # noqa: E501
163
-
164
-
165
- :return: The retention of this ModifyCrossBackupPolicyRequest. # noqa: E501
166
- :rtype: int
167
- """
168
- return self._retention
169
-
170
- @retention.setter
171
- def retention(self, retention):
172
- """Sets the retention of this ModifyCrossBackupPolicyRequest.
173
-
174
-
175
- :param retention: The retention of this ModifyCrossBackupPolicyRequest. # noqa: E501
176
- :type: int
177
- """
178
-
179
- self._retention = retention
180
-
181
- def to_dict(self):
182
- """Returns the model properties as a dict"""
183
- result = {}
184
-
185
- for attr, _ in six.iteritems(self.swagger_types):
186
- value = getattr(self, attr)
187
- if isinstance(value, list):
188
- result[attr] = list(map(
189
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
190
- value
191
- ))
192
- elif hasattr(value, "to_dict"):
193
- result[attr] = value.to_dict()
194
- elif isinstance(value, dict):
195
- result[attr] = dict(map(
196
- lambda item: (item[0], item[1].to_dict())
197
- if hasattr(item[1], "to_dict") else item,
198
- value.items()
199
- ))
200
- else:
201
- result[attr] = value
202
- if issubclass(ModifyCrossBackupPolicyRequest, dict):
203
- for key, value in self.items():
204
- result[key] = value
205
-
206
- return result
207
-
208
- def to_str(self):
209
- """Returns the string representation of the model"""
210
- return pprint.pformat(self.to_dict())
211
-
212
- def __repr__(self):
213
- """For `print` and `pprint`"""
214
- return self.to_str()
215
-
216
- def __eq__(self, other):
217
- """Returns true if both objects are equal"""
218
- if not isinstance(other, ModifyCrossBackupPolicyRequest):
219
- return False
220
-
221
- return self.to_dict() == other.to_dict()
222
-
223
- def __ne__(self, other):
224
- """Returns true if both objects are not equal"""
225
- if not isinstance(other, ModifyCrossBackupPolicyRequest):
226
- return True
227
-
228
- 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 ModifyCrossBackupPolicyResponse(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
- """ModifyCrossBackupPolicyResponse - 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 ModifyCrossBackupPolicyResponse. # noqa: E501
78
-
79
-
80
- :return: The backup_enabled of this ModifyCrossBackupPolicyResponse. # 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 ModifyCrossBackupPolicyResponse.
88
-
89
-
90
- :param backup_enabled: The backup_enabled of this ModifyCrossBackupPolicyResponse. # 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 ModifyCrossBackupPolicyResponse. # noqa: E501
99
-
100
-
101
- :return: The cross_backup_region of this ModifyCrossBackupPolicyResponse. # 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 ModifyCrossBackupPolicyResponse.
109
-
110
-
111
- :param cross_backup_region: The cross_backup_region of this ModifyCrossBackupPolicyResponse. # 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 ModifyCrossBackupPolicyResponse. # noqa: E501
120
-
121
-
122
- :return: The instance_id of this ModifyCrossBackupPolicyResponse. # 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 ModifyCrossBackupPolicyResponse.
130
-
131
-
132
- :param instance_id: The instance_id of this ModifyCrossBackupPolicyResponse. # 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 ModifyCrossBackupPolicyResponse. # noqa: E501
141
-
142
-
143
- :return: The log_backup_enabled of this ModifyCrossBackupPolicyResponse. # 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 ModifyCrossBackupPolicyResponse.
151
-
152
-
153
- :param log_backup_enabled: The log_backup_enabled of this ModifyCrossBackupPolicyResponse. # 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 ModifyCrossBackupPolicyResponse. # noqa: E501
162
-
163
-
164
- :return: The retention of this ModifyCrossBackupPolicyResponse. # 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 ModifyCrossBackupPolicyResponse.
172
-
173
-
174
- :param retention: The retention of this ModifyCrossBackupPolicyResponse. # 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(ModifyCrossBackupPolicyResponse, 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, ModifyCrossBackupPolicyResponse):
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, ModifyCrossBackupPolicyResponse):
225
- return True
226
-
227
- return self.to_dict() != other.to_dict()
@@ -1,150 +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 ModifyDBAutoScalingConfigRequest(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
- 'instance_id': 'str',
37
- 'storage_config': 'StorageConfigForModifyDBAutoScalingConfigInput'
38
- }
39
-
40
- attribute_map = {
41
- 'instance_id': 'InstanceId',
42
- 'storage_config': 'StorageConfig'
43
- }
44
-
45
- def __init__(self, instance_id=None, storage_config=None, _configuration=None): # noqa: E501
46
- """ModifyDBAutoScalingConfigRequest - a model defined in Swagger""" # noqa: E501
47
- if _configuration is None:
48
- _configuration = Configuration()
49
- self._configuration = _configuration
50
-
51
- self._instance_id = None
52
- self._storage_config = None
53
- self.discriminator = None
54
-
55
- self.instance_id = instance_id
56
- if storage_config is not None:
57
- self.storage_config = storage_config
58
-
59
- @property
60
- def instance_id(self):
61
- """Gets the instance_id of this ModifyDBAutoScalingConfigRequest. # noqa: E501
62
-
63
-
64
- :return: The instance_id of this ModifyDBAutoScalingConfigRequest. # noqa: E501
65
- :rtype: str
66
- """
67
- return self._instance_id
68
-
69
- @instance_id.setter
70
- def instance_id(self, instance_id):
71
- """Sets the instance_id of this ModifyDBAutoScalingConfigRequest.
72
-
73
-
74
- :param instance_id: The instance_id of this ModifyDBAutoScalingConfigRequest. # noqa: E501
75
- :type: str
76
- """
77
- if self._configuration.client_side_validation and instance_id is None:
78
- raise ValueError("Invalid value for `instance_id`, must not be `None`") # noqa: E501
79
-
80
- self._instance_id = instance_id
81
-
82
- @property
83
- def storage_config(self):
84
- """Gets the storage_config of this ModifyDBAutoScalingConfigRequest. # noqa: E501
85
-
86
-
87
- :return: The storage_config of this ModifyDBAutoScalingConfigRequest. # noqa: E501
88
- :rtype: StorageConfigForModifyDBAutoScalingConfigInput
89
- """
90
- return self._storage_config
91
-
92
- @storage_config.setter
93
- def storage_config(self, storage_config):
94
- """Sets the storage_config of this ModifyDBAutoScalingConfigRequest.
95
-
96
-
97
- :param storage_config: The storage_config of this ModifyDBAutoScalingConfigRequest. # noqa: E501
98
- :type: StorageConfigForModifyDBAutoScalingConfigInput
99
- """
100
-
101
- self._storage_config = storage_config
102
-
103
- def to_dict(self):
104
- """Returns the model properties as a dict"""
105
- result = {}
106
-
107
- for attr, _ in six.iteritems(self.swagger_types):
108
- value = getattr(self, attr)
109
- if isinstance(value, list):
110
- result[attr] = list(map(
111
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
112
- value
113
- ))
114
- elif hasattr(value, "to_dict"):
115
- result[attr] = value.to_dict()
116
- elif isinstance(value, dict):
117
- result[attr] = dict(map(
118
- lambda item: (item[0], item[1].to_dict())
119
- if hasattr(item[1], "to_dict") else item,
120
- value.items()
121
- ))
122
- else:
123
- result[attr] = value
124
- if issubclass(ModifyDBAutoScalingConfigRequest, dict):
125
- for key, value in self.items():
126
- result[key] = value
127
-
128
- return result
129
-
130
- def to_str(self):
131
- """Returns the string representation of the model"""
132
- return pprint.pformat(self.to_dict())
133
-
134
- def __repr__(self):
135
- """For `print` and `pprint`"""
136
- return self.to_str()
137
-
138
- def __eq__(self, other):
139
- """Returns true if both objects are equal"""
140
- if not isinstance(other, ModifyDBAutoScalingConfigRequest):
141
- return False
142
-
143
- return self.to_dict() == other.to_dict()
144
-
145
- def __ne__(self, other):
146
- """Returns true if both objects are not equal"""
147
- if not isinstance(other, ModifyDBAutoScalingConfigRequest):
148
- return True
149
-
150
- return self.to_dict() != other.to_dict()