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.
- baiducloud_python_sdk_vdb/__init__.py +5 -0
- baiducloud_python_sdk_vdb/api/__init__.py +0 -0
- baiducloud_python_sdk_vdb/api/vdb_client.py +1126 -0
- baiducloud_python_sdk_vdb/models/__init__.py +69 -0
- baiducloud_python_sdk_vdb/models/account.py +58 -0
- baiducloud_python_sdk_vdb/models/account_list_using_get_request.py +64 -0
- baiducloud_python_sdk_vdb/models/account_list_using_get_response.py +62 -0
- baiducloud_python_sdk_vdb/models/az_info.py +74 -0
- baiducloud_python_sdk_vdb/models/batch_record.py +124 -0
- baiducloud_python_sdk_vdb/models/bind_eip_using_post_request.py +72 -0
- baiducloud_python_sdk_vdb/models/create_instance_using_post_request.py +58 -0
- baiducloud_python_sdk_vdb/models/create_instance_using_post_response.py +77 -0
- baiducloud_python_sdk_vdb/models/data_node.py +90 -0
- baiducloud_python_sdk_vdb/models/delete_instance_using_delete_request.py +64 -0
- baiducloud_python_sdk_vdb/models/delete_record_using_delete_request.py +76 -0
- baiducloud_python_sdk_vdb/models/delete_recycler_instance_request.py +64 -0
- baiducloud_python_sdk_vdb/models/describe_instance_configs_request.py +58 -0
- baiducloud_python_sdk_vdb/models/get_config_using_get_request.py +64 -0
- baiducloud_python_sdk_vdb/models/get_config_using_get_response.py +77 -0
- baiducloud_python_sdk_vdb/models/get_free_instance_quota_response.py +61 -0
- baiducloud_python_sdk_vdb/models/get_instance_list_using_get_request.py +64 -0
- baiducloud_python_sdk_vdb/models/get_instance_list_using_get_response.py +62 -0
- baiducloud_python_sdk_vdb/models/get_node_spec_list_using_get_request.py +58 -0
- baiducloud_python_sdk_vdb/models/get_price_using_post_request.py +58 -0
- baiducloud_python_sdk_vdb/models/get_price_using_post_response.py +110 -0
- baiducloud_python_sdk_vdb/models/get_quota_using_get_request.py +64 -0
- baiducloud_python_sdk_vdb/models/get_quota_using_get_response.py +61 -0
- baiducloud_python_sdk_vdb/models/get_tls_certificate_using_get_request.py +64 -0
- baiducloud_python_sdk_vdb/models/get_tls_certificate_using_get_response.py +61 -0
- baiducloud_python_sdk_vdb/models/get_tls_info_using_get_request.py +64 -0
- baiducloud_python_sdk_vdb/models/get_tls_info_using_get_response.py +85 -0
- baiducloud_python_sdk_vdb/models/getinstancelistusingget1_request.py +58 -0
- baiducloud_python_sdk_vdb/models/getinstancelistusingget1_response.py +64 -0
- baiducloud_python_sdk_vdb/models/instance.py +504 -0
- baiducloud_python_sdk_vdb/models/instance_config_user_config.py +66 -0
- baiducloud_python_sdk_vdb/models/instance_detail_using_get_request.py +64 -0
- baiducloud_python_sdk_vdb/models/instance_detail_using_get_response.py +497 -0
- baiducloud_python_sdk_vdb/models/list_records_using_get_request.py +82 -0
- baiducloud_python_sdk_vdb/models/list_records_using_get_response.py +70 -0
- baiducloud_python_sdk_vdb/models/log_service.py +82 -0
- baiducloud_python_sdk_vdb/models/logging_service.py +82 -0
- baiducloud_python_sdk_vdb/models/manual_backup_using_post_request.py +72 -0
- baiducloud_python_sdk_vdb/models/milvus_component.py +82 -0
- baiducloud_python_sdk_vdb/models/milvus_node.py +115 -0
- baiducloud_python_sdk_vdb/models/modify_instance_config_request.py +77 -0
- baiducloud_python_sdk_vdb/models/modify_password_using_post_request.py +88 -0
- baiducloud_python_sdk_vdb/models/modify_public_access_request.py +66 -0
- baiducloud_python_sdk_vdb/models/modify_tls_using_put_request.py +74 -0
- baiducloud_python_sdk_vdb/models/multi_year_result.py +66 -0
- baiducloud_python_sdk_vdb/models/password_using_get_request.py +70 -0
- baiducloud_python_sdk_vdb/models/password_using_get_response.py +69 -0
- baiducloud_python_sdk_vdb/models/proxy.py +90 -0
- baiducloud_python_sdk_vdb/models/record.py +144 -0
- baiducloud_python_sdk_vdb/models/recover_instance_using_post_request.py +64 -0
- baiducloud_python_sdk_vdb/models/recover_using_post_request.py +88 -0
- baiducloud_python_sdk_vdb/models/resize_instance_using_post_request.py +179 -0
- baiducloud_python_sdk_vdb/models/resize_instance_using_post_response.py +61 -0
- baiducloud_python_sdk_vdb/models/set_comment_using_post_request.py +88 -0
- baiducloud_python_sdk_vdb/models/set_config_using_post_request.py +90 -0
- baiducloud_python_sdk_vdb/models/subnet.py +90 -0
- baiducloud_python_sdk_vdb/models/target_package.py +74 -0
- baiducloud_python_sdk_vdb/models/unbind_eip_using_post_request.py +64 -0
- baiducloud_python_sdk_vdb/models/update_instance_domain_request.py +72 -0
- baiducloud_python_sdk_vdb/models/update_instance_name_request.py +72 -0
- baiducloud_python_sdk_vdb/models/vdb_auto_renew_rule.py +66 -0
- baiducloud_python_sdk_vdb/models/vdb_pricing_query_response.py +166 -0
- baiducloud_python_sdk_vdb/models/zone_detail.py +133 -0
- baiducloud_python_sdk_vdb/models/zone_list_using_get_request.py +64 -0
- baiducloud_python_sdk_vdb/models/zone_list_using_get_response.py +62 -0
- baiducloud_python_sdk_vdb-0.0.1.dist-info/LICENSE +177 -0
- baiducloud_python_sdk_vdb-0.0.1.dist-info/METADATA +76 -0
- baiducloud_python_sdk_vdb-0.0.1.dist-info/RECORD +74 -0
- baiducloud_python_sdk_vdb-0.0.1.dist-info/WHEEL +5 -0
- baiducloud_python_sdk_vdb-0.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"""
|
|
2
|
+
DataNode information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DataNode(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
DataNode
|
|
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 DataNode 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: DataNode
|
|
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,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteInstanceUsingDeleteRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteInstanceUsingDeleteRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteInstanceUsingDeleteRequest 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 DeleteInstanceUsingDeleteRequest 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: DeleteInstanceUsingDeleteRequest
|
|
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,76 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteRecordUsingDeleteRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteRecordUsingDeleteRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteRecordUsingDeleteRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, instance_id, engine_type=None, batch_id=None, backup_id=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteRecordUsingDeleteRequest 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 batch_id: batch_id parameter
|
|
26
|
+
:type batch_id: str (optional)
|
|
27
|
+
|
|
28
|
+
:param backup_id: backup_id parameter
|
|
29
|
+
:type backup_id: str (optional)
|
|
30
|
+
"""
|
|
31
|
+
super().__init__()
|
|
32
|
+
self.instance_id = instance_id
|
|
33
|
+
self.engine_type = engine_type
|
|
34
|
+
self.batch_id = batch_id
|
|
35
|
+
self.backup_id = backup_id
|
|
36
|
+
|
|
37
|
+
def to_dict(self):
|
|
38
|
+
"""
|
|
39
|
+
Convert the request entity to a dictionary representation.
|
|
40
|
+
|
|
41
|
+
Nested model objects are recursively converted to dictionaries.
|
|
42
|
+
|
|
43
|
+
:return: Dictionary representation of the request
|
|
44
|
+
:rtype: dict
|
|
45
|
+
"""
|
|
46
|
+
_map = super().to_dict()
|
|
47
|
+
if _map is not None:
|
|
48
|
+
return _map
|
|
49
|
+
result = dict()
|
|
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: DeleteRecordUsingDeleteRequest
|
|
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('instanceId') is not None:
|
|
69
|
+
self.instance_id = m.get('instanceId')
|
|
70
|
+
if m.get('engineType') is not None:
|
|
71
|
+
self.engine_type = m.get('engineType')
|
|
72
|
+
if m.get('batchId') is not None:
|
|
73
|
+
self.batch_id = m.get('batchId')
|
|
74
|
+
if m.get('backupId') is not None:
|
|
75
|
+
self.backup_id = m.get('backupId')
|
|
76
|
+
return self
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteRecyclerInstanceRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteRecyclerInstanceRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteRecyclerInstanceRequest 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 DeleteRecyclerInstanceRequest 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: DeleteRecyclerInstanceRequest
|
|
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,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DescribeInstanceConfigsRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DescribeInstanceConfigsRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DescribeInstanceConfigsRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, instance_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DescribeInstanceConfigsRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param instance_id: instance_id parameter
|
|
20
|
+
:type instance_id: str (required)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.instance_id = instance_id
|
|
24
|
+
|
|
25
|
+
def to_dict(self):
|
|
26
|
+
"""
|
|
27
|
+
Convert the request entity to a dictionary representation.
|
|
28
|
+
|
|
29
|
+
Nested model objects are recursively converted to dictionaries.
|
|
30
|
+
|
|
31
|
+
:return: Dictionary representation of the request
|
|
32
|
+
:rtype: dict
|
|
33
|
+
"""
|
|
34
|
+
_map = super().to_dict()
|
|
35
|
+
if _map is not None:
|
|
36
|
+
return _map
|
|
37
|
+
result = dict()
|
|
38
|
+
return result
|
|
39
|
+
|
|
40
|
+
def from_dict(self, m):
|
|
41
|
+
"""
|
|
42
|
+
Populate the request entity from a dictionary.
|
|
43
|
+
|
|
44
|
+
Nested dictionaries are recursively converted to model objects.
|
|
45
|
+
|
|
46
|
+
:param m: Dictionary containing request data
|
|
47
|
+
:type m: dict
|
|
48
|
+
|
|
49
|
+
:return: Self reference for method chaining
|
|
50
|
+
:rtype: DescribeInstanceConfigsRequest
|
|
51
|
+
|
|
52
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
53
|
+
:raises ValueError: If nested model conversion fails
|
|
54
|
+
"""
|
|
55
|
+
m = m or dict()
|
|
56
|
+
if m.get('instanceId') is not None:
|
|
57
|
+
self.instance_id = m.get('instanceId')
|
|
58
|
+
return self
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetConfigUsingGetRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetConfigUsingGetRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for GetConfigUsingGetRequest 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 GetConfigUsingGetRequest 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: GetConfigUsingGetRequest
|
|
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,77 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetConfigUsingGETResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetConfigUsingGETResponse(BceResponse):
|
|
9
|
+
"""
|
|
10
|
+
GetConfigUsingGETResponse
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, auto_backup_config=None, auto_backup_enabled=None, is_encrypt=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize GetConfigUsingGETResponse response.
|
|
16
|
+
|
|
17
|
+
:param auto_backup_config: auto_backup_config field
|
|
18
|
+
:type auto_backup_config: str (optional)
|
|
19
|
+
|
|
20
|
+
:param auto_backup_enabled: auto_backup_enabled field
|
|
21
|
+
:type auto_backup_enabled: bool (optional)
|
|
22
|
+
|
|
23
|
+
:param is_encrypt: is_encrypt field
|
|
24
|
+
:type is_encrypt: str (optional)
|
|
25
|
+
"""
|
|
26
|
+
super().__init__()
|
|
27
|
+
self.auto_backup_config = auto_backup_config
|
|
28
|
+
self.auto_backup_enabled = auto_backup_enabled
|
|
29
|
+
self.is_encrypt = is_encrypt
|
|
30
|
+
|
|
31
|
+
def to_dict(self):
|
|
32
|
+
"""
|
|
33
|
+
Convert the response instance to a dictionary representation.
|
|
34
|
+
|
|
35
|
+
Includes metadata from the parent BceResponse class.
|
|
36
|
+
Nested model objects are recursively converted to dictionaries.
|
|
37
|
+
|
|
38
|
+
:return: Dictionary representation of the response
|
|
39
|
+
:rtype: dict
|
|
40
|
+
"""
|
|
41
|
+
_map = super().to_dict()
|
|
42
|
+
if _map is not None:
|
|
43
|
+
return _map
|
|
44
|
+
result = dict()
|
|
45
|
+
if self.metadata is not None:
|
|
46
|
+
result['metadata'] = dict(self.metadata)
|
|
47
|
+
if self.auto_backup_config is not None:
|
|
48
|
+
result['autoBackupConfig'] = self.auto_backup_config
|
|
49
|
+
if self.auto_backup_enabled is not None:
|
|
50
|
+
result['autoBackupEnabled'] = self.auto_backup_enabled
|
|
51
|
+
if self.is_encrypt is not None:
|
|
52
|
+
result['isEncrypt'] = self.is_encrypt
|
|
53
|
+
return result
|
|
54
|
+
|
|
55
|
+
def from_dict(self, m):
|
|
56
|
+
"""
|
|
57
|
+
Populate the response instance from a dictionary.
|
|
58
|
+
|
|
59
|
+
Nested dictionaries are recursively converted to model objects.
|
|
60
|
+
|
|
61
|
+
:param m: Dictionary containing response data
|
|
62
|
+
:type m: dict
|
|
63
|
+
|
|
64
|
+
:return: Self reference for method chaining
|
|
65
|
+
:rtype: GetConfigUsingGETResponse
|
|
66
|
+
|
|
67
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
68
|
+
:raises ValueError: If nested model conversion fails
|
|
69
|
+
"""
|
|
70
|
+
m = m or dict()
|
|
71
|
+
if m.get('autoBackupConfig') is not None:
|
|
72
|
+
self.auto_backup_config = m.get('autoBackupConfig')
|
|
73
|
+
if m.get('autoBackupEnabled') is not None:
|
|
74
|
+
self.auto_backup_enabled = m.get('autoBackupEnabled')
|
|
75
|
+
if m.get('isEncrypt') is not None:
|
|
76
|
+
self.is_encrypt = m.get('isEncrypt')
|
|
77
|
+
return self
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetFreeInstanceQuotaResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetFreeInstanceQuotaResponse(BceResponse):
|
|
9
|
+
"""
|
|
10
|
+
GetFreeInstanceQuotaResponse
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, free_quota=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize GetFreeInstanceQuotaResponse response.
|
|
16
|
+
|
|
17
|
+
:param free_quota: free_quota field
|
|
18
|
+
:type free_quota: int (optional)
|
|
19
|
+
"""
|
|
20
|
+
super().__init__()
|
|
21
|
+
self.free_quota = free_quota
|
|
22
|
+
|
|
23
|
+
def to_dict(self):
|
|
24
|
+
"""
|
|
25
|
+
Convert the response instance to a dictionary representation.
|
|
26
|
+
|
|
27
|
+
Includes metadata from the parent BceResponse class.
|
|
28
|
+
Nested model objects are recursively converted to dictionaries.
|
|
29
|
+
|
|
30
|
+
:return: Dictionary representation of the response
|
|
31
|
+
:rtype: dict
|
|
32
|
+
"""
|
|
33
|
+
_map = super().to_dict()
|
|
34
|
+
if _map is not None:
|
|
35
|
+
return _map
|
|
36
|
+
result = dict()
|
|
37
|
+
if self.metadata is not None:
|
|
38
|
+
result['metadata'] = dict(self.metadata)
|
|
39
|
+
if self.free_quota is not None:
|
|
40
|
+
result['freeQuota'] = self.free_quota
|
|
41
|
+
return result
|
|
42
|
+
|
|
43
|
+
def from_dict(self, m):
|
|
44
|
+
"""
|
|
45
|
+
Populate the response instance from a dictionary.
|
|
46
|
+
|
|
47
|
+
Nested dictionaries are recursively converted to model objects.
|
|
48
|
+
|
|
49
|
+
:param m: Dictionary containing response data
|
|
50
|
+
:type m: dict
|
|
51
|
+
|
|
52
|
+
:return: Self reference for method chaining
|
|
53
|
+
:rtype: GetFreeInstanceQuotaResponse
|
|
54
|
+
|
|
55
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
56
|
+
:raises ValueError: If nested model conversion fails
|
|
57
|
+
"""
|
|
58
|
+
m = m or dict()
|
|
59
|
+
if m.get('freeQuota') is not None:
|
|
60
|
+
self.free_quota = m.get('freeQuota')
|
|
61
|
+
return self
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetInstanceListUsingGetRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetInstanceListUsingGetRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for GetInstanceListUsingGetRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, engine_type=None, instance_type=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize GetInstanceListUsingGetRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param engine_type: engine_type parameter
|
|
20
|
+
:type engine_type: str (optional)
|
|
21
|
+
|
|
22
|
+
:param instance_type: instance_type parameter
|
|
23
|
+
:type instance_type: str (optional)
|
|
24
|
+
"""
|
|
25
|
+
super().__init__()
|
|
26
|
+
self.engine_type = engine_type
|
|
27
|
+
self.instance_type = instance_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: GetInstanceListUsingGetRequest
|
|
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('engineType') is not None:
|
|
61
|
+
self.engine_type = m.get('engineType')
|
|
62
|
+
if m.get('instanceType') is not None:
|
|
63
|
+
self.instance_type = m.get('instanceType')
|
|
64
|
+
return self
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetInstanceListUsingGETResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_vdb.models.instance import Instance
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class GetInstanceListUsingGETResponse(BceResponse):
|
|
10
|
+
"""
|
|
11
|
+
GetInstanceListUsingGETResponse
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, instances=None):
|
|
15
|
+
"""
|
|
16
|
+
Initialize GetInstanceListUsingGETResponse response.
|
|
17
|
+
|
|
18
|
+
:param instances: instances field
|
|
19
|
+
:type instances: List[Instance] (optional)
|
|
20
|
+
"""
|
|
21
|
+
super().__init__()
|
|
22
|
+
self.instances = instances
|
|
23
|
+
|
|
24
|
+
def to_dict(self):
|
|
25
|
+
"""
|
|
26
|
+
Convert the response instance to a dictionary representation.
|
|
27
|
+
|
|
28
|
+
Includes metadata from the parent BceResponse class.
|
|
29
|
+
Nested model objects are recursively converted to dictionaries.
|
|
30
|
+
|
|
31
|
+
:return: Dictionary representation of the response
|
|
32
|
+
:rtype: dict
|
|
33
|
+
"""
|
|
34
|
+
_map = super().to_dict()
|
|
35
|
+
if _map is not None:
|
|
36
|
+
return _map
|
|
37
|
+
result = dict()
|
|
38
|
+
if self.metadata is not None:
|
|
39
|
+
result['metadata'] = dict(self.metadata)
|
|
40
|
+
if self.instances is not None:
|
|
41
|
+
result['instances'] = [i.to_dict() for i in self.instances]
|
|
42
|
+
return result
|
|
43
|
+
|
|
44
|
+
def from_dict(self, m):
|
|
45
|
+
"""
|
|
46
|
+
Populate the response instance from a dictionary.
|
|
47
|
+
|
|
48
|
+
Nested dictionaries are recursively converted to model objects.
|
|
49
|
+
|
|
50
|
+
:param m: Dictionary containing response data
|
|
51
|
+
:type m: dict
|
|
52
|
+
|
|
53
|
+
:return: Self reference for method chaining
|
|
54
|
+
:rtype: GetInstanceListUsingGETResponse
|
|
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('instances') is not None:
|
|
61
|
+
self.instances = [Instance().from_dict(i) for i in m.get('instances')]
|
|
62
|
+
return self
|