Skip to content

Commit e1316a8

Browse files
committed
feat: update mysql api
1 parent a8afbb8 commit e1316a8

File tree

186 files changed

+39915
-689
lines changed

Some content is hidden

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

186 files changed

+39915
-689
lines changed

volcenginesdkrdsmysqlv2/__init__.py

Lines changed: 147 additions & 0 deletions
Large diffs are not rendered by default.

volcenginesdkrdsmysqlv2/api/rds_mysql_v2_api.py

Lines changed: 5063 additions & 601 deletions
Large diffs are not rendered by default.

volcenginesdkrdsmysqlv2/models/__init__.py

Lines changed: 147 additions & 0 deletions
Large diffs are not rendered by default.

volcenginesdkrdsmysqlv2/models/account_for_describe_db_accounts_output.py

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,35 +33,71 @@ class AccountForDescribeDBAccountsOutput(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'account_desc': 'str',
3637
'account_name': 'str',
3738
'account_privileges': 'list[AccountPrivilegeForDescribeDBAccountsOutput]',
39+
'account_privileges_info': 'list[AccountPrivilegesInfoForDescribeDBAccountsOutput]',
40+
'account_status': 'str',
3841
'account_type': 'str'
3942
}
4043

4144
attribute_map = {
45+
'account_desc': 'AccountDesc',
4246
'account_name': 'AccountName',
4347
'account_privileges': 'AccountPrivileges',
48+
'account_privileges_info': 'AccountPrivilegesInfo',
49+
'account_status': 'AccountStatus',
4450
'account_type': 'AccountType'
4551
}
4652

47-
def __init__(self, account_name=None, account_privileges=None, account_type=None, _configuration=None): # noqa: E501
53+
def __init__(self, account_desc=None, account_name=None, account_privileges=None, account_privileges_info=None, account_status=None, account_type=None, _configuration=None): # noqa: E501
4854
"""AccountForDescribeDBAccountsOutput - a model defined in Swagger""" # noqa: E501
4955
if _configuration is None:
5056
_configuration = Configuration()
5157
self._configuration = _configuration
5258

59+
self._account_desc = None
5360
self._account_name = None
5461
self._account_privileges = None
62+
self._account_privileges_info = None
63+
self._account_status = None
5564
self._account_type = None
5665
self.discriminator = None
5766

67+
if account_desc is not None:
68+
self.account_desc = account_desc
5869
if account_name is not None:
5970
self.account_name = account_name
6071
if account_privileges is not None:
6172
self.account_privileges = account_privileges
73+
if account_privileges_info is not None:
74+
self.account_privileges_info = account_privileges_info
75+
if account_status is not None:
76+
self.account_status = account_status
6277
if account_type is not None:
6378
self.account_type = account_type
6479

80+
@property
81+
def account_desc(self):
82+
"""Gets the account_desc of this AccountForDescribeDBAccountsOutput. # noqa: E501
83+
84+
85+
:return: The account_desc of this AccountForDescribeDBAccountsOutput. # noqa: E501
86+
:rtype: str
87+
"""
88+
return self._account_desc
89+
90+
@account_desc.setter
91+
def account_desc(self, account_desc):
92+
"""Sets the account_desc of this AccountForDescribeDBAccountsOutput.
93+
94+
95+
:param account_desc: The account_desc of this AccountForDescribeDBAccountsOutput. # noqa: E501
96+
:type: str
97+
"""
98+
99+
self._account_desc = account_desc
100+
65101
@property
66102
def account_name(self):
67103
"""Gets the account_name of this AccountForDescribeDBAccountsOutput. # noqa: E501
@@ -104,6 +140,48 @@ def account_privileges(self, account_privileges):
104140

105141
self._account_privileges = account_privileges
106142

143+
@property
144+
def account_privileges_info(self):
145+
"""Gets the account_privileges_info of this AccountForDescribeDBAccountsOutput. # noqa: E501
146+
147+
148+
:return: The account_privileges_info of this AccountForDescribeDBAccountsOutput. # noqa: E501
149+
:rtype: list[AccountPrivilegesInfoForDescribeDBAccountsOutput]
150+
"""
151+
return self._account_privileges_info
152+
153+
@account_privileges_info.setter
154+
def account_privileges_info(self, account_privileges_info):
155+
"""Sets the account_privileges_info of this AccountForDescribeDBAccountsOutput.
156+
157+
158+
:param account_privileges_info: The account_privileges_info of this AccountForDescribeDBAccountsOutput. # noqa: E501
159+
:type: list[AccountPrivilegesInfoForDescribeDBAccountsOutput]
160+
"""
161+
162+
self._account_privileges_info = account_privileges_info
163+
164+
@property
165+
def account_status(self):
166+
"""Gets the account_status of this AccountForDescribeDBAccountsOutput. # noqa: E501
167+
168+
169+
:return: The account_status of this AccountForDescribeDBAccountsOutput. # noqa: E501
170+
:rtype: str
171+
"""
172+
return self._account_status
173+
174+
@account_status.setter
175+
def account_status(self, account_status):
176+
"""Sets the account_status of this AccountForDescribeDBAccountsOutput.
177+
178+
179+
:param account_status: The account_status of this AccountForDescribeDBAccountsOutput. # noqa: E501
180+
:type: str
181+
"""
182+
183+
self._account_status = account_status
184+
107185
@property
108186
def account_type(self):
109187
"""Gets the account_type of this AccountForDescribeDBAccountsOutput. # noqa: E501
Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
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 AccountPrivilegesInfoForCreateDBAccountInput(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+
'account_privilege': 'str',
37+
'account_privilege_custom': 'str',
38+
'db_name': 'str'
39+
}
40+
41+
attribute_map = {
42+
'account_privilege': 'AccountPrivilege',
43+
'account_privilege_custom': 'AccountPrivilegeCustom',
44+
'db_name': 'DBName'
45+
}
46+
47+
def __init__(self, account_privilege=None, account_privilege_custom=None, db_name=None, _configuration=None): # noqa: E501
48+
"""AccountPrivilegesInfoForCreateDBAccountInput - a model defined in Swagger""" # noqa: E501
49+
if _configuration is None:
50+
_configuration = Configuration()
51+
self._configuration = _configuration
52+
53+
self._account_privilege = None
54+
self._account_privilege_custom = None
55+
self._db_name = None
56+
self.discriminator = None
57+
58+
if account_privilege is not None:
59+
self.account_privilege = account_privilege
60+
if account_privilege_custom is not None:
61+
self.account_privilege_custom = account_privilege_custom
62+
if db_name is not None:
63+
self.db_name = db_name
64+
65+
@property
66+
def account_privilege(self):
67+
"""Gets the account_privilege of this AccountPrivilegesInfoForCreateDBAccountInput. # noqa: E501
68+
69+
70+
:return: The account_privilege of this AccountPrivilegesInfoForCreateDBAccountInput. # noqa: E501
71+
:rtype: str
72+
"""
73+
return self._account_privilege
74+
75+
@account_privilege.setter
76+
def account_privilege(self, account_privilege):
77+
"""Sets the account_privilege of this AccountPrivilegesInfoForCreateDBAccountInput.
78+
79+
80+
:param account_privilege: The account_privilege of this AccountPrivilegesInfoForCreateDBAccountInput. # noqa: E501
81+
:type: str
82+
"""
83+
allowed_values = ["Custom", "DDLOnly", "DMLOnly", "None", "ReadOnly", "ReadWrite"] # noqa: E501
84+
if (self._configuration.client_side_validation and
85+
account_privilege not in allowed_values):
86+
raise ValueError(
87+
"Invalid value for `account_privilege` ({0}), must be one of {1}" # noqa: E501
88+
.format(account_privilege, allowed_values)
89+
)
90+
91+
self._account_privilege = account_privilege
92+
93+
@property
94+
def account_privilege_custom(self):
95+
"""Gets the account_privilege_custom of this AccountPrivilegesInfoForCreateDBAccountInput. # noqa: E501
96+
97+
98+
:return: The account_privilege_custom of this AccountPrivilegesInfoForCreateDBAccountInput. # noqa: E501
99+
:rtype: str
100+
"""
101+
return self._account_privilege_custom
102+
103+
@account_privilege_custom.setter
104+
def account_privilege_custom(self, account_privilege_custom):
105+
"""Sets the account_privilege_custom of this AccountPrivilegesInfoForCreateDBAccountInput.
106+
107+
108+
:param account_privilege_custom: The account_privilege_custom of this AccountPrivilegesInfoForCreateDBAccountInput. # noqa: E501
109+
:type: str
110+
"""
111+
112+
self._account_privilege_custom = account_privilege_custom
113+
114+
@property
115+
def db_name(self):
116+
"""Gets the db_name of this AccountPrivilegesInfoForCreateDBAccountInput. # noqa: E501
117+
118+
119+
:return: The db_name of this AccountPrivilegesInfoForCreateDBAccountInput. # noqa: E501
120+
:rtype: str
121+
"""
122+
return self._db_name
123+
124+
@db_name.setter
125+
def db_name(self, db_name):
126+
"""Sets the db_name of this AccountPrivilegesInfoForCreateDBAccountInput.
127+
128+
129+
:param db_name: The db_name of this AccountPrivilegesInfoForCreateDBAccountInput. # noqa: E501
130+
:type: str
131+
"""
132+
133+
self._db_name = db_name
134+
135+
def to_dict(self):
136+
"""Returns the model properties as a dict"""
137+
result = {}
138+
139+
for attr, _ in six.iteritems(self.swagger_types):
140+
value = getattr(self, attr)
141+
if isinstance(value, list):
142+
result[attr] = list(map(
143+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
144+
value
145+
))
146+
elif hasattr(value, "to_dict"):
147+
result[attr] = value.to_dict()
148+
elif isinstance(value, dict):
149+
result[attr] = dict(map(
150+
lambda item: (item[0], item[1].to_dict())
151+
if hasattr(item[1], "to_dict") else item,
152+
value.items()
153+
))
154+
else:
155+
result[attr] = value
156+
if issubclass(AccountPrivilegesInfoForCreateDBAccountInput, dict):
157+
for key, value in self.items():
158+
result[key] = value
159+
160+
return result
161+
162+
def to_str(self):
163+
"""Returns the string representation of the model"""
164+
return pprint.pformat(self.to_dict())
165+
166+
def __repr__(self):
167+
"""For `print` and `pprint`"""
168+
return self.to_str()
169+
170+
def __eq__(self, other):
171+
"""Returns true if both objects are equal"""
172+
if not isinstance(other, AccountPrivilegesInfoForCreateDBAccountInput):
173+
return False
174+
175+
return self.to_dict() == other.to_dict()
176+
177+
def __ne__(self, other):
178+
"""Returns true if both objects are not equal"""
179+
if not isinstance(other, AccountPrivilegesInfoForCreateDBAccountInput):
180+
return True
181+
182+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)