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,82 @@
|
|
|
1
|
+
"""
|
|
2
|
+
LogService information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class LogService(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
LogService
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, enabled=None, log_store_name=None, project=None, retention_days=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize LogService instance.
|
|
16
|
+
|
|
17
|
+
:param enabled:
|
|
18
|
+
:type enabled: bool (optional)
|
|
19
|
+
|
|
20
|
+
:param log_store_name:
|
|
21
|
+
:type log_store_name: str (optional)
|
|
22
|
+
|
|
23
|
+
:param project:
|
|
24
|
+
:type project: str (optional)
|
|
25
|
+
|
|
26
|
+
:param retention_days:
|
|
27
|
+
:type retention_days: int (optional)
|
|
28
|
+
"""
|
|
29
|
+
super().__init__()
|
|
30
|
+
self.enabled = enabled
|
|
31
|
+
self.log_store_name = log_store_name
|
|
32
|
+
self.project = project
|
|
33
|
+
self.retention_days = retention_days
|
|
34
|
+
|
|
35
|
+
def to_dict(self):
|
|
36
|
+
"""
|
|
37
|
+
Convert the model instance to a dictionary representation.
|
|
38
|
+
|
|
39
|
+
Nested model objects are recursively converted to dictionaries.
|
|
40
|
+
|
|
41
|
+
:return: Dictionary representation of the model
|
|
42
|
+
:rtype: dict
|
|
43
|
+
"""
|
|
44
|
+
_map = super().to_dict()
|
|
45
|
+
if _map is not None:
|
|
46
|
+
return _map
|
|
47
|
+
result = dict()
|
|
48
|
+
if self.enabled is not None:
|
|
49
|
+
result['enabled'] = self.enabled
|
|
50
|
+
if self.log_store_name is not None:
|
|
51
|
+
result['logStoreName'] = self.log_store_name
|
|
52
|
+
if self.project is not None:
|
|
53
|
+
result['project'] = self.project
|
|
54
|
+
if self.retention_days is not None:
|
|
55
|
+
result['retentionDays'] = self.retention_days
|
|
56
|
+
return result
|
|
57
|
+
|
|
58
|
+
def from_dict(self, m):
|
|
59
|
+
"""
|
|
60
|
+
Populate the model instance from a dictionary.
|
|
61
|
+
|
|
62
|
+
Nested dictionaries are recursively converted to model objects.
|
|
63
|
+
|
|
64
|
+
:param m: Dictionary containing model data
|
|
65
|
+
:type m: dict
|
|
66
|
+
|
|
67
|
+
:return: Self reference for method chaining
|
|
68
|
+
:rtype: LogService
|
|
69
|
+
|
|
70
|
+
:raises TypeError: If input is not a dictionary type
|
|
71
|
+
:raises ValueError: If nested model conversion fails
|
|
72
|
+
"""
|
|
73
|
+
m = m or dict()
|
|
74
|
+
if m.get('enabled') is not None:
|
|
75
|
+
self.enabled = m.get('enabled')
|
|
76
|
+
if m.get('logStoreName') is not None:
|
|
77
|
+
self.log_store_name = m.get('logStoreName')
|
|
78
|
+
if m.get('project') is not None:
|
|
79
|
+
self.project = m.get('project')
|
|
80
|
+
if m.get('retentionDays') is not None:
|
|
81
|
+
self.retention_days = m.get('retentionDays')
|
|
82
|
+
return self
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""
|
|
2
|
+
LoggingService information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class LoggingService(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
LoggingService
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, enabled=None, log_type=None, status=None, supported=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize LoggingService instance.
|
|
16
|
+
|
|
17
|
+
:param enabled:
|
|
18
|
+
:type enabled: bool (optional)
|
|
19
|
+
|
|
20
|
+
:param log_type:
|
|
21
|
+
:type log_type: str (optional)
|
|
22
|
+
|
|
23
|
+
:param status:
|
|
24
|
+
:type status: str (optional)
|
|
25
|
+
|
|
26
|
+
:param supported:
|
|
27
|
+
:type supported: bool (optional)
|
|
28
|
+
"""
|
|
29
|
+
super().__init__()
|
|
30
|
+
self.enabled = enabled
|
|
31
|
+
self.log_type = log_type
|
|
32
|
+
self.status = status
|
|
33
|
+
self.supported = supported
|
|
34
|
+
|
|
35
|
+
def to_dict(self):
|
|
36
|
+
"""
|
|
37
|
+
Convert the model instance to a dictionary representation.
|
|
38
|
+
|
|
39
|
+
Nested model objects are recursively converted to dictionaries.
|
|
40
|
+
|
|
41
|
+
:return: Dictionary representation of the model
|
|
42
|
+
:rtype: dict
|
|
43
|
+
"""
|
|
44
|
+
_map = super().to_dict()
|
|
45
|
+
if _map is not None:
|
|
46
|
+
return _map
|
|
47
|
+
result = dict()
|
|
48
|
+
if self.enabled is not None:
|
|
49
|
+
result['enabled'] = self.enabled
|
|
50
|
+
if self.log_type is not None:
|
|
51
|
+
result['logType'] = self.log_type
|
|
52
|
+
if self.status is not None:
|
|
53
|
+
result['status'] = self.status
|
|
54
|
+
if self.supported is not None:
|
|
55
|
+
result['supported'] = self.supported
|
|
56
|
+
return result
|
|
57
|
+
|
|
58
|
+
def from_dict(self, m):
|
|
59
|
+
"""
|
|
60
|
+
Populate the model instance from a dictionary.
|
|
61
|
+
|
|
62
|
+
Nested dictionaries are recursively converted to model objects.
|
|
63
|
+
|
|
64
|
+
:param m: Dictionary containing model data
|
|
65
|
+
:type m: dict
|
|
66
|
+
|
|
67
|
+
:return: Self reference for method chaining
|
|
68
|
+
:rtype: LoggingService
|
|
69
|
+
|
|
70
|
+
:raises TypeError: If input is not a dictionary type
|
|
71
|
+
:raises ValueError: If nested model conversion fails
|
|
72
|
+
"""
|
|
73
|
+
m = m or dict()
|
|
74
|
+
if m.get('enabled') is not None:
|
|
75
|
+
self.enabled = m.get('enabled')
|
|
76
|
+
if m.get('logType') is not None:
|
|
77
|
+
self.log_type = m.get('logType')
|
|
78
|
+
if m.get('status') is not None:
|
|
79
|
+
self.status = m.get('status')
|
|
80
|
+
if m.get('supported') is not None:
|
|
81
|
+
self.supported = m.get('supported')
|
|
82
|
+
return self
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ManualBackupUsingPOSTRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ManualBackupUsingPOSTRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for ManualBackupUsingPOSTRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, instance_id, engine_type=None, comment=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize ManualBackupUsingPOSTRequest 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 comment: comment parameter
|
|
26
|
+
:type comment: str (optional)
|
|
27
|
+
"""
|
|
28
|
+
super().__init__()
|
|
29
|
+
self.instance_id = instance_id
|
|
30
|
+
self.engine_type = engine_type
|
|
31
|
+
self.comment = comment
|
|
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.comment is not None:
|
|
47
|
+
result['comment'] = self.comment
|
|
48
|
+
return result
|
|
49
|
+
|
|
50
|
+
def from_dict(self, m):
|
|
51
|
+
"""
|
|
52
|
+
Populate the request entity from a dictionary.
|
|
53
|
+
|
|
54
|
+
Nested dictionaries are recursively converted to model objects.
|
|
55
|
+
|
|
56
|
+
:param m: Dictionary containing request data
|
|
57
|
+
:type m: dict
|
|
58
|
+
|
|
59
|
+
:return: Self reference for method chaining
|
|
60
|
+
:rtype: ManualBackupUsingPOSTRequest
|
|
61
|
+
|
|
62
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
63
|
+
:raises ValueError: If nested model conversion fails
|
|
64
|
+
"""
|
|
65
|
+
m = m or dict()
|
|
66
|
+
if m.get('instanceId') is not None:
|
|
67
|
+
self.instance_id = m.get('instanceId')
|
|
68
|
+
if m.get('engineType') is not None:
|
|
69
|
+
self.engine_type = m.get('engineType')
|
|
70
|
+
if m.get('comment') is not None:
|
|
71
|
+
self.comment = m.get('comment')
|
|
72
|
+
return self
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""
|
|
2
|
+
MilvusComponent information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MilvusComponent(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
MilvusComponent
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, disk_size_type=None, replicas=None, spec=None, type=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize MilvusComponent instance.
|
|
16
|
+
|
|
17
|
+
:param disk_size_type:
|
|
18
|
+
:type disk_size_type: str (optional)
|
|
19
|
+
|
|
20
|
+
:param replicas:
|
|
21
|
+
:type replicas: int (optional)
|
|
22
|
+
|
|
23
|
+
:param spec:
|
|
24
|
+
:type spec: str (optional)
|
|
25
|
+
|
|
26
|
+
:param type:
|
|
27
|
+
:type type: str (optional)
|
|
28
|
+
"""
|
|
29
|
+
super().__init__()
|
|
30
|
+
self.disk_size_type = disk_size_type
|
|
31
|
+
self.replicas = replicas
|
|
32
|
+
self.spec = spec
|
|
33
|
+
self.type = type
|
|
34
|
+
|
|
35
|
+
def to_dict(self):
|
|
36
|
+
"""
|
|
37
|
+
Convert the model instance to a dictionary representation.
|
|
38
|
+
|
|
39
|
+
Nested model objects are recursively converted to dictionaries.
|
|
40
|
+
|
|
41
|
+
:return: Dictionary representation of the model
|
|
42
|
+
:rtype: dict
|
|
43
|
+
"""
|
|
44
|
+
_map = super().to_dict()
|
|
45
|
+
if _map is not None:
|
|
46
|
+
return _map
|
|
47
|
+
result = dict()
|
|
48
|
+
if self.disk_size_type is not None:
|
|
49
|
+
result['diskSizeType'] = self.disk_size_type
|
|
50
|
+
if self.replicas is not None:
|
|
51
|
+
result['replicas'] = self.replicas
|
|
52
|
+
if self.spec is not None:
|
|
53
|
+
result['spec'] = self.spec
|
|
54
|
+
if self.type is not None:
|
|
55
|
+
result['type'] = self.type
|
|
56
|
+
return result
|
|
57
|
+
|
|
58
|
+
def from_dict(self, m):
|
|
59
|
+
"""
|
|
60
|
+
Populate the model instance from a dictionary.
|
|
61
|
+
|
|
62
|
+
Nested dictionaries are recursively converted to model objects.
|
|
63
|
+
|
|
64
|
+
:param m: Dictionary containing model data
|
|
65
|
+
:type m: dict
|
|
66
|
+
|
|
67
|
+
:return: Self reference for method chaining
|
|
68
|
+
:rtype: MilvusComponent
|
|
69
|
+
|
|
70
|
+
:raises TypeError: If input is not a dictionary type
|
|
71
|
+
:raises ValueError: If nested model conversion fails
|
|
72
|
+
"""
|
|
73
|
+
m = m or dict()
|
|
74
|
+
if m.get('diskSizeType') is not None:
|
|
75
|
+
self.disk_size_type = m.get('diskSizeType')
|
|
76
|
+
if m.get('replicas') is not None:
|
|
77
|
+
self.replicas = m.get('replicas')
|
|
78
|
+
if m.get('spec') is not None:
|
|
79
|
+
self.spec = m.get('spec')
|
|
80
|
+
if m.get('type') is not None:
|
|
81
|
+
self.type = m.get('type')
|
|
82
|
+
return self
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"""
|
|
2
|
+
MilvusNode information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MilvusNode(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
MilvusNode
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(
|
|
14
|
+
self,
|
|
15
|
+
availability_zone=None,
|
|
16
|
+
component_type=None,
|
|
17
|
+
fixed_ip=None,
|
|
18
|
+
floating_ip=None,
|
|
19
|
+
node_id=None,
|
|
20
|
+
port=None,
|
|
21
|
+
status=None,
|
|
22
|
+
):
|
|
23
|
+
"""
|
|
24
|
+
Initialize MilvusNode instance.
|
|
25
|
+
|
|
26
|
+
:param availability_zone:
|
|
27
|
+
:type availability_zone: str (optional)
|
|
28
|
+
|
|
29
|
+
:param component_type:
|
|
30
|
+
:type component_type: str (optional)
|
|
31
|
+
|
|
32
|
+
:param fixed_ip:
|
|
33
|
+
:type fixed_ip: str (optional)
|
|
34
|
+
|
|
35
|
+
:param floating_ip:
|
|
36
|
+
:type floating_ip: str (optional)
|
|
37
|
+
|
|
38
|
+
:param node_id:
|
|
39
|
+
:type node_id: str (optional)
|
|
40
|
+
|
|
41
|
+
:param port:
|
|
42
|
+
:type port: int (optional)
|
|
43
|
+
|
|
44
|
+
:param status:
|
|
45
|
+
:type status: str (optional)
|
|
46
|
+
"""
|
|
47
|
+
super().__init__()
|
|
48
|
+
self.availability_zone = availability_zone
|
|
49
|
+
self.component_type = component_type
|
|
50
|
+
self.fixed_ip = fixed_ip
|
|
51
|
+
self.floating_ip = floating_ip
|
|
52
|
+
self.node_id = node_id
|
|
53
|
+
self.port = port
|
|
54
|
+
self.status = status
|
|
55
|
+
|
|
56
|
+
def to_dict(self):
|
|
57
|
+
"""
|
|
58
|
+
Convert the model instance to a dictionary representation.
|
|
59
|
+
|
|
60
|
+
Nested model objects are recursively converted to dictionaries.
|
|
61
|
+
|
|
62
|
+
:return: Dictionary representation of the model
|
|
63
|
+
:rtype: dict
|
|
64
|
+
"""
|
|
65
|
+
_map = super().to_dict()
|
|
66
|
+
if _map is not None:
|
|
67
|
+
return _map
|
|
68
|
+
result = dict()
|
|
69
|
+
if self.availability_zone is not None:
|
|
70
|
+
result['availabilityZone'] = self.availability_zone
|
|
71
|
+
if self.component_type is not None:
|
|
72
|
+
result['componentType'] = self.component_type
|
|
73
|
+
if self.fixed_ip is not None:
|
|
74
|
+
result['fixedIp'] = self.fixed_ip
|
|
75
|
+
if self.floating_ip is not None:
|
|
76
|
+
result['floatingIp'] = self.floating_ip
|
|
77
|
+
if self.node_id is not None:
|
|
78
|
+
result['nodeId'] = self.node_id
|
|
79
|
+
if self.port is not None:
|
|
80
|
+
result['port'] = self.port
|
|
81
|
+
if self.status is not None:
|
|
82
|
+
result['status'] = self.status
|
|
83
|
+
return result
|
|
84
|
+
|
|
85
|
+
def from_dict(self, m):
|
|
86
|
+
"""
|
|
87
|
+
Populate the model instance from a dictionary.
|
|
88
|
+
|
|
89
|
+
Nested dictionaries are recursively converted to model objects.
|
|
90
|
+
|
|
91
|
+
:param m: Dictionary containing model data
|
|
92
|
+
:type m: dict
|
|
93
|
+
|
|
94
|
+
:return: Self reference for method chaining
|
|
95
|
+
:rtype: MilvusNode
|
|
96
|
+
|
|
97
|
+
:raises TypeError: If input is not a dictionary type
|
|
98
|
+
:raises ValueError: If nested model conversion fails
|
|
99
|
+
"""
|
|
100
|
+
m = m or dict()
|
|
101
|
+
if m.get('availabilityZone') is not None:
|
|
102
|
+
self.availability_zone = m.get('availabilityZone')
|
|
103
|
+
if m.get('componentType') is not None:
|
|
104
|
+
self.component_type = m.get('componentType')
|
|
105
|
+
if m.get('fixedIp') is not None:
|
|
106
|
+
self.fixed_ip = m.get('fixedIp')
|
|
107
|
+
if m.get('floatingIp') is not None:
|
|
108
|
+
self.floating_ip = m.get('floatingIp')
|
|
109
|
+
if m.get('nodeId') is not None:
|
|
110
|
+
self.node_id = m.get('nodeId')
|
|
111
|
+
if m.get('port') is not None:
|
|
112
|
+
self.port = m.get('port')
|
|
113
|
+
if m.get('status') is not None:
|
|
114
|
+
self.status = m.get('status')
|
|
115
|
+
return self
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ModifyInstanceConfigRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
from baiducloud_python_sdk_vdb.models.instance_config_user_config import InstanceConfigUserConfig
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ModifyInstanceConfigRequest(AbstractModel):
|
|
10
|
+
"""
|
|
11
|
+
Request entity for ModifyInstanceConfigRequest operation.
|
|
12
|
+
|
|
13
|
+
This class encapsulates all parameters for the API request.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def __init__(self, instance_id=None, reason=None, user_configs=None):
|
|
17
|
+
"""
|
|
18
|
+
Initialize ModifyInstanceConfigRequest request entity.
|
|
19
|
+
|
|
20
|
+
:param instance_id: instance_id parameter
|
|
21
|
+
:type instance_id: str (optional)
|
|
22
|
+
|
|
23
|
+
:param reason: reason parameter
|
|
24
|
+
:type reason: str (optional)
|
|
25
|
+
|
|
26
|
+
:param user_configs: user_configs parameter
|
|
27
|
+
:type user_configs: List[InstanceConfigUserConfig] (optional)
|
|
28
|
+
"""
|
|
29
|
+
super().__init__()
|
|
30
|
+
self.instance_id = instance_id
|
|
31
|
+
self.reason = reason
|
|
32
|
+
self.user_configs = user_configs
|
|
33
|
+
|
|
34
|
+
def to_dict(self):
|
|
35
|
+
"""
|
|
36
|
+
Convert the request entity to a dictionary representation.
|
|
37
|
+
|
|
38
|
+
Nested model objects are recursively converted to dictionaries.
|
|
39
|
+
|
|
40
|
+
:return: Dictionary representation of the request
|
|
41
|
+
:rtype: dict
|
|
42
|
+
"""
|
|
43
|
+
_map = super().to_dict()
|
|
44
|
+
if _map is not None:
|
|
45
|
+
return _map
|
|
46
|
+
result = dict()
|
|
47
|
+
if self.instance_id is not None:
|
|
48
|
+
result['instanceId'] = self.instance_id
|
|
49
|
+
if self.reason is not None:
|
|
50
|
+
result['reason'] = self.reason
|
|
51
|
+
if self.user_configs is not None:
|
|
52
|
+
result['userConfigs'] = [i.to_dict() for i in self.user_configs]
|
|
53
|
+
return result
|
|
54
|
+
|
|
55
|
+
def from_dict(self, m):
|
|
56
|
+
"""
|
|
57
|
+
Populate the request entity from a dictionary.
|
|
58
|
+
|
|
59
|
+
Nested dictionaries are recursively converted to model objects.
|
|
60
|
+
|
|
61
|
+
:param m: Dictionary containing request data
|
|
62
|
+
:type m: dict
|
|
63
|
+
|
|
64
|
+
:return: Self reference for method chaining
|
|
65
|
+
:rtype: ModifyInstanceConfigRequest
|
|
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('instanceId') is not None:
|
|
72
|
+
self.instance_id = m.get('instanceId')
|
|
73
|
+
if m.get('reason') is not None:
|
|
74
|
+
self.reason = m.get('reason')
|
|
75
|
+
if m.get('userConfigs') is not None:
|
|
76
|
+
self.user_configs = [InstanceConfigUserConfig().from_dict(i) for i in m.get('userConfigs')]
|
|
77
|
+
return self
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ModifyPasswordUsingPOSTRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ModifyPasswordUsingPOSTRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for ModifyPasswordUsingPOSTRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, instance_id, engine_type=None, vdb_from=None, password=None, username=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize ModifyPasswordUsingPOSTRequest 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 vdb_from: vdb_from parameter
|
|
26
|
+
:type vdb_from: str (optional)
|
|
27
|
+
|
|
28
|
+
:param password: password parameter
|
|
29
|
+
:type password: str (optional)
|
|
30
|
+
|
|
31
|
+
:param username: username parameter
|
|
32
|
+
:type username: str (optional)
|
|
33
|
+
"""
|
|
34
|
+
super().__init__()
|
|
35
|
+
self.instance_id = instance_id
|
|
36
|
+
self.engine_type = engine_type
|
|
37
|
+
self.vdb_from = vdb_from
|
|
38
|
+
self.password = password
|
|
39
|
+
self.username = username
|
|
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.vdb_from is not None:
|
|
55
|
+
result['from'] = self.vdb_from
|
|
56
|
+
if self.password is not None:
|
|
57
|
+
result['password'] = self.password
|
|
58
|
+
if self.username is not None:
|
|
59
|
+
result['username'] = self.username
|
|
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: ModifyPasswordUsingPOSTRequest
|
|
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('from') is not None:
|
|
83
|
+
self.vdb_from = m.get('from')
|
|
84
|
+
if m.get('password') is not None:
|
|
85
|
+
self.password = m.get('password')
|
|
86
|
+
if m.get('username') is not None:
|
|
87
|
+
self.username = m.get('username')
|
|
88
|
+
return self
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ModifyPublicAccessRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ModifyPublicAccessRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for ModifyPublicAccessRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, instance_id, public_access=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize ModifyPublicAccessRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param instance_id: instance_id parameter
|
|
20
|
+
:type instance_id: str (required)
|
|
21
|
+
|
|
22
|
+
:param public_access: public_access parameter
|
|
23
|
+
:type public_access: bool (optional)
|
|
24
|
+
"""
|
|
25
|
+
super().__init__()
|
|
26
|
+
self.instance_id = instance_id
|
|
27
|
+
self.public_access = public_access
|
|
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
|
+
if self.public_access is not None:
|
|
43
|
+
result['publicAccess'] = self.public_access
|
|
44
|
+
return result
|
|
45
|
+
|
|
46
|
+
def from_dict(self, m):
|
|
47
|
+
"""
|
|
48
|
+
Populate the request entity from a dictionary.
|
|
49
|
+
|
|
50
|
+
Nested dictionaries are recursively converted to model objects.
|
|
51
|
+
|
|
52
|
+
:param m: Dictionary containing request data
|
|
53
|
+
:type m: dict
|
|
54
|
+
|
|
55
|
+
:return: Self reference for method chaining
|
|
56
|
+
:rtype: ModifyPublicAccessRequest
|
|
57
|
+
|
|
58
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
59
|
+
:raises ValueError: If nested model conversion fails
|
|
60
|
+
"""
|
|
61
|
+
m = m or dict()
|
|
62
|
+
if m.get('instanceId') is not None:
|
|
63
|
+
self.instance_id = m.get('instanceId')
|
|
64
|
+
if m.get('publicAccess') is not None:
|
|
65
|
+
self.public_access = m.get('publicAccess')
|
|
66
|
+
return self
|