bce-python-sdk 0.9.22__py3-none-any.whl → 0.9.23__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.
- baidubce/__init__.py +1 -1
- baidubce/services/vca/vca_client.py +26 -0
- {bce_python_sdk-0.9.22.dist-info → bce_python_sdk-0.9.23.dist-info}/METADATA +1 -1
- {bce_python_sdk-0.9.22.dist-info → bce_python_sdk-0.9.23.dist-info}/RECORD +6 -6
- {bce_python_sdk-0.9.22.dist-info → bce_python_sdk-0.9.23.dist-info}/WHEEL +1 -1
- {bce_python_sdk-0.9.22.dist-info → bce_python_sdk-0.9.23.dist-info}/top_level.txt +0 -0
baidubce/__init__.py
CHANGED
|
@@ -39,6 +39,32 @@ class VcaClient(BceBaseClient):
|
|
|
39
39
|
def __init__(self, config=None):
|
|
40
40
|
BceBaseClient.__init__(self, config)
|
|
41
41
|
|
|
42
|
+
@required(source=(bytes, str))
|
|
43
|
+
def get_image_abstract(self, source):
|
|
44
|
+
"""
|
|
45
|
+
Get image abstract analyze result
|
|
46
|
+
:param source: image source
|
|
47
|
+
:type source: string or unicode
|
|
48
|
+
:return: **Http Response**
|
|
49
|
+
"""
|
|
50
|
+
return self._send_request(http_methods.GET, b'/v1/abstract',
|
|
51
|
+
params={b'source': source})
|
|
52
|
+
|
|
53
|
+
@required(source=(bytes, str))
|
|
54
|
+
def put_image_abstract(self, source):
|
|
55
|
+
"""
|
|
56
|
+
Analyze a image abstract sync.
|
|
57
|
+
:param source: image source
|
|
58
|
+
:type source: string or unicode
|
|
59
|
+
:param preset: analyze preset name
|
|
60
|
+
:type preset: string or unicode
|
|
61
|
+
:return: **Http Response**
|
|
62
|
+
"""
|
|
63
|
+
body = {
|
|
64
|
+
'source': source
|
|
65
|
+
}
|
|
66
|
+
return self._send_request(http_methods.PUT, b'/v1/abstract', body=json.dumps(body))
|
|
67
|
+
|
|
42
68
|
@required(source=(bytes, str))
|
|
43
69
|
def put_image(self, source, preset=None):
|
|
44
70
|
"""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
baidubce/__init__.py,sha256
|
|
1
|
+
baidubce/__init__.py,sha256=BWzUTNSVoR0JLIYRRDFhWMr7lwE8uVWK20N8pJjPLsY,813
|
|
2
2
|
baidubce/bce_base_client.py,sha256=7gjkRy_YlTTb6TXHYHyZRYMjdVO7FTtHMdwXx8bPgsE,3428
|
|
3
3
|
baidubce/bce_client_configuration.py,sha256=84xv1Hsi_6ddqZlU8Mde7JQHOl-zWNWX7CObPsorDbQ,3157
|
|
4
4
|
baidubce/bce_response.py,sha256=V5a3bgRj04cM3Ml3s1OByLyZZSGDUy9PL52JSugmCgM,1655
|
|
@@ -155,7 +155,7 @@ baidubce/services/tsdb/tsdb_admin_client.py,sha256=Gs4ltGvtm17jhc02xmVTNLghj6iQc
|
|
|
155
155
|
baidubce/services/tsdb/tsdb_client.py,sha256=Meg0mko2E5KgkZCd8vJWH7NAoMGWst3XqlxeiGIYZK4,9337
|
|
156
156
|
baidubce/services/tsdb/tsdb_handler.py,sha256=N3_4d0n_shI1AqXI7E5vVbieoPH_afFVD479Rxsi5us,1744
|
|
157
157
|
baidubce/services/vca/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
158
|
-
baidubce/services/vca/vca_client.py,sha256=
|
|
158
|
+
baidubce/services/vca/vca_client.py,sha256=9admQNqJQSrbElMYkl_4ZCjZHNgVyEjIqwXV8wtP69w,6493
|
|
159
159
|
baidubce/services/vcr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
160
160
|
baidubce/services/vcr/vcr_client.py,sha256=nOyjO-UIAz8xxoMVTEhaWhmBnRHWfrArynMVmNoJkwY,13004
|
|
161
161
|
baidubce/services/vpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -168,7 +168,7 @@ baidubce/services/vpc/vpc_client.py,sha256=6HD-TIxmNPujzIVc37Z9OOp_JUOoITUPzTwjm
|
|
|
168
168
|
baidubce/services/vpn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
169
169
|
baidubce/services/vpn/vpn_client.py,sha256=VGmPmnl7Il_NcbGMAgASmVK_1IF9HQ8PJ-WLij-7Axc,28554
|
|
170
170
|
baidubce/services/vpn/vpn_model.py,sha256=r9V2At9ll9cZTOryGflS9tH9DlHdeelKYuGXvTNyTgg,3364
|
|
171
|
-
bce_python_sdk-0.9.
|
|
172
|
-
bce_python_sdk-0.9.
|
|
173
|
-
bce_python_sdk-0.9.
|
|
174
|
-
bce_python_sdk-0.9.
|
|
171
|
+
bce_python_sdk-0.9.23.dist-info/METADATA,sha256=8sK3yLnNVSImeZ3Mx8bugMmJYpYDurBcRDnkKhnE3m4,319
|
|
172
|
+
bce_python_sdk-0.9.23.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
173
|
+
bce_python_sdk-0.9.23.dist-info/top_level.txt,sha256=Oh6eo_-T_AuEDpIaR54biUUPThxsoQiYMVHLBTaweQs,9
|
|
174
|
+
bce_python_sdk-0.9.23.dist-info/RECORD,,
|
|
File without changes
|