baiducloud-python-sdk-scs 0.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ """
2
+ This module defines some common string constants.
3
+ """
4
+
5
+ SDK_VERSION = b'0.0.1'
File without changes
@@ -0,0 +1,106 @@
1
+ """
2
+ Example for scs 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
+ from baiducloud_python_sdk_scs.models.instance_list_response import InstanceListResponse
15
+
16
+ _logger = logging.getLogger(__name__)
17
+
18
+
19
+ class ScsClient(BceBaseClient):
20
+ """
21
+ scs base sdk client
22
+ """
23
+
24
+ CONSTANT_V2 = b'v2'
25
+
26
+ CONSTANT_INSTANCE = b'instance'
27
+
28
+ def __init__(self, config=None):
29
+ """
30
+ Initialize the scs client.
31
+
32
+ :param config: Client configuration
33
+ :type config: baidubce.BceClientConfiguration
34
+ """
35
+ bce_base_client.BceBaseClient.__init__(self, config)
36
+
37
+ def instance_list(self, request, config=None):
38
+ """
39
+ instance_list
40
+
41
+ :param request: Request entity containing all parameters
42
+ :type request: ScsClientRequest
43
+ :param config: Optional request configuration override
44
+ :type config: baiducloud_python_sdk_core.BceClientConfiguration
45
+
46
+ :return: API response containing InstanceListResponse data
47
+ :rtype: InstanceListResponse
48
+
49
+ :raises BceClientError: Client error (network failure, invalid parameters, etc.)
50
+ :raises BceServerError: Server error (4xx/5xx HTTP status codes)
51
+ """
52
+ path = utils.append_uri(b'/', ScsClient.CONSTANT_V2, ScsClient.CONSTANT_INSTANCE)
53
+ headers = None
54
+ merged_config = self._create_request_with_host(request, config)
55
+ return self._send_request(http_methods.GET, path=path, config=merged_config, model=InstanceListResponse)
56
+
57
+ def _merge_config(self, config=None):
58
+ """
59
+ :param config:
60
+ :type config: baiducloud_python_sdk_core.BceClientConfiguration
61
+ """
62
+ if config is None:
63
+ return self.config
64
+ else:
65
+ new_config = copy.copy(self.config)
66
+ new_config.merge_non_none_values(config)
67
+ return new_config
68
+
69
+ def _send_request(
70
+ self, http_method, path, body=None, headers=None, params=None, config=None, body_parser=None, model=None
71
+ ):
72
+ """
73
+ Send an HTTP request to the service endpoint.
74
+
75
+ :param http_method: HTTP method (GET, POST, PUT, DELETE, etc.)
76
+ :type http_method: bytes
77
+ :param path: Request path
78
+ :type path: bytes
79
+ :param body: Optional request body
80
+ :type body: str or bytes
81
+ :param headers: Optional HTTP headers
82
+ :type headers: dict
83
+ :param params: Optional query parameters
84
+ :type params: dict
85
+ :param config: Optional request configuration override
86
+ :type config: baiducloud_python_sdk_core.BceClientConfiguration
87
+ :param body_parser: Optional custom body parser function
88
+ :type body_parser: callable
89
+ :param model: Optional response model class for deserialization
90
+ :type model: class
91
+
92
+ :return: API response
93
+ :rtype: baiducloud_python_sdk_core.bce_response.BceResponse
94
+
95
+ :raises BceClientError: Client error (network connection failure, SSL errors, etc.)
96
+ :raises BceServerError: Server returned error response
97
+ """
98
+ config = self._merge_config(config)
99
+ if body_parser is None:
100
+ body_parser = handler.parse_json
101
+ if headers is None:
102
+ headers = {b'Accept': b'*/*', b'Content-Type': b'application/json;charset=utf-8'}
103
+ sign_fn, params = self._choose_signer(config, params)
104
+ return bce_http_client.send_request(
105
+ config, sign_fn, [handler.parse_error, body_parser], http_method, path, body, headers, params, model=model
106
+ )
@@ -0,0 +1,7 @@
1
+ """
2
+ Models for scs SDK.
3
+ """
4
+
5
+ from .instance_list_response import InstanceListResponse
6
+ from .instance_model import InstanceModel
7
+ from .instance_list_request import InstanceListRequest
@@ -0,0 +1,76 @@
1
+ """
2
+ Request entity for InstanceListRequest information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class InstanceListRequest(AbstractModel):
9
+ """
10
+ Request entity for InstanceListRequest operation.
11
+
12
+ This class encapsulates all parameters for the API request.
13
+ """
14
+
15
+ def __init__(self, marker, max_keys, instance_ids, vnet_ip):
16
+ """
17
+ Initialize InstanceListRequest request entity.
18
+
19
+ :param marker: marker parameter
20
+ :type marker: str (required)
21
+
22
+ :param max_keys: max_keys parameter
23
+ :type max_keys: str (required)
24
+
25
+ :param instance_ids: instance_ids parameter
26
+ :type instance_ids: str (required)
27
+
28
+ :param vnet_ip: vnet_ip parameter
29
+ :type vnet_ip: str (required)
30
+ """
31
+ super().__init__()
32
+ self.marker = marker
33
+ self.max_keys = max_keys
34
+ self.instance_ids = instance_ids
35
+ self.vnet_ip = vnet_ip
36
+
37
+ def to_dict(self):
38
+ """
39
+ Convert the request entity to a dictionary representation.
40
+
41
+ Nested model objects are recursively converted to dictionaries.
42
+
43
+ :return: Dictionary representation of the request
44
+ :rtype: dict
45
+ """
46
+ _map = super().to_dict()
47
+ if _map is not None:
48
+ return _map
49
+ result = dict()
50
+ return result
51
+
52
+ def from_dict(self, m):
53
+ """
54
+ Populate the request entity from a dictionary.
55
+
56
+ Nested dictionaries are recursively converted to model objects.
57
+
58
+ :param m: Dictionary containing request data
59
+ :type m: dict
60
+
61
+ :return: Self reference for method chaining
62
+ :rtype: InstanceListRequest
63
+
64
+ :raises TypeError: If input is not a dictionary or field type mismatch
65
+ :raises ValueError: If nested model conversion fails
66
+ """
67
+ m = m or dict()
68
+ if m.get('marker') is not None:
69
+ self.marker = m.get('marker')
70
+ if m.get('maxKeys') is not None:
71
+ self.max_keys = m.get('maxKeys')
72
+ if m.get('instanceIds') is not None:
73
+ self.instance_ids = m.get('instanceIds')
74
+ if m.get('vnetIp') is not None:
75
+ self.vnet_ip = m.get('vnetIp')
76
+ return self
@@ -0,0 +1,94 @@
1
+ """
2
+ Request entity for InstanceListResponse information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.bce_response import BceResponse
6
+ from baiducloud_python_sdk_scs.models.instance_model import InstanceModel
7
+
8
+
9
+ class InstanceListResponse(BceResponse):
10
+ """
11
+ InstanceListResponse
12
+ """
13
+
14
+ def __init__(self, marker=None, max_keys=None, is_truncated=None, next_marker=None, instances=None):
15
+ """
16
+ Initialize InstanceListResponse response.
17
+
18
+ :param marker: 批量获取列表的查询的起始位置,是一个由系统生成的字符串,起始值可传入-1
19
+ :type marker: str (optional)
20
+
21
+ :param max_keys: 每页包含的最大数量,最大数量通常不超过1000,缺省值为1000
22
+ :type max_keys: int (optional)
23
+
24
+ :param is_truncated: true表示后面还有数据,false表示已经是最后一页
25
+ :type is_truncated: bool (optional)
26
+
27
+ :param next_marker: 获取下一页所需要传递的marker值。当isTruncated为false时,该域不出现
28
+ :type next_marker: str (optional)
29
+
30
+ :param instances: 由[InstanceModel](SCS/API参考/附录.md#InstanceModel)组成的数组
31
+ :type instances: List[InstanceModel] (optional)
32
+ """
33
+ super().__init__()
34
+ self.marker = marker
35
+ self.max_keys = max_keys
36
+ self.is_truncated = is_truncated
37
+ self.next_marker = next_marker
38
+ self.instances = instances
39
+
40
+ def to_dict(self):
41
+ """
42
+ Convert the response instance to a dictionary representation.
43
+
44
+ Includes metadata from the parent BceResponse class.
45
+ Nested model objects are recursively converted to dictionaries.
46
+
47
+ :return: Dictionary representation of the response
48
+ :rtype: dict
49
+ """
50
+ _map = super().to_dict()
51
+ if _map is not None:
52
+ return _map
53
+ result = dict()
54
+ if self.metadata is not None:
55
+ result['metadata'] = dict(self.metadata)
56
+ if self.marker is not None:
57
+ result['marker'] = self.marker
58
+ if self.max_keys is not None:
59
+ result['maxKeys'] = self.max_keys
60
+ if self.is_truncated is not None:
61
+ result['isTruncated'] = self.is_truncated
62
+ if self.next_marker is not None:
63
+ result['nextMarker'] = self.next_marker
64
+ if self.instances is not None:
65
+ result['instances'] = [i.to_dict() for i in self.instances]
66
+ return result
67
+
68
+ def from_dict(self, m):
69
+ """
70
+ Populate the response instance from a dictionary.
71
+
72
+ Nested dictionaries are recursively converted to model objects.
73
+
74
+ :param m: Dictionary containing response data
75
+ :type m: dict
76
+
77
+ :return: Self reference for method chaining
78
+ :rtype: InstanceListResponse
79
+
80
+ :raises TypeError: If input is not a dictionary or field type mismatch
81
+ :raises ValueError: If nested model conversion fails
82
+ """
83
+ m = m or dict()
84
+ if m.get('marker') is not None:
85
+ self.marker = m.get('marker')
86
+ if m.get('maxKeys') is not None:
87
+ self.max_keys = m.get('maxKeys')
88
+ if m.get('isTruncated') is not None:
89
+ self.is_truncated = m.get('isTruncated')
90
+ if m.get('nextMarker') is not None:
91
+ self.next_marker = m.get('nextMarker')
92
+ if m.get('instances') is not None:
93
+ self.instances = [InstanceModel().from_dict(i) for i in m.get('instances')]
94
+ return self
@@ -0,0 +1,214 @@
1
+ """
2
+ InstanceModel information
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class InstanceModel(AbstractModel):
9
+ """
10
+ InstanceModel
11
+ """
12
+
13
+ def __init__(
14
+ self,
15
+ instance_id=None,
16
+ instance_name=None,
17
+ instance_status=None,
18
+ isolated_status=None,
19
+ cluster_type=None,
20
+ engine=None,
21
+ engine_version=None,
22
+ vnet_ip=None,
23
+ domain=None,
24
+ port=None,
25
+ instance_create_time=None,
26
+ instance_expire_time=None,
27
+ capacity=None,
28
+ used_capacity=None,
29
+ payment_timing=None,
30
+ zone_names=None,
31
+ order_status=None,
32
+ deploy_id_list=None,
33
+ ):
34
+ """
35
+ Initialize InstanceModel instance.
36
+
37
+ :param instance_id: 实例ID
38
+ :type instance_id: str (optional)
39
+
40
+ :param instance_name: 实例名
41
+ :type instance_name: str (optional)
42
+
43
+ :param instance_status: [实例状态](#实例状态)
44
+ :type instance_status: str (optional)
45
+
46
+ :param isolated_status: 已隔离:Isolated(实例在回收站内)
47
+ :type isolated_status: str (optional)
48
+
49
+ :param cluster_type: 引擎类型为Redis,取值:集群: “cluster” 主从:“master_slave”,default: 主从
50
+ :type cluster_type: str (optional)
51
+
52
+ :param engine: 引擎类型,redis,memcache
53
+ :type engine: str (optional)
54
+
55
+ :param engine_version: 引擎版本
56
+ :type engine_version: str (optional)
57
+
58
+ :param vnet_ip: 私网IP
59
+ :type vnet_ip: str (optional)
60
+
61
+ :param domain: 域名
62
+ :type domain: str (optional)
63
+
64
+ :param port: 链接端口
65
+ :type port: str (optional)
66
+
67
+ :param instance_create_time: 实例创建时间
68
+ :type instance_create_time: datetime (optional)
69
+
70
+ :param instance_expire_time: 实例到期时间
71
+ :type instance_expire_time: datetime (optional)
72
+
73
+ :param capacity: 总容量,单位GB
74
+ :type capacity: float (optional)
75
+
76
+ :param used_capacity: 已用容量,单位GB
77
+ :type used_capacity: float (optional)
78
+
79
+ :param payment_timing: 付费方式。预付费:Prepaid,后付费:Postpaid
80
+ :type payment_timing: str (optional)
81
+
82
+ :param zone_names: 可用区list
83
+ :type zone_names: List[str] (optional)
84
+
85
+ :param order_status: 预转后、后转预的标记。 <li>to_postpay: 预付费转后付费<li> to_prepay: 后付费转预付费
86
+ :type order_status: str (optional)
87
+
88
+ :param deploy_id_list: 集群绑定的部署集ID列表。
89
+ :type deploy_id_list: List[str] (optional)
90
+ """
91
+ super().__init__()
92
+ self.instance_id = instance_id
93
+ self.instance_name = instance_name
94
+ self.instance_status = instance_status
95
+ self.isolated_status = isolated_status
96
+ self.cluster_type = cluster_type
97
+ self.engine = engine
98
+ self.engine_version = engine_version
99
+ self.vnet_ip = vnet_ip
100
+ self.domain = domain
101
+ self.port = port
102
+ self.instance_create_time = instance_create_time
103
+ self.instance_expire_time = instance_expire_time
104
+ self.capacity = capacity
105
+ self.used_capacity = used_capacity
106
+ self.payment_timing = payment_timing
107
+ self.zone_names = zone_names
108
+ self.order_status = order_status
109
+ self.deploy_id_list = deploy_id_list
110
+
111
+ def to_dict(self):
112
+ """
113
+ Convert the model instance to a dictionary representation.
114
+
115
+ Nested model objects are recursively converted to dictionaries.
116
+
117
+ :return: Dictionary representation of the model
118
+ :rtype: dict
119
+ """
120
+ _map = super().to_dict()
121
+ if _map is not None:
122
+ return _map
123
+ result = dict()
124
+ if self.instance_id is not None:
125
+ result['instanceId'] = self.instance_id
126
+ if self.instance_name is not None:
127
+ result['instanceName'] = self.instance_name
128
+ if self.instance_status is not None:
129
+ result['instanceStatus'] = self.instance_status
130
+ if self.isolated_status is not None:
131
+ result['isolatedStatus'] = self.isolated_status
132
+ if self.cluster_type is not None:
133
+ result['clusterType'] = self.cluster_type
134
+ if self.engine is not None:
135
+ result['engine'] = self.engine
136
+ if self.engine_version is not None:
137
+ result['engineVersion'] = self.engine_version
138
+ if self.vnet_ip is not None:
139
+ result['vnetIp'] = self.vnet_ip
140
+ if self.domain is not None:
141
+ result['domain'] = self.domain
142
+ if self.port is not None:
143
+ result['port'] = self.port
144
+ if self.instance_create_time is not None:
145
+ result['instanceCreateTime'] = self.instance_create_time
146
+ if self.instance_expire_time is not None:
147
+ result['instanceExpireTime'] = self.instance_expire_time
148
+ if self.capacity is not None:
149
+ result['capacity'] = self.capacity
150
+ if self.used_capacity is not None:
151
+ result['usedCapacity'] = self.used_capacity
152
+ if self.payment_timing is not None:
153
+ result['paymentTiming'] = self.payment_timing
154
+ if self.zone_names is not None:
155
+ result['zoneNames'] = self.zone_names
156
+ if self.order_status is not None:
157
+ result['orderStatus'] = self.order_status
158
+ if self.deploy_id_list is not None:
159
+ result['deployIdList'] = self.deploy_id_list
160
+ return result
161
+
162
+ def from_dict(self, m):
163
+ """
164
+ Populate the model instance from a dictionary.
165
+
166
+ Nested dictionaries are recursively converted to model objects.
167
+
168
+ :param m: Dictionary containing model data
169
+ :type m: dict
170
+
171
+ :return: Self reference for method chaining
172
+ :rtype: InstanceModel
173
+
174
+ :raises TypeError: If input is not a dictionary type
175
+ :raises ValueError: If nested model conversion fails
176
+ """
177
+ m = m or dict()
178
+ if m.get('instanceId') is not None:
179
+ self.instance_id = m.get('instanceId')
180
+ if m.get('instanceName') is not None:
181
+ self.instance_name = m.get('instanceName')
182
+ if m.get('instanceStatus') is not None:
183
+ self.instance_status = m.get('instanceStatus')
184
+ if m.get('isolatedStatus') is not None:
185
+ self.isolated_status = m.get('isolatedStatus')
186
+ if m.get('clusterType') is not None:
187
+ self.cluster_type = m.get('clusterType')
188
+ if m.get('engine') is not None:
189
+ self.engine = m.get('engine')
190
+ if m.get('engineVersion') is not None:
191
+ self.engine_version = m.get('engineVersion')
192
+ if m.get('vnetIp') is not None:
193
+ self.vnet_ip = m.get('vnetIp')
194
+ if m.get('domain') is not None:
195
+ self.domain = m.get('domain')
196
+ if m.get('port') is not None:
197
+ self.port = m.get('port')
198
+ if m.get('instanceCreateTime') is not None:
199
+ self.instance_create_time = m.get('instanceCreateTime')
200
+ if m.get('instanceExpireTime') is not None:
201
+ self.instance_expire_time = m.get('instanceExpireTime')
202
+ if m.get('capacity') is not None:
203
+ self.capacity = m.get('capacity')
204
+ if m.get('usedCapacity') is not None:
205
+ self.used_capacity = m.get('usedCapacity')
206
+ if m.get('paymentTiming') is not None:
207
+ self.payment_timing = m.get('paymentTiming')
208
+ if m.get('zoneNames') is not None:
209
+ self.zone_names = m.get('zoneNames')
210
+ if m.get('orderStatus') is not None:
211
+ self.order_status = m.get('orderStatus')
212
+ if m.get('deployIdList') is not None:
213
+ self.deploy_id_list = m.get('deployIdList')
214
+ return self
@@ -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,76 @@
1
+ Metadata-Version: 2.1
2
+ Name: baiducloud-python-sdk-scs
3
+ Version: 0.0.1
4
+ Summary: Baidu Cloud scsApi 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-scs/ChangeLog.md
12
+ Keywords: baiducloud,scs
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
+ Requires-Dist: pycryptodome (>=3.8.0)
34
+ Requires-Dist: future (>=0.6.0)
35
+ Requires-Dist: six (>=1.4.0)
36
+ Requires-Dist: baiducloud-python-sdk-core (>=0.0.6)
37
+
38
+ English | [简体中文](README-CN.md)
39
+
40
+ ## Baidu Cloud scsApi SDK for Python
41
+
42
+ ## Requirements
43
+
44
+ - Python >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4
45
+
46
+ ## Installation
47
+
48
+ - **Install with pip**
49
+
50
+ 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.
51
+
52
+ ```bash
53
+ # Install the baiducloud_python_sdk_scs
54
+ pip install baiducloud_python_sdk_scs
55
+ ```
56
+
57
+ ## Issues
58
+
59
+ [Opening an Issue](https://github.com/baidubce/baiducloud-python-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
60
+
61
+ ## Usage
62
+
63
+ [Quick Examples](https://github.com/baidubce/baiducloud-python-sdk/blob/master/docs/Usage-EN.md)
64
+
65
+ ## Changelog
66
+
67
+ Detailed changes for each release are documented in the [release notes](./ChangeLog.md).
68
+
69
+ ## References
70
+
71
+ - [Latest Release](https://github.com/baidubce/baiducloud-python-sdk)
72
+
73
+ ## License
74
+
75
+ [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
76
+
@@ -0,0 +1,12 @@
1
+ baiducloud_python_sdk_scs/__init__.py,sha256=bt9sRM9eOkTcWameYewny0-aV2vf83SIg4ollwpBtU0,82
2
+ baiducloud_python_sdk_scs/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ baiducloud_python_sdk_scs/api/scs_client.py,sha256=q4mQMS-J1LLci40I99zu7hURDJmdIGbtm6IEo5GqFuc,3897
4
+ baiducloud_python_sdk_scs/models/__init__.py,sha256=KeNy16IcCMwE1v84n0CAACKACuAelMmny_-y8CfHl2s,183
5
+ baiducloud_python_sdk_scs/models/instance_list_request.py,sha256=0nQ_68ScTyTfZihXWSnxMJI8M7jtSrlVYganpSJR1EA,2233
6
+ baiducloud_python_sdk_scs/models/instance_list_response.py,sha256=JXk0KNWroBNijz48N921LBmJ6iNmF_POPV31NppXCO0,3479
7
+ baiducloud_python_sdk_scs/models/instance_model.py,sha256=1De3l7gFflAk8LTPs_Uo4sjS5h6-3eq3jH5p1Ob9tLM,7810
8
+ baiducloud_python_sdk_scs-0.0.1.dist-info/LICENSE,sha256=vWvFalMLAgEWwNa8irw-tSDlh7k7bl4APjMGE_lGiws,10372
9
+ baiducloud_python_sdk_scs-0.0.1.dist-info/METADATA,sha256=nah-fUdA-mISYv6R98EG4Js8aAZcU1DT1JbstMeWsCg,2646
10
+ baiducloud_python_sdk_scs-0.0.1.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
11
+ baiducloud_python_sdk_scs-0.0.1.dist-info/top_level.txt,sha256=0yier5hrfmzmUDQ4nFr-W-RPdFVykK5pV6DWbasQVfI,26
12
+ baiducloud_python_sdk_scs-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.37.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ baiducloud_python_sdk_scs