baiducloud-python-sdk-rds 0.0.6__py3-none-any.whl → 0.0.7__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.
@@ -2,4 +2,4 @@
2
2
  This module defines some common string constants.
3
3
  """
4
4
 
5
- SDK_VERSION = b'0.0.6'
5
+ SDK_VERSION = b'0.0.7'
@@ -45,6 +45,7 @@ from .release_instance_response import ReleaseInstanceResponse
45
45
  from .renewal_example_request import RenewalExampleRequest
46
46
  from .renewal_example_response import RenewalExampleResponse
47
47
  from .replica_request import ReplicaRequest
48
+ from .reservation import Reservation
48
49
  from .resource import Resource
49
50
  from .resource_group import ResourceGroup
50
51
  from .resource_groups_detail_full import ResourceGroupsDetailFull
@@ -4,6 +4,8 @@ Billing information
4
4
 
5
5
  from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
6
 
7
+ from baiducloud_python_sdk_rds.models.reservation import Reservation
8
+
7
9
 
8
10
  class Billing(AbstractModel):
9
11
  """
@@ -14,11 +16,11 @@ class Billing(AbstractModel):
14
16
  """
15
17
  Initialize Billing instance.
16
18
 
17
- :param payment_timing:
19
+ :param payment_timing: 付费方式。预付费:Prepaid,后付费:Postpaid
18
20
  :type payment_timing: str (optional)
19
21
 
20
- :param reservation:
21
- :type reservation: object (optional)
22
+ :param reservation: reservation attribute
23
+ :type reservation: Reservation (optional)
22
24
  """
23
25
  super().__init__()
24
26
  self.payment_timing = payment_timing
@@ -40,7 +42,7 @@ class Billing(AbstractModel):
40
42
  if self.payment_timing is not None:
41
43
  result['paymentTiming'] = self.payment_timing
42
44
  if self.reservation is not None:
43
- result['reservation'] = self.reservation
45
+ result['reservation'] = self.reservation.to_dict()
44
46
  return result
45
47
 
46
48
  def from_dict(self, m):
@@ -62,5 +64,5 @@ class Billing(AbstractModel):
62
64
  if m.get('paymentTiming') is not None:
63
65
  self.payment_timing = m.get('paymentTiming')
64
66
  if m.get('reservation') is not None:
65
- self.reservation = m.get('reservation')
67
+ self.reservation = Reservation().from_dict(m.get('reservation'))
66
68
  return self
@@ -27,7 +27,6 @@ class CreateAPrimaryInstanceRequest(AbstractModel):
27
27
  volume_capacity,
28
28
  disk_io_type,
29
29
  vpc_id,
30
- initial_data_reference,
31
30
  client_token=None,
32
31
  purchase_count=None,
33
32
  instance_name=None,
@@ -48,6 +47,7 @@ class CreateAPrimaryInstanceRequest(AbstractModel):
48
47
  entry_port=None,
49
48
  replication_type=None,
50
49
  resource_group_id=None,
50
+ initial_data_reference=None,
51
51
  data=None,
52
52
  leader_instance_id=None,
53
53
  resource_type=None,
@@ -140,7 +140,7 @@ class CreateAPrimaryInstanceRequest(AbstractModel):
140
140
  :type resource_group_id: str (optional)
141
141
 
142
142
  :param initial_data_reference: initial_data_reference parameter
143
- :type initial_data_reference: InitialDataReference (required)
143
+ :type initial_data_reference: InitialDataReference (optional)
144
144
 
145
145
  :param data: 库表恢复到新实例,恢复的库表信息
146
146
  :type data: List[RecoveryToSourceInstanceModel] (optional)
@@ -15,7 +15,6 @@ from baiducloud_python_sdk_rds.models.role_info import RoleInfo
15
15
  from baiducloud_python_sdk_rds.models.ro_group import RoGroup
16
16
  from baiducloud_python_sdk_rds.models.role_info import RoleInfo
17
17
  from baiducloud_python_sdk_rds.models.role_info import RoleInfo
18
- from baiducloud_python_sdk_rds.models.tag import Tag
19
18
  from baiducloud_python_sdk_rds.models.instance_subnet import InstanceSubnet
20
19
  from baiducloud_python_sdk_rds.models.machine_po import MachinePO
21
20
  from baiducloud_python_sdk_rds.models.resource_groups_detail_full import ResourceGroupsDetailFull
@@ -466,7 +465,7 @@ class QueryTheDetailsOfTheSpecifiedInstanceResponse(BceResponse):
466
465
  :type resource_uuid: str (optional)
467
466
 
468
467
  :param tags: 分组标签。
469
- :type tags: List[Tag] (optional)
468
+ :type tags: List[str] (optional)
470
469
 
471
470
  :param task: 相关任务, 如自动续费(目前只有这个)。
472
471
  :type task: str (optional)
@@ -864,7 +863,7 @@ class QueryTheDetailsOfTheSpecifiedInstanceResponse(BceResponse):
864
863
  if self.resource_uuid is not None:
865
864
  result['resourceUuid'] = self.resource_uuid
866
865
  if self.tags is not None:
867
- result['tags'] = [i.to_dict() for i in self.tags]
866
+ result['tags'] = self.tags
868
867
  if self.task is not None:
869
868
  result['task'] = self.task
870
869
  if self.order_status is not None:
@@ -1124,7 +1123,7 @@ class QueryTheDetailsOfTheSpecifiedInstanceResponse(BceResponse):
1124
1123
  if m.get('resourceUuid') is not None:
1125
1124
  self.resource_uuid = m.get('resourceUuid')
1126
1125
  if m.get('tags') is not None:
1127
- self.tags = [Tag().from_dict(i) for i in m.get('tags')]
1126
+ self.tags = m.get('tags')
1128
1127
  if m.get('task') is not None:
1129
1128
  self.task = m.get('task')
1130
1129
  if m.get('orderStatus') is not None:
@@ -0,0 +1,66 @@
1
+ """
2
+ Reservation information
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class Reservation(AbstractModel):
9
+ """
10
+ Reservation
11
+ """
12
+
13
+ def __init__(self, reservation_length=None, reservation_time_unit=None):
14
+ """
15
+ Initialize Reservation instance.
16
+
17
+ :param reservation_length: 时长,取值 [1,2,3,4,5,6,7,8,9,12,24,36]
18
+ :type reservation_length: int (optional)
19
+
20
+ :param reservation_time_unit: 时间单位,Month,当前仅支持按月
21
+ :type reservation_time_unit: str (optional)
22
+ """
23
+ super().__init__()
24
+ self.reservation_length = reservation_length
25
+ self.reservation_time_unit = reservation_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.reservation_length is not None:
41
+ result['reservationLength'] = self.reservation_length
42
+ if self.reservation_time_unit is not None:
43
+ result['reservationTimeUnit'] = self.reservation_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: Reservation
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('reservationLength') is not None:
63
+ self.reservation_length = m.get('reservationLength')
64
+ if m.get('reservationTimeUnit') is not None:
65
+ self.reservation_time_unit = m.get('reservationTimeUnit')
66
+ return self
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: baiducloud-python-sdk-rds
3
- Version: 0.0.6
3
+ Version: 0.0.7
4
4
  Summary: Baidu Cloud rdsApi SDK Library for Python
5
5
  Home-page: https://github.com/baidubce/baiducloud-python-sdk
6
6
  Author: Baidu Cloud SDK
@@ -1,17 +1,17 @@
1
- baiducloud_python_sdk_rds/__init__.py,sha256=TTqkijdCYR_07B4Y9ReM3_CvbGgGlcGJJA1O6J1vt7Q,82
1
+ baiducloud_python_sdk_rds/__init__.py,sha256=T_zOJSCeNS_phab4pAhxqi18CGqf5qIXA-Z8z5bXVdE,82
2
2
  baiducloud_python_sdk_rds/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
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
4
+ baiducloud_python_sdk_rds/models/__init__.py,sha256=3SoG6Giz_6Tgx8EHagZOmofsuWzCy-qTCiwiZMouqwc,4703
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
8
- baiducloud_python_sdk_rds/models/billing.py,sha256=2wip9i2eOdjPGnJNlC6MGj7LrQTE-2RpcVoQqWz69P4,1838
8
+ baiducloud_python_sdk_rds/models/billing.py,sha256=gLRdx_0noW9eqD4LI5eyHpzDpptGJNVf4VfNC2BgknI,2028
9
9
  baiducloud_python_sdk_rds/models/binding_tags_request.py,sha256=rKRdhIlOYSQ3qOiSgKkrS8THqEfJK9givBs6ZEXy2TA,1802
10
10
  baiducloud_python_sdk_rds/models/blb_service.py,sha256=uw4CpIKk54a8FlK8hz7xpa3paGyBeFXgqcaj11lm-kE,1757
11
11
  baiducloud_python_sdk_rds/models/check_status_response.py,sha256=ImCWEARgVEfxSH7yIsfusCXkVx_mMlWi7RvNqBIYUmk,3897
12
12
  baiducloud_python_sdk_rds/models/cluster_status_check_request.py,sha256=t1gRxwbyhocqjgjO7xQB5zKtefkhc3Q3O_1Pf-BNnL4,1640
13
13
  baiducloud_python_sdk_rds/models/cluster_status_check_response.py,sha256=1WE4y1WMZgHYNF0hAnUtscJePofYEYpF5ip4MeW-ezQ,2382
14
- baiducloud_python_sdk_rds/models/create_a_primary_instance_request.py,sha256=WckE7Pp8h4-ELWO6gRgEuh4PTluYNTLH0TVZAHMy4ok,14227
14
+ baiducloud_python_sdk_rds/models/create_a_primary_instance_request.py,sha256=AzX1FUv9eY6H8ENmLhcDtfnu4uyGA8aFgO7fpxAitrk,14232
15
15
  baiducloud_python_sdk_rds/models/create_a_primary_instance_response.py,sha256=2INtpsFtOKojhHYQM-BuAz1L9pezK8JPn8QboXACyBM,2133
16
16
  baiducloud_python_sdk_rds/models/create_a_proxy_instance_request.py,sha256=9NTx5vAtwa1p-WD53Zu0-rBec3FxePHV7T3Y4wBcVAQ,5900
17
17
  baiducloud_python_sdk_rds/models/create_a_proxy_instance_response.py,sha256=QgW9ZhdWYGB6CjWTrewSpAiQJEiYiUq7H7prQjIoPcU,2059
@@ -41,7 +41,7 @@ baiducloud_python_sdk_rds/models/query_subnet_list_response.py,sha256=0I6mjAbBaz
41
41
  baiducloud_python_sdk_rds/models/query_task_list_request.py,sha256=4JEUmPpAkIay8at6kIXWnypioN7S1Z8ymqoEUD8opnA,4372
42
42
  baiducloud_python_sdk_rds/models/query_task_list_response.py,sha256=2Dg5swZcTDAzeWcroXro7o0_c_PPhkrpC5j4JKtlYcA,2131
43
43
  baiducloud_python_sdk_rds/models/query_the_details_of_the_specified_instance_request.py,sha256=o_M2R2bAGZnGpdCbDH1gXMW82FBl3U66k90yuET5myo,1735
44
- baiducloud_python_sdk_rds/models/query_the_details_of_the_specified_instance_response.py,sha256=kgsI_7_iC_z9h3AFojaMOcvTmHTwe1V7P1WYuZC8Kuc,49095
44
+ baiducloud_python_sdk_rds/models/query_the_details_of_the_specified_instance_response.py,sha256=ckEZ2heE8DSzcjaqFqg_A344AeDnt1Y-acRmdPL69xw,48989
45
45
  baiducloud_python_sdk_rds/models/query_the_list_of_available_zones_response.py,sha256=UimQvLsSWT50_7ifoU1GB12PbJgEPb7G3fSUYd__y1U,1918
46
46
  baiducloud_python_sdk_rds/models/read_replica_id_mapping.py,sha256=KJ8gGJAe6Hwoiufe-W28h85EHF3DGCjQHLDZCFNRmcM,3886
47
47
  baiducloud_python_sdk_rds/models/recovery_to_source_instance_model.py,sha256=sUwKr8oRZAyxlUMVCRt79s3tGji4-PJ0fzjW3phVbtA,2694
@@ -50,6 +50,7 @@ baiducloud_python_sdk_rds/models/release_instance_response.py,sha256=zzxW05aoXwM
50
50
  baiducloud_python_sdk_rds/models/renewal_example_request.py,sha256=pN4ksVDVq8EZm7qJqRf7az6bYNVXwS9yeZzAR1bPbQI,2032
51
51
  baiducloud_python_sdk_rds/models/renewal_example_response.py,sha256=fOMCy_KJg0qvl-9_pnOpTfCn-2LhcLF1mM8HgA37O5w,1736
52
52
  baiducloud_python_sdk_rds/models/replica_request.py,sha256=dE9hSXZIcS9ix_j7oKpFDhLn3eslZmOV0mTRdpdrGq8,3039
53
+ baiducloud_python_sdk_rds/models/reservation.py,sha256=lbj8QTT7bPlZuuu5TH0tmFpK8Il3Y7zgEN38RLq89uQ,2093
53
54
  baiducloud_python_sdk_rds/models/resource.py,sha256=oF-ZwES9w3HjGU8k_gklKzCv3-J_jPpMkJyxI6LT4yo,1879
54
55
  baiducloud_python_sdk_rds/models/resource_group.py,sha256=H8oFKwSzZ1N_nUh5ae1a2lhL1ANlmXl_xG1oI89M_p0,4423
55
56
  baiducloud_python_sdk_rds/models/resource_groups_detail_full.py,sha256=AD0DjDQObuB4bPt0qVeSfrvZXX7j7wqy1G1h9w1Oqs8,4927
@@ -76,8 +77,8 @@ baiducloud_python_sdk_rds/models/update_instance_public_network_access_status_re
76
77
  baiducloud_python_sdk_rds/models/update_instance_synchronization_mode_request.py,sha256=c-_5edBv3skaaoIW_3skCeMyFNyuZhB0zKsn8cTaE-Q,2075
77
78
  baiducloud_python_sdk_rds/models/update_time_window_request.py,sha256=Zkki9rraINCnY-LxYM6wWJFu_ILglYbzwm043DadI1c,2613
78
79
  baiducloud_python_sdk_rds/models/zone_detail.py,sha256=1H2p_JlMKucaCDRj2rDvZ50im5p6zyI6eUB5SMczNgg,5024
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,,
80
+ baiducloud_python_sdk_rds-0.0.7.dist-info/LICENSE,sha256=vWvFalMLAgEWwNa8irw-tSDlh7k7bl4APjMGE_lGiws,10372
81
+ baiducloud_python_sdk_rds-0.0.7.dist-info/METADATA,sha256=SVD-xE66fP8jKq3Wwez9iAoaYiFdb7eX-R-4ix3Vqas,2646
82
+ baiducloud_python_sdk_rds-0.0.7.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
83
+ baiducloud_python_sdk_rds-0.0.7.dist-info/top_level.txt,sha256=0qILxSFHEOGSJ-ZlGCQe1UlmggvvF0glErNBIodoZgc,26
84
+ baiducloud_python_sdk_rds-0.0.7.dist-info/RECORD,,