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,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Getinstancelistusingget1Response information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
|
|
7
|
+
from baiducloud_python_sdk_vdb.models.instance import Instance
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Getinstancelistusingget1Response(BceResponse):
|
|
11
|
+
"""
|
|
12
|
+
Getinstancelistusingget1Response
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, instances=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize Getinstancelistusingget1Response instance.
|
|
18
|
+
|
|
19
|
+
:param instances:
|
|
20
|
+
:type instances: List[Instance] (optional)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.instances = instances
|
|
24
|
+
|
|
25
|
+
def to_dict(self):
|
|
26
|
+
"""
|
|
27
|
+
Convert the model instance to a dictionary representation.
|
|
28
|
+
|
|
29
|
+
Nested model objects are recursively converted to dictionaries.
|
|
30
|
+
|
|
31
|
+
Includes metadata from the parent BceResponse class.
|
|
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.metadata is not None:
|
|
41
|
+
result['metadata'] = dict(self.metadata)
|
|
42
|
+
if self.instances is not None:
|
|
43
|
+
result['instances'] = [i.to_dict() for i in self.instances]
|
|
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: Getinstancelistusingget1Response
|
|
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('instances') is not None:
|
|
63
|
+
self.instances = [Instance().from_dict(i) for i in m.get('instances')]
|
|
64
|
+
return self
|
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Instance information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
from baiducloud_python_sdk_vdb.models.vdb_auto_renew_rule import VdbAutoRenewRule
|
|
8
|
+
|
|
9
|
+
from baiducloud_python_sdk_vdb.models.az_info import AzInfo
|
|
10
|
+
|
|
11
|
+
from baiducloud_python_sdk_vdb.models.milvus_component import MilvusComponent
|
|
12
|
+
|
|
13
|
+
from baiducloud_python_sdk_vdb.models.data_node import DataNode
|
|
14
|
+
|
|
15
|
+
from baiducloud_python_sdk_vdb.models.log_service import LogService
|
|
16
|
+
|
|
17
|
+
from baiducloud_python_sdk_vdb.models.logging_service import LoggingService
|
|
18
|
+
|
|
19
|
+
from baiducloud_python_sdk_vdb.models.milvus_node import MilvusNode
|
|
20
|
+
|
|
21
|
+
from baiducloud_python_sdk_vdb.models.proxy import Proxy
|
|
22
|
+
|
|
23
|
+
from baiducloud_python_sdk_vdb.models.subnet import Subnet
|
|
24
|
+
|
|
25
|
+
from baiducloud_python_sdk_vdb.models.target_package import TargetPackage
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class Instance(AbstractModel):
|
|
29
|
+
"""
|
|
30
|
+
Instance
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
def __init__(
|
|
34
|
+
self,
|
|
35
|
+
auto_renew_rule=None,
|
|
36
|
+
availability_zone=None,
|
|
37
|
+
az_infos=None,
|
|
38
|
+
bcm_cycle=None,
|
|
39
|
+
components=None,
|
|
40
|
+
create_time=None,
|
|
41
|
+
data_node_num=None,
|
|
42
|
+
data_nodes=None,
|
|
43
|
+
data_status=None,
|
|
44
|
+
disk_type=None,
|
|
45
|
+
domain=None,
|
|
46
|
+
eip=None,
|
|
47
|
+
enable_embedding=None,
|
|
48
|
+
enable_encryption=None,
|
|
49
|
+
enable_tde=None,
|
|
50
|
+
engine_minor_version=None,
|
|
51
|
+
engine_type=None,
|
|
52
|
+
engine_version=None,
|
|
53
|
+
expire_date=None,
|
|
54
|
+
instance_expire_time=None,
|
|
55
|
+
instance_id=None,
|
|
56
|
+
instance_name=None,
|
|
57
|
+
instance_type=None,
|
|
58
|
+
ip=None,
|
|
59
|
+
log_service=None,
|
|
60
|
+
logging_services=None,
|
|
61
|
+
node_spec=None,
|
|
62
|
+
nodes=None,
|
|
63
|
+
order_status=None,
|
|
64
|
+
package_version=None,
|
|
65
|
+
port=None,
|
|
66
|
+
product_type=None,
|
|
67
|
+
proxies=None,
|
|
68
|
+
proxy_node_spec=None,
|
|
69
|
+
proxy_num=None,
|
|
70
|
+
status=None,
|
|
71
|
+
subnets=None,
|
|
72
|
+
support_embedding=None,
|
|
73
|
+
target_package=None,
|
|
74
|
+
total_disk_capacity_in_gb=None,
|
|
75
|
+
total_mem_capacity_in_gb=None,
|
|
76
|
+
upgradable=None,
|
|
77
|
+
used_disk_capacity_in_gb=None,
|
|
78
|
+
used_mem_capacity_in_gb=None,
|
|
79
|
+
vip=None,
|
|
80
|
+
vpc_cidr=None,
|
|
81
|
+
vpc_id=None,
|
|
82
|
+
vpc_name=None,
|
|
83
|
+
):
|
|
84
|
+
"""
|
|
85
|
+
Initialize Instance instance.
|
|
86
|
+
|
|
87
|
+
:param auto_renew_rule: auto_renew_rule attribute
|
|
88
|
+
:type auto_renew_rule: VdbAutoRenewRule (optional)
|
|
89
|
+
|
|
90
|
+
:param availability_zone:
|
|
91
|
+
:type availability_zone: str (optional)
|
|
92
|
+
|
|
93
|
+
:param az_infos:
|
|
94
|
+
:type az_infos: List[AzInfo] (optional)
|
|
95
|
+
|
|
96
|
+
:param bcm_cycle:
|
|
97
|
+
:type bcm_cycle: int (optional)
|
|
98
|
+
|
|
99
|
+
:param components:
|
|
100
|
+
:type components: List[MilvusComponent] (optional)
|
|
101
|
+
|
|
102
|
+
:param create_time:
|
|
103
|
+
:type create_time: str (optional)
|
|
104
|
+
|
|
105
|
+
:param data_node_num:
|
|
106
|
+
:type data_node_num: int (optional)
|
|
107
|
+
|
|
108
|
+
:param data_nodes:
|
|
109
|
+
:type data_nodes: List[DataNode] (optional)
|
|
110
|
+
|
|
111
|
+
:param data_status:
|
|
112
|
+
:type data_status: str (optional)
|
|
113
|
+
|
|
114
|
+
:param disk_type:
|
|
115
|
+
:type disk_type: str (optional)
|
|
116
|
+
|
|
117
|
+
:param domain:
|
|
118
|
+
:type domain: str (optional)
|
|
119
|
+
|
|
120
|
+
:param eip:
|
|
121
|
+
:type eip: str (optional)
|
|
122
|
+
|
|
123
|
+
:param enable_embedding:
|
|
124
|
+
:type enable_embedding: bool (optional)
|
|
125
|
+
|
|
126
|
+
:param enable_encryption:
|
|
127
|
+
:type enable_encryption: bool (optional)
|
|
128
|
+
|
|
129
|
+
:param enable_tde:
|
|
130
|
+
:type enable_tde: str (optional)
|
|
131
|
+
|
|
132
|
+
:param engine_minor_version:
|
|
133
|
+
:type engine_minor_version: str (optional)
|
|
134
|
+
|
|
135
|
+
:param engine_type:
|
|
136
|
+
:type engine_type: str (optional)
|
|
137
|
+
|
|
138
|
+
:param engine_version:
|
|
139
|
+
:type engine_version: str (optional)
|
|
140
|
+
|
|
141
|
+
:param expire_date:
|
|
142
|
+
:type expire_date: int (optional)
|
|
143
|
+
|
|
144
|
+
:param instance_expire_time:
|
|
145
|
+
:type instance_expire_time: str (optional)
|
|
146
|
+
|
|
147
|
+
:param instance_id:
|
|
148
|
+
:type instance_id: str (optional)
|
|
149
|
+
|
|
150
|
+
:param instance_name:
|
|
151
|
+
:type instance_name: str (optional)
|
|
152
|
+
|
|
153
|
+
:param instance_type:
|
|
154
|
+
:type instance_type: str (optional)
|
|
155
|
+
|
|
156
|
+
:param ip:
|
|
157
|
+
:type ip: str (optional)
|
|
158
|
+
|
|
159
|
+
:param log_service: log_service attribute
|
|
160
|
+
:type log_service: LogService (optional)
|
|
161
|
+
|
|
162
|
+
:param logging_services:
|
|
163
|
+
:type logging_services: List[LoggingService] (optional)
|
|
164
|
+
|
|
165
|
+
:param node_spec:
|
|
166
|
+
:type node_spec: str (optional)
|
|
167
|
+
|
|
168
|
+
:param nodes:
|
|
169
|
+
:type nodes: List[MilvusNode] (optional)
|
|
170
|
+
|
|
171
|
+
:param order_status:
|
|
172
|
+
:type order_status: str (optional)
|
|
173
|
+
|
|
174
|
+
:param package_version:
|
|
175
|
+
:type package_version: str (optional)
|
|
176
|
+
|
|
177
|
+
:param port:
|
|
178
|
+
:type port: int (optional)
|
|
179
|
+
|
|
180
|
+
:param product_type:
|
|
181
|
+
:type product_type: str (optional)
|
|
182
|
+
|
|
183
|
+
:param proxies:
|
|
184
|
+
:type proxies: List[Proxy] (optional)
|
|
185
|
+
|
|
186
|
+
:param proxy_node_spec:
|
|
187
|
+
:type proxy_node_spec: str (optional)
|
|
188
|
+
|
|
189
|
+
:param proxy_num:
|
|
190
|
+
:type proxy_num: int (optional)
|
|
191
|
+
|
|
192
|
+
:param status:
|
|
193
|
+
:type status: str (optional)
|
|
194
|
+
|
|
195
|
+
:param subnets:
|
|
196
|
+
:type subnets: List[Subnet] (optional)
|
|
197
|
+
|
|
198
|
+
:param support_embedding:
|
|
199
|
+
:type support_embedding: bool (optional)
|
|
200
|
+
|
|
201
|
+
:param target_package: target_package attribute
|
|
202
|
+
:type target_package: TargetPackage (optional)
|
|
203
|
+
|
|
204
|
+
:param total_disk_capacity_in_gb:
|
|
205
|
+
:type total_disk_capacity_in_gb: int (optional)
|
|
206
|
+
|
|
207
|
+
:param total_mem_capacity_in_gb:
|
|
208
|
+
:type total_mem_capacity_in_gb: int (optional)
|
|
209
|
+
|
|
210
|
+
:param upgradable:
|
|
211
|
+
:type upgradable: bool (optional)
|
|
212
|
+
|
|
213
|
+
:param used_disk_capacity_in_gb:
|
|
214
|
+
:type used_disk_capacity_in_gb: float (optional)
|
|
215
|
+
|
|
216
|
+
:param used_mem_capacity_in_gb:
|
|
217
|
+
:type used_mem_capacity_in_gb: float (optional)
|
|
218
|
+
|
|
219
|
+
:param vip:
|
|
220
|
+
:type vip: str (optional)
|
|
221
|
+
|
|
222
|
+
:param vpc_cidr:
|
|
223
|
+
:type vpc_cidr: str (optional)
|
|
224
|
+
|
|
225
|
+
:param vpc_id:
|
|
226
|
+
:type vpc_id: str (optional)
|
|
227
|
+
|
|
228
|
+
:param vpc_name:
|
|
229
|
+
:type vpc_name: str (optional)
|
|
230
|
+
"""
|
|
231
|
+
super().__init__()
|
|
232
|
+
self.auto_renew_rule = auto_renew_rule
|
|
233
|
+
self.availability_zone = availability_zone
|
|
234
|
+
self.az_infos = az_infos
|
|
235
|
+
self.bcm_cycle = bcm_cycle
|
|
236
|
+
self.components = components
|
|
237
|
+
self.create_time = create_time
|
|
238
|
+
self.data_node_num = data_node_num
|
|
239
|
+
self.data_nodes = data_nodes
|
|
240
|
+
self.data_status = data_status
|
|
241
|
+
self.disk_type = disk_type
|
|
242
|
+
self.domain = domain
|
|
243
|
+
self.eip = eip
|
|
244
|
+
self.enable_embedding = enable_embedding
|
|
245
|
+
self.enable_encryption = enable_encryption
|
|
246
|
+
self.enable_tde = enable_tde
|
|
247
|
+
self.engine_minor_version = engine_minor_version
|
|
248
|
+
self.engine_type = engine_type
|
|
249
|
+
self.engine_version = engine_version
|
|
250
|
+
self.expire_date = expire_date
|
|
251
|
+
self.instance_expire_time = instance_expire_time
|
|
252
|
+
self.instance_id = instance_id
|
|
253
|
+
self.instance_name = instance_name
|
|
254
|
+
self.instance_type = instance_type
|
|
255
|
+
self.ip = ip
|
|
256
|
+
self.log_service = log_service
|
|
257
|
+
self.logging_services = logging_services
|
|
258
|
+
self.node_spec = node_spec
|
|
259
|
+
self.nodes = nodes
|
|
260
|
+
self.order_status = order_status
|
|
261
|
+
self.package_version = package_version
|
|
262
|
+
self.port = port
|
|
263
|
+
self.product_type = product_type
|
|
264
|
+
self.proxies = proxies
|
|
265
|
+
self.proxy_node_spec = proxy_node_spec
|
|
266
|
+
self.proxy_num = proxy_num
|
|
267
|
+
self.status = status
|
|
268
|
+
self.subnets = subnets
|
|
269
|
+
self.support_embedding = support_embedding
|
|
270
|
+
self.target_package = target_package
|
|
271
|
+
self.total_disk_capacity_in_gb = total_disk_capacity_in_gb
|
|
272
|
+
self.total_mem_capacity_in_gb = total_mem_capacity_in_gb
|
|
273
|
+
self.upgradable = upgradable
|
|
274
|
+
self.used_disk_capacity_in_gb = used_disk_capacity_in_gb
|
|
275
|
+
self.used_mem_capacity_in_gb = used_mem_capacity_in_gb
|
|
276
|
+
self.vip = vip
|
|
277
|
+
self.vpc_cidr = vpc_cidr
|
|
278
|
+
self.vpc_id = vpc_id
|
|
279
|
+
self.vpc_name = vpc_name
|
|
280
|
+
|
|
281
|
+
def to_dict(self):
|
|
282
|
+
"""
|
|
283
|
+
Convert the model instance to a dictionary representation.
|
|
284
|
+
|
|
285
|
+
Nested model objects are recursively converted to dictionaries.
|
|
286
|
+
|
|
287
|
+
:return: Dictionary representation of the model
|
|
288
|
+
:rtype: dict
|
|
289
|
+
"""
|
|
290
|
+
_map = super().to_dict()
|
|
291
|
+
if _map is not None:
|
|
292
|
+
return _map
|
|
293
|
+
result = dict()
|
|
294
|
+
if self.auto_renew_rule is not None:
|
|
295
|
+
result['autoRenewRule'] = self.auto_renew_rule.to_dict()
|
|
296
|
+
if self.availability_zone is not None:
|
|
297
|
+
result['availabilityZone'] = self.availability_zone
|
|
298
|
+
if self.az_infos is not None:
|
|
299
|
+
result['azInfos'] = [i.to_dict() for i in self.az_infos]
|
|
300
|
+
if self.bcm_cycle is not None:
|
|
301
|
+
result['bcmCycle'] = self.bcm_cycle
|
|
302
|
+
if self.components is not None:
|
|
303
|
+
result['components'] = [i.to_dict() for i in self.components]
|
|
304
|
+
if self.create_time is not None:
|
|
305
|
+
result['createTime'] = self.create_time
|
|
306
|
+
if self.data_node_num is not None:
|
|
307
|
+
result['dataNodeNum'] = self.data_node_num
|
|
308
|
+
if self.data_nodes is not None:
|
|
309
|
+
result['dataNodes'] = [i.to_dict() for i in self.data_nodes]
|
|
310
|
+
if self.data_status is not None:
|
|
311
|
+
result['dataStatus'] = self.data_status
|
|
312
|
+
if self.disk_type is not None:
|
|
313
|
+
result['diskType'] = self.disk_type
|
|
314
|
+
if self.domain is not None:
|
|
315
|
+
result['domain'] = self.domain
|
|
316
|
+
if self.eip is not None:
|
|
317
|
+
result['eip'] = self.eip
|
|
318
|
+
if self.enable_embedding is not None:
|
|
319
|
+
result['enableEmbedding'] = self.enable_embedding
|
|
320
|
+
if self.enable_encryption is not None:
|
|
321
|
+
result['enableEncryption'] = self.enable_encryption
|
|
322
|
+
if self.enable_tde is not None:
|
|
323
|
+
result['enableTDE'] = self.enable_tde
|
|
324
|
+
if self.engine_minor_version is not None:
|
|
325
|
+
result['engineMinorVersion'] = self.engine_minor_version
|
|
326
|
+
if self.engine_type is not None:
|
|
327
|
+
result['engineType'] = self.engine_type
|
|
328
|
+
if self.engine_version is not None:
|
|
329
|
+
result['engineVersion'] = self.engine_version
|
|
330
|
+
if self.expire_date is not None:
|
|
331
|
+
result['expireDate'] = self.expire_date
|
|
332
|
+
if self.instance_expire_time is not None:
|
|
333
|
+
result['instanceExpireTime'] = self.instance_expire_time
|
|
334
|
+
if self.instance_id is not None:
|
|
335
|
+
result['instanceId'] = self.instance_id
|
|
336
|
+
if self.instance_name is not None:
|
|
337
|
+
result['instanceName'] = self.instance_name
|
|
338
|
+
if self.instance_type is not None:
|
|
339
|
+
result['instanceType'] = self.instance_type
|
|
340
|
+
if self.ip is not None:
|
|
341
|
+
result['ip'] = self.ip
|
|
342
|
+
if self.log_service is not None:
|
|
343
|
+
result['logService'] = self.log_service.to_dict()
|
|
344
|
+
if self.logging_services is not None:
|
|
345
|
+
result['loggingServices'] = [i.to_dict() for i in self.logging_services]
|
|
346
|
+
if self.node_spec is not None:
|
|
347
|
+
result['nodeSpec'] = self.node_spec
|
|
348
|
+
if self.nodes is not None:
|
|
349
|
+
result['nodes'] = [i.to_dict() for i in self.nodes]
|
|
350
|
+
if self.order_status is not None:
|
|
351
|
+
result['orderStatus'] = self.order_status
|
|
352
|
+
if self.package_version is not None:
|
|
353
|
+
result['packageVersion'] = self.package_version
|
|
354
|
+
if self.port is not None:
|
|
355
|
+
result['port'] = self.port
|
|
356
|
+
if self.product_type is not None:
|
|
357
|
+
result['productType'] = self.product_type
|
|
358
|
+
if self.proxies is not None:
|
|
359
|
+
result['proxies'] = [i.to_dict() for i in self.proxies]
|
|
360
|
+
if self.proxy_node_spec is not None:
|
|
361
|
+
result['proxyNodeSpec'] = self.proxy_node_spec
|
|
362
|
+
if self.proxy_num is not None:
|
|
363
|
+
result['proxyNum'] = self.proxy_num
|
|
364
|
+
if self.status is not None:
|
|
365
|
+
result['status'] = self.status
|
|
366
|
+
if self.subnets is not None:
|
|
367
|
+
result['subnets'] = [i.to_dict() for i in self.subnets]
|
|
368
|
+
if self.support_embedding is not None:
|
|
369
|
+
result['supportEmbedding'] = self.support_embedding
|
|
370
|
+
if self.target_package is not None:
|
|
371
|
+
result['targetPackage'] = self.target_package.to_dict()
|
|
372
|
+
if self.total_disk_capacity_in_gb is not None:
|
|
373
|
+
result['totalDiskCapacityInGB'] = self.total_disk_capacity_in_gb
|
|
374
|
+
if self.total_mem_capacity_in_gb is not None:
|
|
375
|
+
result['totalMemCapacityInGB'] = self.total_mem_capacity_in_gb
|
|
376
|
+
if self.upgradable is not None:
|
|
377
|
+
result['upgradable'] = self.upgradable
|
|
378
|
+
if self.used_disk_capacity_in_gb is not None:
|
|
379
|
+
result['usedDiskCapacityInGB'] = self.used_disk_capacity_in_gb
|
|
380
|
+
if self.used_mem_capacity_in_gb is not None:
|
|
381
|
+
result['usedMemCapacityInGB'] = self.used_mem_capacity_in_gb
|
|
382
|
+
if self.vip is not None:
|
|
383
|
+
result['vip'] = self.vip
|
|
384
|
+
if self.vpc_cidr is not None:
|
|
385
|
+
result['vpcCidr'] = self.vpc_cidr
|
|
386
|
+
if self.vpc_id is not None:
|
|
387
|
+
result['vpcId'] = self.vpc_id
|
|
388
|
+
if self.vpc_name is not None:
|
|
389
|
+
result['vpcName'] = self.vpc_name
|
|
390
|
+
return result
|
|
391
|
+
|
|
392
|
+
def from_dict(self, m):
|
|
393
|
+
"""
|
|
394
|
+
Populate the model instance from a dictionary.
|
|
395
|
+
|
|
396
|
+
Nested dictionaries are recursively converted to model objects.
|
|
397
|
+
|
|
398
|
+
:param m: Dictionary containing model data
|
|
399
|
+
:type m: dict
|
|
400
|
+
|
|
401
|
+
:return: Self reference for method chaining
|
|
402
|
+
:rtype: Instance
|
|
403
|
+
|
|
404
|
+
:raises TypeError: If input is not a dictionary type
|
|
405
|
+
:raises ValueError: If nested model conversion fails
|
|
406
|
+
"""
|
|
407
|
+
m = m or dict()
|
|
408
|
+
if m.get('autoRenewRule') is not None:
|
|
409
|
+
self.auto_renew_rule = VdbAutoRenewRule().from_dict(m.get('autoRenewRule'))
|
|
410
|
+
if m.get('availabilityZone') is not None:
|
|
411
|
+
self.availability_zone = m.get('availabilityZone')
|
|
412
|
+
if m.get('azInfos') is not None:
|
|
413
|
+
self.az_infos = [AzInfo().from_dict(i) for i in m.get('azInfos')]
|
|
414
|
+
if m.get('bcmCycle') is not None:
|
|
415
|
+
self.bcm_cycle = m.get('bcmCycle')
|
|
416
|
+
if m.get('components') is not None:
|
|
417
|
+
self.components = [MilvusComponent().from_dict(i) for i in m.get('components')]
|
|
418
|
+
if m.get('createTime') is not None:
|
|
419
|
+
self.create_time = m.get('createTime')
|
|
420
|
+
if m.get('dataNodeNum') is not None:
|
|
421
|
+
self.data_node_num = m.get('dataNodeNum')
|
|
422
|
+
if m.get('dataNodes') is not None:
|
|
423
|
+
self.data_nodes = [DataNode().from_dict(i) for i in m.get('dataNodes')]
|
|
424
|
+
if m.get('dataStatus') is not None:
|
|
425
|
+
self.data_status = m.get('dataStatus')
|
|
426
|
+
if m.get('diskType') is not None:
|
|
427
|
+
self.disk_type = m.get('diskType')
|
|
428
|
+
if m.get('domain') is not None:
|
|
429
|
+
self.domain = m.get('domain')
|
|
430
|
+
if m.get('eip') is not None:
|
|
431
|
+
self.eip = m.get('eip')
|
|
432
|
+
if m.get('enableEmbedding') is not None:
|
|
433
|
+
self.enable_embedding = m.get('enableEmbedding')
|
|
434
|
+
if m.get('enableEncryption') is not None:
|
|
435
|
+
self.enable_encryption = m.get('enableEncryption')
|
|
436
|
+
if m.get('enableTDE') is not None:
|
|
437
|
+
self.enable_tde = m.get('enableTDE')
|
|
438
|
+
if m.get('engineMinorVersion') is not None:
|
|
439
|
+
self.engine_minor_version = m.get('engineMinorVersion')
|
|
440
|
+
if m.get('engineType') is not None:
|
|
441
|
+
self.engine_type = m.get('engineType')
|
|
442
|
+
if m.get('engineVersion') is not None:
|
|
443
|
+
self.engine_version = m.get('engineVersion')
|
|
444
|
+
if m.get('expireDate') is not None:
|
|
445
|
+
self.expire_date = m.get('expireDate')
|
|
446
|
+
if m.get('instanceExpireTime') is not None:
|
|
447
|
+
self.instance_expire_time = m.get('instanceExpireTime')
|
|
448
|
+
if m.get('instanceId') is not None:
|
|
449
|
+
self.instance_id = m.get('instanceId')
|
|
450
|
+
if m.get('instanceName') is not None:
|
|
451
|
+
self.instance_name = m.get('instanceName')
|
|
452
|
+
if m.get('instanceType') is not None:
|
|
453
|
+
self.instance_type = m.get('instanceType')
|
|
454
|
+
if m.get('ip') is not None:
|
|
455
|
+
self.ip = m.get('ip')
|
|
456
|
+
if m.get('logService') is not None:
|
|
457
|
+
self.log_service = LogService().from_dict(m.get('logService'))
|
|
458
|
+
if m.get('loggingServices') is not None:
|
|
459
|
+
self.logging_services = [LoggingService().from_dict(i) for i in m.get('loggingServices')]
|
|
460
|
+
if m.get('nodeSpec') is not None:
|
|
461
|
+
self.node_spec = m.get('nodeSpec')
|
|
462
|
+
if m.get('nodes') is not None:
|
|
463
|
+
self.nodes = [MilvusNode().from_dict(i) for i in m.get('nodes')]
|
|
464
|
+
if m.get('orderStatus') is not None:
|
|
465
|
+
self.order_status = m.get('orderStatus')
|
|
466
|
+
if m.get('packageVersion') is not None:
|
|
467
|
+
self.package_version = m.get('packageVersion')
|
|
468
|
+
if m.get('port') is not None:
|
|
469
|
+
self.port = m.get('port')
|
|
470
|
+
if m.get('productType') is not None:
|
|
471
|
+
self.product_type = m.get('productType')
|
|
472
|
+
if m.get('proxies') is not None:
|
|
473
|
+
self.proxies = [Proxy().from_dict(i) for i in m.get('proxies')]
|
|
474
|
+
if m.get('proxyNodeSpec') is not None:
|
|
475
|
+
self.proxy_node_spec = m.get('proxyNodeSpec')
|
|
476
|
+
if m.get('proxyNum') is not None:
|
|
477
|
+
self.proxy_num = m.get('proxyNum')
|
|
478
|
+
if m.get('status') is not None:
|
|
479
|
+
self.status = m.get('status')
|
|
480
|
+
if m.get('subnets') is not None:
|
|
481
|
+
self.subnets = [Subnet().from_dict(i) for i in m.get('subnets')]
|
|
482
|
+
if m.get('supportEmbedding') is not None:
|
|
483
|
+
self.support_embedding = m.get('supportEmbedding')
|
|
484
|
+
if m.get('targetPackage') is not None:
|
|
485
|
+
self.target_package = TargetPackage().from_dict(m.get('targetPackage'))
|
|
486
|
+
if m.get('totalDiskCapacityInGB') is not None:
|
|
487
|
+
self.total_disk_capacity_in_gb = m.get('totalDiskCapacityInGB')
|
|
488
|
+
if m.get('totalMemCapacityInGB') is not None:
|
|
489
|
+
self.total_mem_capacity_in_gb = m.get('totalMemCapacityInGB')
|
|
490
|
+
if m.get('upgradable') is not None:
|
|
491
|
+
self.upgradable = m.get('upgradable')
|
|
492
|
+
if m.get('usedDiskCapacityInGB') is not None:
|
|
493
|
+
self.used_disk_capacity_in_gb = m.get('usedDiskCapacityInGB')
|
|
494
|
+
if m.get('usedMemCapacityInGB') is not None:
|
|
495
|
+
self.used_mem_capacity_in_gb = m.get('usedMemCapacityInGB')
|
|
496
|
+
if m.get('vip') is not None:
|
|
497
|
+
self.vip = m.get('vip')
|
|
498
|
+
if m.get('vpcCidr') is not None:
|
|
499
|
+
self.vpc_cidr = m.get('vpcCidr')
|
|
500
|
+
if m.get('vpcId') is not None:
|
|
501
|
+
self.vpc_id = m.get('vpcId')
|
|
502
|
+
if m.get('vpcName') is not None:
|
|
503
|
+
self.vpc_name = m.get('vpcName')
|
|
504
|
+
return self
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"""
|
|
2
|
+
InstanceConfigUserConfig information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class InstanceConfigUserConfig(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
InstanceConfigUserConfig
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, name=None, value=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize InstanceConfigUserConfig instance.
|
|
16
|
+
|
|
17
|
+
:param name:
|
|
18
|
+
:type name: str (optional)
|
|
19
|
+
|
|
20
|
+
:param value:
|
|
21
|
+
:type value: object (optional)
|
|
22
|
+
"""
|
|
23
|
+
super().__init__()
|
|
24
|
+
self.name = name
|
|
25
|
+
self.value = value
|
|
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.name is not None:
|
|
41
|
+
result['name'] = self.name
|
|
42
|
+
if self.value is not None:
|
|
43
|
+
result['value'] = self.value
|
|
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: InstanceConfigUserConfig
|
|
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('name') is not None:
|
|
63
|
+
self.name = m.get('name')
|
|
64
|
+
if m.get('value') is not None:
|
|
65
|
+
self.value = m.get('value')
|
|
66
|
+
return self
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for InstanceDetailUsingGetRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class InstanceDetailUsingGetRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for InstanceDetailUsingGetRequest 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 InstanceDetailUsingGetRequest 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: InstanceDetailUsingGetRequest
|
|
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
|