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,179 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ResizeInstanceUsingPOSTRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
from baiducloud_python_sdk_vdb.models.milvus_component import MilvusComponent
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ResizeInstanceUsingPOSTRequest(AbstractModel):
|
|
10
|
+
"""
|
|
11
|
+
Request entity for ResizeInstanceUsingPOSTRequest operation.
|
|
12
|
+
|
|
13
|
+
This class encapsulates all parameters for the API request.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
def __init__(
|
|
17
|
+
self,
|
|
18
|
+
engine_type=None,
|
|
19
|
+
components=None,
|
|
20
|
+
data_node_num=None,
|
|
21
|
+
disk_flavor=None,
|
|
22
|
+
disk_type=None,
|
|
23
|
+
env=None,
|
|
24
|
+
instance_id=None,
|
|
25
|
+
master_node_spec=None,
|
|
26
|
+
master_num=None,
|
|
27
|
+
node_spec=None,
|
|
28
|
+
node_type=None,
|
|
29
|
+
order_id=None,
|
|
30
|
+
proxy_node_spec=None,
|
|
31
|
+
proxy_num=None,
|
|
32
|
+
):
|
|
33
|
+
"""
|
|
34
|
+
Initialize ResizeInstanceUsingPOSTRequest request entity.
|
|
35
|
+
|
|
36
|
+
:param engine_type: engine_type parameter
|
|
37
|
+
:type engine_type: str (optional)
|
|
38
|
+
|
|
39
|
+
:param components: components parameter
|
|
40
|
+
:type components: List[MilvusComponent] (optional)
|
|
41
|
+
|
|
42
|
+
:param data_node_num: data_node_num parameter
|
|
43
|
+
:type data_node_num: int (optional)
|
|
44
|
+
|
|
45
|
+
:param disk_flavor: disk_flavor parameter
|
|
46
|
+
:type disk_flavor: int (optional)
|
|
47
|
+
|
|
48
|
+
:param disk_type: disk_type parameter
|
|
49
|
+
:type disk_type: str (optional)
|
|
50
|
+
|
|
51
|
+
:param env: env parameter
|
|
52
|
+
:type env: str (optional)
|
|
53
|
+
|
|
54
|
+
:param instance_id: instance_id parameter
|
|
55
|
+
:type instance_id: str (optional)
|
|
56
|
+
|
|
57
|
+
:param master_node_spec: master_node_spec parameter
|
|
58
|
+
:type master_node_spec: str (optional)
|
|
59
|
+
|
|
60
|
+
:param master_num: master_num parameter
|
|
61
|
+
:type master_num: int (optional)
|
|
62
|
+
|
|
63
|
+
:param node_spec: node_spec parameter
|
|
64
|
+
:type node_spec: str (optional)
|
|
65
|
+
|
|
66
|
+
:param node_type: node_type parameter
|
|
67
|
+
:type node_type: str (optional)
|
|
68
|
+
|
|
69
|
+
:param order_id: order_id parameter
|
|
70
|
+
:type order_id: str (optional)
|
|
71
|
+
|
|
72
|
+
:param proxy_node_spec: proxy_node_spec parameter
|
|
73
|
+
:type proxy_node_spec: str (optional)
|
|
74
|
+
|
|
75
|
+
:param proxy_num: proxy_num parameter
|
|
76
|
+
:type proxy_num: int (optional)
|
|
77
|
+
"""
|
|
78
|
+
super().__init__()
|
|
79
|
+
self.engine_type = engine_type
|
|
80
|
+
self.components = components
|
|
81
|
+
self.data_node_num = data_node_num
|
|
82
|
+
self.disk_flavor = disk_flavor
|
|
83
|
+
self.disk_type = disk_type
|
|
84
|
+
self.env = env
|
|
85
|
+
self.instance_id = instance_id
|
|
86
|
+
self.master_node_spec = master_node_spec
|
|
87
|
+
self.master_num = master_num
|
|
88
|
+
self.node_spec = node_spec
|
|
89
|
+
self.node_type = node_type
|
|
90
|
+
self.order_id = order_id
|
|
91
|
+
self.proxy_node_spec = proxy_node_spec
|
|
92
|
+
self.proxy_num = proxy_num
|
|
93
|
+
|
|
94
|
+
def to_dict(self):
|
|
95
|
+
"""
|
|
96
|
+
Convert the request entity to a dictionary representation.
|
|
97
|
+
|
|
98
|
+
Nested model objects are recursively converted to dictionaries.
|
|
99
|
+
|
|
100
|
+
:return: Dictionary representation of the request
|
|
101
|
+
:rtype: dict
|
|
102
|
+
"""
|
|
103
|
+
_map = super().to_dict()
|
|
104
|
+
if _map is not None:
|
|
105
|
+
return _map
|
|
106
|
+
result = dict()
|
|
107
|
+
if self.components is not None:
|
|
108
|
+
result['components'] = [i.to_dict() for i in self.components]
|
|
109
|
+
if self.data_node_num is not None:
|
|
110
|
+
result['dataNodeNum'] = self.data_node_num
|
|
111
|
+
if self.disk_flavor is not None:
|
|
112
|
+
result['diskFlavor'] = self.disk_flavor
|
|
113
|
+
if self.disk_type is not None:
|
|
114
|
+
result['diskType'] = self.disk_type
|
|
115
|
+
if self.env is not None:
|
|
116
|
+
result['env'] = self.env
|
|
117
|
+
if self.instance_id is not None:
|
|
118
|
+
result['instanceId'] = self.instance_id
|
|
119
|
+
if self.master_node_spec is not None:
|
|
120
|
+
result['masterNodeSpec'] = self.master_node_spec
|
|
121
|
+
if self.master_num is not None:
|
|
122
|
+
result['masterNum'] = self.master_num
|
|
123
|
+
if self.node_spec is not None:
|
|
124
|
+
result['nodeSpec'] = self.node_spec
|
|
125
|
+
if self.node_type is not None:
|
|
126
|
+
result['nodeType'] = self.node_type
|
|
127
|
+
if self.order_id is not None:
|
|
128
|
+
result['orderId'] = self.order_id
|
|
129
|
+
if self.proxy_node_spec is not None:
|
|
130
|
+
result['proxyNodeSpec'] = self.proxy_node_spec
|
|
131
|
+
if self.proxy_num is not None:
|
|
132
|
+
result['proxyNum'] = self.proxy_num
|
|
133
|
+
return result
|
|
134
|
+
|
|
135
|
+
def from_dict(self, m):
|
|
136
|
+
"""
|
|
137
|
+
Populate the request entity from a dictionary.
|
|
138
|
+
|
|
139
|
+
Nested dictionaries are recursively converted to model objects.
|
|
140
|
+
|
|
141
|
+
:param m: Dictionary containing request data
|
|
142
|
+
:type m: dict
|
|
143
|
+
|
|
144
|
+
:return: Self reference for method chaining
|
|
145
|
+
:rtype: ResizeInstanceUsingPOSTRequest
|
|
146
|
+
|
|
147
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
148
|
+
:raises ValueError: If nested model conversion fails
|
|
149
|
+
"""
|
|
150
|
+
m = m or dict()
|
|
151
|
+
if m.get('engineType') is not None:
|
|
152
|
+
self.engine_type = m.get('engineType')
|
|
153
|
+
if m.get('components') is not None:
|
|
154
|
+
self.components = [MilvusComponent().from_dict(i) for i in m.get('components')]
|
|
155
|
+
if m.get('dataNodeNum') is not None:
|
|
156
|
+
self.data_node_num = m.get('dataNodeNum')
|
|
157
|
+
if m.get('diskFlavor') is not None:
|
|
158
|
+
self.disk_flavor = m.get('diskFlavor')
|
|
159
|
+
if m.get('diskType') is not None:
|
|
160
|
+
self.disk_type = m.get('diskType')
|
|
161
|
+
if m.get('env') is not None:
|
|
162
|
+
self.env = m.get('env')
|
|
163
|
+
if m.get('instanceId') is not None:
|
|
164
|
+
self.instance_id = m.get('instanceId')
|
|
165
|
+
if m.get('masterNodeSpec') is not None:
|
|
166
|
+
self.master_node_spec = m.get('masterNodeSpec')
|
|
167
|
+
if m.get('masterNum') is not None:
|
|
168
|
+
self.master_num = m.get('masterNum')
|
|
169
|
+
if m.get('nodeSpec') is not None:
|
|
170
|
+
self.node_spec = m.get('nodeSpec')
|
|
171
|
+
if m.get('nodeType') is not None:
|
|
172
|
+
self.node_type = m.get('nodeType')
|
|
173
|
+
if m.get('orderId') is not None:
|
|
174
|
+
self.order_id = m.get('orderId')
|
|
175
|
+
if m.get('proxyNodeSpec') is not None:
|
|
176
|
+
self.proxy_node_spec = m.get('proxyNodeSpec')
|
|
177
|
+
if m.get('proxyNum') is not None:
|
|
178
|
+
self.proxy_num = m.get('proxyNum')
|
|
179
|
+
return self
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ResizeInstanceUsingPOSTResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ResizeInstanceUsingPOSTResponse(BceResponse):
|
|
9
|
+
"""
|
|
10
|
+
ResizeInstanceUsingPOSTResponse
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, order_id=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize ResizeInstanceUsingPOSTResponse response.
|
|
16
|
+
|
|
17
|
+
:param order_id: order_id field
|
|
18
|
+
:type order_id: str (optional)
|
|
19
|
+
"""
|
|
20
|
+
super().__init__()
|
|
21
|
+
self.order_id = order_id
|
|
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.order_id is not None:
|
|
40
|
+
result['orderId'] = self.order_id
|
|
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: ResizeInstanceUsingPOSTResponse
|
|
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('orderId') is not None:
|
|
60
|
+
self.order_id = m.get('orderId')
|
|
61
|
+
return self
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for SetCommentUsingPOSTRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class SetCommentUsingPOSTRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for SetCommentUsingPOSTRequest 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, comment=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize SetCommentUsingPOSTRequest 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 comment: comment parameter
|
|
32
|
+
:type comment: str (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.comment = comment
|
|
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.comment is not None:
|
|
59
|
+
result['comment'] = self.comment
|
|
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: SetCommentUsingPOSTRequest
|
|
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('comment') is not None:
|
|
87
|
+
self.comment = m.get('comment')
|
|
88
|
+
return self
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for SetConfigUsingPOSTRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class SetConfigUsingPOSTRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for SetConfigUsingPOSTRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(
|
|
16
|
+
self, instance_id, engine_type=None, auto_backup_config=None, auto_backup_enabled=None, is_encrypt=None
|
|
17
|
+
):
|
|
18
|
+
"""
|
|
19
|
+
Initialize SetConfigUsingPOSTRequest request entity.
|
|
20
|
+
|
|
21
|
+
:param instance_id: instance_id parameter
|
|
22
|
+
:type instance_id: str (required)
|
|
23
|
+
|
|
24
|
+
:param engine_type: engine_type parameter
|
|
25
|
+
:type engine_type: str (optional)
|
|
26
|
+
|
|
27
|
+
:param auto_backup_config: auto_backup_config parameter
|
|
28
|
+
:type auto_backup_config: str (optional)
|
|
29
|
+
|
|
30
|
+
:param auto_backup_enabled: auto_backup_enabled parameter
|
|
31
|
+
:type auto_backup_enabled: bool (optional)
|
|
32
|
+
|
|
33
|
+
:param is_encrypt: is_encrypt parameter
|
|
34
|
+
:type is_encrypt: str (optional)
|
|
35
|
+
"""
|
|
36
|
+
super().__init__()
|
|
37
|
+
self.instance_id = instance_id
|
|
38
|
+
self.engine_type = engine_type
|
|
39
|
+
self.auto_backup_config = auto_backup_config
|
|
40
|
+
self.auto_backup_enabled = auto_backup_enabled
|
|
41
|
+
self.is_encrypt = is_encrypt
|
|
42
|
+
|
|
43
|
+
def to_dict(self):
|
|
44
|
+
"""
|
|
45
|
+
Convert the request entity to a dictionary representation.
|
|
46
|
+
|
|
47
|
+
Nested model objects are recursively converted to dictionaries.
|
|
48
|
+
|
|
49
|
+
:return: Dictionary representation of the request
|
|
50
|
+
:rtype: dict
|
|
51
|
+
"""
|
|
52
|
+
_map = super().to_dict()
|
|
53
|
+
if _map is not None:
|
|
54
|
+
return _map
|
|
55
|
+
result = dict()
|
|
56
|
+
if self.auto_backup_config is not None:
|
|
57
|
+
result['autoBackupConfig'] = self.auto_backup_config
|
|
58
|
+
if self.auto_backup_enabled is not None:
|
|
59
|
+
result['autoBackupEnabled'] = self.auto_backup_enabled
|
|
60
|
+
if self.is_encrypt is not None:
|
|
61
|
+
result['isEncrypt'] = self.is_encrypt
|
|
62
|
+
return result
|
|
63
|
+
|
|
64
|
+
def from_dict(self, m):
|
|
65
|
+
"""
|
|
66
|
+
Populate the request entity from a dictionary.
|
|
67
|
+
|
|
68
|
+
Nested dictionaries are recursively converted to model objects.
|
|
69
|
+
|
|
70
|
+
:param m: Dictionary containing request data
|
|
71
|
+
:type m: dict
|
|
72
|
+
|
|
73
|
+
:return: Self reference for method chaining
|
|
74
|
+
:rtype: SetConfigUsingPOSTRequest
|
|
75
|
+
|
|
76
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
77
|
+
:raises ValueError: If nested model conversion fails
|
|
78
|
+
"""
|
|
79
|
+
m = m or dict()
|
|
80
|
+
if m.get('instanceId') is not None:
|
|
81
|
+
self.instance_id = m.get('instanceId')
|
|
82
|
+
if m.get('engineType') is not None:
|
|
83
|
+
self.engine_type = m.get('engineType')
|
|
84
|
+
if m.get('autoBackupConfig') is not None:
|
|
85
|
+
self.auto_backup_config = m.get('autoBackupConfig')
|
|
86
|
+
if m.get('autoBackupEnabled') is not None:
|
|
87
|
+
self.auto_backup_enabled = m.get('autoBackupEnabled')
|
|
88
|
+
if m.get('isEncrypt') is not None:
|
|
89
|
+
self.is_encrypt = m.get('isEncrypt')
|
|
90
|
+
return self
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Subnet information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Subnet(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Subnet
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, az=None, cidr=None, name=None, short_id=None, subnet_id=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize Subnet instance.
|
|
16
|
+
|
|
17
|
+
:param az:
|
|
18
|
+
:type az: str (optional)
|
|
19
|
+
|
|
20
|
+
:param cidr:
|
|
21
|
+
:type cidr: str (optional)
|
|
22
|
+
|
|
23
|
+
:param name:
|
|
24
|
+
:type name: str (optional)
|
|
25
|
+
|
|
26
|
+
:param short_id:
|
|
27
|
+
:type short_id: str (optional)
|
|
28
|
+
|
|
29
|
+
:param subnet_id:
|
|
30
|
+
:type subnet_id: str (optional)
|
|
31
|
+
"""
|
|
32
|
+
super().__init__()
|
|
33
|
+
self.az = az
|
|
34
|
+
self.cidr = cidr
|
|
35
|
+
self.name = name
|
|
36
|
+
self.short_id = short_id
|
|
37
|
+
self.subnet_id = subnet_id
|
|
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.az is not None:
|
|
53
|
+
result['az'] = self.az
|
|
54
|
+
if self.cidr is not None:
|
|
55
|
+
result['cidr'] = self.cidr
|
|
56
|
+
if self.name is not None:
|
|
57
|
+
result['name'] = self.name
|
|
58
|
+
if self.short_id is not None:
|
|
59
|
+
result['shortId'] = self.short_id
|
|
60
|
+
if self.subnet_id is not None:
|
|
61
|
+
result['subnetId'] = self.subnet_id
|
|
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: Subnet
|
|
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('az') is not None:
|
|
81
|
+
self.az = m.get('az')
|
|
82
|
+
if m.get('cidr') is not None:
|
|
83
|
+
self.cidr = m.get('cidr')
|
|
84
|
+
if m.get('name') is not None:
|
|
85
|
+
self.name = m.get('name')
|
|
86
|
+
if m.get('shortId') is not None:
|
|
87
|
+
self.short_id = m.get('shortId')
|
|
88
|
+
if m.get('subnetId') is not None:
|
|
89
|
+
self.subnet_id = m.get('subnetId')
|
|
90
|
+
return self
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"""
|
|
2
|
+
TargetPackage information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class TargetPackage(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
TargetPackage
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, target_milvus_kernel_version=None, target_package_version=None, upgrade_note=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize TargetPackage instance.
|
|
16
|
+
|
|
17
|
+
:param target_milvus_kernel_version:
|
|
18
|
+
:type target_milvus_kernel_version: str (optional)
|
|
19
|
+
|
|
20
|
+
:param target_package_version:
|
|
21
|
+
:type target_package_version: str (optional)
|
|
22
|
+
|
|
23
|
+
:param upgrade_note:
|
|
24
|
+
:type upgrade_note: str (optional)
|
|
25
|
+
"""
|
|
26
|
+
super().__init__()
|
|
27
|
+
self.target_milvus_kernel_version = target_milvus_kernel_version
|
|
28
|
+
self.target_package_version = target_package_version
|
|
29
|
+
self.upgrade_note = upgrade_note
|
|
30
|
+
|
|
31
|
+
def to_dict(self):
|
|
32
|
+
"""
|
|
33
|
+
Convert the model instance to a dictionary representation.
|
|
34
|
+
|
|
35
|
+
Nested model objects are recursively converted to dictionaries.
|
|
36
|
+
|
|
37
|
+
:return: Dictionary representation of the model
|
|
38
|
+
:rtype: dict
|
|
39
|
+
"""
|
|
40
|
+
_map = super().to_dict()
|
|
41
|
+
if _map is not None:
|
|
42
|
+
return _map
|
|
43
|
+
result = dict()
|
|
44
|
+
if self.target_milvus_kernel_version is not None:
|
|
45
|
+
result['targetMilvusKernelVersion'] = self.target_milvus_kernel_version
|
|
46
|
+
if self.target_package_version is not None:
|
|
47
|
+
result['targetPackageVersion'] = self.target_package_version
|
|
48
|
+
if self.upgrade_note is not None:
|
|
49
|
+
result['upgradeNote'] = self.upgrade_note
|
|
50
|
+
return result
|
|
51
|
+
|
|
52
|
+
def from_dict(self, m):
|
|
53
|
+
"""
|
|
54
|
+
Populate the model instance from a dictionary.
|
|
55
|
+
|
|
56
|
+
Nested dictionaries are recursively converted to model objects.
|
|
57
|
+
|
|
58
|
+
:param m: Dictionary containing model data
|
|
59
|
+
:type m: dict
|
|
60
|
+
|
|
61
|
+
:return: Self reference for method chaining
|
|
62
|
+
:rtype: TargetPackage
|
|
63
|
+
|
|
64
|
+
:raises TypeError: If input is not a dictionary type
|
|
65
|
+
:raises ValueError: If nested model conversion fails
|
|
66
|
+
"""
|
|
67
|
+
m = m or dict()
|
|
68
|
+
if m.get('targetMilvusKernelVersion') is not None:
|
|
69
|
+
self.target_milvus_kernel_version = m.get('targetMilvusKernelVersion')
|
|
70
|
+
if m.get('targetPackageVersion') is not None:
|
|
71
|
+
self.target_package_version = m.get('targetPackageVersion')
|
|
72
|
+
if m.get('upgradeNote') is not None:
|
|
73
|
+
self.upgrade_note = m.get('upgradeNote')
|
|
74
|
+
return self
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for UnbindEipUsingPostRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UnbindEipUsingPostRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for UnbindEipUsingPostRequest 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 UnbindEipUsingPostRequest 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: UnbindEipUsingPostRequest
|
|
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
|