baiducloud-python-sdk-vdb 0.0.1__tar.gz → 0.0.2__tar.gz
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-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/ChangeLog.md +6 -0
- {baiducloud-python-sdk-vdb-0.0.1/baiducloud_python_sdk_vdb.egg-info → baiducloud-python-sdk-vdb-0.0.2}/PKG-INFO +1 -1
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/__init__.py +1 -1
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/api/vdb_client.py +215 -10
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/__init__.py +10 -2
- baiducloud-python-sdk-vdb-0.0.2/baiducloud_python_sdk_vdb/models/create_instance_using_post_request.py +144 -0
- baiducloud-python-sdk-vdb-0.0.2/baiducloud_python_sdk_vdb/models/deleteinstanceusingdelete1_request.py +64 -0
- baiducloud-python-sdk-vdb-0.0.2/baiducloud_python_sdk_vdb/models/describe_instance_configs_using_get_request.py +58 -0
- baiducloud-python-sdk-vdb-0.0.2/baiducloud_python_sdk_vdb/models/get_free_instance_quota_using_get_response.py +61 -0
- baiducloud-python-sdk-vdb-0.0.2/baiducloud_python_sdk_vdb/models/get_price_using_post_request.py +144 -0
- baiducloud-python-sdk-vdb-0.0.2/baiducloud_python_sdk_vdb/models/instance_param.py +308 -0
- baiducloud-python-sdk-vdb-0.0.2/baiducloud_python_sdk_vdb/models/modify_instance_config_using_post_request.py +77 -0
- baiducloud-python-sdk-vdb-0.0.2/baiducloud_python_sdk_vdb/models/modify_public_access_using_put_request.py +66 -0
- baiducloud-python-sdk-vdb-0.0.2/baiducloud_python_sdk_vdb/models/update_instance_domain_using_post_request.py +72 -0
- baiducloud-python-sdk-vdb-0.0.2/baiducloud_python_sdk_vdb/models/update_instance_name_using_post_request.py +72 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2/baiducloud_python_sdk_vdb.egg-info}/PKG-INFO +1 -1
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb.egg-info/SOURCES.txt +8 -0
- baiducloud-python-sdk-vdb-0.0.1/baiducloud_python_sdk_vdb/models/create_instance_using_post_request.py +0 -58
- baiducloud-python-sdk-vdb-0.0.1/baiducloud_python_sdk_vdb/models/get_price_using_post_request.py +0 -58
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/LICENSE +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/MANIFEST.in +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/README-CN.md +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/README.md +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/api/__init__.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/account.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/account_list_using_get_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/account_list_using_get_response.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/az_info.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/batch_record.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/bind_eip_using_post_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/create_instance_using_post_response.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/data_node.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/delete_instance_using_delete_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/delete_record_using_delete_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/delete_recycler_instance_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/describe_instance_configs_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/get_config_using_get_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/get_config_using_get_response.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/get_free_instance_quota_response.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/get_instance_list_using_get_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/get_instance_list_using_get_response.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/get_node_spec_list_using_get_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/get_price_using_post_response.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/get_quota_using_get_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/get_quota_using_get_response.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/get_tls_certificate_using_get_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/get_tls_certificate_using_get_response.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/get_tls_info_using_get_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/get_tls_info_using_get_response.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/getinstancelistusingget1_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/getinstancelistusingget1_response.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/instance.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/instance_config_user_config.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/instance_detail_using_get_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/instance_detail_using_get_response.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/list_records_using_get_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/list_records_using_get_response.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/log_service.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/logging_service.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/manual_backup_using_post_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/milvus_component.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/milvus_node.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/modify_instance_config_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/modify_password_using_post_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/modify_public_access_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/modify_tls_using_put_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/multi_year_result.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/password_using_get_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/password_using_get_response.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/proxy.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/record.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/recover_instance_using_post_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/recover_using_post_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/resize_instance_using_post_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/resize_instance_using_post_response.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/set_comment_using_post_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/set_config_using_post_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/subnet.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/target_package.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/unbind_eip_using_post_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/update_instance_domain_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/update_instance_name_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/vdb_auto_renew_rule.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/vdb_pricing_query_response.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/zone_detail.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/zone_list_using_get_request.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb/models/zone_list_using_get_response.py +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb.egg-info/dependency_links.txt +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb.egg-info/requires.txt +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/baiducloud_python_sdk_vdb.egg-info/top_level.txt +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/setup.cfg +0 -0
- {baiducloud-python-sdk-vdb-0.0.1 → baiducloud-python-sdk-vdb-0.0.2}/setup.py +0 -0
|
@@ -15,6 +15,9 @@ from baiducloud_python_sdk_vdb.models.account_list_using_get_response import Acc
|
|
|
15
15
|
from baiducloud_python_sdk_vdb.models.create_instance_using_post_response import CreateInstanceUsingPOSTResponse
|
|
16
16
|
from baiducloud_python_sdk_vdb.models.get_config_using_get_response import GetConfigUsingGETResponse
|
|
17
17
|
from baiducloud_python_sdk_vdb.models.get_free_instance_quota_response import GetFreeInstanceQuotaResponse
|
|
18
|
+
from baiducloud_python_sdk_vdb.models.get_free_instance_quota_using_get_response import (
|
|
19
|
+
GetFreeInstanceQuotaUsingGETResponse,
|
|
20
|
+
)
|
|
18
21
|
from baiducloud_python_sdk_vdb.models.get_instance_list_using_get_response import GetInstanceListUsingGETResponse
|
|
19
22
|
from baiducloud_python_sdk_vdb.models.get_price_using_post_response import GetPriceUsingPOSTResponse
|
|
20
23
|
from baiducloud_python_sdk_vdb.models.get_quota_using_get_response import GetQuotaUsingGETResponse
|
|
@@ -53,6 +56,12 @@ class VdbClient(BceBaseClient):
|
|
|
53
56
|
|
|
54
57
|
CONSTANT_DESCRIBE_INSTANCE_CONFIGS = b'describeInstanceConfigs'
|
|
55
58
|
|
|
59
|
+
CONSTANT_RECYCLER = b'recycler'
|
|
60
|
+
|
|
61
|
+
CONSTANT_DELETE = b'delete'
|
|
62
|
+
|
|
63
|
+
CONSTANT_MODIFY_NAME = b'modifyName'
|
|
64
|
+
|
|
56
65
|
CONSTANT_MODIFY_INSTANCE_CONFIG = b'modifyInstanceConfig'
|
|
57
66
|
|
|
58
67
|
CONSTANT_LIST = b'list'
|
|
@@ -63,8 +72,6 @@ class VdbClient(BceBaseClient):
|
|
|
63
72
|
|
|
64
73
|
CONSTANT_SET_COMMENT = b'setComment'
|
|
65
74
|
|
|
66
|
-
CONSTANT_RECYCLER = b'recycler'
|
|
67
|
-
|
|
68
75
|
CONSTANT_MODIFY_DOMAIN = b'modifyDomain'
|
|
69
76
|
|
|
70
77
|
CONSTANT_RECOVER = b'recover'
|
|
@@ -79,12 +86,12 @@ class VdbClient(BceBaseClient):
|
|
|
79
86
|
|
|
80
87
|
CONSTANT_CREATE = b'create'
|
|
81
88
|
|
|
82
|
-
CONSTANT_DELETE = b'delete'
|
|
83
|
-
|
|
84
89
|
CONSTANT_RESIZE = b'resize'
|
|
85
90
|
|
|
86
91
|
CONSTANT_GET_T_L_S_CERTIFICATE = b'getTLSCertificate'
|
|
87
92
|
|
|
93
|
+
CONSTANT_FREE_QUOTA = b'freeQuota'
|
|
94
|
+
|
|
88
95
|
CONSTANT_DELETE_RECORD = b'deleteRecord'
|
|
89
96
|
|
|
90
97
|
CONSTANT_LIST_RECORDS = b'listRecords'
|
|
@@ -97,14 +104,10 @@ class VdbClient(BceBaseClient):
|
|
|
97
104
|
|
|
98
105
|
CONSTANT_QUOTA = b'quota'
|
|
99
106
|
|
|
100
|
-
CONSTANT_MODIFY_NAME = b'modifyName'
|
|
101
|
-
|
|
102
107
|
CONSTANT_ZONE = b'zone'
|
|
103
108
|
|
|
104
109
|
CONSTANT_GET_T_L_S_INFO = b'getTLSInfo'
|
|
105
110
|
|
|
106
|
-
CONSTANT_FREE_QUOTA = b'freeQuota'
|
|
107
|
-
|
|
108
111
|
CONSTANT_SET_CONFIG = b'setConfig'
|
|
109
112
|
|
|
110
113
|
def __init__(self, config=None):
|
|
@@ -200,7 +203,12 @@ class VdbClient(BceBaseClient):
|
|
|
200
203
|
params['engineType'] = request.engine_type
|
|
201
204
|
merged_config = self._create_request_with_host(request, config)
|
|
202
205
|
return self._send_request(
|
|
203
|
-
http_methods.POST,
|
|
206
|
+
http_methods.POST,
|
|
207
|
+
path=path,
|
|
208
|
+
body=request.to_json_string(),
|
|
209
|
+
params=params,
|
|
210
|
+
config=merged_config,
|
|
211
|
+
model=CreateInstanceUsingPOSTResponse,
|
|
204
212
|
)
|
|
205
213
|
|
|
206
214
|
def delete_instance_using_delete(self, request, config=None):
|
|
@@ -292,6 +300,37 @@ class VdbClient(BceBaseClient):
|
|
|
292
300
|
merged_config = self._create_request_with_host(request, config)
|
|
293
301
|
return self._send_request(http_methods.DELETE, path=path, params=params, config=merged_config)
|
|
294
302
|
|
|
303
|
+
def deleteinstanceusingdelete1(self, request, config=None):
|
|
304
|
+
"""
|
|
305
|
+
deleteinstanceusingdelete1
|
|
306
|
+
|
|
307
|
+
:param request: Request entity containing all parameters
|
|
308
|
+
:type request: VdbClientRequest
|
|
309
|
+
:param config: Optional request configuration override
|
|
310
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
311
|
+
|
|
312
|
+
:return: API response
|
|
313
|
+
:rtype: baiducloud_python_sdk_core.bce_response.BceResponse
|
|
314
|
+
|
|
315
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
316
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
317
|
+
"""
|
|
318
|
+
path = utils.append_uri(
|
|
319
|
+
VdbClient.VERSION_V1,
|
|
320
|
+
VdbClient.CONSTANT_VDB,
|
|
321
|
+
VdbClient.CONSTANT_RECYCLER,
|
|
322
|
+
VdbClient.CONSTANT_INSTANCE,
|
|
323
|
+
VdbClient.CONSTANT_DELETE,
|
|
324
|
+
)
|
|
325
|
+
headers = None
|
|
326
|
+
params = {}
|
|
327
|
+
if request.instance_id is not None:
|
|
328
|
+
params['instanceId'] = request.instance_id
|
|
329
|
+
if request.engine_type is not None:
|
|
330
|
+
params['engineType'] = request.engine_type
|
|
331
|
+
merged_config = self._create_request_with_host(request, config)
|
|
332
|
+
return self._send_request(http_methods.DELETE, path=path, params=params, config=merged_config)
|
|
333
|
+
|
|
295
334
|
def describe_instance_configs(self, request, config=None):
|
|
296
335
|
"""
|
|
297
336
|
describe_instance_configs
|
|
@@ -320,6 +359,34 @@ class VdbClient(BceBaseClient):
|
|
|
320
359
|
merged_config = self._create_request_with_host(request, config)
|
|
321
360
|
return self._send_request(http_methods.GET, path=path, params=params, config=merged_config)
|
|
322
361
|
|
|
362
|
+
def describe_instance_configs_using_get(self, request, config=None):
|
|
363
|
+
"""
|
|
364
|
+
describe_instance_configs_using_get
|
|
365
|
+
|
|
366
|
+
:param request: Request entity containing all parameters
|
|
367
|
+
:type request: VdbClientRequest
|
|
368
|
+
:param config: Optional request configuration override
|
|
369
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
370
|
+
|
|
371
|
+
:return: API response
|
|
372
|
+
:rtype: baiducloud_python_sdk_core.bce_response.BceResponse
|
|
373
|
+
|
|
374
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
375
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
376
|
+
"""
|
|
377
|
+
path = utils.append_uri(
|
|
378
|
+
VdbClient.VERSION_V1,
|
|
379
|
+
VdbClient.CONSTANT_VDB,
|
|
380
|
+
VdbClient.CONSTANT_INSTANCE,
|
|
381
|
+
VdbClient.CONSTANT_DESCRIBE_INSTANCE_CONFIGS,
|
|
382
|
+
)
|
|
383
|
+
headers = None
|
|
384
|
+
params = {}
|
|
385
|
+
if request.instance_id is not None:
|
|
386
|
+
params['instanceId'] = request.instance_id
|
|
387
|
+
merged_config = self._create_request_with_host(request, config)
|
|
388
|
+
return self._send_request(http_methods.GET, path=path, params=params, config=merged_config)
|
|
389
|
+
|
|
323
390
|
def get_config_using_get(self, request, config=None):
|
|
324
391
|
"""
|
|
325
392
|
get_config_using_get
|
|
@@ -367,6 +434,26 @@ class VdbClient(BceBaseClient):
|
|
|
367
434
|
headers = None
|
|
368
435
|
return self._send_request(http_methods.GET, path=path, config=config, model=GetFreeInstanceQuotaResponse)
|
|
369
436
|
|
|
437
|
+
def get_free_instance_quota_using_get(self, config=None):
|
|
438
|
+
"""
|
|
439
|
+
get_free_instance_quota_using_get
|
|
440
|
+
:param config: Optional request configuration override
|
|
441
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
442
|
+
|
|
443
|
+
:return: API response containing GetFreeInstanceQuotaUsingGETResponse data
|
|
444
|
+
:rtype: GetFreeInstanceQuotaUsingGETResponse
|
|
445
|
+
|
|
446
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
447
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
448
|
+
"""
|
|
449
|
+
path = utils.append_uri(
|
|
450
|
+
VdbClient.VERSION_V1, VdbClient.CONSTANT_VDB, VdbClient.CONSTANT_INSTANCE, VdbClient.CONSTANT_FREE_QUOTA
|
|
451
|
+
)
|
|
452
|
+
headers = None
|
|
453
|
+
return self._send_request(
|
|
454
|
+
http_methods.GET, path=path, config=config, model=GetFreeInstanceQuotaUsingGETResponse
|
|
455
|
+
)
|
|
456
|
+
|
|
370
457
|
def get_instance_list_using_get(self, request, config=None):
|
|
371
458
|
"""
|
|
372
459
|
get_instance_list_using_get
|
|
@@ -448,7 +535,12 @@ class VdbClient(BceBaseClient):
|
|
|
448
535
|
params['engineType'] = request.engine_type
|
|
449
536
|
merged_config = self._create_request_with_host(request, config)
|
|
450
537
|
return self._send_request(
|
|
451
|
-
http_methods.POST,
|
|
538
|
+
http_methods.POST,
|
|
539
|
+
path=path,
|
|
540
|
+
body=request.to_json_string(),
|
|
541
|
+
params=params,
|
|
542
|
+
config=merged_config,
|
|
543
|
+
model=GetPriceUsingPOSTResponse,
|
|
452
544
|
)
|
|
453
545
|
|
|
454
546
|
def get_quota_using_get(self, request, config=None):
|
|
@@ -693,6 +785,31 @@ class VdbClient(BceBaseClient):
|
|
|
693
785
|
merged_config = self._create_request_with_host(request, config)
|
|
694
786
|
return self._send_request(http_methods.POST, path=path, body=request.to_json_string(), config=merged_config)
|
|
695
787
|
|
|
788
|
+
def modify_instance_config_using_post(self, request, config=None):
|
|
789
|
+
"""
|
|
790
|
+
modify_instance_config_using_post
|
|
791
|
+
|
|
792
|
+
:param request: Request entity containing all parameters
|
|
793
|
+
:type request: VdbClientRequest
|
|
794
|
+
:param config: Optional request configuration override
|
|
795
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
796
|
+
|
|
797
|
+
:return: API response
|
|
798
|
+
:rtype: baiducloud_python_sdk_core.bce_response.BceResponse
|
|
799
|
+
|
|
800
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
801
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
802
|
+
"""
|
|
803
|
+
path = utils.append_uri(
|
|
804
|
+
VdbClient.VERSION_V1,
|
|
805
|
+
VdbClient.CONSTANT_VDB,
|
|
806
|
+
VdbClient.CONSTANT_INSTANCE,
|
|
807
|
+
VdbClient.CONSTANT_MODIFY_INSTANCE_CONFIG,
|
|
808
|
+
)
|
|
809
|
+
headers = None
|
|
810
|
+
merged_config = self._create_request_with_host(request, config)
|
|
811
|
+
return self._send_request(http_methods.POST, path=path, body=request.to_json_string(), config=merged_config)
|
|
812
|
+
|
|
696
813
|
def modify_password_using_post(self, request, config=None):
|
|
697
814
|
"""
|
|
698
815
|
modify_password_using_post
|
|
@@ -748,6 +865,32 @@ class VdbClient(BceBaseClient):
|
|
|
748
865
|
merged_config = self._create_request_with_host(request, config)
|
|
749
866
|
return self._send_request(http_methods.PUT, path=path, body=request.to_json_string(), config=merged_config)
|
|
750
867
|
|
|
868
|
+
def modify_public_access_using_put(self, request, config=None):
|
|
869
|
+
"""
|
|
870
|
+
modify_public_access_using_put
|
|
871
|
+
|
|
872
|
+
:param request: Request entity containing all parameters
|
|
873
|
+
:type request: VdbClientRequest
|
|
874
|
+
:param config: Optional request configuration override
|
|
875
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
876
|
+
|
|
877
|
+
:return: API response
|
|
878
|
+
:rtype: baiducloud_python_sdk_core.bce_response.BceResponse
|
|
879
|
+
|
|
880
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
881
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
882
|
+
"""
|
|
883
|
+
path = utils.append_uri(
|
|
884
|
+
VdbClient.VERSION_V1,
|
|
885
|
+
VdbClient.CONSTANT_VDB,
|
|
886
|
+
VdbClient.CONSTANT_INSTANCE,
|
|
887
|
+
request.instance_id,
|
|
888
|
+
VdbClient.CONSTANT_MODIFY_PUBLIC_ACCESS,
|
|
889
|
+
)
|
|
890
|
+
headers = None
|
|
891
|
+
merged_config = self._create_request_with_host(request, config)
|
|
892
|
+
return self._send_request(http_methods.PUT, path=path, body=request.to_json_string(), config=merged_config)
|
|
893
|
+
|
|
751
894
|
def modify_tls_using_put(self, request, config=None):
|
|
752
895
|
"""
|
|
753
896
|
modify_tls_using_put
|
|
@@ -1016,6 +1159,37 @@ class VdbClient(BceBaseClient):
|
|
|
1016
1159
|
http_methods.POST, path=path, body=request.to_json_string(), params=params, config=merged_config
|
|
1017
1160
|
)
|
|
1018
1161
|
|
|
1162
|
+
def update_instance_domain_using_post(self, request, config=None):
|
|
1163
|
+
"""
|
|
1164
|
+
update_instance_domain_using_post
|
|
1165
|
+
|
|
1166
|
+
:param request: Request entity containing all parameters
|
|
1167
|
+
:type request: VdbClientRequest
|
|
1168
|
+
:param config: Optional request configuration override
|
|
1169
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
1170
|
+
|
|
1171
|
+
:return: API response
|
|
1172
|
+
:rtype: baiducloud_python_sdk_core.bce_response.BceResponse
|
|
1173
|
+
|
|
1174
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
1175
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
1176
|
+
"""
|
|
1177
|
+
path = utils.append_uri(
|
|
1178
|
+
VdbClient.VERSION_V1,
|
|
1179
|
+
VdbClient.CONSTANT_VDB,
|
|
1180
|
+
VdbClient.CONSTANT_INSTANCE,
|
|
1181
|
+
request.instance_id,
|
|
1182
|
+
VdbClient.CONSTANT_MODIFY_DOMAIN,
|
|
1183
|
+
)
|
|
1184
|
+
headers = None
|
|
1185
|
+
params = {}
|
|
1186
|
+
if request.engine_type is not None:
|
|
1187
|
+
params['engineType'] = request.engine_type
|
|
1188
|
+
merged_config = self._create_request_with_host(request, config)
|
|
1189
|
+
return self._send_request(
|
|
1190
|
+
http_methods.POST, path=path, body=request.to_json_string(), params=params, config=merged_config
|
|
1191
|
+
)
|
|
1192
|
+
|
|
1019
1193
|
def update_instance_name(self, request, config=None):
|
|
1020
1194
|
"""
|
|
1021
1195
|
update_instance_name
|
|
@@ -1047,6 +1221,37 @@ class VdbClient(BceBaseClient):
|
|
|
1047
1221
|
http_methods.POST, path=path, body=request.to_json_string(), params=params, config=merged_config
|
|
1048
1222
|
)
|
|
1049
1223
|
|
|
1224
|
+
def update_instance_name_using_post(self, request, config=None):
|
|
1225
|
+
"""
|
|
1226
|
+
update_instance_name_using_post
|
|
1227
|
+
|
|
1228
|
+
:param request: Request entity containing all parameters
|
|
1229
|
+
:type request: VdbClientRequest
|
|
1230
|
+
:param config: Optional request configuration override
|
|
1231
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
1232
|
+
|
|
1233
|
+
:return: API response
|
|
1234
|
+
:rtype: baiducloud_python_sdk_core.bce_response.BceResponse
|
|
1235
|
+
|
|
1236
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
1237
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
1238
|
+
"""
|
|
1239
|
+
path = utils.append_uri(
|
|
1240
|
+
VdbClient.VERSION_V1,
|
|
1241
|
+
VdbClient.CONSTANT_VDB,
|
|
1242
|
+
VdbClient.CONSTANT_INSTANCE,
|
|
1243
|
+
request.instance_id,
|
|
1244
|
+
VdbClient.CONSTANT_MODIFY_NAME,
|
|
1245
|
+
)
|
|
1246
|
+
headers = None
|
|
1247
|
+
params = {}
|
|
1248
|
+
if request.engine_type is not None:
|
|
1249
|
+
params['engineType'] = request.engine_type
|
|
1250
|
+
merged_config = self._create_request_with_host(request, config)
|
|
1251
|
+
return self._send_request(
|
|
1252
|
+
http_methods.POST, path=path, body=request.to_json_string(), params=params, config=merged_config
|
|
1253
|
+
)
|
|
1254
|
+
|
|
1050
1255
|
def zone_list_using_get(self, request, config=None):
|
|
1051
1256
|
"""
|
|
1052
1257
|
zone_list_using_get
|
|
@@ -7,11 +7,14 @@ from .account_list_using_get_response import AccountListUsingGETResponse
|
|
|
7
7
|
from .az_info import AzInfo
|
|
8
8
|
from .batch_record import BatchRecord
|
|
9
9
|
from .bind_eip_using_post_request import BindEipUsingPOSTRequest
|
|
10
|
+
from .create_instance_using_post_request import CreateInstanceUsingPOSTRequest
|
|
10
11
|
from .create_instance_using_post_response import CreateInstanceUsingPOSTResponse
|
|
11
12
|
from .data_node import DataNode
|
|
12
13
|
from .get_config_using_get_response import GetConfigUsingGETResponse
|
|
13
14
|
from .get_free_instance_quota_response import GetFreeInstanceQuotaResponse
|
|
15
|
+
from .get_free_instance_quota_using_get_response import GetFreeInstanceQuotaUsingGETResponse
|
|
14
16
|
from .get_instance_list_using_get_response import GetInstanceListUsingGETResponse
|
|
17
|
+
from .get_price_using_post_request import GetPriceUsingPOSTRequest
|
|
15
18
|
from .get_price_using_post_response import GetPriceUsingPOSTResponse
|
|
16
19
|
from .get_quota_using_get_response import GetQuotaUsingGETResponse
|
|
17
20
|
from .get_tls_certificate_using_get_response import GetTLSCertificateUsingGETResponse
|
|
@@ -20,6 +23,7 @@ from .getinstancelistusingget1_response import Getinstancelistusingget1Response
|
|
|
20
23
|
from .instance import Instance
|
|
21
24
|
from .instance_config_user_config import InstanceConfigUserConfig
|
|
22
25
|
from .instance_detail_using_get_response import InstanceDetailUsingGETResponse
|
|
26
|
+
from .instance_param import InstanceParam
|
|
23
27
|
from .list_records_using_get_response import ListRecordsUsingGETResponse
|
|
24
28
|
from .log_service import LogService
|
|
25
29
|
from .logging_service import LoggingService
|
|
@@ -27,8 +31,10 @@ from .manual_backup_using_post_request import ManualBackupUsingPOSTRequest
|
|
|
27
31
|
from .milvus_component import MilvusComponent
|
|
28
32
|
from .milvus_node import MilvusNode
|
|
29
33
|
from .modify_instance_config_request import ModifyInstanceConfigRequest
|
|
34
|
+
from .modify_instance_config_using_post_request import ModifyInstanceConfigUsingPOSTRequest
|
|
30
35
|
from .modify_password_using_post_request import ModifyPasswordUsingPOSTRequest
|
|
31
36
|
from .modify_public_access_request import ModifyPublicAccessRequest
|
|
37
|
+
from .modify_public_access_using_put_request import ModifyPublicAccessUsingPUTRequest
|
|
32
38
|
from .modify_tls_using_put_request import ModifyTLSUsingPUTRequest
|
|
33
39
|
from .multi_year_result import MultiYearResult
|
|
34
40
|
from .password_using_get_response import PasswordUsingGETResponse
|
|
@@ -42,18 +48,19 @@ from .set_config_using_post_request import SetConfigUsingPOSTRequest
|
|
|
42
48
|
from .subnet import Subnet
|
|
43
49
|
from .target_package import TargetPackage
|
|
44
50
|
from .update_instance_domain_request import UpdateInstanceDomainRequest
|
|
51
|
+
from .update_instance_domain_using_post_request import UpdateInstanceDomainUsingPOSTRequest
|
|
45
52
|
from .update_instance_name_request import UpdateInstanceNameRequest
|
|
53
|
+
from .update_instance_name_using_post_request import UpdateInstanceNameUsingPOSTRequest
|
|
46
54
|
from .vdb_auto_renew_rule import VdbAutoRenewRule
|
|
47
55
|
from .vdb_pricing_query_response import VdbPricingQueryResponse
|
|
48
56
|
from .zone_detail import ZoneDetail
|
|
49
57
|
from .zone_list_using_get_response import ZoneListUsingGETResponse
|
|
50
|
-
from .get_price_using_post_request import GetPriceUsingPostRequest
|
|
51
58
|
from .instance_detail_using_get_request import InstanceDetailUsingGetRequest
|
|
52
59
|
from .describe_instance_configs_request import DescribeInstanceConfigsRequest
|
|
60
|
+
from .deleteinstanceusingdelete1_request import Deleteinstanceusingdelete1Request
|
|
53
61
|
from .get_instance_list_using_get_request import GetInstanceListUsingGetRequest
|
|
54
62
|
from .password_using_get_request import PasswordUsingGetRequest
|
|
55
63
|
from .getinstancelistusingget1_request import Getinstancelistusingget1Request
|
|
56
|
-
from .create_instance_using_post_request import CreateInstanceUsingPostRequest
|
|
57
64
|
from .delete_instance_using_delete_request import DeleteInstanceUsingDeleteRequest
|
|
58
65
|
from .get_tls_certificate_using_get_request import GetTlsCertificateUsingGetRequest
|
|
59
66
|
from .delete_record_using_delete_request import DeleteRecordUsingDeleteRequest
|
|
@@ -65,5 +72,6 @@ from .get_quota_using_get_request import GetQuotaUsingGetRequest
|
|
|
65
72
|
from .zone_list_using_get_request import ZoneListUsingGetRequest
|
|
66
73
|
from .recover_instance_using_post_request import RecoverInstanceUsingPostRequest
|
|
67
74
|
from .delete_recycler_instance_request import DeleteRecyclerInstanceRequest
|
|
75
|
+
from .describe_instance_configs_using_get_request import DescribeInstanceConfigsUsingGetRequest
|
|
68
76
|
from .get_tls_info_using_get_request import GetTlsInfoUsingGetRequest
|
|
69
77
|
from .account_list_using_get_request import AccountListUsingGetRequest
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for CreateInstanceUsingPOSTRequest 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
|
+
from baiducloud_python_sdk_vdb.models.instance_param import InstanceParam
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CreateInstanceUsingPOSTRequest(AbstractModel):
|
|
11
|
+
"""
|
|
12
|
+
Request entity for CreateInstanceUsingPOSTRequest operation.
|
|
13
|
+
|
|
14
|
+
This class encapsulates all parameters for the API request.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
def __init__(
|
|
18
|
+
self,
|
|
19
|
+
engine_type=None,
|
|
20
|
+
auto_renew=None,
|
|
21
|
+
auto_renew_time=None,
|
|
22
|
+
auto_renew_time_unit=None,
|
|
23
|
+
components=None,
|
|
24
|
+
duration=None,
|
|
25
|
+
env=None,
|
|
26
|
+
instance_param=None,
|
|
27
|
+
product_type=None,
|
|
28
|
+
time_unit=None,
|
|
29
|
+
):
|
|
30
|
+
"""
|
|
31
|
+
Initialize CreateInstanceUsingPOSTRequest request entity.
|
|
32
|
+
|
|
33
|
+
:param engine_type: engine_type parameter
|
|
34
|
+
:type engine_type: str (optional)
|
|
35
|
+
|
|
36
|
+
:param auto_renew: auto_renew parameter
|
|
37
|
+
:type auto_renew: bool (optional)
|
|
38
|
+
|
|
39
|
+
:param auto_renew_time: auto_renew_time parameter
|
|
40
|
+
:type auto_renew_time: int (optional)
|
|
41
|
+
|
|
42
|
+
:param auto_renew_time_unit: auto_renew_time_unit parameter
|
|
43
|
+
:type auto_renew_time_unit: str (optional)
|
|
44
|
+
|
|
45
|
+
:param components: components parameter
|
|
46
|
+
:type components: List[MilvusComponent] (optional)
|
|
47
|
+
|
|
48
|
+
:param duration: duration parameter
|
|
49
|
+
:type duration: int (optional)
|
|
50
|
+
|
|
51
|
+
:param env: env parameter
|
|
52
|
+
:type env: str (optional)
|
|
53
|
+
|
|
54
|
+
:param instance_param: instance_param parameter
|
|
55
|
+
:type instance_param: InstanceParam (optional)
|
|
56
|
+
|
|
57
|
+
:param product_type: product_type parameter
|
|
58
|
+
:type product_type: str (optional)
|
|
59
|
+
|
|
60
|
+
:param time_unit: time_unit parameter
|
|
61
|
+
:type time_unit: str (optional)
|
|
62
|
+
"""
|
|
63
|
+
super().__init__()
|
|
64
|
+
self.engine_type = engine_type
|
|
65
|
+
self.auto_renew = auto_renew
|
|
66
|
+
self.auto_renew_time = auto_renew_time
|
|
67
|
+
self.auto_renew_time_unit = auto_renew_time_unit
|
|
68
|
+
self.components = components
|
|
69
|
+
self.duration = duration
|
|
70
|
+
self.env = env
|
|
71
|
+
self.instance_param = instance_param
|
|
72
|
+
self.product_type = product_type
|
|
73
|
+
self.time_unit = time_unit
|
|
74
|
+
|
|
75
|
+
def to_dict(self):
|
|
76
|
+
"""
|
|
77
|
+
Convert the request entity to a dictionary representation.
|
|
78
|
+
|
|
79
|
+
Nested model objects are recursively converted to dictionaries.
|
|
80
|
+
|
|
81
|
+
:return: Dictionary representation of the request
|
|
82
|
+
:rtype: dict
|
|
83
|
+
"""
|
|
84
|
+
_map = super().to_dict()
|
|
85
|
+
if _map is not None:
|
|
86
|
+
return _map
|
|
87
|
+
result = dict()
|
|
88
|
+
if self.auto_renew is not None:
|
|
89
|
+
result['autoRenew'] = self.auto_renew
|
|
90
|
+
if self.auto_renew_time is not None:
|
|
91
|
+
result['autoRenewTime'] = self.auto_renew_time
|
|
92
|
+
if self.auto_renew_time_unit is not None:
|
|
93
|
+
result['autoRenewTimeUnit'] = self.auto_renew_time_unit
|
|
94
|
+
if self.components is not None:
|
|
95
|
+
result['components'] = [i.to_dict() for i in self.components]
|
|
96
|
+
if self.duration is not None:
|
|
97
|
+
result['duration'] = self.duration
|
|
98
|
+
if self.env is not None:
|
|
99
|
+
result['env'] = self.env
|
|
100
|
+
if self.instance_param is not None:
|
|
101
|
+
result['instanceParam'] = self.instance_param.to_dict()
|
|
102
|
+
if self.product_type is not None:
|
|
103
|
+
result['productType'] = self.product_type
|
|
104
|
+
if self.time_unit is not None:
|
|
105
|
+
result['timeUnit'] = self.time_unit
|
|
106
|
+
return result
|
|
107
|
+
|
|
108
|
+
def from_dict(self, m):
|
|
109
|
+
"""
|
|
110
|
+
Populate the request entity from a dictionary.
|
|
111
|
+
|
|
112
|
+
Nested dictionaries are recursively converted to model objects.
|
|
113
|
+
|
|
114
|
+
:param m: Dictionary containing request data
|
|
115
|
+
:type m: dict
|
|
116
|
+
|
|
117
|
+
:return: Self reference for method chaining
|
|
118
|
+
:rtype: CreateInstanceUsingPOSTRequest
|
|
119
|
+
|
|
120
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
121
|
+
:raises ValueError: If nested model conversion fails
|
|
122
|
+
"""
|
|
123
|
+
m = m or dict()
|
|
124
|
+
if m.get('engineType') is not None:
|
|
125
|
+
self.engine_type = m.get('engineType')
|
|
126
|
+
if m.get('autoRenew') is not None:
|
|
127
|
+
self.auto_renew = m.get('autoRenew')
|
|
128
|
+
if m.get('autoRenewTime') is not None:
|
|
129
|
+
self.auto_renew_time = m.get('autoRenewTime')
|
|
130
|
+
if m.get('autoRenewTimeUnit') is not None:
|
|
131
|
+
self.auto_renew_time_unit = m.get('autoRenewTimeUnit')
|
|
132
|
+
if m.get('components') is not None:
|
|
133
|
+
self.components = [MilvusComponent().from_dict(i) for i in m.get('components')]
|
|
134
|
+
if m.get('duration') is not None:
|
|
135
|
+
self.duration = m.get('duration')
|
|
136
|
+
if m.get('env') is not None:
|
|
137
|
+
self.env = m.get('env')
|
|
138
|
+
if m.get('instanceParam') is not None:
|
|
139
|
+
self.instance_param = InstanceParam().from_dict(m.get('instanceParam'))
|
|
140
|
+
if m.get('productType') is not None:
|
|
141
|
+
self.product_type = m.get('productType')
|
|
142
|
+
if m.get('timeUnit') is not None:
|
|
143
|
+
self.time_unit = m.get('timeUnit')
|
|
144
|
+
return self
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for Deleteinstanceusingdelete1Request information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Deleteinstanceusingdelete1Request(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for Deleteinstanceusingdelete1Request 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 Deleteinstanceusingdelete1Request 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: Deleteinstanceusingdelete1Request
|
|
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 DescribeInstanceConfigsUsingGetRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DescribeInstanceConfigsUsingGetRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DescribeInstanceConfigsUsingGetRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, instance_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DescribeInstanceConfigsUsingGetRequest 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: DescribeInstanceConfigsUsingGetRequest
|
|
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
|