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,69 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Models for vdb SDK.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from .account import Account
|
|
6
|
+
from .account_list_using_get_response import AccountListUsingGETResponse
|
|
7
|
+
from .az_info import AzInfo
|
|
8
|
+
from .batch_record import BatchRecord
|
|
9
|
+
from .bind_eip_using_post_request import BindEipUsingPOSTRequest
|
|
10
|
+
from .create_instance_using_post_response import CreateInstanceUsingPOSTResponse
|
|
11
|
+
from .data_node import DataNode
|
|
12
|
+
from .get_config_using_get_response import GetConfigUsingGETResponse
|
|
13
|
+
from .get_free_instance_quota_response import GetFreeInstanceQuotaResponse
|
|
14
|
+
from .get_instance_list_using_get_response import GetInstanceListUsingGETResponse
|
|
15
|
+
from .get_price_using_post_response import GetPriceUsingPOSTResponse
|
|
16
|
+
from .get_quota_using_get_response import GetQuotaUsingGETResponse
|
|
17
|
+
from .get_tls_certificate_using_get_response import GetTLSCertificateUsingGETResponse
|
|
18
|
+
from .get_tls_info_using_get_response import GetTLSInfoUsingGETResponse
|
|
19
|
+
from .getinstancelistusingget1_response import Getinstancelistusingget1Response
|
|
20
|
+
from .instance import Instance
|
|
21
|
+
from .instance_config_user_config import InstanceConfigUserConfig
|
|
22
|
+
from .instance_detail_using_get_response import InstanceDetailUsingGETResponse
|
|
23
|
+
from .list_records_using_get_response import ListRecordsUsingGETResponse
|
|
24
|
+
from .log_service import LogService
|
|
25
|
+
from .logging_service import LoggingService
|
|
26
|
+
from .manual_backup_using_post_request import ManualBackupUsingPOSTRequest
|
|
27
|
+
from .milvus_component import MilvusComponent
|
|
28
|
+
from .milvus_node import MilvusNode
|
|
29
|
+
from .modify_instance_config_request import ModifyInstanceConfigRequest
|
|
30
|
+
from .modify_password_using_post_request import ModifyPasswordUsingPOSTRequest
|
|
31
|
+
from .modify_public_access_request import ModifyPublicAccessRequest
|
|
32
|
+
from .modify_tls_using_put_request import ModifyTLSUsingPUTRequest
|
|
33
|
+
from .multi_year_result import MultiYearResult
|
|
34
|
+
from .password_using_get_response import PasswordUsingGETResponse
|
|
35
|
+
from .proxy import Proxy
|
|
36
|
+
from .record import Record
|
|
37
|
+
from .recover_using_post_request import RecoverUsingPOSTRequest
|
|
38
|
+
from .resize_instance_using_post_request import ResizeInstanceUsingPOSTRequest
|
|
39
|
+
from .resize_instance_using_post_response import ResizeInstanceUsingPOSTResponse
|
|
40
|
+
from .set_comment_using_post_request import SetCommentUsingPOSTRequest
|
|
41
|
+
from .set_config_using_post_request import SetConfigUsingPOSTRequest
|
|
42
|
+
from .subnet import Subnet
|
|
43
|
+
from .target_package import TargetPackage
|
|
44
|
+
from .update_instance_domain_request import UpdateInstanceDomainRequest
|
|
45
|
+
from .update_instance_name_request import UpdateInstanceNameRequest
|
|
46
|
+
from .vdb_auto_renew_rule import VdbAutoRenewRule
|
|
47
|
+
from .vdb_pricing_query_response import VdbPricingQueryResponse
|
|
48
|
+
from .zone_detail import ZoneDetail
|
|
49
|
+
from .zone_list_using_get_response import ZoneListUsingGETResponse
|
|
50
|
+
from .get_price_using_post_request import GetPriceUsingPostRequest
|
|
51
|
+
from .instance_detail_using_get_request import InstanceDetailUsingGetRequest
|
|
52
|
+
from .describe_instance_configs_request import DescribeInstanceConfigsRequest
|
|
53
|
+
from .get_instance_list_using_get_request import GetInstanceListUsingGetRequest
|
|
54
|
+
from .password_using_get_request import PasswordUsingGetRequest
|
|
55
|
+
from .getinstancelistusingget1_request import Getinstancelistusingget1Request
|
|
56
|
+
from .create_instance_using_post_request import CreateInstanceUsingPostRequest
|
|
57
|
+
from .delete_instance_using_delete_request import DeleteInstanceUsingDeleteRequest
|
|
58
|
+
from .get_tls_certificate_using_get_request import GetTlsCertificateUsingGetRequest
|
|
59
|
+
from .delete_record_using_delete_request import DeleteRecordUsingDeleteRequest
|
|
60
|
+
from .list_records_using_get_request import ListRecordsUsingGetRequest
|
|
61
|
+
from .get_config_using_get_request import GetConfigUsingGetRequest
|
|
62
|
+
from .get_node_spec_list_using_get_request import GetNodeSpecListUsingGetRequest
|
|
63
|
+
from .unbind_eip_using_post_request import UnbindEipUsingPostRequest
|
|
64
|
+
from .get_quota_using_get_request import GetQuotaUsingGetRequest
|
|
65
|
+
from .zone_list_using_get_request import ZoneListUsingGetRequest
|
|
66
|
+
from .recover_instance_using_post_request import RecoverInstanceUsingPostRequest
|
|
67
|
+
from .delete_recycler_instance_request import DeleteRecyclerInstanceRequest
|
|
68
|
+
from .get_tls_info_using_get_request import GetTlsInfoUsingGetRequest
|
|
69
|
+
from .account_list_using_get_request import AccountListUsingGetRequest
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Account information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Account(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Account
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, username=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize Account instance.
|
|
16
|
+
|
|
17
|
+
:param username:
|
|
18
|
+
:type username: str (optional)
|
|
19
|
+
"""
|
|
20
|
+
super().__init__()
|
|
21
|
+
self.username = username
|
|
22
|
+
|
|
23
|
+
def to_dict(self):
|
|
24
|
+
"""
|
|
25
|
+
Convert the model instance to a dictionary representation.
|
|
26
|
+
|
|
27
|
+
Nested model objects are recursively converted to dictionaries.
|
|
28
|
+
|
|
29
|
+
:return: Dictionary representation of the model
|
|
30
|
+
:rtype: dict
|
|
31
|
+
"""
|
|
32
|
+
_map = super().to_dict()
|
|
33
|
+
if _map is not None:
|
|
34
|
+
return _map
|
|
35
|
+
result = dict()
|
|
36
|
+
if self.username is not None:
|
|
37
|
+
result['username'] = self.username
|
|
38
|
+
return result
|
|
39
|
+
|
|
40
|
+
def from_dict(self, m):
|
|
41
|
+
"""
|
|
42
|
+
Populate the model instance from a dictionary.
|
|
43
|
+
|
|
44
|
+
Nested dictionaries are recursively converted to model objects.
|
|
45
|
+
|
|
46
|
+
:param m: Dictionary containing model data
|
|
47
|
+
:type m: dict
|
|
48
|
+
|
|
49
|
+
:return: Self reference for method chaining
|
|
50
|
+
:rtype: Account
|
|
51
|
+
|
|
52
|
+
:raises TypeError: If input is not a dictionary type
|
|
53
|
+
:raises ValueError: If nested model conversion fails
|
|
54
|
+
"""
|
|
55
|
+
m = m or dict()
|
|
56
|
+
if m.get('username') is not None:
|
|
57
|
+
self.username = m.get('username')
|
|
58
|
+
return self
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for AccountListUsingGetRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AccountListUsingGetRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for AccountListUsingGetRequest 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 AccountListUsingGetRequest 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: AccountListUsingGetRequest
|
|
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,62 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for AccountListUsingGETResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_vdb.models.account import Account
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AccountListUsingGETResponse(BceResponse):
|
|
10
|
+
"""
|
|
11
|
+
AccountListUsingGETResponse
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, usernames=None):
|
|
15
|
+
"""
|
|
16
|
+
Initialize AccountListUsingGETResponse response.
|
|
17
|
+
|
|
18
|
+
:param usernames: usernames field
|
|
19
|
+
:type usernames: List[Account] (optional)
|
|
20
|
+
"""
|
|
21
|
+
super().__init__()
|
|
22
|
+
self.usernames = usernames
|
|
23
|
+
|
|
24
|
+
def to_dict(self):
|
|
25
|
+
"""
|
|
26
|
+
Convert the response instance to a dictionary representation.
|
|
27
|
+
|
|
28
|
+
Includes metadata from the parent BceResponse class.
|
|
29
|
+
Nested model objects are recursively converted to dictionaries.
|
|
30
|
+
|
|
31
|
+
:return: Dictionary representation of the response
|
|
32
|
+
:rtype: dict
|
|
33
|
+
"""
|
|
34
|
+
_map = super().to_dict()
|
|
35
|
+
if _map is not None:
|
|
36
|
+
return _map
|
|
37
|
+
result = dict()
|
|
38
|
+
if self.metadata is not None:
|
|
39
|
+
result['metadata'] = dict(self.metadata)
|
|
40
|
+
if self.usernames is not None:
|
|
41
|
+
result['usernames'] = [i.to_dict() for i in self.usernames]
|
|
42
|
+
return result
|
|
43
|
+
|
|
44
|
+
def from_dict(self, m):
|
|
45
|
+
"""
|
|
46
|
+
Populate the response instance from a dictionary.
|
|
47
|
+
|
|
48
|
+
Nested dictionaries are recursively converted to model objects.
|
|
49
|
+
|
|
50
|
+
:param m: Dictionary containing response data
|
|
51
|
+
:type m: dict
|
|
52
|
+
|
|
53
|
+
:return: Self reference for method chaining
|
|
54
|
+
:rtype: AccountListUsingGETResponse
|
|
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('usernames') is not None:
|
|
61
|
+
self.usernames = [Account().from_dict(i) for i in m.get('usernames')]
|
|
62
|
+
return self
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"""
|
|
2
|
+
AzInfo information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AzInfo(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
AzInfo
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, availability_zone=None, count=None, subnet_id=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize AzInfo instance.
|
|
16
|
+
|
|
17
|
+
:param availability_zone:
|
|
18
|
+
:type availability_zone: str (optional)
|
|
19
|
+
|
|
20
|
+
:param count:
|
|
21
|
+
:type count: int (optional)
|
|
22
|
+
|
|
23
|
+
:param subnet_id:
|
|
24
|
+
:type subnet_id: str (optional)
|
|
25
|
+
"""
|
|
26
|
+
super().__init__()
|
|
27
|
+
self.availability_zone = availability_zone
|
|
28
|
+
self.count = count
|
|
29
|
+
self.subnet_id = subnet_id
|
|
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.availability_zone is not None:
|
|
45
|
+
result['availabilityZone'] = self.availability_zone
|
|
46
|
+
if self.count is not None:
|
|
47
|
+
result['count'] = self.count
|
|
48
|
+
if self.subnet_id is not None:
|
|
49
|
+
result['subnetId'] = self.subnet_id
|
|
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: AzInfo
|
|
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('availabilityZone') is not None:
|
|
69
|
+
self.availability_zone = m.get('availabilityZone')
|
|
70
|
+
if m.get('count') is not None:
|
|
71
|
+
self.count = m.get('count')
|
|
72
|
+
if m.get('subnetId') is not None:
|
|
73
|
+
self.subnet_id = m.get('subnetId')
|
|
74
|
+
return self
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"""
|
|
2
|
+
BatchRecord information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class BatchRecord(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
BatchRecord
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(
|
|
14
|
+
self,
|
|
15
|
+
backup_id=None,
|
|
16
|
+
backup_status=None,
|
|
17
|
+
backup_type=None,
|
|
18
|
+
comment=None,
|
|
19
|
+
duration=None,
|
|
20
|
+
node_info=None,
|
|
21
|
+
object_size=None,
|
|
22
|
+
start_time=None,
|
|
23
|
+
):
|
|
24
|
+
"""
|
|
25
|
+
Initialize BatchRecord instance.
|
|
26
|
+
|
|
27
|
+
:param backup_id:
|
|
28
|
+
:type backup_id: int (optional)
|
|
29
|
+
|
|
30
|
+
:param backup_status:
|
|
31
|
+
:type backup_status: str (optional)
|
|
32
|
+
|
|
33
|
+
:param backup_type:
|
|
34
|
+
:type backup_type: str (optional)
|
|
35
|
+
|
|
36
|
+
:param comment:
|
|
37
|
+
:type comment: str (optional)
|
|
38
|
+
|
|
39
|
+
:param duration:
|
|
40
|
+
:type duration: int (optional)
|
|
41
|
+
|
|
42
|
+
:param node_info:
|
|
43
|
+
:type node_info: str (optional)
|
|
44
|
+
|
|
45
|
+
:param object_size:
|
|
46
|
+
:type object_size: int (optional)
|
|
47
|
+
|
|
48
|
+
:param start_time:
|
|
49
|
+
:type start_time: str (optional)
|
|
50
|
+
"""
|
|
51
|
+
super().__init__()
|
|
52
|
+
self.backup_id = backup_id
|
|
53
|
+
self.backup_status = backup_status
|
|
54
|
+
self.backup_type = backup_type
|
|
55
|
+
self.comment = comment
|
|
56
|
+
self.duration = duration
|
|
57
|
+
self.node_info = node_info
|
|
58
|
+
self.object_size = object_size
|
|
59
|
+
self.start_time = start_time
|
|
60
|
+
|
|
61
|
+
def to_dict(self):
|
|
62
|
+
"""
|
|
63
|
+
Convert the model instance to a dictionary representation.
|
|
64
|
+
|
|
65
|
+
Nested model objects are recursively converted to dictionaries.
|
|
66
|
+
|
|
67
|
+
:return: Dictionary representation of the model
|
|
68
|
+
:rtype: dict
|
|
69
|
+
"""
|
|
70
|
+
_map = super().to_dict()
|
|
71
|
+
if _map is not None:
|
|
72
|
+
return _map
|
|
73
|
+
result = dict()
|
|
74
|
+
if self.backup_id is not None:
|
|
75
|
+
result['backupId'] = self.backup_id
|
|
76
|
+
if self.backup_status is not None:
|
|
77
|
+
result['backupStatus'] = self.backup_status
|
|
78
|
+
if self.backup_type is not None:
|
|
79
|
+
result['backupType'] = self.backup_type
|
|
80
|
+
if self.comment is not None:
|
|
81
|
+
result['comment'] = self.comment
|
|
82
|
+
if self.duration is not None:
|
|
83
|
+
result['duration'] = self.duration
|
|
84
|
+
if self.node_info is not None:
|
|
85
|
+
result['nodeInfo'] = self.node_info
|
|
86
|
+
if self.object_size is not None:
|
|
87
|
+
result['objectSize'] = self.object_size
|
|
88
|
+
if self.start_time is not None:
|
|
89
|
+
result['startTime'] = self.start_time
|
|
90
|
+
return result
|
|
91
|
+
|
|
92
|
+
def from_dict(self, m):
|
|
93
|
+
"""
|
|
94
|
+
Populate the model instance from a dictionary.
|
|
95
|
+
|
|
96
|
+
Nested dictionaries are recursively converted to model objects.
|
|
97
|
+
|
|
98
|
+
:param m: Dictionary containing model data
|
|
99
|
+
:type m: dict
|
|
100
|
+
|
|
101
|
+
:return: Self reference for method chaining
|
|
102
|
+
:rtype: BatchRecord
|
|
103
|
+
|
|
104
|
+
:raises TypeError: If input is not a dictionary type
|
|
105
|
+
:raises ValueError: If nested model conversion fails
|
|
106
|
+
"""
|
|
107
|
+
m = m or dict()
|
|
108
|
+
if m.get('backupId') is not None:
|
|
109
|
+
self.backup_id = m.get('backupId')
|
|
110
|
+
if m.get('backupStatus') is not None:
|
|
111
|
+
self.backup_status = m.get('backupStatus')
|
|
112
|
+
if m.get('backupType') is not None:
|
|
113
|
+
self.backup_type = m.get('backupType')
|
|
114
|
+
if m.get('comment') is not None:
|
|
115
|
+
self.comment = m.get('comment')
|
|
116
|
+
if m.get('duration') is not None:
|
|
117
|
+
self.duration = m.get('duration')
|
|
118
|
+
if m.get('nodeInfo') is not None:
|
|
119
|
+
self.node_info = m.get('nodeInfo')
|
|
120
|
+
if m.get('objectSize') is not None:
|
|
121
|
+
self.object_size = m.get('objectSize')
|
|
122
|
+
if m.get('startTime') is not None:
|
|
123
|
+
self.start_time = m.get('startTime')
|
|
124
|
+
return self
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for BindEipUsingPOSTRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class BindEipUsingPOSTRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for BindEipUsingPOSTRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, instance_id, engine_type=None, eip=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize BindEipUsingPOSTRequest 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 eip: eip parameter
|
|
26
|
+
:type eip: str (optional)
|
|
27
|
+
"""
|
|
28
|
+
super().__init__()
|
|
29
|
+
self.instance_id = instance_id
|
|
30
|
+
self.engine_type = engine_type
|
|
31
|
+
self.eip = eip
|
|
32
|
+
|
|
33
|
+
def to_dict(self):
|
|
34
|
+
"""
|
|
35
|
+
Convert the request entity to a dictionary representation.
|
|
36
|
+
|
|
37
|
+
Nested model objects are recursively converted to dictionaries.
|
|
38
|
+
|
|
39
|
+
:return: Dictionary representation of the request
|
|
40
|
+
:rtype: dict
|
|
41
|
+
"""
|
|
42
|
+
_map = super().to_dict()
|
|
43
|
+
if _map is not None:
|
|
44
|
+
return _map
|
|
45
|
+
result = dict()
|
|
46
|
+
if self.eip is not None:
|
|
47
|
+
result['eip'] = self.eip
|
|
48
|
+
return result
|
|
49
|
+
|
|
50
|
+
def from_dict(self, m):
|
|
51
|
+
"""
|
|
52
|
+
Populate the request entity from a dictionary.
|
|
53
|
+
|
|
54
|
+
Nested dictionaries are recursively converted to model objects.
|
|
55
|
+
|
|
56
|
+
:param m: Dictionary containing request data
|
|
57
|
+
:type m: dict
|
|
58
|
+
|
|
59
|
+
:return: Self reference for method chaining
|
|
60
|
+
:rtype: BindEipUsingPOSTRequest
|
|
61
|
+
|
|
62
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
63
|
+
:raises ValueError: If nested model conversion fails
|
|
64
|
+
"""
|
|
65
|
+
m = m or dict()
|
|
66
|
+
if m.get('instanceId') is not None:
|
|
67
|
+
self.instance_id = m.get('instanceId')
|
|
68
|
+
if m.get('engineType') is not None:
|
|
69
|
+
self.engine_type = m.get('engineType')
|
|
70
|
+
if m.get('eip') is not None:
|
|
71
|
+
self.eip = m.get('eip')
|
|
72
|
+
return self
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for CreateInstanceUsingPostRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateInstanceUsingPostRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for CreateInstanceUsingPostRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, engine_type=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize CreateInstanceUsingPostRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param engine_type: engine_type parameter
|
|
20
|
+
:type engine_type: str (optional)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.engine_type = engine_type
|
|
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: CreateInstanceUsingPostRequest
|
|
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('engineType') is not None:
|
|
57
|
+
self.engine_type = m.get('engineType')
|
|
58
|
+
return self
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for CreateInstanceUsingPOSTResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CreateInstanceUsingPOSTResponse(BceResponse):
|
|
9
|
+
"""
|
|
10
|
+
CreateInstanceUsingPOSTResponse
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, enable_encryption=None, instance_id_list=None, order_id=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize CreateInstanceUsingPOSTResponse response.
|
|
16
|
+
|
|
17
|
+
:param enable_encryption: enable_encryption field
|
|
18
|
+
:type enable_encryption: bool (optional)
|
|
19
|
+
|
|
20
|
+
:param instance_id_list: instance_id_list field
|
|
21
|
+
:type instance_id_list: List[str] (optional)
|
|
22
|
+
|
|
23
|
+
:param order_id: order_id field
|
|
24
|
+
:type order_id: str (optional)
|
|
25
|
+
"""
|
|
26
|
+
super().__init__()
|
|
27
|
+
self.enable_encryption = enable_encryption
|
|
28
|
+
self.instance_id_list = instance_id_list
|
|
29
|
+
self.order_id = order_id
|
|
30
|
+
|
|
31
|
+
def to_dict(self):
|
|
32
|
+
"""
|
|
33
|
+
Convert the response instance to a dictionary representation.
|
|
34
|
+
|
|
35
|
+
Includes metadata from the parent BceResponse class.
|
|
36
|
+
Nested model objects are recursively converted to dictionaries.
|
|
37
|
+
|
|
38
|
+
:return: Dictionary representation of the response
|
|
39
|
+
:rtype: dict
|
|
40
|
+
"""
|
|
41
|
+
_map = super().to_dict()
|
|
42
|
+
if _map is not None:
|
|
43
|
+
return _map
|
|
44
|
+
result = dict()
|
|
45
|
+
if self.metadata is not None:
|
|
46
|
+
result['metadata'] = dict(self.metadata)
|
|
47
|
+
if self.enable_encryption is not None:
|
|
48
|
+
result['enableEncryption'] = self.enable_encryption
|
|
49
|
+
if self.instance_id_list is not None:
|
|
50
|
+
result['instanceIdList'] = self.instance_id_list
|
|
51
|
+
if self.order_id is not None:
|
|
52
|
+
result['orderId'] = self.order_id
|
|
53
|
+
return result
|
|
54
|
+
|
|
55
|
+
def from_dict(self, m):
|
|
56
|
+
"""
|
|
57
|
+
Populate the response instance from a dictionary.
|
|
58
|
+
|
|
59
|
+
Nested dictionaries are recursively converted to model objects.
|
|
60
|
+
|
|
61
|
+
:param m: Dictionary containing response data
|
|
62
|
+
:type m: dict
|
|
63
|
+
|
|
64
|
+
:return: Self reference for method chaining
|
|
65
|
+
:rtype: CreateInstanceUsingPOSTResponse
|
|
66
|
+
|
|
67
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
68
|
+
:raises ValueError: If nested model conversion fails
|
|
69
|
+
"""
|
|
70
|
+
m = m or dict()
|
|
71
|
+
if m.get('enableEncryption') is not None:
|
|
72
|
+
self.enable_encryption = m.get('enableEncryption')
|
|
73
|
+
if m.get('instanceIdList') is not None:
|
|
74
|
+
self.instance_id_list = m.get('instanceIdList')
|
|
75
|
+
if m.get('orderId') is not None:
|
|
76
|
+
self.order_id = m.get('orderId')
|
|
77
|
+
return self
|