Skip to content

Commit e1a7967

Browse files
author
BitsAdmin
committed
Merge branch 'rds_mysql-Python-2022-01-01-online-601-2024_07_31_11_10_46' into 'integration_2024-08-08_369120306946'
feat: [development task] rds_mysql-601-Python (741518) See merge request iaasng/volcengine-python-sdk!354
2 parents 9e4b6e8 + eddc921 commit e1a7967

File tree

3 files changed

+113
-4
lines changed

3 files changed

+113
-4
lines changed

volcenginesdkrdsmysqlv2/models/describe_backup_decryption_key_response.py

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,72 @@ class DescribeBackupDecryptionKeyResponse(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'decryption_key': 'str',
37+
'iv': 'str'
3638
}
3739

3840
attribute_map = {
41+
'decryption_key': 'DecryptionKey',
42+
'iv': 'Iv'
3943
}
4044

41-
def __init__(self, _configuration=None): # noqa: E501
45+
def __init__(self, decryption_key=None, iv=None, _configuration=None): # noqa: E501
4246
"""DescribeBackupDecryptionKeyResponse - a model defined in Swagger""" # noqa: E501
4347
if _configuration is None:
4448
_configuration = Configuration()
4549
self._configuration = _configuration
50+
51+
self._decryption_key = None
52+
self._iv = None
4653
self.discriminator = None
4754

55+
if decryption_key is not None:
56+
self.decryption_key = decryption_key
57+
if iv is not None:
58+
self.iv = iv
59+
60+
@property
61+
def decryption_key(self):
62+
"""Gets the decryption_key of this DescribeBackupDecryptionKeyResponse. # noqa: E501
63+
64+
65+
:return: The decryption_key of this DescribeBackupDecryptionKeyResponse. # noqa: E501
66+
:rtype: str
67+
"""
68+
return self._decryption_key
69+
70+
@decryption_key.setter
71+
def decryption_key(self, decryption_key):
72+
"""Sets the decryption_key of this DescribeBackupDecryptionKeyResponse.
73+
74+
75+
:param decryption_key: The decryption_key of this DescribeBackupDecryptionKeyResponse. # noqa: E501
76+
:type: str
77+
"""
78+
79+
self._decryption_key = decryption_key
80+
81+
@property
82+
def iv(self):
83+
"""Gets the iv of this DescribeBackupDecryptionKeyResponse. # noqa: E501
84+
85+
86+
:return: The iv of this DescribeBackupDecryptionKeyResponse. # noqa: E501
87+
:rtype: str
88+
"""
89+
return self._iv
90+
91+
@iv.setter
92+
def iv(self, iv):
93+
"""Sets the iv of this DescribeBackupDecryptionKeyResponse.
94+
95+
96+
:param iv: The iv of this DescribeBackupDecryptionKeyResponse. # noqa: E501
97+
:type: str
98+
"""
99+
100+
self._iv = iv
101+
48102
def to_dict(self):
49103
"""Returns the model properties as a dict"""
50104
result = {}

volcenginesdkrdsmysqlv2/models/describe_backup_encryption_status_response.py

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,72 @@ class DescribeBackupEncryptionStatusResponse(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'data_encryption_status': 'str',
37+
'log_encryption_status': 'str'
3638
}
3739

3840
attribute_map = {
41+
'data_encryption_status': 'DataEncryptionStatus',
42+
'log_encryption_status': 'LogEncryptionStatus'
3943
}
4044

41-
def __init__(self, _configuration=None): # noqa: E501
45+
def __init__(self, data_encryption_status=None, log_encryption_status=None, _configuration=None): # noqa: E501
4246
"""DescribeBackupEncryptionStatusResponse - a model defined in Swagger""" # noqa: E501
4347
if _configuration is None:
4448
_configuration = Configuration()
4549
self._configuration = _configuration
50+
51+
self._data_encryption_status = None
52+
self._log_encryption_status = None
4653
self.discriminator = None
4754

55+
if data_encryption_status is not None:
56+
self.data_encryption_status = data_encryption_status
57+
if log_encryption_status is not None:
58+
self.log_encryption_status = log_encryption_status
59+
60+
@property
61+
def data_encryption_status(self):
62+
"""Gets the data_encryption_status of this DescribeBackupEncryptionStatusResponse. # noqa: E501
63+
64+
65+
:return: The data_encryption_status of this DescribeBackupEncryptionStatusResponse. # noqa: E501
66+
:rtype: str
67+
"""
68+
return self._data_encryption_status
69+
70+
@data_encryption_status.setter
71+
def data_encryption_status(self, data_encryption_status):
72+
"""Sets the data_encryption_status of this DescribeBackupEncryptionStatusResponse.
73+
74+
75+
:param data_encryption_status: The data_encryption_status of this DescribeBackupEncryptionStatusResponse. # noqa: E501
76+
:type: str
77+
"""
78+
79+
self._data_encryption_status = data_encryption_status
80+
81+
@property
82+
def log_encryption_status(self):
83+
"""Gets the log_encryption_status of this DescribeBackupEncryptionStatusResponse. # noqa: E501
84+
85+
86+
:return: The log_encryption_status of this DescribeBackupEncryptionStatusResponse. # noqa: E501
87+
:rtype: str
88+
"""
89+
return self._log_encryption_status
90+
91+
@log_encryption_status.setter
92+
def log_encryption_status(self, log_encryption_status):
93+
"""Sets the log_encryption_status of this DescribeBackupEncryptionStatusResponse.
94+
95+
96+
:param log_encryption_status: The log_encryption_status of this DescribeBackupEncryptionStatusResponse. # noqa: E501
97+
:type: str
98+
"""
99+
100+
self._log_encryption_status = log_encryption_status
101+
48102
def to_dict(self):
49103
"""Returns the model properties as a dict"""
50104
result = {}

volcenginesdkrdsmysqlv2/models/restore_to_existed_instance_request.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ def __init__(self, backup_id=None, restore_time=None, restore_type=None, source_
6565
self.backup_id = backup_id
6666
if restore_time is not None:
6767
self.restore_time = restore_time
68-
if restore_type is not None:
69-
self.restore_type = restore_type
68+
self.restore_type = restore_type
7069
self.source_db_instance_id = source_db_instance_id
7170
if table_meta is not None:
7271
self.table_meta = table_meta
@@ -131,6 +130,8 @@ def restore_type(self, restore_type):
131130
:param restore_type: The restore_type of this RestoreToExistedInstanceRequest. # noqa: E501
132131
:type: str
133132
"""
133+
if self._configuration.client_side_validation and restore_type is None:
134+
raise ValueError("Invalid value for `restore_type`, must not be `None`") # noqa: E501
134135

135136
self._restore_type = restore_type
136137

0 commit comments

Comments
 (0)