baiducloud-python-sdk-vdb 0.0.1__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.
Files changed (74) hide show
  1. baiducloud_python_sdk_vdb/__init__.py +5 -0
  2. baiducloud_python_sdk_vdb/api/__init__.py +0 -0
  3. baiducloud_python_sdk_vdb/api/vdb_client.py +1126 -0
  4. baiducloud_python_sdk_vdb/models/__init__.py +69 -0
  5. baiducloud_python_sdk_vdb/models/account.py +58 -0
  6. baiducloud_python_sdk_vdb/models/account_list_using_get_request.py +64 -0
  7. baiducloud_python_sdk_vdb/models/account_list_using_get_response.py +62 -0
  8. baiducloud_python_sdk_vdb/models/az_info.py +74 -0
  9. baiducloud_python_sdk_vdb/models/batch_record.py +124 -0
  10. baiducloud_python_sdk_vdb/models/bind_eip_using_post_request.py +72 -0
  11. baiducloud_python_sdk_vdb/models/create_instance_using_post_request.py +58 -0
  12. baiducloud_python_sdk_vdb/models/create_instance_using_post_response.py +77 -0
  13. baiducloud_python_sdk_vdb/models/data_node.py +90 -0
  14. baiducloud_python_sdk_vdb/models/delete_instance_using_delete_request.py +64 -0
  15. baiducloud_python_sdk_vdb/models/delete_record_using_delete_request.py +76 -0
  16. baiducloud_python_sdk_vdb/models/delete_recycler_instance_request.py +64 -0
  17. baiducloud_python_sdk_vdb/models/describe_instance_configs_request.py +58 -0
  18. baiducloud_python_sdk_vdb/models/get_config_using_get_request.py +64 -0
  19. baiducloud_python_sdk_vdb/models/get_config_using_get_response.py +77 -0
  20. baiducloud_python_sdk_vdb/models/get_free_instance_quota_response.py +61 -0
  21. baiducloud_python_sdk_vdb/models/get_instance_list_using_get_request.py +64 -0
  22. baiducloud_python_sdk_vdb/models/get_instance_list_using_get_response.py +62 -0
  23. baiducloud_python_sdk_vdb/models/get_node_spec_list_using_get_request.py +58 -0
  24. baiducloud_python_sdk_vdb/models/get_price_using_post_request.py +58 -0
  25. baiducloud_python_sdk_vdb/models/get_price_using_post_response.py +110 -0
  26. baiducloud_python_sdk_vdb/models/get_quota_using_get_request.py +64 -0
  27. baiducloud_python_sdk_vdb/models/get_quota_using_get_response.py +61 -0
  28. baiducloud_python_sdk_vdb/models/get_tls_certificate_using_get_request.py +64 -0
  29. baiducloud_python_sdk_vdb/models/get_tls_certificate_using_get_response.py +61 -0
  30. baiducloud_python_sdk_vdb/models/get_tls_info_using_get_request.py +64 -0
  31. baiducloud_python_sdk_vdb/models/get_tls_info_using_get_response.py +85 -0
  32. baiducloud_python_sdk_vdb/models/getinstancelistusingget1_request.py +58 -0
  33. baiducloud_python_sdk_vdb/models/getinstancelistusingget1_response.py +64 -0
  34. baiducloud_python_sdk_vdb/models/instance.py +504 -0
  35. baiducloud_python_sdk_vdb/models/instance_config_user_config.py +66 -0
  36. baiducloud_python_sdk_vdb/models/instance_detail_using_get_request.py +64 -0
  37. baiducloud_python_sdk_vdb/models/instance_detail_using_get_response.py +497 -0
  38. baiducloud_python_sdk_vdb/models/list_records_using_get_request.py +82 -0
  39. baiducloud_python_sdk_vdb/models/list_records_using_get_response.py +70 -0
  40. baiducloud_python_sdk_vdb/models/log_service.py +82 -0
  41. baiducloud_python_sdk_vdb/models/logging_service.py +82 -0
  42. baiducloud_python_sdk_vdb/models/manual_backup_using_post_request.py +72 -0
  43. baiducloud_python_sdk_vdb/models/milvus_component.py +82 -0
  44. baiducloud_python_sdk_vdb/models/milvus_node.py +115 -0
  45. baiducloud_python_sdk_vdb/models/modify_instance_config_request.py +77 -0
  46. baiducloud_python_sdk_vdb/models/modify_password_using_post_request.py +88 -0
  47. baiducloud_python_sdk_vdb/models/modify_public_access_request.py +66 -0
  48. baiducloud_python_sdk_vdb/models/modify_tls_using_put_request.py +74 -0
  49. baiducloud_python_sdk_vdb/models/multi_year_result.py +66 -0
  50. baiducloud_python_sdk_vdb/models/password_using_get_request.py +70 -0
  51. baiducloud_python_sdk_vdb/models/password_using_get_response.py +69 -0
  52. baiducloud_python_sdk_vdb/models/proxy.py +90 -0
  53. baiducloud_python_sdk_vdb/models/record.py +144 -0
  54. baiducloud_python_sdk_vdb/models/recover_instance_using_post_request.py +64 -0
  55. baiducloud_python_sdk_vdb/models/recover_using_post_request.py +88 -0
  56. baiducloud_python_sdk_vdb/models/resize_instance_using_post_request.py +179 -0
  57. baiducloud_python_sdk_vdb/models/resize_instance_using_post_response.py +61 -0
  58. baiducloud_python_sdk_vdb/models/set_comment_using_post_request.py +88 -0
  59. baiducloud_python_sdk_vdb/models/set_config_using_post_request.py +90 -0
  60. baiducloud_python_sdk_vdb/models/subnet.py +90 -0
  61. baiducloud_python_sdk_vdb/models/target_package.py +74 -0
  62. baiducloud_python_sdk_vdb/models/unbind_eip_using_post_request.py +64 -0
  63. baiducloud_python_sdk_vdb/models/update_instance_domain_request.py +72 -0
  64. baiducloud_python_sdk_vdb/models/update_instance_name_request.py +72 -0
  65. baiducloud_python_sdk_vdb/models/vdb_auto_renew_rule.py +66 -0
  66. baiducloud_python_sdk_vdb/models/vdb_pricing_query_response.py +166 -0
  67. baiducloud_python_sdk_vdb/models/zone_detail.py +133 -0
  68. baiducloud_python_sdk_vdb/models/zone_list_using_get_request.py +64 -0
  69. baiducloud_python_sdk_vdb/models/zone_list_using_get_response.py +62 -0
  70. baiducloud_python_sdk_vdb-0.0.1.dist-info/LICENSE +177 -0
  71. baiducloud_python_sdk_vdb-0.0.1.dist-info/METADATA +76 -0
  72. baiducloud_python_sdk_vdb-0.0.1.dist-info/RECORD +74 -0
  73. baiducloud_python_sdk_vdb-0.0.1.dist-info/WHEEL +5 -0
  74. baiducloud_python_sdk_vdb-0.0.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,74 @@
1
+ """
2
+ Request entity for ModifyTLSUsingPUTRequest information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class ModifyTLSUsingPUTRequest(AbstractModel):
9
+ """
10
+ Request entity for ModifyTLSUsingPUTRequest operation.
11
+
12
+ This class encapsulates all parameters for the API request.
13
+ """
14
+
15
+ def __init__(self, engine_type=None, action=None, instance_id=None):
16
+ """
17
+ Initialize ModifyTLSUsingPUTRequest request entity.
18
+
19
+ :param engine_type: engine_type parameter
20
+ :type engine_type: str (optional)
21
+
22
+ :param action: action parameter
23
+ :type action: str (optional)
24
+
25
+ :param instance_id: instance_id parameter
26
+ :type instance_id: str (optional)
27
+ """
28
+ super().__init__()
29
+ self.engine_type = engine_type
30
+ self.action = action
31
+ self.instance_id = instance_id
32
+
33
+ def to_dict(self):
34
+ """
35
+ Convert the request entity to a dictionary representation.
36
+
37
+ Nested model objects are recursively converted to dictionaries.
38
+
39
+ :return: Dictionary representation of the request
40
+ :rtype: dict
41
+ """
42
+ _map = super().to_dict()
43
+ if _map is not None:
44
+ return _map
45
+ result = dict()
46
+ if self.action is not None:
47
+ result['action'] = self.action
48
+ if self.instance_id is not None:
49
+ result['instanceId'] = self.instance_id
50
+ return result
51
+
52
+ def from_dict(self, m):
53
+ """
54
+ Populate the request entity from a dictionary.
55
+
56
+ Nested dictionaries are recursively converted to model objects.
57
+
58
+ :param m: Dictionary containing request data
59
+ :type m: dict
60
+
61
+ :return: Self reference for method chaining
62
+ :rtype: ModifyTLSUsingPUTRequest
63
+
64
+ :raises TypeError: If input is not a dictionary or field type mismatch
65
+ :raises ValueError: If nested model conversion fails
66
+ """
67
+ m = m or dict()
68
+ if m.get('engineType') is not None:
69
+ self.engine_type = m.get('engineType')
70
+ if m.get('action') is not None:
71
+ self.action = m.get('action')
72
+ if m.get('instanceId') is not None:
73
+ self.instance_id = m.get('instanceId')
74
+ return self
@@ -0,0 +1,66 @@
1
+ """
2
+ MultiYearResult information
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class MultiYearResult(AbstractModel):
9
+ """
10
+ MultiYearResult
11
+ """
12
+
13
+ def __init__(self, multi_discount=None, multi_year=None):
14
+ """
15
+ Initialize MultiYearResult instance.
16
+
17
+ :param multi_discount:
18
+ :type multi_discount: float (optional)
19
+
20
+ :param multi_year:
21
+ :type multi_year: float (optional)
22
+ """
23
+ super().__init__()
24
+ self.multi_discount = multi_discount
25
+ self.multi_year = multi_year
26
+
27
+ def to_dict(self):
28
+ """
29
+ Convert the model instance to a dictionary representation.
30
+
31
+ Nested model objects are recursively converted to dictionaries.
32
+
33
+ :return: Dictionary representation of the model
34
+ :rtype: dict
35
+ """
36
+ _map = super().to_dict()
37
+ if _map is not None:
38
+ return _map
39
+ result = dict()
40
+ if self.multi_discount is not None:
41
+ result['multiDiscount'] = self.multi_discount
42
+ if self.multi_year is not None:
43
+ result['multiYear'] = self.multi_year
44
+ return result
45
+
46
+ def from_dict(self, m):
47
+ """
48
+ Populate the model instance from a dictionary.
49
+
50
+ Nested dictionaries are recursively converted to model objects.
51
+
52
+ :param m: Dictionary containing model data
53
+ :type m: dict
54
+
55
+ :return: Self reference for method chaining
56
+ :rtype: MultiYearResult
57
+
58
+ :raises TypeError: If input is not a dictionary type
59
+ :raises ValueError: If nested model conversion fails
60
+ """
61
+ m = m or dict()
62
+ if m.get('multiDiscount') is not None:
63
+ self.multi_discount = m.get('multiDiscount')
64
+ if m.get('multiYear') is not None:
65
+ self.multi_year = m.get('multiYear')
66
+ return self
@@ -0,0 +1,70 @@
1
+ """
2
+ Request entity for PasswordUsingGetRequest information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class PasswordUsingGetRequest(AbstractModel):
9
+ """
10
+ Request entity for PasswordUsingGetRequest operation.
11
+
12
+ This class encapsulates all parameters for the API request.
13
+ """
14
+
15
+ def __init__(self, instance_id, username, engine_type=None):
16
+ """
17
+ Initialize PasswordUsingGetRequest request entity.
18
+
19
+ :param instance_id: instance_id parameter
20
+ :type instance_id: str (required)
21
+
22
+ :param username: username parameter
23
+ :type username: str (required)
24
+
25
+ :param engine_type: engine_type parameter
26
+ :type engine_type: str (optional)
27
+ """
28
+ super().__init__()
29
+ self.instance_id = instance_id
30
+ self.username = username
31
+ self.engine_type = engine_type
32
+
33
+ def to_dict(self):
34
+ """
35
+ Convert the request entity to a dictionary representation.
36
+
37
+ Nested model objects are recursively converted to dictionaries.
38
+
39
+ :return: Dictionary representation of the request
40
+ :rtype: dict
41
+ """
42
+ _map = super().to_dict()
43
+ if _map is not None:
44
+ return _map
45
+ result = dict()
46
+ return result
47
+
48
+ def from_dict(self, m):
49
+ """
50
+ Populate the request entity from a dictionary.
51
+
52
+ Nested dictionaries are recursively converted to model objects.
53
+
54
+ :param m: Dictionary containing request data
55
+ :type m: dict
56
+
57
+ :return: Self reference for method chaining
58
+ :rtype: PasswordUsingGetRequest
59
+
60
+ :raises TypeError: If input is not a dictionary or field type mismatch
61
+ :raises ValueError: If nested model conversion fails
62
+ """
63
+ m = m or dict()
64
+ if m.get('instanceId') is not None:
65
+ self.instance_id = m.get('instanceId')
66
+ if m.get('username') is not None:
67
+ self.username = m.get('username')
68
+ if m.get('engineType') is not None:
69
+ self.engine_type = m.get('engineType')
70
+ return self
@@ -0,0 +1,69 @@
1
+ """
2
+ Request entity for PasswordUsingGETResponse information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.bce_response import BceResponse
6
+
7
+
8
+ class PasswordUsingGETResponse(BceResponse):
9
+ """
10
+ PasswordUsingGETResponse
11
+ """
12
+
13
+ def __init__(self, password=None, username=None):
14
+ """
15
+ Initialize PasswordUsingGETResponse response.
16
+
17
+ :param password: password field
18
+ :type password: str (optional)
19
+
20
+ :param username: username field
21
+ :type username: str (optional)
22
+ """
23
+ super().__init__()
24
+ self.password = password
25
+ self.username = username
26
+
27
+ def to_dict(self):
28
+ """
29
+ Convert the response instance to a dictionary representation.
30
+
31
+ Includes metadata from the parent BceResponse class.
32
+ Nested model objects are recursively converted to dictionaries.
33
+
34
+ :return: Dictionary representation of the response
35
+ :rtype: dict
36
+ """
37
+ _map = super().to_dict()
38
+ if _map is not None:
39
+ return _map
40
+ result = dict()
41
+ if self.metadata is not None:
42
+ result['metadata'] = dict(self.metadata)
43
+ if self.password is not None:
44
+ result['password'] = self.password
45
+ if self.username is not None:
46
+ result['username'] = self.username
47
+ return result
48
+
49
+ def from_dict(self, m):
50
+ """
51
+ Populate the response instance from a dictionary.
52
+
53
+ Nested dictionaries are recursively converted to model objects.
54
+
55
+ :param m: Dictionary containing response data
56
+ :type m: dict
57
+
58
+ :return: Self reference for method chaining
59
+ :rtype: PasswordUsingGETResponse
60
+
61
+ :raises TypeError: If input is not a dictionary or field type mismatch
62
+ :raises ValueError: If nested model conversion fails
63
+ """
64
+ m = m or dict()
65
+ if m.get('password') is not None:
66
+ self.password = m.get('password')
67
+ if m.get('username') is not None:
68
+ self.username = m.get('username')
69
+ return self
@@ -0,0 +1,90 @@
1
+ """
2
+ Proxy information
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class Proxy(AbstractModel):
9
+ """
10
+ Proxy
11
+ """
12
+
13
+ def __init__(self, fixed_ip=None, flavor_in_gb=None, floating_ip=None, node_show_id=None, port=None):
14
+ """
15
+ Initialize Proxy instance.
16
+
17
+ :param fixed_ip:
18
+ :type fixed_ip: str (optional)
19
+
20
+ :param flavor_in_gb:
21
+ :type flavor_in_gb: float (optional)
22
+
23
+ :param floating_ip:
24
+ :type floating_ip: str (optional)
25
+
26
+ :param node_show_id:
27
+ :type node_show_id: str (optional)
28
+
29
+ :param port:
30
+ :type port: int (optional)
31
+ """
32
+ super().__init__()
33
+ self.fixed_ip = fixed_ip
34
+ self.flavor_in_gb = flavor_in_gb
35
+ self.floating_ip = floating_ip
36
+ self.node_show_id = node_show_id
37
+ self.port = port
38
+
39
+ def to_dict(self):
40
+ """
41
+ Convert the model instance to a dictionary representation.
42
+
43
+ Nested model objects are recursively converted to dictionaries.
44
+
45
+ :return: Dictionary representation of the model
46
+ :rtype: dict
47
+ """
48
+ _map = super().to_dict()
49
+ if _map is not None:
50
+ return _map
51
+ result = dict()
52
+ if self.fixed_ip is not None:
53
+ result['fixedIp'] = self.fixed_ip
54
+ if self.flavor_in_gb is not None:
55
+ result['flavorInGB'] = self.flavor_in_gb
56
+ if self.floating_ip is not None:
57
+ result['floatingIp'] = self.floating_ip
58
+ if self.node_show_id is not None:
59
+ result['nodeShowID'] = self.node_show_id
60
+ if self.port is not None:
61
+ result['port'] = self.port
62
+ return result
63
+
64
+ def from_dict(self, m):
65
+ """
66
+ Populate the model instance from a dictionary.
67
+
68
+ Nested dictionaries are recursively converted to model objects.
69
+
70
+ :param m: Dictionary containing model data
71
+ :type m: dict
72
+
73
+ :return: Self reference for method chaining
74
+ :rtype: Proxy
75
+
76
+ :raises TypeError: If input is not a dictionary type
77
+ :raises ValueError: If nested model conversion fails
78
+ """
79
+ m = m or dict()
80
+ if m.get('fixedIp') is not None:
81
+ self.fixed_ip = m.get('fixedIp')
82
+ if m.get('flavorInGB') is not None:
83
+ self.flavor_in_gb = m.get('flavorInGB')
84
+ if m.get('floatingIp') is not None:
85
+ self.floating_ip = m.get('floatingIp')
86
+ if m.get('nodeShowID') is not None:
87
+ self.node_show_id = m.get('nodeShowID')
88
+ if m.get('port') is not None:
89
+ self.port = m.get('port')
90
+ return self
@@ -0,0 +1,144 @@
1
+ """
2
+ Record information
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+ from baiducloud_python_sdk_vdb.models.batch_record import BatchRecord
8
+
9
+
10
+ class Record(AbstractModel):
11
+ """
12
+ Record
13
+ """
14
+
15
+ def __init__(
16
+ self,
17
+ backup_type=None,
18
+ batch_id=None,
19
+ batch_records=None,
20
+ comment=None,
21
+ end_time=None,
22
+ recoverable=None,
23
+ start_time=None,
24
+ status=None,
25
+ storage_type=None,
26
+ total_size_bytes=None,
27
+ ):
28
+ """
29
+ Initialize Record instance.
30
+
31
+ :param backup_type:
32
+ :type backup_type: str (optional)
33
+
34
+ :param batch_id:
35
+ :type batch_id: str (optional)
36
+
37
+ :param batch_records:
38
+ :type batch_records: List[BatchRecord] (optional)
39
+
40
+ :param comment:
41
+ :type comment: str (optional)
42
+
43
+ :param end_time:
44
+ :type end_time: str (optional)
45
+
46
+ :param recoverable:
47
+ :type recoverable: str (optional)
48
+
49
+ :param start_time:
50
+ :type start_time: str (optional)
51
+
52
+ :param status:
53
+ :type status: str (optional)
54
+
55
+ :param storage_type:
56
+ :type storage_type: str (optional)
57
+
58
+ :param total_size_bytes:
59
+ :type total_size_bytes: int (optional)
60
+ """
61
+ super().__init__()
62
+ self.backup_type = backup_type
63
+ self.batch_id = batch_id
64
+ self.batch_records = batch_records
65
+ self.comment = comment
66
+ self.end_time = end_time
67
+ self.recoverable = recoverable
68
+ self.start_time = start_time
69
+ self.status = status
70
+ self.storage_type = storage_type
71
+ self.total_size_bytes = total_size_bytes
72
+
73
+ def to_dict(self):
74
+ """
75
+ Convert the model instance to a dictionary representation.
76
+
77
+ Nested model objects are recursively converted to dictionaries.
78
+
79
+ :return: Dictionary representation of the model
80
+ :rtype: dict
81
+ """
82
+ _map = super().to_dict()
83
+ if _map is not None:
84
+ return _map
85
+ result = dict()
86
+ if self.backup_type is not None:
87
+ result['backupType'] = self.backup_type
88
+ if self.batch_id is not None:
89
+ result['batchId'] = self.batch_id
90
+ if self.batch_records is not None:
91
+ result['batchRecords'] = [i.to_dict() for i in self.batch_records]
92
+ if self.comment is not None:
93
+ result['comment'] = self.comment
94
+ if self.end_time is not None:
95
+ result['endTime'] = self.end_time
96
+ if self.recoverable is not None:
97
+ result['recoverable'] = self.recoverable
98
+ if self.start_time is not None:
99
+ result['startTime'] = self.start_time
100
+ if self.status is not None:
101
+ result['status'] = self.status
102
+ if self.storage_type is not None:
103
+ result['storageType'] = self.storage_type
104
+ if self.total_size_bytes is not None:
105
+ result['totalSizeBytes'] = self.total_size_bytes
106
+ return result
107
+
108
+ def from_dict(self, m):
109
+ """
110
+ Populate the model instance from a dictionary.
111
+
112
+ Nested dictionaries are recursively converted to model objects.
113
+
114
+ :param m: Dictionary containing model data
115
+ :type m: dict
116
+
117
+ :return: Self reference for method chaining
118
+ :rtype: Record
119
+
120
+ :raises TypeError: If input is not a dictionary type
121
+ :raises ValueError: If nested model conversion fails
122
+ """
123
+ m = m or dict()
124
+ if m.get('backupType') is not None:
125
+ self.backup_type = m.get('backupType')
126
+ if m.get('batchId') is not None:
127
+ self.batch_id = m.get('batchId')
128
+ if m.get('batchRecords') is not None:
129
+ self.batch_records = [BatchRecord().from_dict(i) for i in m.get('batchRecords')]
130
+ if m.get('comment') is not None:
131
+ self.comment = m.get('comment')
132
+ if m.get('endTime') is not None:
133
+ self.end_time = m.get('endTime')
134
+ if m.get('recoverable') is not None:
135
+ self.recoverable = m.get('recoverable')
136
+ if m.get('startTime') is not None:
137
+ self.start_time = m.get('startTime')
138
+ if m.get('status') is not None:
139
+ self.status = m.get('status')
140
+ if m.get('storageType') is not None:
141
+ self.storage_type = m.get('storageType')
142
+ if m.get('totalSizeBytes') is not None:
143
+ self.total_size_bytes = m.get('totalSizeBytes')
144
+ return self
@@ -0,0 +1,64 @@
1
+ """
2
+ Request entity for RecoverInstanceUsingPostRequest information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class RecoverInstanceUsingPostRequest(AbstractModel):
9
+ """
10
+ Request entity for RecoverInstanceUsingPostRequest operation.
11
+
12
+ This class encapsulates all parameters for the API request.
13
+ """
14
+
15
+ def __init__(self, instance_id, engine_type=None):
16
+ """
17
+ Initialize RecoverInstanceUsingPostRequest request entity.
18
+
19
+ :param instance_id: instance_id parameter
20
+ :type instance_id: str (required)
21
+
22
+ :param engine_type: engine_type parameter
23
+ :type engine_type: str (optional)
24
+ """
25
+ super().__init__()
26
+ self.instance_id = instance_id
27
+ self.engine_type = engine_type
28
+
29
+ def to_dict(self):
30
+ """
31
+ Convert the request entity to a dictionary representation.
32
+
33
+ Nested model objects are recursively converted to dictionaries.
34
+
35
+ :return: Dictionary representation of the request
36
+ :rtype: dict
37
+ """
38
+ _map = super().to_dict()
39
+ if _map is not None:
40
+ return _map
41
+ result = dict()
42
+ return result
43
+
44
+ def from_dict(self, m):
45
+ """
46
+ Populate the request entity from a dictionary.
47
+
48
+ Nested dictionaries are recursively converted to model objects.
49
+
50
+ :param m: Dictionary containing request data
51
+ :type m: dict
52
+
53
+ :return: Self reference for method chaining
54
+ :rtype: RecoverInstanceUsingPostRequest
55
+
56
+ :raises TypeError: If input is not a dictionary or field type mismatch
57
+ :raises ValueError: If nested model conversion fails
58
+ """
59
+ m = m or dict()
60
+ if m.get('instanceId') is not None:
61
+ self.instance_id = m.get('instanceId')
62
+ if m.get('engineType') is not None:
63
+ self.engine_type = m.get('engineType')
64
+ return self
@@ -0,0 +1,88 @@
1
+ """
2
+ Request entity for RecoverUsingPOSTRequest information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class RecoverUsingPOSTRequest(AbstractModel):
9
+ """
10
+ Request entity for RecoverUsingPOSTRequest operation.
11
+
12
+ This class encapsulates all parameters for the API request.
13
+ """
14
+
15
+ def __init__(self, instance_id, engine_type=None, backup_id=None, batch_id=None, confirmed=None):
16
+ """
17
+ Initialize RecoverUsingPOSTRequest request entity.
18
+
19
+ :param instance_id: instance_id parameter
20
+ :type instance_id: str (required)
21
+
22
+ :param engine_type: engine_type parameter
23
+ :type engine_type: str (optional)
24
+
25
+ :param backup_id: backup_id parameter
26
+ :type backup_id: str (optional)
27
+
28
+ :param batch_id: batch_id parameter
29
+ :type batch_id: str (optional)
30
+
31
+ :param confirmed: confirmed parameter
32
+ :type confirmed: bool (optional)
33
+ """
34
+ super().__init__()
35
+ self.instance_id = instance_id
36
+ self.engine_type = engine_type
37
+ self.backup_id = backup_id
38
+ self.batch_id = batch_id
39
+ self.confirmed = confirmed
40
+
41
+ def to_dict(self):
42
+ """
43
+ Convert the request entity to a dictionary representation.
44
+
45
+ Nested model objects are recursively converted to dictionaries.
46
+
47
+ :return: Dictionary representation of the request
48
+ :rtype: dict
49
+ """
50
+ _map = super().to_dict()
51
+ if _map is not None:
52
+ return _map
53
+ result = dict()
54
+ if self.backup_id is not None:
55
+ result['backupId'] = self.backup_id
56
+ if self.batch_id is not None:
57
+ result['batchId'] = self.batch_id
58
+ if self.confirmed is not None:
59
+ result['confirmed'] = self.confirmed
60
+ return result
61
+
62
+ def from_dict(self, m):
63
+ """
64
+ Populate the request entity from a dictionary.
65
+
66
+ Nested dictionaries are recursively converted to model objects.
67
+
68
+ :param m: Dictionary containing request data
69
+ :type m: dict
70
+
71
+ :return: Self reference for method chaining
72
+ :rtype: RecoverUsingPOSTRequest
73
+
74
+ :raises TypeError: If input is not a dictionary or field type mismatch
75
+ :raises ValueError: If nested model conversion fails
76
+ """
77
+ m = m or dict()
78
+ if m.get('instanceId') is not None:
79
+ self.instance_id = m.get('instanceId')
80
+ if m.get('engineType') is not None:
81
+ self.engine_type = m.get('engineType')
82
+ if m.get('backupId') is not None:
83
+ self.backup_id = m.get('backupId')
84
+ if m.get('batchId') is not None:
85
+ self.batch_id = m.get('batchId')
86
+ if m.get('confirmed') is not None:
87
+ self.confirmed = m.get('confirmed')
88
+ return self