Skip to content

Commit c82fd75

Browse files
author
BitsAdmin
committed
Merge branch 'rds_mysql-Python-2022-01-01-online-1011-2025_03_06_19_59_00' into 'integration_2025-03-06_777772483330'
feat: [development task] rds-mysql-python (1060520) See merge request iaasng/volcengine-python-sdk!528
2 parents 1799c18 + e68cb70 commit c82fd75

File tree

111 files changed

+16171
-352
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+16171
-352
lines changed

volcenginesdkrdsmysqlv2/__init__.py

Lines changed: 61 additions & 1 deletion
Large diffs are not rendered by default.

volcenginesdkrdsmysqlv2/api/rds_mysql_v2_api.py

Lines changed: 1882 additions & 39 deletions
Large diffs are not rendered by default.

volcenginesdkrdsmysqlv2/models/__init__.py

Lines changed: 61 additions & 1 deletion
Large diffs are not rendered by default.

volcenginesdkrdsmysqlv2/models/account_for_describe_db_accounts_output.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,25 @@ class AccountForDescribeDBAccountsOutput(object):
3636
'account_desc': 'str',
3737
'account_name': 'str',
3838
'account_privileges': 'list[AccountPrivilegeForDescribeDBAccountsOutput]',
39+
'account_privileges_sql': 'list[str]',
3940
'account_status': 'str',
4041
'account_type': 'str',
42+
'global_account_privileges': 'list[str]',
4143
'host': 'str'
4244
}
4345

4446
attribute_map = {
4547
'account_desc': 'AccountDesc',
4648
'account_name': 'AccountName',
4749
'account_privileges': 'AccountPrivileges',
50+
'account_privileges_sql': 'AccountPrivilegesSQL',
4851
'account_status': 'AccountStatus',
4952
'account_type': 'AccountType',
53+
'global_account_privileges': 'GlobalAccountPrivileges',
5054
'host': 'Host'
5155
}
5256

53-
def __init__(self, account_desc=None, account_name=None, account_privileges=None, account_status=None, account_type=None, host=None, _configuration=None): # noqa: E501
57+
def __init__(self, account_desc=None, account_name=None, account_privileges=None, account_privileges_sql=None, account_status=None, account_type=None, global_account_privileges=None, host=None, _configuration=None): # noqa: E501
5458
"""AccountForDescribeDBAccountsOutput - a model defined in Swagger""" # noqa: E501
5559
if _configuration is None:
5660
_configuration = Configuration()
@@ -59,8 +63,10 @@ def __init__(self, account_desc=None, account_name=None, account_privileges=None
5963
self._account_desc = None
6064
self._account_name = None
6165
self._account_privileges = None
66+
self._account_privileges_sql = None
6267
self._account_status = None
6368
self._account_type = None
69+
self._global_account_privileges = None
6470
self._host = None
6571
self.discriminator = None
6672

@@ -70,10 +76,14 @@ def __init__(self, account_desc=None, account_name=None, account_privileges=None
7076
self.account_name = account_name
7177
if account_privileges is not None:
7278
self.account_privileges = account_privileges
79+
if account_privileges_sql is not None:
80+
self.account_privileges_sql = account_privileges_sql
7381
if account_status is not None:
7482
self.account_status = account_status
7583
if account_type is not None:
7684
self.account_type = account_type
85+
if global_account_privileges is not None:
86+
self.global_account_privileges = global_account_privileges
7787
if host is not None:
7888
self.host = host
7989

@@ -140,6 +150,27 @@ def account_privileges(self, account_privileges):
140150

141151
self._account_privileges = account_privileges
142152

153+
@property
154+
def account_privileges_sql(self):
155+
"""Gets the account_privileges_sql of this AccountForDescribeDBAccountsOutput. # noqa: E501
156+
157+
158+
:return: The account_privileges_sql of this AccountForDescribeDBAccountsOutput. # noqa: E501
159+
:rtype: list[str]
160+
"""
161+
return self._account_privileges_sql
162+
163+
@account_privileges_sql.setter
164+
def account_privileges_sql(self, account_privileges_sql):
165+
"""Sets the account_privileges_sql of this AccountForDescribeDBAccountsOutput.
166+
167+
168+
:param account_privileges_sql: The account_privileges_sql of this AccountForDescribeDBAccountsOutput. # noqa: E501
169+
:type: list[str]
170+
"""
171+
172+
self._account_privileges_sql = account_privileges_sql
173+
143174
@property
144175
def account_status(self):
145176
"""Gets the account_status of this AccountForDescribeDBAccountsOutput. # noqa: E501
@@ -182,6 +213,27 @@ def account_type(self, account_type):
182213

183214
self._account_type = account_type
184215

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

0 commit comments

Comments
 (0)