baiducloud-python-sdk-rds 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ 2026-10-10 Version: 0.0.1
2
+ 新增RDS查询任务列表接口
3
+ - 涉及产品: RDS,支持查询任务列表
@@ -0,0 +1,177 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,2 @@
1
+ include LICENSE
2
+ include *.md
@@ -0,0 +1,72 @@
1
+ Metadata-Version: 2.1
2
+ Name: baiducloud-python-sdk-rds
3
+ Version: 0.0.1
4
+ Summary: Baidu Cloud rdsApi SDK Library for Python
5
+ Home-page: https://github.com/baidubce/baiducloud-python-sdk
6
+ Author: Baidu Cloud SDK
7
+ Author-email:
8
+ License: Apache License 2.0
9
+ Project-URL: Source, https://github.com/baidubce/baiducloud-python-sdk
10
+ Project-URL: Documentation, https://github.com/baidubce/baiducloud-python-sdk/tree/master/docs
11
+ Project-URL: Changelog, https://github.com/baidubce/baiducloud-python-sdk/blob/master/baiducloud-python-sdk-rds/ChangeLog.md
12
+ Keywords: baiducloud,rds
13
+ Platform: UNKNOWN
14
+ Classifier: Development Status :: 5 - Production/Stable
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Programming Language :: Python
18
+ Classifier: Programming Language :: Python :: 2
19
+ Classifier: Programming Language :: Python :: 2.7
20
+ Classifier: Programming Language :: Python :: 3
21
+ Classifier: Programming Language :: Python :: 3.3
22
+ Classifier: Programming Language :: Python :: 3.4
23
+ Classifier: Programming Language :: Python :: 3.5
24
+ Classifier: Programming Language :: Python :: 3.6
25
+ Classifier: Programming Language :: Python :: 3.7
26
+ Classifier: Programming Language :: Python :: 3.8
27
+ Classifier: Programming Language :: Python :: 3.9
28
+ Classifier: Programming Language :: Python :: 3.10
29
+ Classifier: Programming Language :: Python :: 3.11
30
+ Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4
31
+ Description-Content-Type: text/markdown
32
+ License-File: LICENSE
33
+
34
+ English | [简体中文](README-CN.md)
35
+
36
+ ## Baidu Cloud rdsApi SDK for Python
37
+
38
+ ## Requirements
39
+
40
+ - Python >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4
41
+
42
+ ## Installation
43
+
44
+ - **Install with pip**
45
+
46
+ Python SDK uses a common package management tool named `pip`. If pip is not installed, see the [pip user guide](https://pip.pypa.io/en/stable/installing/ "pip User Guide") to install pip.
47
+
48
+ ```bash
49
+ # Install the baiducloud_python_sdk_rds
50
+ pip install baiducloud_python_sdk_rds
51
+ ```
52
+
53
+ ## Issues
54
+
55
+ [Opening an Issue](https://github.com/baidubce/baiducloud-python-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
56
+
57
+ ## Usage
58
+
59
+ [Quick Examples](https://github.com/baidubce/baiducloud-python-sdk/blob/master/docs/Usage-EN.md)
60
+
61
+ ## Changelog
62
+
63
+ Detailed changes for each release are documented in the [release notes](./ChangeLog.md).
64
+
65
+ ## References
66
+
67
+ - [Latest Release](https://github.com/baidubce/baiducloud-python-sdk)
68
+
69
+ ## License
70
+
71
+ [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
72
+
@@ -0,0 +1,38 @@
1
+ [English](README.md) | 简体中文
2
+
3
+ ## Baidu Cloud rdsApi SDK for Python
4
+
5
+ ## 要求
6
+
7
+ - Python >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4
8
+
9
+ ## 安装
10
+
11
+ - **使用 pip 安装(推荐)**
12
+
13
+ 如未安装 `pip`, 请先至pip官网 [pip user guide](https://pip.pypa.io/en/stable/installing/ "pip User Guide") 安装pip .
14
+
15
+ ```bash
16
+ # 安装 baiducloud_python_sdk_rds
17
+ pip install baiducloud_python_sdk_rds
18
+ ```
19
+
20
+ ## 问题
21
+
22
+ [提交 Issue](https://github.com/baidubce/baiducloud-python-sdk/issues/new),不符合指南的问题可能会立即关闭。
23
+
24
+ ## 使用说明
25
+
26
+ [快速使用](https://github.com/baidubce/baiducloud-python-sdk/blob/master/docs/Usage-CN.md)
27
+
28
+ ## 发行说明
29
+
30
+ 每个版本的详细更改记录在[发行说明](./ChangeLog.md)中。
31
+
32
+ ## 相关
33
+
34
+ - [最新源码](https://github.com/baidubce/baiducloud-python-sdk)
35
+
36
+ ## 许可证
37
+
38
+ [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
@@ -0,0 +1,38 @@
1
+ English | [简体中文](README-CN.md)
2
+
3
+ ## Baidu Cloud rdsApi SDK for Python
4
+
5
+ ## Requirements
6
+
7
+ - Python >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4
8
+
9
+ ## Installation
10
+
11
+ - **Install with pip**
12
+
13
+ Python SDK uses a common package management tool named `pip`. If pip is not installed, see the [pip user guide](https://pip.pypa.io/en/stable/installing/ "pip User Guide") to install pip.
14
+
15
+ ```bash
16
+ # Install the baiducloud_python_sdk_rds
17
+ pip install baiducloud_python_sdk_rds
18
+ ```
19
+
20
+ ## Issues
21
+
22
+ [Opening an Issue](https://github.com/baidubce/baiducloud-python-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
23
+
24
+ ## Usage
25
+
26
+ [Quick Examples](https://github.com/baidubce/baiducloud-python-sdk/blob/master/docs/Usage-EN.md)
27
+
28
+ ## Changelog
29
+
30
+ Detailed changes for each release are documented in the [release notes](./ChangeLog.md).
31
+
32
+ ## References
33
+
34
+ - [Latest Release](https://github.com/baidubce/baiducloud-python-sdk)
35
+
36
+ ## License
37
+
38
+ [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
@@ -0,0 +1,5 @@
1
+ """
2
+ This module defines some common string constants.
3
+ """
4
+
5
+ SDK_VERSION = b'0.0.1'
@@ -0,0 +1,107 @@
1
+ """
2
+ Example for rds client.
3
+ """
4
+
5
+ import copy
6
+ import logging
7
+
8
+ from baiducloud_python_sdk_core import utils, bce_base_client
9
+ from baiducloud_python_sdk_core.bce_base_client import BceBaseClient
10
+ from baiducloud_python_sdk_core.http import bce_http_client
11
+ from baiducloud_python_sdk_core.http import handler
12
+ from baiducloud_python_sdk_core.http import http_methods
13
+ from baiducloud_python_sdk_core.util import request_body_utils
14
+
15
+ _logger = logging.getLogger(__name__)
16
+
17
+
18
+ class RdsClient(BceBaseClient):
19
+ """
20
+ rds base sdk client
21
+ """
22
+
23
+ CONSTANT_V1 = b'v1'
24
+
25
+ CONSTANT_INSTANCE = b'instance'
26
+
27
+ CONSTANT_TASK = b'task'
28
+
29
+ def __init__(self, config=None):
30
+ """
31
+ Initialize the rds client.
32
+
33
+ :param config: Client configuration
34
+ :type config: baidubce.BceClientConfiguration
35
+ """
36
+ bce_base_client.BceBaseClient.__init__(self, config)
37
+
38
+ def query_task_list(self, request, config=None):
39
+ """
40
+ query_task_list
41
+
42
+ :param request: Request entity containing all parameters
43
+ :type request: RdsClientRequest
44
+ :param config: Optional request configuration override
45
+ :type config: baiducloud_python_sdk_core.BceClientConfiguration
46
+
47
+ :return: API response
48
+ :rtype: baiducloud_python_sdk_core.bce_response.BceResponse
49
+
50
+ :raises BceClientError: Client error (network failure, invalid parameters, etc.)
51
+ :raises BceServerError: Server error (4xx/5xx HTTP status codes)
52
+ """
53
+ path = utils.append_uri(b'/', RdsClient.CONSTANT_V1, RdsClient.CONSTANT_INSTANCE, RdsClient.CONSTANT_TASK)
54
+ headers = None
55
+ merged_config = self._create_request_with_host(request, config)
56
+ return self._send_request(http_methods.POST, path=path, body=request.to_json_string(), config=merged_config)
57
+
58
+ def _merge_config(self, config=None):
59
+ """
60
+ :param config:
61
+ :type config: baiducloud_python_sdk_core.BceClientConfiguration
62
+ """
63
+ if config is None:
64
+ return self.config
65
+ else:
66
+ new_config = copy.copy(self.config)
67
+ new_config.merge_non_none_values(config)
68
+ return new_config
69
+
70
+ def _send_request(
71
+ self, http_method, path, body=None, headers=None, params=None, config=None, body_parser=None, model=None
72
+ ):
73
+ """
74
+ Send an HTTP request to the service endpoint.
75
+
76
+ :param http_method: HTTP method (GET, POST, PUT, DELETE, etc.)
77
+ :type http_method: bytes
78
+ :param path: Request path
79
+ :type path: bytes
80
+ :param body: Optional request body
81
+ :type body: str or bytes
82
+ :param headers: Optional HTTP headers
83
+ :type headers: dict
84
+ :param params: Optional query parameters
85
+ :type params: dict
86
+ :param config: Optional request configuration override
87
+ :type config: baiducloud_python_sdk_core.BceClientConfiguration
88
+ :param body_parser: Optional custom body parser function
89
+ :type body_parser: callable
90
+ :param model: Optional response model class for deserialization
91
+ :type model: class
92
+
93
+ :return: API response
94
+ :rtype: baiducloud_python_sdk_core.bce_response.BceResponse
95
+
96
+ :raises BceClientError: Client error (network connection failure, SSL errors, etc.)
97
+ :raises BceServerError: Server returned error response
98
+ """
99
+ config = self._merge_config(config)
100
+ if body_parser is None:
101
+ body_parser = handler.parse_json
102
+ if headers is None:
103
+ headers = {b'Accept': b'*/*', b'Content-Type': b'application/json;charset=utf-8'}
104
+ sign_fn, params = self._choose_signer(config, params)
105
+ return bce_http_client.send_request(
106
+ config, sign_fn, [handler.parse_error, body_parser], http_method, path, body, headers, params, model=model
107
+ )
@@ -0,0 +1,5 @@
1
+ """
2
+ Models for rds SDK.
3
+ """
4
+
5
+ from .query_task_list_request import QueryTaskListRequest
@@ -0,0 +1,135 @@
1
+ """
2
+ Request entity for QueryTaskListRequest information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class QueryTaskListRequest(AbstractModel):
9
+ """
10
+ Request entity for QueryTaskListRequest operation.
11
+
12
+ This class encapsulates all parameters for the API request.
13
+ """
14
+
15
+ def __init__(
16
+ self,
17
+ page_size=None,
18
+ page_no=None,
19
+ instance_id=None,
20
+ instance_name=None,
21
+ task_id=None,
22
+ task_type=None,
23
+ task_status=None,
24
+ start_time=None,
25
+ end_time=None,
26
+ ):
27
+ """
28
+ Initialize QueryTaskListRequest request entity.
29
+
30
+ :param page_size: 每页的大小
31
+ :type page_size: str (optional)
32
+
33
+ :param page_no: 页码
34
+ :type page_no: str (optional)
35
+
36
+ :param instance_id: 实例ID
37
+ :type instance_id: str (optional)
38
+
39
+ :param instance_name: 实例名称
40
+ :type instance_name: str (optional)
41
+
42
+ :param task_id: 任务ID
43
+ :type task_id: int (optional)
44
+
45
+ :param task_type: 任务类型,可取值:resize/switch/reboot/changeAzone
46
+ :type task_type: str (optional)
47
+
48
+ :param task_status: 任务状态,可取值:created/running/success/failed/cancelled
49
+ :type task_status: str (optional)
50
+
51
+ :param start_time: 任务开始时间
52
+ :type start_time: str (optional)
53
+
54
+ :param end_time: 任务结束时间
55
+ :type end_time: str (optional)
56
+ """
57
+ super().__init__()
58
+ self.page_size = page_size
59
+ self.page_no = page_no
60
+ self.instance_id = instance_id
61
+ self.instance_name = instance_name
62
+ self.task_id = task_id
63
+ self.task_type = task_type
64
+ self.task_status = task_status
65
+ self.start_time = start_time
66
+ self.end_time = end_time
67
+
68
+ def to_dict(self):
69
+ """
70
+ Convert the request entity to a dictionary representation.
71
+
72
+ Nested model objects are recursively converted to dictionaries.
73
+
74
+ :return: Dictionary representation of the request
75
+ :rtype: dict
76
+ """
77
+ _map = super().to_dict()
78
+ if _map is not None:
79
+ return _map
80
+ result = dict()
81
+ if self.page_size is not None:
82
+ result['pageSize'] = self.page_size
83
+ if self.page_no is not None:
84
+ result['pageNo'] = self.page_no
85
+ if self.instance_id is not None:
86
+ result['instanceId'] = self.instance_id
87
+ if self.instance_name is not None:
88
+ result['instanceName'] = self.instance_name
89
+ if self.task_id is not None:
90
+ result['taskId'] = self.task_id
91
+ if self.task_type is not None:
92
+ result['taskType'] = self.task_type
93
+ if self.task_status is not None:
94
+ result['taskStatus'] = self.task_status
95
+ if self.start_time is not None:
96
+ result['startTime'] = self.start_time
97
+ if self.end_time is not None:
98
+ result['endTime'] = self.end_time
99
+ return result
100
+
101
+ def from_dict(self, m):
102
+ """
103
+ Populate the request entity from a dictionary.
104
+
105
+ Nested dictionaries are recursively converted to model objects.
106
+
107
+ :param m: Dictionary containing request data
108
+ :type m: dict
109
+
110
+ :return: Self reference for method chaining
111
+ :rtype: QueryTaskListRequest
112
+
113
+ :raises TypeError: If input is not a dictionary or field type mismatch
114
+ :raises ValueError: If nested model conversion fails
115
+ """
116
+ m = m or dict()
117
+ if m.get('pageSize') is not None:
118
+ self.page_size = m.get('pageSize')
119
+ if m.get('pageNo') is not None:
120
+ self.page_no = m.get('pageNo')
121
+ if m.get('instanceId') is not None:
122
+ self.instance_id = m.get('instanceId')
123
+ if m.get('instanceName') is not None:
124
+ self.instance_name = m.get('instanceName')
125
+ if m.get('taskId') is not None:
126
+ self.task_id = m.get('taskId')
127
+ if m.get('taskType') is not None:
128
+ self.task_type = m.get('taskType')
129
+ if m.get('taskStatus') is not None:
130
+ self.task_status = m.get('taskStatus')
131
+ if m.get('startTime') is not None:
132
+ self.start_time = m.get('startTime')
133
+ if m.get('endTime') is not None:
134
+ self.end_time = m.get('endTime')
135
+ return self
@@ -0,0 +1,72 @@
1
+ Metadata-Version: 2.1
2
+ Name: baiducloud-python-sdk-rds
3
+ Version: 0.0.1
4
+ Summary: Baidu Cloud rdsApi SDK Library for Python
5
+ Home-page: https://github.com/baidubce/baiducloud-python-sdk
6
+ Author: Baidu Cloud SDK
7
+ Author-email:
8
+ License: Apache License 2.0
9
+ Project-URL: Source, https://github.com/baidubce/baiducloud-python-sdk
10
+ Project-URL: Documentation, https://github.com/baidubce/baiducloud-python-sdk/tree/master/docs
11
+ Project-URL: Changelog, https://github.com/baidubce/baiducloud-python-sdk/blob/master/baiducloud-python-sdk-rds/ChangeLog.md
12
+ Keywords: baiducloud,rds
13
+ Platform: UNKNOWN
14
+ Classifier: Development Status :: 5 - Production/Stable
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Programming Language :: Python
18
+ Classifier: Programming Language :: Python :: 2
19
+ Classifier: Programming Language :: Python :: 2.7
20
+ Classifier: Programming Language :: Python :: 3
21
+ Classifier: Programming Language :: Python :: 3.3
22
+ Classifier: Programming Language :: Python :: 3.4
23
+ Classifier: Programming Language :: Python :: 3.5
24
+ Classifier: Programming Language :: Python :: 3.6
25
+ Classifier: Programming Language :: Python :: 3.7
26
+ Classifier: Programming Language :: Python :: 3.8
27
+ Classifier: Programming Language :: Python :: 3.9
28
+ Classifier: Programming Language :: Python :: 3.10
29
+ Classifier: Programming Language :: Python :: 3.11
30
+ Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4
31
+ Description-Content-Type: text/markdown
32
+ License-File: LICENSE
33
+
34
+ English | [简体中文](README-CN.md)
35
+
36
+ ## Baidu Cloud rdsApi SDK for Python
37
+
38
+ ## Requirements
39
+
40
+ - Python >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4
41
+
42
+ ## Installation
43
+
44
+ - **Install with pip**
45
+
46
+ Python SDK uses a common package management tool named `pip`. If pip is not installed, see the [pip user guide](https://pip.pypa.io/en/stable/installing/ "pip User Guide") to install pip.
47
+
48
+ ```bash
49
+ # Install the baiducloud_python_sdk_rds
50
+ pip install baiducloud_python_sdk_rds
51
+ ```
52
+
53
+ ## Issues
54
+
55
+ [Opening an Issue](https://github.com/baidubce/baiducloud-python-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
56
+
57
+ ## Usage
58
+
59
+ [Quick Examples](https://github.com/baidubce/baiducloud-python-sdk/blob/master/docs/Usage-EN.md)
60
+
61
+ ## Changelog
62
+
63
+ Detailed changes for each release are documented in the [release notes](./ChangeLog.md).
64
+
65
+ ## References
66
+
67
+ - [Latest Release](https://github.com/baidubce/baiducloud-python-sdk)
68
+
69
+ ## License
70
+
71
+ [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
72
+
@@ -0,0 +1,17 @@
1
+ ChangeLog.md
2
+ LICENSE
3
+ MANIFEST.in
4
+ README-CN.md
5
+ README.md
6
+ setup.cfg
7
+ setup.py
8
+ baiducloud_python_sdk_rds/__init__.py
9
+ baiducloud_python_sdk_rds.egg-info/PKG-INFO
10
+ baiducloud_python_sdk_rds.egg-info/SOURCES.txt
11
+ baiducloud_python_sdk_rds.egg-info/dependency_links.txt
12
+ baiducloud_python_sdk_rds.egg-info/requires.txt
13
+ baiducloud_python_sdk_rds.egg-info/top_level.txt
14
+ baiducloud_python_sdk_rds/api/__init__.py
15
+ baiducloud_python_sdk_rds/api/rds_client.py
16
+ baiducloud_python_sdk_rds/models/__init__.py
17
+ baiducloud_python_sdk_rds/models/query_task_list_request.py
@@ -0,0 +1,4 @@
1
+ pycryptodome>=3.8.0
2
+ future>=0.6.0
3
+ six>=1.4.0
4
+ baiducloud-python-sdk-core>=0.0.6
@@ -0,0 +1 @@
1
+ baiducloud_python_sdk_rds
@@ -0,0 +1,7 @@
1
+ [metadata]
2
+ license_file = LICENSE
3
+
4
+ [egg_info]
5
+ tag_build =
6
+ tag_date = 0
7
+
@@ -0,0 +1,71 @@
1
+ # Copyright 2014 Baidu, Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
4
+ # except in compliance with the License. You may obtain a copy of the License at
5
+ #
6
+ # http://www.apache.org/licenses/LICENSE-2.0
7
+ #
8
+ # Unless required by applicable law or agreed to in writing, software distributed under the
9
+ # License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
10
+ # either express or implied. See the License for the specific language governing permissions
11
+ # and limitations under the License.
12
+
13
+ """
14
+ The setup script to install BCE SDK for python
15
+ """
16
+
17
+ from __future__ import absolute_import
18
+ import io
19
+ import os
20
+ import re
21
+ from setuptools import setup, find_packages
22
+
23
+
24
+ with io.open(os.path.join("baiducloud_python_sdk_rds", "__init__.py"), "rt") as f:
25
+ SDK_VERSION = re.search(r"SDK_VERSION = b'(.*?)'", f.read()).group(1)
26
+
27
+ LONG_DESCRIPTION = ''
28
+ if os.path.exists('./README.md'):
29
+ with io.open("README.md", encoding='utf-8') as fp:
30
+ LONG_DESCRIPTION = fp.read()
31
+
32
+ setup(
33
+ name='baiducloud-python-sdk-rds',
34
+ version=SDK_VERSION,
35
+ description='Baidu Cloud rdsApi SDK Library for Python',
36
+ long_description=LONG_DESCRIPTION,
37
+ long_description_content_type='text/markdown',
38
+ install_requires=['pycryptodome>=3.8.0', 'future>=0.6.0', 'six>=1.4.0', 'baiducloud-python-sdk-core>=0.0.6'],
39
+ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4',
40
+ packages=find_packages(exclude=["tests*"]),
41
+ url='https://github.com/baidubce/baiducloud-python-sdk',
42
+ keywords=["baiducloud", "rds"],
43
+ license='Apache License 2.0',
44
+ author='Baidu Cloud SDK',
45
+ author_email='',
46
+ classifiers=[
47
+ 'Development Status :: 5 - Production/Stable',
48
+ 'Intended Audience :: Developers',
49
+ 'License :: OSI Approved :: Apache Software License',
50
+ 'Programming Language :: Python',
51
+ 'Programming Language :: Python :: 2',
52
+ 'Programming Language :: Python :: 2.7',
53
+ 'Programming Language :: Python :: 3',
54
+ 'Programming Language :: Python :: 3.3',
55
+ 'Programming Language :: Python :: 3.4',
56
+ 'Programming Language :: Python :: 3.5',
57
+ 'Programming Language :: Python :: 3.6',
58
+ 'Programming Language :: Python :: 3.7',
59
+ 'Programming Language :: Python :: 3.8',
60
+ 'Programming Language :: Python :: 3.9',
61
+ 'Programming Language :: Python :: 3.10',
62
+ 'Programming Language :: Python :: 3.11',
63
+ ],
64
+ project_urls={
65
+ 'Source': 'https://github.com/baidubce/baiducloud-python-sdk',
66
+ 'Documentation': 'https://github.com/baidubce/baiducloud-python-sdk/tree/master/docs',
67
+ 'Changelog': (
68
+ 'https://github.com/baidubce/baiducloud-python-sdk/blob/master/baiducloud-python-sdk-rds/ChangeLog.md'
69
+ ),
70
+ },
71
+ )