Skip to content

Commit b83b402

Browse files
author
BitsAdmin
committed
Merge branch '${development_task_change_source_branch}' into '${development_task_change_target_branch}'
${development_task_title} Author: ${development_task_change_creator} (${development_task_change_creator_email}) Url: ${development_task_url} ProjectId: ${development_task_change_project_id} Iid: ${development_task_change_iid} RepoPath: ${development_task_change_repo_path} Squash Message: ${development_task_squash_commit_message}
2 parents dce01cb + 44468d1 commit b83b402

File tree

91 files changed

+16215
-121
lines changed

Some content is hidden

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

91 files changed

+16215
-121
lines changed

volcenginesdkrdsmysqlv2/__init__.py

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

volcenginesdkrdsmysqlv2/api/rds_mysql_v2_api.py

Lines changed: 1843 additions & 97 deletions
Large diffs are not rendered by default.

volcenginesdkrdsmysqlv2/models/__init__.py

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

0 commit comments

Comments
 (0)