volcengine-python-sdk 4.0.20__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 (101) hide show
  1. volcengine_python_sdk-4.0.21.dist-info/METADATA +214 -0
  2. {volcengine_python_sdk-4.0.20.dist-info → volcengine_python_sdk-4.0.21.dist-info}/RECORD +88 -62
  3. {volcengine_python_sdk-4.0.20.dist-info → volcengine_python_sdk-4.0.21.dist-info}/WHEEL +1 -1
  4. volcenginesdkarkruntime/resources/images/images.py +1 -1
  5. volcenginesdkarkruntime/resources/responses/input_items.py +2 -2
  6. volcenginesdkarkruntime/resources/responses/responses.py +4 -1
  7. volcenginesdkarkruntime/types/images/images.py +3 -0
  8. volcenginesdkcore/api_client.py +1 -1
  9. volcenginesdkcore/configuration.py +1 -1
  10. volcenginesdkrdsmysqlv2/__init__.py +39 -25
  11. volcenginesdkrdsmysqlv2/api/rds_mysql_v2_api.py +1347 -1153
  12. volcenginesdkrdsmysqlv2/models/__init__.py +39 -25
  13. volcenginesdkrdsmysqlv2/models/address_for_describe_db_instance_endpoints_output.py +305 -0
  14. volcenginesdkrdsmysqlv2/models/allow_list_for_describe_allow_lists_output.py +27 -1
  15. volcenginesdkrdsmysqlv2/models/basic_info_for_describe_db_instance_detail_output.py +1 -105
  16. volcenginesdkrdsmysqlv2/models/change_object_for_sync_allow_list_output.py +331 -0
  17. volcenginesdkrdsmysqlv2/models/charge_detail_for_describe_db_instance_charge_detail_output.py +383 -0
  18. volcenginesdkrdsmysqlv2/models/create_db_endpoint_request.py +27 -1
  19. volcenginesdkrdsmysqlv2/models/create_db_instance_request.py +27 -1
  20. volcenginesdkrdsmysqlv2/models/create_dr_db_instance_request.py +27 -1
  21. volcenginesdkrdsmysqlv2/models/db_instance_attribute_for_describe_db_instance_attribute_output.py +825 -0
  22. volcenginesdkrdsmysqlv2/models/describe_allow_lists_request.py +29 -3
  23. volcenginesdkrdsmysqlv2/models/describe_backup_policy_response.py +53 -1
  24. volcenginesdkrdsmysqlv2/models/describe_db_disaster_recovery_instances_request.py +124 -0
  25. volcenginesdkrdsmysqlv2/models/describe_db_disaster_recovery_instances_response.py +305 -0
  26. volcenginesdkrdsmysqlv2/models/{describe_db_auto_scaling_config_request.py → describe_db_instance_attribute_request.py} +9 -9
  27. volcenginesdkrdsmysqlv2/models/describe_db_instance_attribute_response.py +123 -0
  28. volcenginesdkrdsmysqlv2/models/describe_db_instance_charge_detail_request.py +124 -0
  29. volcenginesdkrdsmysqlv2/models/describe_db_instance_charge_detail_response.py +123 -0
  30. volcenginesdkrdsmysqlv2/models/describe_db_instance_endpoints_request.py +124 -0
  31. volcenginesdkrdsmysqlv2/models/describe_db_instance_endpoints_response.py +123 -0
  32. volcenginesdkrdsmysqlv2/models/describe_db_instance_ha_config_request.py +124 -0
  33. volcenginesdkrdsmysqlv2/models/{describe_available_cross_region_request.py → describe_db_instance_ha_config_response.py} +36 -37
  34. volcenginesdkrdsmysqlv2/models/describe_db_instance_price_detail_response.py +29 -3
  35. volcenginesdkrdsmysqlv2/models/{describe_cross_backup_policy_request.py → describe_db_instance_tde_request.py} +9 -9
  36. volcenginesdkrdsmysqlv2/models/describe_db_instance_tde_response.py +123 -0
  37. volcenginesdkrdsmysqlv2/models/describe_db_proxy_price_detail_response.py +27 -1
  38. volcenginesdkrdsmysqlv2/models/describe_db_proxy_request.py +124 -0
  39. volcenginesdkrdsmysqlv2/models/describe_db_proxy_response.py +123 -0
  40. volcenginesdkrdsmysqlv2/models/describe_resource_usage_request.py +124 -0
  41. volcenginesdkrdsmysqlv2/models/describe_resource_usage_response.py +565 -0
  42. volcenginesdkrdsmysqlv2/models/disaster_recovery_instance_for_describe_db_disaster_recovery_instances_output.py +279 -0
  43. volcenginesdkrdsmysqlv2/models/endpoint_for_describe_db_instance_detail_output.py +27 -1
  44. volcenginesdkrdsmysqlv2/models/endpoint_for_describe_db_instance_endpoints_output.py +669 -0
  45. volcenginesdkrdsmysqlv2/models/maintenance_window_for_describe_db_instance_attribute_output.py +175 -0
  46. volcenginesdkrdsmysqlv2/models/modify_backup_policy_request.py +53 -1
  47. volcenginesdkrdsmysqlv2/models/modify_backup_policy_response.py +53 -1
  48. volcenginesdkrdsmysqlv2/models/modify_db_endpoint_request.py +53 -1
  49. volcenginesdkrdsmysqlv2/models/modify_db_instance_tde_request.py +281 -0
  50. volcenginesdkrdsmysqlv2/models/{modify_db_auto_scaling_config_response.py → modify_db_instance_tde_response.py} +5 -5
  51. volcenginesdkrdsmysqlv2/models/{upgrade_db_instance_kernel_version_request.py → modify_db_instance_type_request.py} +55 -29
  52. volcenginesdkrdsmysqlv2/models/{restore_to_cross_region_instance_response.py → modify_db_instance_type_response.py} +13 -13
  53. volcenginesdkrdsmysqlv2/models/node_for_describe_db_instance_ha_config_output.py +435 -0
  54. volcenginesdkrdsmysqlv2/models/{node_info_for_restore_to_cross_region_instance_input.py → node_info_for_modify_db_instance_type_input.py} +25 -25
  55. volcenginesdkrdsmysqlv2/models/{modify_db_auto_scaling_config_request.py → proxy_detail_for_describe_db_proxy_output.py} +36 -37
  56. volcenginesdkrdsmysqlv2/models/{describe_available_cross_region_response.py → proxy_node_custom_for_create_db_instance_input.py} +22 -22
  57. volcenginesdkrdsmysqlv2/models/proxy_node_custom_for_create_dr_db_instance_input.py +123 -0
  58. volcenginesdkrdsmysqlv2/models/proxy_node_custom_for_rebuild_db_instance_input.py +123 -0
  59. volcenginesdkrdsmysqlv2/models/proxy_node_custom_for_restore_to_new_instance_input.py +123 -0
  60. volcenginesdkrdsmysqlv2/models/proxy_resource_info_for_describe_db_proxy_output.py +175 -0
  61. volcenginesdkrdsmysqlv2/models/read_only_node_weight_for_describe_db_instance_endpoints_output.py +175 -0
  62. volcenginesdkrdsmysqlv2/models/rebuild_db_instance_request.py +27 -1
  63. volcenginesdkrdsmysqlv2/models/restore_to_new_instance_request.py +27 -1
  64. volcenginesdkrdsmysqlv2/models/sync_allow_list_request.py +150 -0
  65. volcenginesdkrdsmysqlv2/models/sync_allow_list_response.py +123 -0
  66. volcenginesdkrdsmysqlv2/models/{instance_tag_for_restore_to_cross_region_instance_input.py → tag_for_describe_db_instance_attribute_output.py} +13 -13
  67. volcenginesdkresourceshare/__init__.py +12 -0
  68. volcenginesdkresourceshare/api/resource_share_api.py +291 -0
  69. volcenginesdkresourceshare/models/__init__.py +12 -0
  70. volcenginesdkresourceshare/models/create_resource_share_request.py +29 -3
  71. volcenginesdkresourceshare/models/create_resource_share_response.py +29 -1
  72. volcenginesdkresourceshare/models/describe_resource_shares_request.py +31 -6
  73. volcenginesdkresourceshare/models/list_tags_for_resources_request.py +228 -0
  74. volcenginesdkrdsmysqlv2/models/describe_cross_region_backup_db_instances_response.py → volcenginesdkresourceshare/models/list_tags_for_resources_response.py +53 -27
  75. volcenginesdkresourceshare/models/resource_share_for_describe_resource_shares_output.py +27 -1
  76. volcenginesdkresourceshare/models/resource_tag_for_list_tags_for_resources_output.py +201 -0
  77. volcenginesdkresourceshare/models/tag_filter_for_describe_resource_shares_input.py +149 -0
  78. volcenginesdkresourceshare/models/tag_filter_for_list_tags_for_resources_input.py +149 -0
  79. volcenginesdkresourceshare/models/tag_for_create_resource_share_input.py +149 -0
  80. volcenginesdkresourceshare/models/tag_for_describe_resource_shares_output.py +149 -0
  81. volcenginesdkresourceshare/models/tag_for_tag_resources_input.py +151 -0
  82. volcenginesdkresourceshare/models/tag_resources_request.py +176 -0
  83. volcenginesdkrdsmysqlv2/models/upgrade_db_instance_kernel_version_response.py → volcenginesdkresourceshare/models/tag_resources_response.py +6 -6
  84. volcenginesdkresourceshare/models/untag_resources_request.py +176 -0
  85. volcenginesdkrdsmysqlv2/models/modify_db_instance_auto_upgrade_minor_version_response.py → volcenginesdkresourceshare/models/untag_resources_response.py +6 -6
  86. volcengine_python_sdk-4.0.20.dist-info/METADATA +0 -20
  87. volcenginesdkrdsmysqlv2/models/auto_storage_scaling_config_for_restore_to_cross_region_instance_input.py +0 -175
  88. volcenginesdkrdsmysqlv2/models/charge_info_for_restore_to_cross_region_instance_input.py +0 -227
  89. volcenginesdkrdsmysqlv2/models/data_for_describe_cross_region_backup_db_instances_output.py +0 -357
  90. volcenginesdkrdsmysqlv2/models/describe_cross_backup_policy_response.py +0 -227
  91. volcenginesdkrdsmysqlv2/models/describe_cross_region_backup_db_instances_request.py +0 -279
  92. volcenginesdkrdsmysqlv2/models/describe_db_auto_scaling_config_response.py +0 -227
  93. volcenginesdkrdsmysqlv2/models/modify_cross_backup_policy_request.py +0 -228
  94. volcenginesdkrdsmysqlv2/models/modify_cross_backup_policy_response.py +0 -227
  95. volcenginesdkrdsmysqlv2/models/modify_db_instance_auto_upgrade_minor_version_request.py +0 -151
  96. volcenginesdkrdsmysqlv2/models/restore_to_cross_region_instance_request.py +0 -597
  97. volcenginesdkrdsmysqlv2/models/storage_config_for_describe_db_auto_scaling_config_output.py +0 -175
  98. volcenginesdkrdsmysqlv2/models/storage_config_for_modify_db_auto_scaling_config_input.py +0 -175
  99. {volcengine_python_sdk-4.0.20.dist-info → volcengine_python_sdk-4.0.21.dist-info/licenses}/LICENSE.txt +0 -0
  100. {volcengine_python_sdk-4.0.20.dist-info → volcengine_python_sdk-4.0.21.dist-info/licenses}/NOTICE.md +0 -0
  101. {volcengine_python_sdk-4.0.20.dist-info → volcengine_python_sdk-4.0.21.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,175 @@
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 ProxyResourceInfoForDescribeDBProxyOutput(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
+ 'current_proxy_cpu_num': 'int',
37
+ 'max_proxy_cpu_num': 'int',
38
+ 'min_proxy_cpu_num': 'int'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'current_proxy_cpu_num': 'CurrentProxyCpuNum',
43
+ 'max_proxy_cpu_num': 'MaxProxyCpuNum',
44
+ 'min_proxy_cpu_num': 'MinProxyCpuNum'
45
+ }
46
+
47
+ def __init__(self, current_proxy_cpu_num=None, max_proxy_cpu_num=None, min_proxy_cpu_num=None, _configuration=None): # noqa: E501
48
+ """ProxyResourceInfoForDescribeDBProxyOutput - a model defined in Swagger""" # noqa: E501
49
+ if _configuration is None:
50
+ _configuration = Configuration()
51
+ self._configuration = _configuration
52
+
53
+ self._current_proxy_cpu_num = None
54
+ self._max_proxy_cpu_num = None
55
+ self._min_proxy_cpu_num = None
56
+ self.discriminator = None
57
+
58
+ if current_proxy_cpu_num is not None:
59
+ self.current_proxy_cpu_num = current_proxy_cpu_num
60
+ if max_proxy_cpu_num is not None:
61
+ self.max_proxy_cpu_num = max_proxy_cpu_num
62
+ if min_proxy_cpu_num is not None:
63
+ self.min_proxy_cpu_num = min_proxy_cpu_num
64
+
65
+ @property
66
+ def current_proxy_cpu_num(self):
67
+ """Gets the current_proxy_cpu_num of this ProxyResourceInfoForDescribeDBProxyOutput. # noqa: E501
68
+
69
+
70
+ :return: The current_proxy_cpu_num of this ProxyResourceInfoForDescribeDBProxyOutput. # noqa: E501
71
+ :rtype: int
72
+ """
73
+ return self._current_proxy_cpu_num
74
+
75
+ @current_proxy_cpu_num.setter
76
+ def current_proxy_cpu_num(self, current_proxy_cpu_num):
77
+ """Sets the current_proxy_cpu_num of this ProxyResourceInfoForDescribeDBProxyOutput.
78
+
79
+
80
+ :param current_proxy_cpu_num: The current_proxy_cpu_num of this ProxyResourceInfoForDescribeDBProxyOutput. # noqa: E501
81
+ :type: int
82
+ """
83
+
84
+ self._current_proxy_cpu_num = current_proxy_cpu_num
85
+
86
+ @property
87
+ def max_proxy_cpu_num(self):
88
+ """Gets the max_proxy_cpu_num of this ProxyResourceInfoForDescribeDBProxyOutput. # noqa: E501
89
+
90
+
91
+ :return: The max_proxy_cpu_num of this ProxyResourceInfoForDescribeDBProxyOutput. # noqa: E501
92
+ :rtype: int
93
+ """
94
+ return self._max_proxy_cpu_num
95
+
96
+ @max_proxy_cpu_num.setter
97
+ def max_proxy_cpu_num(self, max_proxy_cpu_num):
98
+ """Sets the max_proxy_cpu_num of this ProxyResourceInfoForDescribeDBProxyOutput.
99
+
100
+
101
+ :param max_proxy_cpu_num: The max_proxy_cpu_num of this ProxyResourceInfoForDescribeDBProxyOutput. # noqa: E501
102
+ :type: int
103
+ """
104
+
105
+ self._max_proxy_cpu_num = max_proxy_cpu_num
106
+
107
+ @property
108
+ def min_proxy_cpu_num(self):
109
+ """Gets the min_proxy_cpu_num of this ProxyResourceInfoForDescribeDBProxyOutput. # noqa: E501
110
+
111
+
112
+ :return: The min_proxy_cpu_num of this ProxyResourceInfoForDescribeDBProxyOutput. # noqa: E501
113
+ :rtype: int
114
+ """
115
+ return self._min_proxy_cpu_num
116
+
117
+ @min_proxy_cpu_num.setter
118
+ def min_proxy_cpu_num(self, min_proxy_cpu_num):
119
+ """Sets the min_proxy_cpu_num of this ProxyResourceInfoForDescribeDBProxyOutput.
120
+
121
+
122
+ :param min_proxy_cpu_num: The min_proxy_cpu_num of this ProxyResourceInfoForDescribeDBProxyOutput. # noqa: E501
123
+ :type: int
124
+ """
125
+
126
+ self._min_proxy_cpu_num = min_proxy_cpu_num
127
+
128
+ def to_dict(self):
129
+ """Returns the model properties as a dict"""
130
+ result = {}
131
+
132
+ for attr, _ in six.iteritems(self.swagger_types):
133
+ value = getattr(self, attr)
134
+ if isinstance(value, list):
135
+ result[attr] = list(map(
136
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
137
+ value
138
+ ))
139
+ elif hasattr(value, "to_dict"):
140
+ result[attr] = value.to_dict()
141
+ elif isinstance(value, dict):
142
+ result[attr] = dict(map(
143
+ lambda item: (item[0], item[1].to_dict())
144
+ if hasattr(item[1], "to_dict") else item,
145
+ value.items()
146
+ ))
147
+ else:
148
+ result[attr] = value
149
+ if issubclass(ProxyResourceInfoForDescribeDBProxyOutput, dict):
150
+ for key, value in self.items():
151
+ result[key] = value
152
+
153
+ return result
154
+
155
+ def to_str(self):
156
+ """Returns the string representation of the model"""
157
+ return pprint.pformat(self.to_dict())
158
+
159
+ def __repr__(self):
160
+ """For `print` and `pprint`"""
161
+ return self.to_str()
162
+
163
+ def __eq__(self, other):
164
+ """Returns true if both objects are equal"""
165
+ if not isinstance(other, ProxyResourceInfoForDescribeDBProxyOutput):
166
+ return False
167
+
168
+ return self.to_dict() == other.to_dict()
169
+
170
+ def __ne__(self, other):
171
+ """Returns true if both objects are not equal"""
172
+ if not isinstance(other, ProxyResourceInfoForDescribeDBProxyOutput):
173
+ return True
174
+
175
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,175 @@
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 ReadOnlyNodeWeightForDescribeDBInstanceEndpointsOutput(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
+ 'node_id': 'str',
37
+ 'node_type': 'str',
38
+ 'weight': 'int'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'node_id': 'NodeId',
43
+ 'node_type': 'NodeType',
44
+ 'weight': 'Weight'
45
+ }
46
+
47
+ def __init__(self, node_id=None, node_type=None, weight=None, _configuration=None): # noqa: E501
48
+ """ReadOnlyNodeWeightForDescribeDBInstanceEndpointsOutput - a model defined in Swagger""" # noqa: E501
49
+ if _configuration is None:
50
+ _configuration = Configuration()
51
+ self._configuration = _configuration
52
+
53
+ self._node_id = None
54
+ self._node_type = None
55
+ self._weight = None
56
+ self.discriminator = None
57
+
58
+ if node_id is not None:
59
+ self.node_id = node_id
60
+ if node_type is not None:
61
+ self.node_type = node_type
62
+ if weight is not None:
63
+ self.weight = weight
64
+
65
+ @property
66
+ def node_id(self):
67
+ """Gets the node_id of this ReadOnlyNodeWeightForDescribeDBInstanceEndpointsOutput. # noqa: E501
68
+
69
+
70
+ :return: The node_id of this ReadOnlyNodeWeightForDescribeDBInstanceEndpointsOutput. # noqa: E501
71
+ :rtype: str
72
+ """
73
+ return self._node_id
74
+
75
+ @node_id.setter
76
+ def node_id(self, node_id):
77
+ """Sets the node_id of this ReadOnlyNodeWeightForDescribeDBInstanceEndpointsOutput.
78
+
79
+
80
+ :param node_id: The node_id of this ReadOnlyNodeWeightForDescribeDBInstanceEndpointsOutput. # noqa: E501
81
+ :type: str
82
+ """
83
+
84
+ self._node_id = node_id
85
+
86
+ @property
87
+ def node_type(self):
88
+ """Gets the node_type of this ReadOnlyNodeWeightForDescribeDBInstanceEndpointsOutput. # noqa: E501
89
+
90
+
91
+ :return: The node_type of this ReadOnlyNodeWeightForDescribeDBInstanceEndpointsOutput. # noqa: E501
92
+ :rtype: str
93
+ """
94
+ return self._node_type
95
+
96
+ @node_type.setter
97
+ def node_type(self, node_type):
98
+ """Sets the node_type of this ReadOnlyNodeWeightForDescribeDBInstanceEndpointsOutput.
99
+
100
+
101
+ :param node_type: The node_type of this ReadOnlyNodeWeightForDescribeDBInstanceEndpointsOutput. # noqa: E501
102
+ :type: str
103
+ """
104
+
105
+ self._node_type = node_type
106
+
107
+ @property
108
+ def weight(self):
109
+ """Gets the weight of this ReadOnlyNodeWeightForDescribeDBInstanceEndpointsOutput. # noqa: E501
110
+
111
+
112
+ :return: The weight of this ReadOnlyNodeWeightForDescribeDBInstanceEndpointsOutput. # noqa: E501
113
+ :rtype: int
114
+ """
115
+ return self._weight
116
+
117
+ @weight.setter
118
+ def weight(self, weight):
119
+ """Sets the weight of this ReadOnlyNodeWeightForDescribeDBInstanceEndpointsOutput.
120
+
121
+
122
+ :param weight: The weight of this ReadOnlyNodeWeightForDescribeDBInstanceEndpointsOutput. # noqa: E501
123
+ :type: int
124
+ """
125
+
126
+ self._weight = weight
127
+
128
+ def to_dict(self):
129
+ """Returns the model properties as a dict"""
130
+ result = {}
131
+
132
+ for attr, _ in six.iteritems(self.swagger_types):
133
+ value = getattr(self, attr)
134
+ if isinstance(value, list):
135
+ result[attr] = list(map(
136
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
137
+ value
138
+ ))
139
+ elif hasattr(value, "to_dict"):
140
+ result[attr] = value.to_dict()
141
+ elif isinstance(value, dict):
142
+ result[attr] = dict(map(
143
+ lambda item: (item[0], item[1].to_dict())
144
+ if hasattr(item[1], "to_dict") else item,
145
+ value.items()
146
+ ))
147
+ else:
148
+ result[attr] = value
149
+ if issubclass(ReadOnlyNodeWeightForDescribeDBInstanceEndpointsOutput, dict):
150
+ for key, value in self.items():
151
+ result[key] = value
152
+
153
+ return result
154
+
155
+ def to_str(self):
156
+ """Returns the string representation of the model"""
157
+ return pprint.pformat(self.to_dict())
158
+
159
+ def __repr__(self):
160
+ """For `print` and `pprint`"""
161
+ return self.to_str()
162
+
163
+ def __eq__(self, other):
164
+ """Returns true if both objects are equal"""
165
+ if not isinstance(other, ReadOnlyNodeWeightForDescribeDBInstanceEndpointsOutput):
166
+ return False
167
+
168
+ return self.to_dict() == other.to_dict()
169
+
170
+ def __ne__(self, other):
171
+ """Returns true if both objects are not equal"""
172
+ if not isinstance(other, ReadOnlyNodeWeightForDescribeDBInstanceEndpointsOutput):
173
+ return True
174
+
175
+ return self.to_dict() != other.to_dict()
@@ -45,6 +45,7 @@ class RebuildDBInstanceRequest(object):
45
45
  'node_info': 'list[NodeInfoForRebuildDBInstanceInput]',
46
46
  'port': 'int',
47
47
  'project_name': 'str',
48
+ 'proxy_node_custom': 'ProxyNodeCustomForRebuildDBInstanceInput',
48
49
  'request_source': 'str',
49
50
  'storage_space': 'int',
50
51
  'storage_type': 'str',
@@ -65,6 +66,7 @@ class RebuildDBInstanceRequest(object):
65
66
  'node_info': 'NodeInfo',
66
67
  'port': 'Port',
67
68
  'project_name': 'ProjectName',
69
+ 'proxy_node_custom': 'ProxyNodeCustom',
68
70
  'request_source': 'RequestSource',
69
71
  'storage_space': 'StorageSpace',
70
72
  'storage_type': 'StorageType',
@@ -72,7 +74,7 @@ class RebuildDBInstanceRequest(object):
72
74
  'vpc_id': 'VpcId'
73
75
  }
74
76
 
75
- def __init__(self, allow_list_ids=None, auto_storage_scaling_config=None, backup_id=None, charge_info=None, db_param_group_id=None, deletion_protection=None, instance_id=None, instance_name=None, instance_tags=None, node_info=None, port=None, project_name=None, request_source=None, storage_space=None, storage_type=None, subnet_id=None, vpc_id=None, _configuration=None): # noqa: E501
77
+ def __init__(self, allow_list_ids=None, auto_storage_scaling_config=None, backup_id=None, charge_info=None, db_param_group_id=None, deletion_protection=None, instance_id=None, instance_name=None, instance_tags=None, node_info=None, port=None, project_name=None, proxy_node_custom=None, request_source=None, storage_space=None, storage_type=None, subnet_id=None, vpc_id=None, _configuration=None): # noqa: E501
76
78
  """RebuildDBInstanceRequest - a model defined in Swagger""" # noqa: E501
77
79
  if _configuration is None:
78
80
  _configuration = Configuration()
@@ -90,6 +92,7 @@ class RebuildDBInstanceRequest(object):
90
92
  self._node_info = None
91
93
  self._port = None
92
94
  self._project_name = None
95
+ self._proxy_node_custom = None
93
96
  self._request_source = None
94
97
  self._storage_space = None
95
98
  self._storage_type = None
@@ -120,6 +123,8 @@ class RebuildDBInstanceRequest(object):
120
123
  self.port = port
121
124
  if project_name is not None:
122
125
  self.project_name = project_name
126
+ if proxy_node_custom is not None:
127
+ self.proxy_node_custom = proxy_node_custom
123
128
  if request_source is not None:
124
129
  self.request_source = request_source
125
130
  if storage_space is not None:
@@ -385,6 +390,27 @@ class RebuildDBInstanceRequest(object):
385
390
 
386
391
  self._project_name = project_name
387
392
 
393
+ @property
394
+ def proxy_node_custom(self):
395
+ """Gets the proxy_node_custom of this RebuildDBInstanceRequest. # noqa: E501
396
+
397
+
398
+ :return: The proxy_node_custom of this RebuildDBInstanceRequest. # noqa: E501
399
+ :rtype: ProxyNodeCustomForRebuildDBInstanceInput
400
+ """
401
+ return self._proxy_node_custom
402
+
403
+ @proxy_node_custom.setter
404
+ def proxy_node_custom(self, proxy_node_custom):
405
+ """Sets the proxy_node_custom of this RebuildDBInstanceRequest.
406
+
407
+
408
+ :param proxy_node_custom: The proxy_node_custom of this RebuildDBInstanceRequest. # noqa: E501
409
+ :type: ProxyNodeCustomForRebuildDBInstanceInput
410
+ """
411
+
412
+ self._proxy_node_custom = proxy_node_custom
413
+
388
414
  @property
389
415
  def request_source(self):
390
416
  """Gets the request_source of this RebuildDBInstanceRequest. # noqa: E501
@@ -44,6 +44,7 @@ class RestoreToNewInstanceRequest(object):
44
44
  'node_info': 'list[NodeInfoForRestoreToNewInstanceInput]',
45
45
  'port': 'int',
46
46
  'project_name': 'str',
47
+ 'proxy_node_custom': 'ProxyNodeCustomForRestoreToNewInstanceInput',
47
48
  'restore_time': 'str',
48
49
  'src_instance_id': 'str',
49
50
  'storage_space': 'int',
@@ -64,6 +65,7 @@ class RestoreToNewInstanceRequest(object):
64
65
  'node_info': 'NodeInfo',
65
66
  'port': 'Port',
66
67
  'project_name': 'ProjectName',
68
+ 'proxy_node_custom': 'ProxyNodeCustom',
67
69
  'restore_time': 'RestoreTime',
68
70
  'src_instance_id': 'SrcInstanceId',
69
71
  'storage_space': 'StorageSpace',
@@ -72,7 +74,7 @@ class RestoreToNewInstanceRequest(object):
72
74
  'vpc_id': 'VpcId'
73
75
  }
74
76
 
75
- def __init__(self, allow_list_ids=None, auto_storage_scaling_config=None, backup_id=None, charge_info=None, db_param_group_id=None, deletion_protection=None, instance_name=None, instance_tags=None, node_info=None, port=None, project_name=None, restore_time=None, src_instance_id=None, storage_space=None, storage_type=None, subnet_id=None, vpc_id=None, _configuration=None): # noqa: E501
77
+ def __init__(self, allow_list_ids=None, auto_storage_scaling_config=None, backup_id=None, charge_info=None, db_param_group_id=None, deletion_protection=None, instance_name=None, instance_tags=None, node_info=None, port=None, project_name=None, proxy_node_custom=None, restore_time=None, src_instance_id=None, storage_space=None, storage_type=None, subnet_id=None, vpc_id=None, _configuration=None): # noqa: E501
76
78
  """RestoreToNewInstanceRequest - a model defined in Swagger""" # noqa: E501
77
79
  if _configuration is None:
78
80
  _configuration = Configuration()
@@ -89,6 +91,7 @@ class RestoreToNewInstanceRequest(object):
89
91
  self._node_info = None
90
92
  self._port = None
91
93
  self._project_name = None
94
+ self._proxy_node_custom = None
92
95
  self._restore_time = None
93
96
  self._src_instance_id = None
94
97
  self._storage_space = None
@@ -119,6 +122,8 @@ class RestoreToNewInstanceRequest(object):
119
122
  self.port = port
120
123
  if project_name is not None:
121
124
  self.project_name = project_name
125
+ if proxy_node_custom is not None:
126
+ self.proxy_node_custom = proxy_node_custom
122
127
  if restore_time is not None:
123
128
  self.restore_time = restore_time
124
129
  self.src_instance_id = src_instance_id
@@ -359,6 +364,27 @@ class RestoreToNewInstanceRequest(object):
359
364
 
360
365
  self._project_name = project_name
361
366
 
367
+ @property
368
+ def proxy_node_custom(self):
369
+ """Gets the proxy_node_custom of this RestoreToNewInstanceRequest. # noqa: E501
370
+
371
+
372
+ :return: The proxy_node_custom of this RestoreToNewInstanceRequest. # noqa: E501
373
+ :rtype: ProxyNodeCustomForRestoreToNewInstanceInput
374
+ """
375
+ return self._proxy_node_custom
376
+
377
+ @proxy_node_custom.setter
378
+ def proxy_node_custom(self, proxy_node_custom):
379
+ """Sets the proxy_node_custom of this RestoreToNewInstanceRequest.
380
+
381
+
382
+ :param proxy_node_custom: The proxy_node_custom of this RestoreToNewInstanceRequest. # noqa: E501
383
+ :type: ProxyNodeCustomForRestoreToNewInstanceInput
384
+ """
385
+
386
+ self._proxy_node_custom = proxy_node_custom
387
+
362
388
  @property
363
389
  def restore_time(self):
364
390
  """Gets the restore_time of this RestoreToNewInstanceRequest. # noqa: E501
@@ -0,0 +1,150 @@
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 SyncAllowListRequest(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
+ 'allow_list_id': 'str',
37
+ 'dry_run': 'bool'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'allow_list_id': 'AllowListId',
42
+ 'dry_run': 'DryRun'
43
+ }
44
+
45
+ def __init__(self, allow_list_id=None, dry_run=None, _configuration=None): # noqa: E501
46
+ """SyncAllowListRequest - a model defined in Swagger""" # noqa: E501
47
+ if _configuration is None:
48
+ _configuration = Configuration()
49
+ self._configuration = _configuration
50
+
51
+ self._allow_list_id = None
52
+ self._dry_run = None
53
+ self.discriminator = None
54
+
55
+ self.allow_list_id = allow_list_id
56
+ if dry_run is not None:
57
+ self.dry_run = dry_run
58
+
59
+ @property
60
+ def allow_list_id(self):
61
+ """Gets the allow_list_id of this SyncAllowListRequest. # noqa: E501
62
+
63
+
64
+ :return: The allow_list_id of this SyncAllowListRequest. # noqa: E501
65
+ :rtype: str
66
+ """
67
+ return self._allow_list_id
68
+
69
+ @allow_list_id.setter
70
+ def allow_list_id(self, allow_list_id):
71
+ """Sets the allow_list_id of this SyncAllowListRequest.
72
+
73
+
74
+ :param allow_list_id: The allow_list_id of this SyncAllowListRequest. # noqa: E501
75
+ :type: str
76
+ """
77
+ if self._configuration.client_side_validation and allow_list_id is None:
78
+ raise ValueError("Invalid value for `allow_list_id`, must not be `None`") # noqa: E501
79
+
80
+ self._allow_list_id = allow_list_id
81
+
82
+ @property
83
+ def dry_run(self):
84
+ """Gets the dry_run of this SyncAllowListRequest. # noqa: E501
85
+
86
+
87
+ :return: The dry_run of this SyncAllowListRequest. # noqa: E501
88
+ :rtype: bool
89
+ """
90
+ return self._dry_run
91
+
92
+ @dry_run.setter
93
+ def dry_run(self, dry_run):
94
+ """Sets the dry_run of this SyncAllowListRequest.
95
+
96
+
97
+ :param dry_run: The dry_run of this SyncAllowListRequest. # noqa: E501
98
+ :type: bool
99
+ """
100
+
101
+ self._dry_run = dry_run
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(SyncAllowListRequest, 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, SyncAllowListRequest):
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, SyncAllowListRequest):
148
+ return True
149
+
150
+ return self.to_dict() != other.to_dict()