baiducloud-python-sdk-rds 0.0.4__py3-none-any.whl → 0.0.6__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_rds/__init__.py +1 -1
- baiducloud_python_sdk_rds/api/rds_client.py +42 -70
- baiducloud_python_sdk_rds/models/__init__.py +3 -9
- baiducloud_python_sdk_rds/models/instance.py +9 -9
- baiducloud_python_sdk_rds/models/instance_enables_automatic_renewal_request.py +76 -0
- baiducloud_python_sdk_rds/models/query_the_details_of_the_specified_instance_response.py +1 -1
- baiducloud_python_sdk_rds/models/renewal_example_request.py +68 -0
- baiducloud_python_sdk_rds/models/renewal_example_response.py +61 -0
- baiducloud_python_sdk_rds/models/resource_info.py +8 -8
- {baiducloud_python_sdk_rds-0.0.4.dist-info → baiducloud_python_sdk_rds-0.0.6.dist-info}/METADATA +1 -1
- {baiducloud_python_sdk_rds-0.0.4.dist-info → baiducloud_python_sdk_rds-0.0.6.dist-info}/RECORD +14 -16
- baiducloud_python_sdk_rds/models/get_new_purchase_price_request.py +0 -85
- baiducloud_python_sdk_rds/models/get_new_purchase_price_response.py +0 -118
- baiducloud_python_sdk_rds/models/obtain_the_price_difference_of_prepaid_transformer_request.py +0 -102
- baiducloud_python_sdk_rds/models/obtain_the_price_difference_of_prepaid_transformer_response.py +0 -118
- baiducloud_python_sdk_rds/models/zone_migration_request.py +0 -99
- {baiducloud_python_sdk_rds-0.0.4.dist-info → baiducloud_python_sdk_rds-0.0.6.dist-info}/LICENSE +0 -0
- {baiducloud_python_sdk_rds-0.0.4.dist-info → baiducloud_python_sdk_rds-0.0.6.dist-info}/WHEEL +0 -0
- {baiducloud_python_sdk_rds-0.0.4.dist-info → baiducloud_python_sdk_rds-0.0.6.dist-info}/top_level.txt +0 -0
|
@@ -22,10 +22,6 @@ from baiducloud_python_sdk_rds.models.dial_test_interface_response import DialTe
|
|
|
22
22
|
from baiducloud_python_sdk_rds.models.does_the_instance_support_enabling_automatic_expansion_response import (
|
|
23
23
|
DoesTheInstanceSupportEnablingAutomaticExpansionResponse,
|
|
24
24
|
)
|
|
25
|
-
from baiducloud_python_sdk_rds.models.get_new_purchase_price_response import GetNewPurchasePriceResponse
|
|
26
|
-
from baiducloud_python_sdk_rds.models.obtain_the_price_difference_of_prepaid_transformer_response import (
|
|
27
|
-
ObtainThePriceDifferenceOfPrepaidTransformerResponse,
|
|
28
|
-
)
|
|
29
25
|
from baiducloud_python_sdk_rds.models.query_instance_list_response import QueryInstanceListResponse
|
|
30
26
|
from baiducloud_python_sdk_rds.models.query_subnet_list_response import QuerySubnetListResponse
|
|
31
27
|
from baiducloud_python_sdk_rds.models.query_task_list_response import QueryTaskListResponse
|
|
@@ -36,6 +32,7 @@ from baiducloud_python_sdk_rds.models.query_the_list_of_available_zones_response
|
|
|
36
32
|
QueryTheListOfAvailableZonesResponse,
|
|
37
33
|
)
|
|
38
34
|
from baiducloud_python_sdk_rds.models.release_instance_response import ReleaseInstanceResponse
|
|
35
|
+
from baiducloud_python_sdk_rds.models.renewal_example_response import RenewalExampleResponse
|
|
39
36
|
from baiducloud_python_sdk_rds.models.retrieve_instance_auto_scaling_config_response import (
|
|
40
37
|
RetrieveInstanceAutoScalingConfigResponse,
|
|
41
38
|
)
|
|
@@ -67,11 +64,7 @@ class RdsClient(BceBaseClient):
|
|
|
67
64
|
|
|
68
65
|
CONSTANT_TASK = b'task'
|
|
69
66
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
CONSTANT_PRICE = b'price'
|
|
73
|
-
|
|
74
|
-
CONSTANT_DIFF = b'diff'
|
|
67
|
+
CONSTANT_RENEW = b'renew'
|
|
75
68
|
|
|
76
69
|
CONSTANT_AUTO_RESIZE_CONFIG = b'autoResizeConfig'
|
|
77
70
|
|
|
@@ -304,58 +297,28 @@ class RdsClient(BceBaseClient):
|
|
|
304
297
|
model=DoesTheInstanceSupportEnablingAutomaticExpansionResponse,
|
|
305
298
|
)
|
|
306
299
|
|
|
307
|
-
def
|
|
308
|
-
"""
|
|
309
|
-
get_new_purchase_price
|
|
310
|
-
|
|
311
|
-
:param request: Request entity containing all parameters
|
|
312
|
-
:type request: RdsClientRequest
|
|
313
|
-
:param config: Optional request configuration override
|
|
314
|
-
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
315
|
-
|
|
316
|
-
:return: API response containing GetNewPurchasePriceResponse data
|
|
317
|
-
:rtype: GetNewPurchasePriceResponse
|
|
318
|
-
|
|
319
|
-
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
320
|
-
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
321
|
-
"""
|
|
322
|
-
path = utils.append_uri(RdsClient.VERSION_V1, RdsClient.CONSTANT_INSTANCE, RdsClient.CONSTANT_PRICE)
|
|
323
|
-
headers = None
|
|
324
|
-
merged_config = self._create_request_with_host(request, config)
|
|
325
|
-
return self._send_request(
|
|
326
|
-
http_methods.POST,
|
|
327
|
-
path=path,
|
|
328
|
-
body=request.to_json_string(),
|
|
329
|
-
config=merged_config,
|
|
330
|
-
model=GetNewPurchasePriceResponse,
|
|
331
|
-
)
|
|
332
|
-
|
|
333
|
-
def obtain_the_price_difference_of_prepaid_transformer(self, request, config=None):
|
|
300
|
+
def instance_enables_automatic_renewal(self, request, config=None):
|
|
334
301
|
"""
|
|
335
|
-
|
|
302
|
+
instance_enables_automatic_renewal
|
|
336
303
|
|
|
337
304
|
:param request: Request entity containing all parameters
|
|
338
305
|
:type request: RdsClientRequest
|
|
339
306
|
:param config: Optional request configuration override
|
|
340
307
|
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
341
308
|
|
|
342
|
-
:return: API response
|
|
343
|
-
:rtype:
|
|
309
|
+
:return: API response
|
|
310
|
+
:rtype: baiducloud_python_sdk_core.bce_response.BceResponse
|
|
344
311
|
|
|
345
312
|
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
346
313
|
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
347
314
|
"""
|
|
348
|
-
path = utils.append_uri(
|
|
349
|
-
RdsClient.VERSION_V1, RdsClient.CONSTANT_INSTANCE, RdsClient.CONSTANT_PRICE, RdsClient.CONSTANT_DIFF
|
|
350
|
-
)
|
|
315
|
+
path = utils.append_uri(RdsClient.VERSION_V1, RdsClient.CONSTANT_INSTANCE)
|
|
351
316
|
headers = None
|
|
317
|
+
params = {}
|
|
318
|
+
params['autoRenew'] = None
|
|
352
319
|
merged_config = self._create_request_with_host(request, config)
|
|
353
320
|
return self._send_request(
|
|
354
|
-
http_methods.
|
|
355
|
-
path=path,
|
|
356
|
-
body=request.to_json_string(),
|
|
357
|
-
config=merged_config,
|
|
358
|
-
model=ObtainThePriceDifferenceOfPrepaidTransformerResponse,
|
|
321
|
+
http_methods.PUT, path=path, body=request.to_json_string(), params=params, config=merged_config
|
|
359
322
|
)
|
|
360
323
|
|
|
361
324
|
def query_instance_list(self, request, config=None):
|
|
@@ -497,8 +460,39 @@ class RdsClient(BceBaseClient):
|
|
|
497
460
|
"""
|
|
498
461
|
path = utils.append_uri(RdsClient.VERSION_V1, RdsClient.CONSTANT_INSTANCE)
|
|
499
462
|
headers = None
|
|
463
|
+
params = {}
|
|
464
|
+
if request.instance_ids is not None:
|
|
465
|
+
params['instanceIds'] = request.instance_ids
|
|
466
|
+
merged_config = self._create_request_with_host(request, config)
|
|
467
|
+
return self._send_request(
|
|
468
|
+
http_methods.DELETE, path=path, params=params, config=merged_config, model=ReleaseInstanceResponse
|
|
469
|
+
)
|
|
470
|
+
|
|
471
|
+
def renewal_example(self, request, config=None):
|
|
472
|
+
"""
|
|
473
|
+
renewal_example
|
|
474
|
+
|
|
475
|
+
:param request: Request entity containing all parameters
|
|
476
|
+
:type request: RdsClientRequest
|
|
477
|
+
:param config: Optional request configuration override
|
|
478
|
+
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
479
|
+
|
|
480
|
+
:return: API response containing RenewalExampleResponse data
|
|
481
|
+
:rtype: RenewalExampleResponse
|
|
482
|
+
|
|
483
|
+
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
484
|
+
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
485
|
+
"""
|
|
486
|
+
path = utils.append_uri(b'/', RdsClient.CONSTANT_V1, RdsClient.CONSTANT_INSTANCE, RdsClient.CONSTANT_RENEW)
|
|
487
|
+
headers = None
|
|
500
488
|
merged_config = self._create_request_with_host(request, config)
|
|
501
|
-
return self._send_request(
|
|
489
|
+
return self._send_request(
|
|
490
|
+
http_methods.POST,
|
|
491
|
+
path=path,
|
|
492
|
+
body=request.to_json_string(),
|
|
493
|
+
config=merged_config,
|
|
494
|
+
model=RenewalExampleResponse,
|
|
495
|
+
)
|
|
502
496
|
|
|
503
497
|
def restart_the_instance(self, request, config=None):
|
|
504
498
|
"""
|
|
@@ -725,28 +719,6 @@ class RdsClient(BceBaseClient):
|
|
|
725
719
|
merged_config = self._create_request_with_host(request, config)
|
|
726
720
|
return self._send_request(http_methods.PUT, path=path, body=request.to_json_string(), config=merged_config)
|
|
727
721
|
|
|
728
|
-
def zone_migration(self, request, config=None):
|
|
729
|
-
"""
|
|
730
|
-
zone_migration
|
|
731
|
-
|
|
732
|
-
:param request: Request entity containing all parameters
|
|
733
|
-
:type request: RdsClientRequest
|
|
734
|
-
:param config: Optional request configuration override
|
|
735
|
-
:type config: baiducloud_python_sdk_core.BceClientConfiguration
|
|
736
|
-
|
|
737
|
-
:return: API response
|
|
738
|
-
:rtype: baiducloud_python_sdk_core.bce_response.BceResponse
|
|
739
|
-
|
|
740
|
-
:raises BceClientError: Client error (network failure, invalid parameters, etc.)
|
|
741
|
-
:raises BceServerError: Server error (4xx/5xx HTTP status codes)
|
|
742
|
-
"""
|
|
743
|
-
path = utils.append_uri(
|
|
744
|
-
RdsClient.VERSION_V1, RdsClient.CONSTANT_INSTANCE, request.instance_id, RdsClient.CONSTANT_AZONE_MIGRATION
|
|
745
|
-
)
|
|
746
|
-
headers = None
|
|
747
|
-
merged_config = self._create_request_with_host(request, config)
|
|
748
|
-
return self._send_request(http_methods.PUT, path=path, body=request.to_json_string(), config=merged_config)
|
|
749
|
-
|
|
750
722
|
def _merge_config(self, config=None):
|
|
751
723
|
"""
|
|
752
724
|
:param config:
|
|
@@ -25,20 +25,13 @@ from .does_the_instance_support_enabling_automatic_expansion_response import (
|
|
|
25
25
|
)
|
|
26
26
|
from .encrypt_strategy import EncryptStrategy
|
|
27
27
|
from .endpoint import Endpoint
|
|
28
|
-
from .get_new_purchase_price_request import GetNewPurchasePriceRequest
|
|
29
|
-
from .get_new_purchase_price_response import GetNewPurchasePriceResponse
|
|
30
28
|
from .initial_data_reference import InitialDataReference
|
|
31
29
|
from .instance import Instance
|
|
32
30
|
from .instance_dict import InstanceDict
|
|
31
|
+
from .instance_enables_automatic_renewal_request import InstanceEnablesAutomaticRenewalRequest
|
|
33
32
|
from .instance_subnet import InstanceSubnet
|
|
34
33
|
from .machine_po import MachinePO
|
|
35
34
|
from .master_id_mapping import MasterIdMapping
|
|
36
|
-
from .obtain_the_price_difference_of_prepaid_transformer_request import (
|
|
37
|
-
ObtainThePriceDifferenceOfPrepaidTransformerRequest,
|
|
38
|
-
)
|
|
39
|
-
from .obtain_the_price_difference_of_prepaid_transformer_response import (
|
|
40
|
-
ObtainThePriceDifferenceOfPrepaidTransformerResponse,
|
|
41
|
-
)
|
|
42
35
|
from .progress import Progress
|
|
43
36
|
from .query_instance_list_response import QueryInstanceListResponse
|
|
44
37
|
from .query_subnet_list_response import QuerySubnetListResponse
|
|
@@ -49,6 +42,8 @@ from .query_the_list_of_available_zones_response import QueryTheListOfAvailableZ
|
|
|
49
42
|
from .read_replica_id_mapping import ReadReplicaIdMapping
|
|
50
43
|
from .recovery_to_source_instance_model import RecoveryToSourceInstanceModel
|
|
51
44
|
from .release_instance_response import ReleaseInstanceResponse
|
|
45
|
+
from .renewal_example_request import RenewalExampleRequest
|
|
46
|
+
from .renewal_example_response import RenewalExampleResponse
|
|
52
47
|
from .replica_request import ReplicaRequest
|
|
53
48
|
from .resource import Resource
|
|
54
49
|
from .resource_group import ResourceGroup
|
|
@@ -77,7 +72,6 @@ from .update_instance_public_network_access_status_request import UpdateInstance
|
|
|
77
72
|
from .update_instance_synchronization_mode_request import UpdateInstanceSynchronizationModeRequest
|
|
78
73
|
from .update_time_window_request import UpdateTimeWindowRequest
|
|
79
74
|
from .zone_detail import ZoneDetail
|
|
80
|
-
from .zone_migration_request import ZoneMigrationRequest
|
|
81
75
|
from .cluster_status_check_request import ClusterStatusCheckRequest
|
|
82
76
|
from .query_instance_list_request import QueryInstanceListRequest
|
|
83
77
|
from .dial_test_interface_request import DialTestInterfaceRequest
|
|
@@ -168,10 +168,10 @@ class Instance(AbstractModel):
|
|
|
168
168
|
:param instance_name: 实例名称
|
|
169
169
|
:type instance_name: str (optional)
|
|
170
170
|
|
|
171
|
-
:param engine:
|
|
171
|
+
:param engine: engine attribute
|
|
172
172
|
:type engine: str (optional)
|
|
173
173
|
|
|
174
|
-
:param engine_version:
|
|
174
|
+
:param engine_version: engine_version attribute
|
|
175
175
|
:type engine_version: str (optional)
|
|
176
176
|
|
|
177
177
|
:param rds_minor_version: 实例小版本
|
|
@@ -189,13 +189,13 @@ class Instance(AbstractModel):
|
|
|
189
189
|
:param allocated_memory_in_mb: 分配内大小(单位:MB)
|
|
190
190
|
:type allocated_memory_in_mb: int (optional)
|
|
191
191
|
|
|
192
|
-
:param allocated_memory_in_gb:
|
|
193
|
-
:type allocated_memory_in_gb:
|
|
192
|
+
:param allocated_memory_in_gb: 分配内存大小(单位:GB)
|
|
193
|
+
:type allocated_memory_in_gb: float (optional)
|
|
194
194
|
|
|
195
195
|
:param memory_capacity: 实例内存(单位:GB)
|
|
196
196
|
:type memory_capacity: float (optional)
|
|
197
197
|
|
|
198
|
-
:param allocated_storage_in_gb:
|
|
198
|
+
:param allocated_storage_in_gb: 分配存储存空间(单位:GB)
|
|
199
199
|
:type allocated_storage_in_gb: int (optional)
|
|
200
200
|
|
|
201
201
|
:param volume_capacity: 存储空间(单位:GB)
|
|
@@ -213,7 +213,7 @@ class Instance(AbstractModel):
|
|
|
213
213
|
:param used_storage: 已用存储空间(单位GB)
|
|
214
214
|
:type used_storage: float (optional)
|
|
215
215
|
|
|
216
|
-
:param cpu_count: CPU
|
|
216
|
+
:param cpu_count: CPU核数
|
|
217
217
|
:type cpu_count: int (optional)
|
|
218
218
|
|
|
219
219
|
:param instance_type: instance_type attribute
|
|
@@ -300,7 +300,7 @@ class Instance(AbstractModel):
|
|
|
300
300
|
:param application_type: 所属系列,single:单机基础版,normal:双机高可用版
|
|
301
301
|
:type application_type: str (optional)
|
|
302
302
|
|
|
303
|
-
:param node_amount:
|
|
303
|
+
:param node_amount: 节点数(代理实例)
|
|
304
304
|
:type node_amount: int (optional)
|
|
305
305
|
|
|
306
306
|
:param old_instance: 旧实例数量
|
|
@@ -316,7 +316,7 @@ class Instance(AbstractModel):
|
|
|
316
316
|
:type dcc_host_ids: DccHostInfo (optional)
|
|
317
317
|
|
|
318
318
|
:param machine_type: 主机类型,默认只有dcc
|
|
319
|
-
:type machine_type:
|
|
319
|
+
:type machine_type: str (optional)
|
|
320
320
|
|
|
321
321
|
:param weight: 权重
|
|
322
322
|
:type weight: int (optional)
|
|
@@ -477,7 +477,7 @@ class Instance(AbstractModel):
|
|
|
477
477
|
:param dcc_hosts: dcc主机对象
|
|
478
478
|
:type dcc_hosts: List[MachinePO] (optional)
|
|
479
479
|
|
|
480
|
-
:param category:
|
|
480
|
+
:param category: 所属系列。Singleton:单机基础版,null:双机高可用版
|
|
481
481
|
:type category: str (optional)
|
|
482
482
|
|
|
483
483
|
:param name: 实例名称,只给iam的实例列表接口使用,其他接口不要用
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for InstanceEnablesAutomaticRenewalRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class InstanceEnablesAutomaticRenewalRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for InstanceEnablesAutomaticRenewalRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, instance_ids=None, auto_renew_time_unit=None, auto_renew_time=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize InstanceEnablesAutomaticRenewalRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param instance_ids: 实例ID列表
|
|
20
|
+
:type instance_ids: List[str] (optional)
|
|
21
|
+
|
|
22
|
+
:param auto_renew_time_unit: 自动续费周期单位(年:year;月:month)
|
|
23
|
+
:type auto_renew_time_unit: str (optional)
|
|
24
|
+
|
|
25
|
+
:param auto_renew_time: 续费周期按月(不超过9个月)按年付费(不超过3年)
|
|
26
|
+
:type auto_renew_time: int (optional)
|
|
27
|
+
"""
|
|
28
|
+
super().__init__()
|
|
29
|
+
self.instance_ids = instance_ids
|
|
30
|
+
self.auto_renew_time_unit = auto_renew_time_unit
|
|
31
|
+
self.auto_renew_time = auto_renew_time
|
|
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_ids is not None:
|
|
47
|
+
result['instanceIds'] = self.instance_ids
|
|
48
|
+
if self.auto_renew_time_unit is not None:
|
|
49
|
+
result['autoRenewTimeUnit'] = self.auto_renew_time_unit
|
|
50
|
+
if self.auto_renew_time is not None:
|
|
51
|
+
result['autoRenewTime'] = self.auto_renew_time
|
|
52
|
+
return result
|
|
53
|
+
|
|
54
|
+
def from_dict(self, m):
|
|
55
|
+
"""
|
|
56
|
+
Populate the request entity from a dictionary.
|
|
57
|
+
|
|
58
|
+
Nested dictionaries are recursively converted to model objects.
|
|
59
|
+
|
|
60
|
+
:param m: Dictionary containing request data
|
|
61
|
+
:type m: dict
|
|
62
|
+
|
|
63
|
+
:return: Self reference for method chaining
|
|
64
|
+
:rtype: InstanceEnablesAutomaticRenewalRequest
|
|
65
|
+
|
|
66
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
67
|
+
:raises ValueError: If nested model conversion fails
|
|
68
|
+
"""
|
|
69
|
+
m = m or dict()
|
|
70
|
+
if m.get('instanceIds') is not None:
|
|
71
|
+
self.instance_ids = m.get('instanceIds')
|
|
72
|
+
if m.get('autoRenewTimeUnit') is not None:
|
|
73
|
+
self.auto_renew_time_unit = m.get('autoRenewTimeUnit')
|
|
74
|
+
if m.get('autoRenewTime') is not None:
|
|
75
|
+
self.auto_renew_time = m.get('autoRenewTime')
|
|
76
|
+
return self
|
|
@@ -310,7 +310,7 @@ class QueryTheDetailsOfTheSpecifiedInstanceResponse(BceResponse):
|
|
|
310
310
|
:type dcc_host_ids: DccHostInfo (optional)
|
|
311
311
|
|
|
312
312
|
:param machine_type: 主机类型,默认只有dcc。
|
|
313
|
-
:type machine_type:
|
|
313
|
+
:type machine_type: str (optional)
|
|
314
314
|
|
|
315
315
|
:param weight: 权重。
|
|
316
316
|
:type weight: int (optional)
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for RenewalExampleRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class RenewalExampleRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for RenewalExampleRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, duration, instance_ids):
|
|
16
|
+
"""
|
|
17
|
+
Initialize RenewalExampleRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param duration: 续费周期,单位为月
|
|
20
|
+
:type duration: int (required)
|
|
21
|
+
|
|
22
|
+
:param instance_ids: 实例ID列表
|
|
23
|
+
:type instance_ids: List[str] (required)
|
|
24
|
+
"""
|
|
25
|
+
super().__init__()
|
|
26
|
+
self.duration = duration
|
|
27
|
+
self.instance_ids = instance_ids
|
|
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
|
+
if self.duration is not None:
|
|
43
|
+
result['duration'] = self.duration
|
|
44
|
+
if self.instance_ids is not None:
|
|
45
|
+
result['instanceIds'] = self.instance_ids
|
|
46
|
+
return result
|
|
47
|
+
|
|
48
|
+
def from_dict(self, m):
|
|
49
|
+
"""
|
|
50
|
+
Populate the request entity from a dictionary.
|
|
51
|
+
|
|
52
|
+
Nested dictionaries are recursively converted to model objects.
|
|
53
|
+
|
|
54
|
+
:param m: Dictionary containing request data
|
|
55
|
+
:type m: dict
|
|
56
|
+
|
|
57
|
+
:return: Self reference for method chaining
|
|
58
|
+
:rtype: RenewalExampleRequest
|
|
59
|
+
|
|
60
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
61
|
+
:raises ValueError: If nested model conversion fails
|
|
62
|
+
"""
|
|
63
|
+
m = m or dict()
|
|
64
|
+
if m.get('duration') is not None:
|
|
65
|
+
self.duration = m.get('duration')
|
|
66
|
+
if m.get('instanceIds') is not None:
|
|
67
|
+
self.instance_ids = m.get('instanceIds')
|
|
68
|
+
return self
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for RenewalExampleResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class RenewalExampleResponse(BceResponse):
|
|
9
|
+
"""
|
|
10
|
+
RenewalExampleResponse
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, order_id=None):
|
|
14
|
+
"""
|
|
15
|
+
Initialize RenewalExampleResponse response.
|
|
16
|
+
|
|
17
|
+
:param order_id: 续费订单ID
|
|
18
|
+
:type order_id: str (optional)
|
|
19
|
+
"""
|
|
20
|
+
super().__init__()
|
|
21
|
+
self.order_id = order_id
|
|
22
|
+
|
|
23
|
+
def to_dict(self):
|
|
24
|
+
"""
|
|
25
|
+
Convert the response instance to a dictionary representation.
|
|
26
|
+
|
|
27
|
+
Includes metadata from the parent BceResponse class.
|
|
28
|
+
Nested model objects are recursively converted to dictionaries.
|
|
29
|
+
|
|
30
|
+
:return: Dictionary representation of the response
|
|
31
|
+
:rtype: dict
|
|
32
|
+
"""
|
|
33
|
+
_map = super().to_dict()
|
|
34
|
+
if _map is not None:
|
|
35
|
+
return _map
|
|
36
|
+
result = dict()
|
|
37
|
+
if self.metadata is not None:
|
|
38
|
+
result['metadata'] = dict(self.metadata)
|
|
39
|
+
if self.order_id is not None:
|
|
40
|
+
result['orderId'] = self.order_id
|
|
41
|
+
return result
|
|
42
|
+
|
|
43
|
+
def from_dict(self, m):
|
|
44
|
+
"""
|
|
45
|
+
Populate the response instance from a dictionary.
|
|
46
|
+
|
|
47
|
+
Nested dictionaries are recursively converted to model objects.
|
|
48
|
+
|
|
49
|
+
:param m: Dictionary containing response data
|
|
50
|
+
:type m: dict
|
|
51
|
+
|
|
52
|
+
:return: Self reference for method chaining
|
|
53
|
+
:rtype: RenewalExampleResponse
|
|
54
|
+
|
|
55
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
56
|
+
:raises ValueError: If nested model conversion fails
|
|
57
|
+
"""
|
|
58
|
+
m = m or dict()
|
|
59
|
+
if m.get('orderId') is not None:
|
|
60
|
+
self.order_id = m.get('orderId')
|
|
61
|
+
return self
|
|
@@ -44,17 +44,17 @@ class ResourceInfo(AbstractModel):
|
|
|
44
44
|
:param user_id: 用户ID。
|
|
45
45
|
:type user_id: str (optional)
|
|
46
46
|
|
|
47
|
-
:param create_time:
|
|
48
|
-
:type create_time:
|
|
47
|
+
:param create_time: 创建时间。
|
|
48
|
+
:type create_time: int (optional)
|
|
49
49
|
|
|
50
|
-
:param update_time:
|
|
51
|
-
:type update_time:
|
|
50
|
+
:param update_time: 更新时间。
|
|
51
|
+
:type update_time: int (optional)
|
|
52
52
|
|
|
53
|
-
:param delete_time:
|
|
54
|
-
:type delete_time:
|
|
53
|
+
:param delete_time: 删除时间。
|
|
54
|
+
:type delete_time: int (optional)
|
|
55
55
|
|
|
56
|
-
:param bind_time:
|
|
57
|
-
:type bind_time:
|
|
56
|
+
:param bind_time: 绑定时间。
|
|
57
|
+
:type bind_time: str (optional)
|
|
58
58
|
"""
|
|
59
59
|
super().__init__()
|
|
60
60
|
self.name = name
|
{baiducloud_python_sdk_rds-0.0.4.dist-info → baiducloud_python_sdk_rds-0.0.6.dist-info}/RECORD
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
baiducloud_python_sdk_rds/__init__.py,sha256=
|
|
1
|
+
baiducloud_python_sdk_rds/__init__.py,sha256=TTqkijdCYR_07B4Y9ReM3_CvbGgGlcGJJA1O6J1vt7Q,82
|
|
2
2
|
baiducloud_python_sdk_rds/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
baiducloud_python_sdk_rds/api/rds_client.py,sha256=
|
|
4
|
-
baiducloud_python_sdk_rds/models/__init__.py,sha256=
|
|
3
|
+
baiducloud_python_sdk_rds/api/rds_client.py,sha256=tR4uq735loJ2XkTjR2Q0lWBzTpJuZoM6omSvIxSS_dU,32357
|
|
4
|
+
baiducloud_python_sdk_rds/models/__init__.py,sha256=Xn8LyYUmHm_mkGFP22MrPxTxrl4qfA4EdOS9VrfzRoA,4666
|
|
5
5
|
baiducloud_python_sdk_rds/models/app_list.py,sha256=OOL-zaQv_E8cnqUYaNIR7ntFal0qBEPK0ShGWsyKsLE,4423
|
|
6
6
|
baiducloud_python_sdk_rds/models/batch_configuration_of_instances_request.py,sha256=lqs9A7bRuA69dEHnS8Y3jzD5lDNmKmjpk_ghHbU0gy8,7796
|
|
7
7
|
baiducloud_python_sdk_rds/models/batch_configuration_of_instances_response.py,sha256=Epr3d7fBmQruqM90o2TBF6-cUPyuZoWvy1YC43HhT_A,1855
|
|
@@ -26,16 +26,13 @@ baiducloud_python_sdk_rds/models/does_the_instance_support_enabling_automatic_ex
|
|
|
26
26
|
baiducloud_python_sdk_rds/models/does_the_instance_support_enabling_automatic_expansion_response.py,sha256=PBIsCkgCFScl2oyYn-RjhyeP4uk5gMlWyGi0ZyxORe8,2213
|
|
27
27
|
baiducloud_python_sdk_rds/models/encrypt_strategy.py,sha256=ExM4J7PeIxCQ3JHh_O0LeqZ1B5bjd7gU-ngN4KQ7BGw,2877
|
|
28
28
|
baiducloud_python_sdk_rds/models/endpoint.py,sha256=3XIaK8yyw26rjyJiT6BNVHRDBiqyaakNLcFRqCeJ_qE,2921
|
|
29
|
-
baiducloud_python_sdk_rds/models/get_new_purchase_price_request.py,sha256=ZCw7sc06THUo8OhA69sNkgP5TkrbxYja8JbeVvJ-L4Q,2880
|
|
30
|
-
baiducloud_python_sdk_rds/models/get_new_purchase_price_response.py,sha256=EML4jd5kbS9MHgWFgDgyMTQ3iTeWLxes5URHHdgYeH4,3950
|
|
31
29
|
baiducloud_python_sdk_rds/models/initial_data_reference.py,sha256=37NFCXUf9e8okI9riJIo7g55QCJtyCXtwsoanjlsQCs,2671
|
|
32
|
-
baiducloud_python_sdk_rds/models/instance.py,sha256=
|
|
30
|
+
baiducloud_python_sdk_rds/models/instance.py,sha256=pdVMaOkgy_--D3eI-UO_THnlXdn9HLgSwomjrqnPqv4,45696
|
|
33
31
|
baiducloud_python_sdk_rds/models/instance_dict.py,sha256=XCxzhinxUb1ZD6dEZJABM5zT6rjKCA4PQkANONPAW_s,2297
|
|
32
|
+
baiducloud_python_sdk_rds/models/instance_enables_automatic_renewal_request.py,sha256=KQBgo5SBmeDO9NvbVwSscl9FvCdNXeLIUXnaKjdIxZ8,2706
|
|
34
33
|
baiducloud_python_sdk_rds/models/instance_subnet.py,sha256=daD4Sqc0fRPH2vWCn1yYo-QelggcBmFr9Q_cDRHlBtA,2884
|
|
35
34
|
baiducloud_python_sdk_rds/models/machine_po.py,sha256=z1FalL1WGW3yTgt4f4VyBulAEeyGAkw8TzQBpatUIfw,4865
|
|
36
35
|
baiducloud_python_sdk_rds/models/master_id_mapping.py,sha256=UsGBfR-ou15IptlNREnBhy-tS1B0wQF6ct25a5lZ-1w,3861
|
|
37
|
-
baiducloud_python_sdk_rds/models/obtain_the_price_difference_of_prepaid_transformer_request.py,sha256=UT8CcZJHnoYNm2fCfQi3OZiM_YlL1g37rx6EtLukc1c,3799
|
|
38
|
-
baiducloud_python_sdk_rds/models/obtain_the_price_difference_of_prepaid_transformer_response.py,sha256=IY0CYrbu3I2MZf4kwnhbKIwklABCm2xnfOVqFvoRVbw,4091
|
|
39
36
|
baiducloud_python_sdk_rds/models/progress.py,sha256=qsZvI6rE6IhifxhCsthdcG2Lj9BdK88K3OCi-Dw5v5w,3608
|
|
40
37
|
baiducloud_python_sdk_rds/models/query_instance_list_request.py,sha256=UGhjUpbsxKBwBVPc2X526rAo3X-wFkMZTmZ4tH6SbJ4,2024
|
|
41
38
|
baiducloud_python_sdk_rds/models/query_instance_list_response.py,sha256=KQFYJarA_WRseduZOSVUG88vTXVsIlVN4_RaMJv3HNI,3415
|
|
@@ -44,17 +41,19 @@ baiducloud_python_sdk_rds/models/query_subnet_list_response.py,sha256=0I6mjAbBaz
|
|
|
44
41
|
baiducloud_python_sdk_rds/models/query_task_list_request.py,sha256=4JEUmPpAkIay8at6kIXWnypioN7S1Z8ymqoEUD8opnA,4372
|
|
45
42
|
baiducloud_python_sdk_rds/models/query_task_list_response.py,sha256=2Dg5swZcTDAzeWcroXro7o0_c_PPhkrpC5j4JKtlYcA,2131
|
|
46
43
|
baiducloud_python_sdk_rds/models/query_the_details_of_the_specified_instance_request.py,sha256=o_M2R2bAGZnGpdCbDH1gXMW82FBl3U66k90yuET5myo,1735
|
|
47
|
-
baiducloud_python_sdk_rds/models/query_the_details_of_the_specified_instance_response.py,sha256=
|
|
44
|
+
baiducloud_python_sdk_rds/models/query_the_details_of_the_specified_instance_response.py,sha256=kgsI_7_iC_z9h3AFojaMOcvTmHTwe1V7P1WYuZC8Kuc,49095
|
|
48
45
|
baiducloud_python_sdk_rds/models/query_the_list_of_available_zones_response.py,sha256=UimQvLsSWT50_7ifoU1GB12PbJgEPb7G3fSUYd__y1U,1918
|
|
49
46
|
baiducloud_python_sdk_rds/models/read_replica_id_mapping.py,sha256=KJ8gGJAe6Hwoiufe-W28h85EHF3DGCjQHLDZCFNRmcM,3886
|
|
50
47
|
baiducloud_python_sdk_rds/models/recovery_to_source_instance_model.py,sha256=sUwKr8oRZAyxlUMVCRt79s3tGji4-PJ0fzjW3phVbtA,2694
|
|
51
48
|
baiducloud_python_sdk_rds/models/release_instance_request.py,sha256=9Gp8uDS9A37F7k5zCHm3ikxcANpdpDri64W3LknD5XY,1634
|
|
52
49
|
baiducloud_python_sdk_rds/models/release_instance_response.py,sha256=zzxW05aoXwMKIFqNybmTsDzP3-Rn4sAzjFRjDmdcDMg,2631
|
|
50
|
+
baiducloud_python_sdk_rds/models/renewal_example_request.py,sha256=pN4ksVDVq8EZm7qJqRf7az6bYNVXwS9yeZzAR1bPbQI,2032
|
|
51
|
+
baiducloud_python_sdk_rds/models/renewal_example_response.py,sha256=fOMCy_KJg0qvl-9_pnOpTfCn-2LhcLF1mM8HgA37O5w,1736
|
|
53
52
|
baiducloud_python_sdk_rds/models/replica_request.py,sha256=dE9hSXZIcS9ix_j7oKpFDhLn3eslZmOV0mTRdpdrGq8,3039
|
|
54
53
|
baiducloud_python_sdk_rds/models/resource.py,sha256=oF-ZwES9w3HjGU8k_gklKzCv3-J_jPpMkJyxI6LT4yo,1879
|
|
55
54
|
baiducloud_python_sdk_rds/models/resource_group.py,sha256=H8oFKwSzZ1N_nUh5ae1a2lhL1ANlmXl_xG1oI89M_p0,4423
|
|
56
55
|
baiducloud_python_sdk_rds/models/resource_groups_detail_full.py,sha256=AD0DjDQObuB4bPt0qVeSfrvZXX7j7wqy1G1h9w1Oqs8,4927
|
|
57
|
-
baiducloud_python_sdk_rds/models/resource_info.py,sha256=
|
|
56
|
+
baiducloud_python_sdk_rds/models/resource_info.py,sha256=Jxo7cpB1QQenxtxMosmefBriRSb9xFYCD7_JL6v6HJM,4358
|
|
58
57
|
baiducloud_python_sdk_rds/models/restart_the_instance_request.py,sha256=epyicwZY7YsXE0W0qbruKMVVSg15p1mGxeskI571M24,2014
|
|
59
58
|
baiducloud_python_sdk_rds/models/retrieve_instance_auto_scaling_config_request.py,sha256=HBVTmC3aYiC48LftvFpmUYY9BVZ8CyCg4P5GkFQBSQ4,1715
|
|
60
59
|
baiducloud_python_sdk_rds/models/retrieve_instance_auto_scaling_config_response.py,sha256=h9F0iAqXoPxqK7IFoBMIdiGoIb0i-gMkZ_VP_gxnI7o,3285
|
|
@@ -77,9 +76,8 @@ baiducloud_python_sdk_rds/models/update_instance_public_network_access_status_re
|
|
|
77
76
|
baiducloud_python_sdk_rds/models/update_instance_synchronization_mode_request.py,sha256=c-_5edBv3skaaoIW_3skCeMyFNyuZhB0zKsn8cTaE-Q,2075
|
|
78
77
|
baiducloud_python_sdk_rds/models/update_time_window_request.py,sha256=Zkki9rraINCnY-LxYM6wWJFu_ILglYbzwm043DadI1c,2613
|
|
79
78
|
baiducloud_python_sdk_rds/models/zone_detail.py,sha256=1H2p_JlMKucaCDRj2rDvZ50im5p6zyI6eUB5SMczNgg,5024
|
|
80
|
-
baiducloud_python_sdk_rds/
|
|
81
|
-
baiducloud_python_sdk_rds-0.0.
|
|
82
|
-
baiducloud_python_sdk_rds-0.0.
|
|
83
|
-
baiducloud_python_sdk_rds-0.0.
|
|
84
|
-
baiducloud_python_sdk_rds-0.0.
|
|
85
|
-
baiducloud_python_sdk_rds-0.0.4.dist-info/RECORD,,
|
|
79
|
+
baiducloud_python_sdk_rds-0.0.6.dist-info/LICENSE,sha256=vWvFalMLAgEWwNa8irw-tSDlh7k7bl4APjMGE_lGiws,10372
|
|
80
|
+
baiducloud_python_sdk_rds-0.0.6.dist-info/METADATA,sha256=VzjFRd87h9TPIe33sOmfra7XpleMwWn4JZRyJAYZKSc,2646
|
|
81
|
+
baiducloud_python_sdk_rds-0.0.6.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
82
|
+
baiducloud_python_sdk_rds-0.0.6.dist-info/top_level.txt,sha256=0qILxSFHEOGSJ-ZlGCQe1UlmggvvF0glErNBIodoZgc,26
|
|
83
|
+
baiducloud_python_sdk_rds-0.0.6.dist-info/RECORD,,
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Request entity for GetNewPurchasePriceRequest information.
|
|
3
|
-
"""
|
|
4
|
-
|
|
5
|
-
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
-
from baiducloud_python_sdk_rds.models.instance import Instance
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class GetNewPurchasePriceRequest(AbstractModel):
|
|
10
|
-
"""
|
|
11
|
-
Request entity for GetNewPurchasePriceRequest operation.
|
|
12
|
-
|
|
13
|
-
This class encapsulates all parameters for the API request.
|
|
14
|
-
"""
|
|
15
|
-
|
|
16
|
-
def __init__(self, instance, product_type, duration=None, number=None):
|
|
17
|
-
"""
|
|
18
|
-
Initialize GetNewPurchasePriceRequest request entity.
|
|
19
|
-
|
|
20
|
-
:param instance: instance parameter
|
|
21
|
-
:type instance: Instance (required)
|
|
22
|
-
|
|
23
|
-
:param duration: 时长。支付方式为后支付时不需要设置,预支付时必须设置。时间单位默认为month。
|
|
24
|
-
:type duration: int (optional)
|
|
25
|
-
|
|
26
|
-
:param number: 购买数量,默认值为1。
|
|
27
|
-
:type number: int (optional)
|
|
28
|
-
|
|
29
|
-
:param product_type: 付费方式。 预付费:prepay,后付费:postpay。
|
|
30
|
-
:type product_type: str (required)
|
|
31
|
-
"""
|
|
32
|
-
super().__init__()
|
|
33
|
-
self.instance = instance
|
|
34
|
-
self.duration = duration
|
|
35
|
-
self.number = number
|
|
36
|
-
self.product_type = product_type
|
|
37
|
-
|
|
38
|
-
def to_dict(self):
|
|
39
|
-
"""
|
|
40
|
-
Convert the request entity to a dictionary representation.
|
|
41
|
-
|
|
42
|
-
Nested model objects are recursively converted to dictionaries.
|
|
43
|
-
|
|
44
|
-
:return: Dictionary representation of the request
|
|
45
|
-
:rtype: dict
|
|
46
|
-
"""
|
|
47
|
-
_map = super().to_dict()
|
|
48
|
-
if _map is not None:
|
|
49
|
-
return _map
|
|
50
|
-
result = dict()
|
|
51
|
-
if self.instance is not None:
|
|
52
|
-
result['instance'] = self.instance.to_dict()
|
|
53
|
-
if self.duration is not None:
|
|
54
|
-
result['duration'] = self.duration
|
|
55
|
-
if self.number is not None:
|
|
56
|
-
result['number'] = self.number
|
|
57
|
-
if self.product_type is not None:
|
|
58
|
-
result['productType'] = self.product_type
|
|
59
|
-
return result
|
|
60
|
-
|
|
61
|
-
def from_dict(self, m):
|
|
62
|
-
"""
|
|
63
|
-
Populate the request entity from a dictionary.
|
|
64
|
-
|
|
65
|
-
Nested dictionaries are recursively converted to model objects.
|
|
66
|
-
|
|
67
|
-
:param m: Dictionary containing request data
|
|
68
|
-
:type m: dict
|
|
69
|
-
|
|
70
|
-
:return: Self reference for method chaining
|
|
71
|
-
:rtype: GetNewPurchasePriceRequest
|
|
72
|
-
|
|
73
|
-
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
74
|
-
:raises ValueError: If nested model conversion fails
|
|
75
|
-
"""
|
|
76
|
-
m = m or dict()
|
|
77
|
-
if m.get('instance') is not None:
|
|
78
|
-
self.instance = Instance().from_dict(m.get('instance'))
|
|
79
|
-
if m.get('duration') is not None:
|
|
80
|
-
self.duration = m.get('duration')
|
|
81
|
-
if m.get('number') is not None:
|
|
82
|
-
self.number = m.get('number')
|
|
83
|
-
if m.get('productType') is not None:
|
|
84
|
-
self.product_type = m.get('productType')
|
|
85
|
-
return self
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Request entity for GetNewPurchasePriceResponse information.
|
|
3
|
-
"""
|
|
4
|
-
|
|
5
|
-
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class GetNewPurchasePriceResponse(BceResponse):
|
|
9
|
-
"""
|
|
10
|
-
GetNewPurchasePriceResponse
|
|
11
|
-
"""
|
|
12
|
-
|
|
13
|
-
def __init__(
|
|
14
|
-
self,
|
|
15
|
-
price=None,
|
|
16
|
-
catalog_price=None,
|
|
17
|
-
traffic_in_gb=None,
|
|
18
|
-
discount=None,
|
|
19
|
-
real_catalog_price=None,
|
|
20
|
-
backup_in_gb=None,
|
|
21
|
-
discount_rate=None,
|
|
22
|
-
):
|
|
23
|
-
"""
|
|
24
|
-
Initialize GetNewPurchasePriceResponse response.
|
|
25
|
-
|
|
26
|
-
:param price: price field
|
|
27
|
-
:type price: object (optional)
|
|
28
|
-
|
|
29
|
-
:param catalog_price: catalog_price field
|
|
30
|
-
:type catalog_price: object (optional)
|
|
31
|
-
|
|
32
|
-
:param traffic_in_gb: traffic_in_gb field
|
|
33
|
-
:type traffic_in_gb: object (optional)
|
|
34
|
-
|
|
35
|
-
:param discount: discount field
|
|
36
|
-
:type discount: object (optional)
|
|
37
|
-
|
|
38
|
-
:param real_catalog_price: real_catalog_price field
|
|
39
|
-
:type real_catalog_price: object (optional)
|
|
40
|
-
|
|
41
|
-
:param backup_in_gb: backup_in_gb field
|
|
42
|
-
:type backup_in_gb: object (optional)
|
|
43
|
-
|
|
44
|
-
:param discount_rate: discount_rate field
|
|
45
|
-
:type discount_rate: object (optional)
|
|
46
|
-
"""
|
|
47
|
-
super().__init__()
|
|
48
|
-
self.price = price
|
|
49
|
-
self.catalog_price = catalog_price
|
|
50
|
-
self.traffic_in_gb = traffic_in_gb
|
|
51
|
-
self.discount = discount
|
|
52
|
-
self.real_catalog_price = real_catalog_price
|
|
53
|
-
self.backup_in_gb = backup_in_gb
|
|
54
|
-
self.discount_rate = discount_rate
|
|
55
|
-
|
|
56
|
-
def to_dict(self):
|
|
57
|
-
"""
|
|
58
|
-
Convert the response instance to a dictionary representation.
|
|
59
|
-
|
|
60
|
-
Includes metadata from the parent BceResponse class.
|
|
61
|
-
Nested model objects are recursively converted to dictionaries.
|
|
62
|
-
|
|
63
|
-
:return: Dictionary representation of the response
|
|
64
|
-
:rtype: dict
|
|
65
|
-
"""
|
|
66
|
-
_map = super().to_dict()
|
|
67
|
-
if _map is not None:
|
|
68
|
-
return _map
|
|
69
|
-
result = dict()
|
|
70
|
-
if self.metadata is not None:
|
|
71
|
-
result['metadata'] = dict(self.metadata)
|
|
72
|
-
if self.price is not None:
|
|
73
|
-
result['price'] = self.price
|
|
74
|
-
if self.catalog_price is not None:
|
|
75
|
-
result['catalogPrice'] = self.catalog_price
|
|
76
|
-
if self.traffic_in_gb is not None:
|
|
77
|
-
result['trafficInGB'] = self.traffic_in_gb
|
|
78
|
-
if self.discount is not None:
|
|
79
|
-
result['discount'] = self.discount
|
|
80
|
-
if self.real_catalog_price is not None:
|
|
81
|
-
result['realCatalogPrice'] = self.real_catalog_price
|
|
82
|
-
if self.backup_in_gb is not None:
|
|
83
|
-
result['backupInGB'] = self.backup_in_gb
|
|
84
|
-
if self.discount_rate is not None:
|
|
85
|
-
result['discountRate'] = self.discount_rate
|
|
86
|
-
return result
|
|
87
|
-
|
|
88
|
-
def from_dict(self, m):
|
|
89
|
-
"""
|
|
90
|
-
Populate the response instance from a dictionary.
|
|
91
|
-
|
|
92
|
-
Nested dictionaries are recursively converted to model objects.
|
|
93
|
-
|
|
94
|
-
:param m: Dictionary containing response data
|
|
95
|
-
:type m: dict
|
|
96
|
-
|
|
97
|
-
:return: Self reference for method chaining
|
|
98
|
-
:rtype: GetNewPurchasePriceResponse
|
|
99
|
-
|
|
100
|
-
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
101
|
-
:raises ValueError: If nested model conversion fails
|
|
102
|
-
"""
|
|
103
|
-
m = m or dict()
|
|
104
|
-
if m.get('price') is not None:
|
|
105
|
-
self.price = m.get('price')
|
|
106
|
-
if m.get('catalogPrice') is not None:
|
|
107
|
-
self.catalog_price = m.get('catalogPrice')
|
|
108
|
-
if m.get('trafficInGB') is not None:
|
|
109
|
-
self.traffic_in_gb = m.get('trafficInGB')
|
|
110
|
-
if m.get('discount') is not None:
|
|
111
|
-
self.discount = m.get('discount')
|
|
112
|
-
if m.get('realCatalogPrice') is not None:
|
|
113
|
-
self.real_catalog_price = m.get('realCatalogPrice')
|
|
114
|
-
if m.get('backupInGB') is not None:
|
|
115
|
-
self.backup_in_gb = m.get('backupInGB')
|
|
116
|
-
if m.get('discountRate') is not None:
|
|
117
|
-
self.discount_rate = m.get('discountRate')
|
|
118
|
-
return self
|
baiducloud_python_sdk_rds/models/obtain_the_price_difference_of_prepaid_transformer_request.py
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Request entity for ObtainThePriceDifferenceOfPrepaidTransformerRequest information.
|
|
3
|
-
"""
|
|
4
|
-
|
|
5
|
-
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class ObtainThePriceDifferenceOfPrepaidTransformerRequest(AbstractModel):
|
|
9
|
-
"""
|
|
10
|
-
Request entity for ObtainThePriceDifferenceOfPrepaidTransformerRequest operation.
|
|
11
|
-
|
|
12
|
-
This class encapsulates all parameters for the API request.
|
|
13
|
-
"""
|
|
14
|
-
|
|
15
|
-
def __init__(
|
|
16
|
-
self, instance_id, cpu_count, allocated_memory_in_gb, allocated_storage_in_gb, disk_io_type, category=None
|
|
17
|
-
):
|
|
18
|
-
"""
|
|
19
|
-
Initialize ObtainThePriceDifferenceOfPrepaidTransformerRequest request entity.
|
|
20
|
-
|
|
21
|
-
:param instance_id: 实例 ID。
|
|
22
|
-
:type instance_id: str (required)
|
|
23
|
-
|
|
24
|
-
:param cpu_count: CPU 个数。
|
|
25
|
-
:type cpu_count: int (required)
|
|
26
|
-
|
|
27
|
-
:param allocated_memory_in_gb: 内存大小,单位是 MB。
|
|
28
|
-
:type allocated_memory_in_gb: int (required)
|
|
29
|
-
|
|
30
|
-
:param allocated_storage_in_gb: 存储大小,单位是 GB。
|
|
31
|
-
:type allocated_storage_in_gb: int (required)
|
|
32
|
-
|
|
33
|
-
:param disk_io_type: disk_io_type parameter
|
|
34
|
-
:type disk_io_type: str (required)
|
|
35
|
-
|
|
36
|
-
:param category: 不传值的话默认为双机版,传 Singleton 则指定为单机版。
|
|
37
|
-
:type category: str (optional)
|
|
38
|
-
"""
|
|
39
|
-
super().__init__()
|
|
40
|
-
self.instance_id = instance_id
|
|
41
|
-
self.cpu_count = cpu_count
|
|
42
|
-
self.allocated_memory_in_gb = allocated_memory_in_gb
|
|
43
|
-
self.allocated_storage_in_gb = allocated_storage_in_gb
|
|
44
|
-
self.disk_io_type = disk_io_type
|
|
45
|
-
self.category = category
|
|
46
|
-
|
|
47
|
-
def to_dict(self):
|
|
48
|
-
"""
|
|
49
|
-
Convert the request entity to a dictionary representation.
|
|
50
|
-
|
|
51
|
-
Nested model objects are recursively converted to dictionaries.
|
|
52
|
-
|
|
53
|
-
:return: Dictionary representation of the request
|
|
54
|
-
:rtype: dict
|
|
55
|
-
"""
|
|
56
|
-
_map = super().to_dict()
|
|
57
|
-
if _map is not None:
|
|
58
|
-
return _map
|
|
59
|
-
result = dict()
|
|
60
|
-
if self.instance_id is not None:
|
|
61
|
-
result['instanceId'] = self.instance_id
|
|
62
|
-
if self.cpu_count is not None:
|
|
63
|
-
result['cpuCount'] = self.cpu_count
|
|
64
|
-
if self.allocated_memory_in_gb is not None:
|
|
65
|
-
result['allocatedMemoryInGB'] = self.allocated_memory_in_gb
|
|
66
|
-
if self.allocated_storage_in_gb is not None:
|
|
67
|
-
result['allocatedStorageInGB'] = self.allocated_storage_in_gb
|
|
68
|
-
if self.disk_io_type is not None:
|
|
69
|
-
result['diskIoType'] = self.disk_io_type
|
|
70
|
-
if self.category is not None:
|
|
71
|
-
result['category'] = self.category
|
|
72
|
-
return result
|
|
73
|
-
|
|
74
|
-
def from_dict(self, m):
|
|
75
|
-
"""
|
|
76
|
-
Populate the request entity from a dictionary.
|
|
77
|
-
|
|
78
|
-
Nested dictionaries are recursively converted to model objects.
|
|
79
|
-
|
|
80
|
-
:param m: Dictionary containing request data
|
|
81
|
-
:type m: dict
|
|
82
|
-
|
|
83
|
-
:return: Self reference for method chaining
|
|
84
|
-
:rtype: ObtainThePriceDifferenceOfPrepaidTransformerRequest
|
|
85
|
-
|
|
86
|
-
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
87
|
-
:raises ValueError: If nested model conversion fails
|
|
88
|
-
"""
|
|
89
|
-
m = m or dict()
|
|
90
|
-
if m.get('instanceId') is not None:
|
|
91
|
-
self.instance_id = m.get('instanceId')
|
|
92
|
-
if m.get('cpuCount') is not None:
|
|
93
|
-
self.cpu_count = m.get('cpuCount')
|
|
94
|
-
if m.get('allocatedMemoryInGB') is not None:
|
|
95
|
-
self.allocated_memory_in_gb = m.get('allocatedMemoryInGB')
|
|
96
|
-
if m.get('allocatedStorageInGB') is not None:
|
|
97
|
-
self.allocated_storage_in_gb = m.get('allocatedStorageInGB')
|
|
98
|
-
if m.get('diskIoType') is not None:
|
|
99
|
-
self.disk_io_type = m.get('diskIoType')
|
|
100
|
-
if m.get('category') is not None:
|
|
101
|
-
self.category = m.get('category')
|
|
102
|
-
return self
|
baiducloud_python_sdk_rds/models/obtain_the_price_difference_of_prepaid_transformer_response.py
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Request entity for ObtainThePriceDifferenceOfPrepaidTransformerResponse information.
|
|
3
|
-
"""
|
|
4
|
-
|
|
5
|
-
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class ObtainThePriceDifferenceOfPrepaidTransformerResponse(BceResponse):
|
|
9
|
-
"""
|
|
10
|
-
ObtainThePriceDifferenceOfPrepaidTransformerResponse
|
|
11
|
-
"""
|
|
12
|
-
|
|
13
|
-
def __init__(
|
|
14
|
-
self,
|
|
15
|
-
price=None,
|
|
16
|
-
catalog_price=None,
|
|
17
|
-
traffic_in_gb=None,
|
|
18
|
-
discount=None,
|
|
19
|
-
real_catalog_price=None,
|
|
20
|
-
backup_in_gb=None,
|
|
21
|
-
discount_rate=None,
|
|
22
|
-
):
|
|
23
|
-
"""
|
|
24
|
-
Initialize ObtainThePriceDifferenceOfPrepaidTransformerResponse response.
|
|
25
|
-
|
|
26
|
-
:param price: price field
|
|
27
|
-
:type price: object (optional)
|
|
28
|
-
|
|
29
|
-
:param catalog_price: catalog_price field
|
|
30
|
-
:type catalog_price: object (optional)
|
|
31
|
-
|
|
32
|
-
:param traffic_in_gb: traffic_in_gb field
|
|
33
|
-
:type traffic_in_gb: object (optional)
|
|
34
|
-
|
|
35
|
-
:param discount: discount field
|
|
36
|
-
:type discount: object (optional)
|
|
37
|
-
|
|
38
|
-
:param real_catalog_price: real_catalog_price field
|
|
39
|
-
:type real_catalog_price: object (optional)
|
|
40
|
-
|
|
41
|
-
:param backup_in_gb: backup_in_gb field
|
|
42
|
-
:type backup_in_gb: object (optional)
|
|
43
|
-
|
|
44
|
-
:param discount_rate: 折扣率,如 100 表示无折扣。
|
|
45
|
-
:type discount_rate: int (optional)
|
|
46
|
-
"""
|
|
47
|
-
super().__init__()
|
|
48
|
-
self.price = price
|
|
49
|
-
self.catalog_price = catalog_price
|
|
50
|
-
self.traffic_in_gb = traffic_in_gb
|
|
51
|
-
self.discount = discount
|
|
52
|
-
self.real_catalog_price = real_catalog_price
|
|
53
|
-
self.backup_in_gb = backup_in_gb
|
|
54
|
-
self.discount_rate = discount_rate
|
|
55
|
-
|
|
56
|
-
def to_dict(self):
|
|
57
|
-
"""
|
|
58
|
-
Convert the response instance to a dictionary representation.
|
|
59
|
-
|
|
60
|
-
Includes metadata from the parent BceResponse class.
|
|
61
|
-
Nested model objects are recursively converted to dictionaries.
|
|
62
|
-
|
|
63
|
-
:return: Dictionary representation of the response
|
|
64
|
-
:rtype: dict
|
|
65
|
-
"""
|
|
66
|
-
_map = super().to_dict()
|
|
67
|
-
if _map is not None:
|
|
68
|
-
return _map
|
|
69
|
-
result = dict()
|
|
70
|
-
if self.metadata is not None:
|
|
71
|
-
result['metadata'] = dict(self.metadata)
|
|
72
|
-
if self.price is not None:
|
|
73
|
-
result['price'] = self.price
|
|
74
|
-
if self.catalog_price is not None:
|
|
75
|
-
result['catalogPrice'] = self.catalog_price
|
|
76
|
-
if self.traffic_in_gb is not None:
|
|
77
|
-
result['trafficInGB'] = self.traffic_in_gb
|
|
78
|
-
if self.discount is not None:
|
|
79
|
-
result['discount'] = self.discount
|
|
80
|
-
if self.real_catalog_price is not None:
|
|
81
|
-
result['realCatalogPrice'] = self.real_catalog_price
|
|
82
|
-
if self.backup_in_gb is not None:
|
|
83
|
-
result['backupInGB'] = self.backup_in_gb
|
|
84
|
-
if self.discount_rate is not None:
|
|
85
|
-
result['discountRate'] = self.discount_rate
|
|
86
|
-
return result
|
|
87
|
-
|
|
88
|
-
def from_dict(self, m):
|
|
89
|
-
"""
|
|
90
|
-
Populate the response instance from a dictionary.
|
|
91
|
-
|
|
92
|
-
Nested dictionaries are recursively converted to model objects.
|
|
93
|
-
|
|
94
|
-
:param m: Dictionary containing response data
|
|
95
|
-
:type m: dict
|
|
96
|
-
|
|
97
|
-
:return: Self reference for method chaining
|
|
98
|
-
:rtype: ObtainThePriceDifferenceOfPrepaidTransformerResponse
|
|
99
|
-
|
|
100
|
-
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
101
|
-
:raises ValueError: If nested model conversion fails
|
|
102
|
-
"""
|
|
103
|
-
m = m or dict()
|
|
104
|
-
if m.get('price') is not None:
|
|
105
|
-
self.price = m.get('price')
|
|
106
|
-
if m.get('catalogPrice') is not None:
|
|
107
|
-
self.catalog_price = m.get('catalogPrice')
|
|
108
|
-
if m.get('trafficInGB') is not None:
|
|
109
|
-
self.traffic_in_gb = m.get('trafficInGB')
|
|
110
|
-
if m.get('discount') is not None:
|
|
111
|
-
self.discount = m.get('discount')
|
|
112
|
-
if m.get('realCatalogPrice') is not None:
|
|
113
|
-
self.real_catalog_price = m.get('realCatalogPrice')
|
|
114
|
-
if m.get('backupInGB') is not None:
|
|
115
|
-
self.backup_in_gb = m.get('backupInGB')
|
|
116
|
-
if m.get('discountRate') is not None:
|
|
117
|
-
self.discount_rate = m.get('discountRate')
|
|
118
|
-
return self
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Request entity for ZoneMigrationRequest information.
|
|
3
|
-
"""
|
|
4
|
-
|
|
5
|
-
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
-
from baiducloud_python_sdk_rds.models.subnet_map import SubnetMap
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class ZoneMigrationRequest(AbstractModel):
|
|
10
|
-
"""
|
|
11
|
-
Request entity for ZoneMigrationRequest operation.
|
|
12
|
-
|
|
13
|
-
This class encapsulates all parameters for the API request.
|
|
14
|
-
"""
|
|
15
|
-
|
|
16
|
-
def __init__(self, instance_id, master__azone, backup__azone, zone_names, subnets, effective_time):
|
|
17
|
-
"""
|
|
18
|
-
Initialize ZoneMigrationRequest request entity.
|
|
19
|
-
|
|
20
|
-
:param instance_id: instance_id parameter
|
|
21
|
-
:type instance_id: str (required)
|
|
22
|
-
|
|
23
|
-
:param master__azone: 主可用区
|
|
24
|
-
:type master__azone: str (required)
|
|
25
|
-
|
|
26
|
-
:param backup__azone: 备可用区
|
|
27
|
-
:type backup__azone: str (required)
|
|
28
|
-
|
|
29
|
-
:param zone_names: 可用区
|
|
30
|
-
:type zone_names: List[str] (required)
|
|
31
|
-
|
|
32
|
-
:param subnets: 可用区子网
|
|
33
|
-
:type subnets: List[SubnetMap] (required)
|
|
34
|
-
|
|
35
|
-
:param effective_time: effective_time parameter
|
|
36
|
-
:type effective_time: str (required)
|
|
37
|
-
"""
|
|
38
|
-
super().__init__()
|
|
39
|
-
self.instance_id = instance_id
|
|
40
|
-
self.master__azone = master__azone
|
|
41
|
-
self.backup__azone = backup__azone
|
|
42
|
-
self.zone_names = zone_names
|
|
43
|
-
self.subnets = subnets
|
|
44
|
-
self.effective_time = effective_time
|
|
45
|
-
|
|
46
|
-
def to_dict(self):
|
|
47
|
-
"""
|
|
48
|
-
Convert the request entity to a dictionary representation.
|
|
49
|
-
|
|
50
|
-
Nested model objects are recursively converted to dictionaries.
|
|
51
|
-
|
|
52
|
-
:return: Dictionary representation of the request
|
|
53
|
-
:rtype: dict
|
|
54
|
-
"""
|
|
55
|
-
_map = super().to_dict()
|
|
56
|
-
if _map is not None:
|
|
57
|
-
return _map
|
|
58
|
-
result = dict()
|
|
59
|
-
if self.master__azone is not None:
|
|
60
|
-
result['master\_azone'] = self.master__azone
|
|
61
|
-
if self.backup__azone is not None:
|
|
62
|
-
result['backup\_azone'] = self.backup__azone
|
|
63
|
-
if self.zone_names is not None:
|
|
64
|
-
result['zoneNames'] = self.zone_names
|
|
65
|
-
if self.subnets is not None:
|
|
66
|
-
result['subnets'] = [i.to_dict() for i in self.subnets]
|
|
67
|
-
if self.effective_time is not None:
|
|
68
|
-
result['effectiveTime'] = self.effective_time
|
|
69
|
-
return result
|
|
70
|
-
|
|
71
|
-
def from_dict(self, m):
|
|
72
|
-
"""
|
|
73
|
-
Populate the request entity from a dictionary.
|
|
74
|
-
|
|
75
|
-
Nested dictionaries are recursively converted to model objects.
|
|
76
|
-
|
|
77
|
-
:param m: Dictionary containing request data
|
|
78
|
-
:type m: dict
|
|
79
|
-
|
|
80
|
-
:return: Self reference for method chaining
|
|
81
|
-
:rtype: ZoneMigrationRequest
|
|
82
|
-
|
|
83
|
-
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
84
|
-
:raises ValueError: If nested model conversion fails
|
|
85
|
-
"""
|
|
86
|
-
m = m or dict()
|
|
87
|
-
if m.get('instanceId') is not None:
|
|
88
|
-
self.instance_id = m.get('instanceId')
|
|
89
|
-
if m.get('master\_azone') is not None:
|
|
90
|
-
self.master__azone = m.get('master\_azone')
|
|
91
|
-
if m.get('backup\_azone') is not None:
|
|
92
|
-
self.backup__azone = m.get('backup\_azone')
|
|
93
|
-
if m.get('zoneNames') is not None:
|
|
94
|
-
self.zone_names = m.get('zoneNames')
|
|
95
|
-
if m.get('subnets') is not None:
|
|
96
|
-
self.subnets = [SubnetMap().from_dict(i) for i in m.get('subnets')]
|
|
97
|
-
if m.get('effectiveTime') is not None:
|
|
98
|
-
self.effective_time = m.get('effectiveTime')
|
|
99
|
-
return self
|
{baiducloud_python_sdk_rds-0.0.4.dist-info → baiducloud_python_sdk_rds-0.0.6.dist-info}/LICENSE
RENAMED
|
File without changes
|
{baiducloud_python_sdk_rds-0.0.4.dist-info → baiducloud_python_sdk_rds-0.0.6.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|