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,72 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for UpdateInstanceDomainRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateInstanceDomainRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for UpdateInstanceDomainRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, instance_id, engine_type=None, domain=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize UpdateInstanceDomainRequest 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 domain: domain parameter
|
|
26
|
+
:type domain: str (optional)
|
|
27
|
+
"""
|
|
28
|
+
super().__init__()
|
|
29
|
+
self.instance_id = instance_id
|
|
30
|
+
self.engine_type = engine_type
|
|
31
|
+
self.domain = domain
|
|
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.domain is not None:
|
|
47
|
+
result['domain'] = self.domain
|
|
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: UpdateInstanceDomainRequest
|
|
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('domain') is not None:
|
|
71
|
+
self.domain = m.get('domain')
|
|
72
|
+
return self
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for UpdateInstanceNameRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateInstanceNameRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for UpdateInstanceNameRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, instance_id, engine_type=None, instance_name=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize UpdateInstanceNameRequest 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 instance_name: instance_name parameter
|
|
26
|
+
:type instance_name: str (optional)
|
|
27
|
+
"""
|
|
28
|
+
super().__init__()
|
|
29
|
+
self.instance_id = instance_id
|
|
30
|
+
self.engine_type = engine_type
|
|
31
|
+
self.instance_name = instance_name
|
|
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.instance_name is not None:
|
|
47
|
+
result['instanceName'] = self.instance_name
|
|
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: UpdateInstanceNameRequest
|
|
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('instanceName') is not None:
|
|
71
|
+
self.instance_name = m.get('instanceName')
|
|
72
|
+
return self
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"""
|
|
2
|
+
VdbAutoRenewRule information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class VdbAutoRenewRule(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
VdbAutoRenewRule
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, renew_time=None, renew_time_unit=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize VdbAutoRenewRule instance.
|
|
16
|
+
|
|
17
|
+
:param renew_time:
|
|
18
|
+
:type renew_time: int (optional)
|
|
19
|
+
|
|
20
|
+
:param renew_time_unit:
|
|
21
|
+
:type renew_time_unit: str (optional)
|
|
22
|
+
"""
|
|
23
|
+
super().__init__()
|
|
24
|
+
self.renew_time = renew_time
|
|
25
|
+
self.renew_time_unit = renew_time_unit
|
|
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.renew_time is not None:
|
|
41
|
+
result['renewTime'] = self.renew_time
|
|
42
|
+
if self.renew_time_unit is not None:
|
|
43
|
+
result['renewTimeUnit'] = self.renew_time_unit
|
|
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: VdbAutoRenewRule
|
|
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('renewTime') is not None:
|
|
63
|
+
self.renew_time = m.get('renewTime')
|
|
64
|
+
if m.get('renewTimeUnit') is not None:
|
|
65
|
+
self.renew_time_unit = m.get('renewTimeUnit')
|
|
66
|
+
return self
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"""
|
|
2
|
+
VdbPricingQueryResponse information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
|
|
7
|
+
from baiducloud_python_sdk_vdb.models.multi_year_result import MultiYearResult
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class VdbPricingQueryResponse(BceResponse):
|
|
11
|
+
"""
|
|
12
|
+
VdbPricingQueryResponse
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(
|
|
16
|
+
self,
|
|
17
|
+
catalog_price=None,
|
|
18
|
+
component_type=None,
|
|
19
|
+
discount=None,
|
|
20
|
+
discount_type=None,
|
|
21
|
+
multi_year_result=None,
|
|
22
|
+
origin_discount=None,
|
|
23
|
+
origin_price=None,
|
|
24
|
+
price=None,
|
|
25
|
+
price_id=None,
|
|
26
|
+
price_name=None,
|
|
27
|
+
price_type=None,
|
|
28
|
+
real_catalog_price=None,
|
|
29
|
+
):
|
|
30
|
+
"""
|
|
31
|
+
Initialize VdbPricingQueryResponse instance.
|
|
32
|
+
|
|
33
|
+
:param catalog_price:
|
|
34
|
+
:type catalog_price: float (optional)
|
|
35
|
+
|
|
36
|
+
:param component_type:
|
|
37
|
+
:type component_type: str (optional)
|
|
38
|
+
|
|
39
|
+
:param discount:
|
|
40
|
+
:type discount: float (optional)
|
|
41
|
+
|
|
42
|
+
:param discount_type:
|
|
43
|
+
:type discount_type: str (optional)
|
|
44
|
+
|
|
45
|
+
:param multi_year_result: multi_year_result attribute
|
|
46
|
+
:type multi_year_result: MultiYearResult (optional)
|
|
47
|
+
|
|
48
|
+
:param origin_discount:
|
|
49
|
+
:type origin_discount: float (optional)
|
|
50
|
+
|
|
51
|
+
:param origin_price:
|
|
52
|
+
:type origin_price: float (optional)
|
|
53
|
+
|
|
54
|
+
:param price:
|
|
55
|
+
:type price: float (optional)
|
|
56
|
+
|
|
57
|
+
:param price_id:
|
|
58
|
+
:type price_id: int (optional)
|
|
59
|
+
|
|
60
|
+
:param price_name:
|
|
61
|
+
:type price_name: str (optional)
|
|
62
|
+
|
|
63
|
+
:param price_type:
|
|
64
|
+
:type price_type: str (optional)
|
|
65
|
+
|
|
66
|
+
:param real_catalog_price:
|
|
67
|
+
:type real_catalog_price: float (optional)
|
|
68
|
+
"""
|
|
69
|
+
super().__init__()
|
|
70
|
+
self.catalog_price = catalog_price
|
|
71
|
+
self.component_type = component_type
|
|
72
|
+
self.discount = discount
|
|
73
|
+
self.discount_type = discount_type
|
|
74
|
+
self.multi_year_result = multi_year_result
|
|
75
|
+
self.origin_discount = origin_discount
|
|
76
|
+
self.origin_price = origin_price
|
|
77
|
+
self.price = price
|
|
78
|
+
self.price_id = price_id
|
|
79
|
+
self.price_name = price_name
|
|
80
|
+
self.price_type = price_type
|
|
81
|
+
self.real_catalog_price = real_catalog_price
|
|
82
|
+
|
|
83
|
+
def to_dict(self):
|
|
84
|
+
"""
|
|
85
|
+
Convert the model instance to a dictionary representation.
|
|
86
|
+
|
|
87
|
+
Nested model objects are recursively converted to dictionaries.
|
|
88
|
+
|
|
89
|
+
Includes metadata from the parent BceResponse class.
|
|
90
|
+
|
|
91
|
+
:return: Dictionary representation of the model
|
|
92
|
+
:rtype: dict
|
|
93
|
+
"""
|
|
94
|
+
_map = super().to_dict()
|
|
95
|
+
if _map is not None:
|
|
96
|
+
return _map
|
|
97
|
+
result = dict()
|
|
98
|
+
if self.metadata is not None:
|
|
99
|
+
result['metadata'] = dict(self.metadata)
|
|
100
|
+
if self.catalog_price is not None:
|
|
101
|
+
result['catalogPrice'] = self.catalog_price
|
|
102
|
+
if self.component_type is not None:
|
|
103
|
+
result['componentType'] = self.component_type
|
|
104
|
+
if self.discount is not None:
|
|
105
|
+
result['discount'] = self.discount
|
|
106
|
+
if self.discount_type is not None:
|
|
107
|
+
result['discountType'] = self.discount_type
|
|
108
|
+
if self.multi_year_result is not None:
|
|
109
|
+
result['multiYearResult'] = self.multi_year_result.to_dict()
|
|
110
|
+
if self.origin_discount is not None:
|
|
111
|
+
result['originDiscount'] = self.origin_discount
|
|
112
|
+
if self.origin_price is not None:
|
|
113
|
+
result['originPrice'] = self.origin_price
|
|
114
|
+
if self.price is not None:
|
|
115
|
+
result['price'] = self.price
|
|
116
|
+
if self.price_id is not None:
|
|
117
|
+
result['priceId'] = self.price_id
|
|
118
|
+
if self.price_name is not None:
|
|
119
|
+
result['priceName'] = self.price_name
|
|
120
|
+
if self.price_type is not None:
|
|
121
|
+
result['priceType'] = self.price_type
|
|
122
|
+
if self.real_catalog_price is not None:
|
|
123
|
+
result['realCatalogPrice'] = self.real_catalog_price
|
|
124
|
+
return result
|
|
125
|
+
|
|
126
|
+
def from_dict(self, m):
|
|
127
|
+
"""
|
|
128
|
+
Populate the model instance from a dictionary.
|
|
129
|
+
|
|
130
|
+
Nested dictionaries are recursively converted to model objects.
|
|
131
|
+
|
|
132
|
+
:param m: Dictionary containing model data
|
|
133
|
+
:type m: dict
|
|
134
|
+
|
|
135
|
+
:return: Self reference for method chaining
|
|
136
|
+
:rtype: VdbPricingQueryResponse
|
|
137
|
+
|
|
138
|
+
:raises TypeError: If input is not a dictionary type
|
|
139
|
+
:raises ValueError: If nested model conversion fails
|
|
140
|
+
"""
|
|
141
|
+
m = m or dict()
|
|
142
|
+
if m.get('catalogPrice') is not None:
|
|
143
|
+
self.catalog_price = m.get('catalogPrice')
|
|
144
|
+
if m.get('componentType') is not None:
|
|
145
|
+
self.component_type = m.get('componentType')
|
|
146
|
+
if m.get('discount') is not None:
|
|
147
|
+
self.discount = m.get('discount')
|
|
148
|
+
if m.get('discountType') is not None:
|
|
149
|
+
self.discount_type = m.get('discountType')
|
|
150
|
+
if m.get('multiYearResult') is not None:
|
|
151
|
+
self.multi_year_result = MultiYearResult().from_dict(m.get('multiYearResult'))
|
|
152
|
+
if m.get('originDiscount') is not None:
|
|
153
|
+
self.origin_discount = m.get('originDiscount')
|
|
154
|
+
if m.get('originPrice') is not None:
|
|
155
|
+
self.origin_price = m.get('originPrice')
|
|
156
|
+
if m.get('price') is not None:
|
|
157
|
+
self.price = m.get('price')
|
|
158
|
+
if m.get('priceId') is not None:
|
|
159
|
+
self.price_id = m.get('priceId')
|
|
160
|
+
if m.get('priceName') is not None:
|
|
161
|
+
self.price_name = m.get('priceName')
|
|
162
|
+
if m.get('priceType') is not None:
|
|
163
|
+
self.price_type = m.get('priceType')
|
|
164
|
+
if m.get('realCatalogPrice') is not None:
|
|
165
|
+
self.real_catalog_price = m.get('realCatalogPrice')
|
|
166
|
+
return self
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"""
|
|
2
|
+
ZoneDetail information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ZoneDetail(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
ZoneDetail
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(
|
|
14
|
+
self,
|
|
15
|
+
api_zone_names=None,
|
|
16
|
+
available=None,
|
|
17
|
+
default_subnet_id=None,
|
|
18
|
+
max_cpu_count=None,
|
|
19
|
+
max_memory=None,
|
|
20
|
+
max_storage=None,
|
|
21
|
+
stock_state=None,
|
|
22
|
+
zone_name_str=None,
|
|
23
|
+
zone_names=None,
|
|
24
|
+
):
|
|
25
|
+
"""
|
|
26
|
+
Initialize ZoneDetail instance.
|
|
27
|
+
|
|
28
|
+
:param api_zone_names:
|
|
29
|
+
:type api_zone_names: List[str] (optional)
|
|
30
|
+
|
|
31
|
+
:param available:
|
|
32
|
+
:type available: bool (optional)
|
|
33
|
+
|
|
34
|
+
:param default_subnet_id:
|
|
35
|
+
:type default_subnet_id: str (optional)
|
|
36
|
+
|
|
37
|
+
:param max_cpu_count:
|
|
38
|
+
:type max_cpu_count: int (optional)
|
|
39
|
+
|
|
40
|
+
:param max_memory:
|
|
41
|
+
:type max_memory: int (optional)
|
|
42
|
+
|
|
43
|
+
:param max_storage:
|
|
44
|
+
:type max_storage: int (optional)
|
|
45
|
+
|
|
46
|
+
:param stock_state:
|
|
47
|
+
:type stock_state: int (optional)
|
|
48
|
+
|
|
49
|
+
:param zone_name_str:
|
|
50
|
+
:type zone_name_str: str (optional)
|
|
51
|
+
|
|
52
|
+
:param zone_names:
|
|
53
|
+
:type zone_names: List[str] (optional)
|
|
54
|
+
"""
|
|
55
|
+
super().__init__()
|
|
56
|
+
self.api_zone_names = api_zone_names
|
|
57
|
+
self.available = available
|
|
58
|
+
self.default_subnet_id = default_subnet_id
|
|
59
|
+
self.max_cpu_count = max_cpu_count
|
|
60
|
+
self.max_memory = max_memory
|
|
61
|
+
self.max_storage = max_storage
|
|
62
|
+
self.stock_state = stock_state
|
|
63
|
+
self.zone_name_str = zone_name_str
|
|
64
|
+
self.zone_names = zone_names
|
|
65
|
+
|
|
66
|
+
def to_dict(self):
|
|
67
|
+
"""
|
|
68
|
+
Convert the model instance to a dictionary representation.
|
|
69
|
+
|
|
70
|
+
Nested model objects are recursively converted to dictionaries.
|
|
71
|
+
|
|
72
|
+
:return: Dictionary representation of the model
|
|
73
|
+
:rtype: dict
|
|
74
|
+
"""
|
|
75
|
+
_map = super().to_dict()
|
|
76
|
+
if _map is not None:
|
|
77
|
+
return _map
|
|
78
|
+
result = dict()
|
|
79
|
+
if self.api_zone_names is not None:
|
|
80
|
+
result['apiZoneNames'] = self.api_zone_names
|
|
81
|
+
if self.available is not None:
|
|
82
|
+
result['available'] = self.available
|
|
83
|
+
if self.default_subnet_id is not None:
|
|
84
|
+
result['defaultSubnetId'] = self.default_subnet_id
|
|
85
|
+
if self.max_cpu_count is not None:
|
|
86
|
+
result['maxCpuCount'] = self.max_cpu_count
|
|
87
|
+
if self.max_memory is not None:
|
|
88
|
+
result['maxMemory'] = self.max_memory
|
|
89
|
+
if self.max_storage is not None:
|
|
90
|
+
result['maxStorage'] = self.max_storage
|
|
91
|
+
if self.stock_state is not None:
|
|
92
|
+
result['stockState'] = self.stock_state
|
|
93
|
+
if self.zone_name_str is not None:
|
|
94
|
+
result['zoneNameStr'] = self.zone_name_str
|
|
95
|
+
if self.zone_names is not None:
|
|
96
|
+
result['zoneNames'] = self.zone_names
|
|
97
|
+
return result
|
|
98
|
+
|
|
99
|
+
def from_dict(self, m):
|
|
100
|
+
"""
|
|
101
|
+
Populate the model instance from a dictionary.
|
|
102
|
+
|
|
103
|
+
Nested dictionaries are recursively converted to model objects.
|
|
104
|
+
|
|
105
|
+
:param m: Dictionary containing model data
|
|
106
|
+
:type m: dict
|
|
107
|
+
|
|
108
|
+
:return: Self reference for method chaining
|
|
109
|
+
:rtype: ZoneDetail
|
|
110
|
+
|
|
111
|
+
:raises TypeError: If input is not a dictionary type
|
|
112
|
+
:raises ValueError: If nested model conversion fails
|
|
113
|
+
"""
|
|
114
|
+
m = m or dict()
|
|
115
|
+
if m.get('apiZoneNames') is not None:
|
|
116
|
+
self.api_zone_names = m.get('apiZoneNames')
|
|
117
|
+
if m.get('available') is not None:
|
|
118
|
+
self.available = m.get('available')
|
|
119
|
+
if m.get('defaultSubnetId') is not None:
|
|
120
|
+
self.default_subnet_id = m.get('defaultSubnetId')
|
|
121
|
+
if m.get('maxCpuCount') is not None:
|
|
122
|
+
self.max_cpu_count = m.get('maxCpuCount')
|
|
123
|
+
if m.get('maxMemory') is not None:
|
|
124
|
+
self.max_memory = m.get('maxMemory')
|
|
125
|
+
if m.get('maxStorage') is not None:
|
|
126
|
+
self.max_storage = m.get('maxStorage')
|
|
127
|
+
if m.get('stockState') is not None:
|
|
128
|
+
self.stock_state = m.get('stockState')
|
|
129
|
+
if m.get('zoneNameStr') is not None:
|
|
130
|
+
self.zone_name_str = m.get('zoneNameStr')
|
|
131
|
+
if m.get('zoneNames') is not None:
|
|
132
|
+
self.zone_names = m.get('zoneNames')
|
|
133
|
+
return self
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ZoneListUsingGetRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ZoneListUsingGetRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for ZoneListUsingGetRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, var_from=None, engine_type=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize ZoneListUsingGetRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param var_from: var_from parameter
|
|
20
|
+
:type var_from: str (optional)
|
|
21
|
+
|
|
22
|
+
:param engine_type: engine_type parameter
|
|
23
|
+
:type engine_type: str (optional)
|
|
24
|
+
"""
|
|
25
|
+
super().__init__()
|
|
26
|
+
self.var_from = var_from
|
|
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: ZoneListUsingGetRequest
|
|
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('from') is not None:
|
|
61
|
+
self.var_from = m.get('from')
|
|
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 ZoneListUsingGETResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_vdb.models.zone_detail import ZoneDetail
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ZoneListUsingGETResponse(BceResponse):
|
|
10
|
+
"""
|
|
11
|
+
ZoneListUsingGETResponse
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, zones=None):
|
|
15
|
+
"""
|
|
16
|
+
Initialize ZoneListUsingGETResponse response.
|
|
17
|
+
|
|
18
|
+
:param zones: zones field
|
|
19
|
+
:type zones: List[ZoneDetail] (optional)
|
|
20
|
+
"""
|
|
21
|
+
super().__init__()
|
|
22
|
+
self.zones = zones
|
|
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.zones is not None:
|
|
41
|
+
result['zones'] = [i.to_dict() for i in self.zones]
|
|
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: ZoneListUsingGETResponse
|
|
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('zones') is not None:
|
|
61
|
+
self.zones = [ZoneDetail().from_dict(i) for i in m.get('zones')]
|
|
62
|
+
return self
|