syneto_api 0.2.3__tar.gz → 0.2.4__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.
- {syneto_api-0.2.3 → syneto_api-0.2.4}/PKG-INFO +1 -1
- {syneto_api-0.2.3 → syneto_api-0.2.4}/pyproject.toml +1 -1
- {syneto_api-0.2.3 → syneto_api-0.2.4}/setup.py +1 -1
- {syneto_api-0.2.3 → syneto_api-0.2.4}/src/syneto_api/virt_api.py +2 -2
- {syneto_api-0.2.3 → syneto_api-0.2.4}/README.md +0 -0
- {syneto_api-0.2.3 → syneto_api-0.2.4}/src/syneto_api/__init__.py +0 -0
- {syneto_api-0.2.3 → syneto_api-0.2.4}/src/syneto_api/api_client.py +0 -0
- {syneto_api-0.2.3 → syneto_api-0.2.4}/src/syneto_api/auth_api.py +0 -0
- {syneto_api-0.2.3 → syneto_api-0.2.4}/src/syneto_api/protection_api.py +0 -0
- {syneto_api-0.2.3 → syneto_api-0.2.4}/src/syneto_api/settings.py +0 -0
- {syneto_api-0.2.3 → syneto_api-0.2.4}/src/syneto_api/storage_api.py +0 -0
|
@@ -15,7 +15,7 @@ install_requires = \
|
|
|
15
15
|
|
|
16
16
|
setup_kwargs = {
|
|
17
17
|
'name': 'syneto-api',
|
|
18
|
-
'version': '0.2.
|
|
18
|
+
'version': '0.2.4',
|
|
19
19
|
'description': 'Syneto Client API library',
|
|
20
20
|
'long_description': '# Syneto API\n\nSyneto Client API library: authentication, storage, virtualization and protection\n\n# Installation\n\n```\n$ pip install syneto-api\n```\n\n# Basic Usage\n\n```\nfrom syneto_api import Authentication, Virtualization, Storage, Protection\n\nauth_api = Authentication(base_url="https://syneto-instance-ip-address/api/auth", insecure_ssl=True)\nresponse = auth_api.login(username="admin", password="admin")\njwt = response[\'jwt\']\n\nvirt_api = Virtualization(base_url="https://syneto-instance-ip-address/api/virtualization", insecure_ssl=True)\nvirt_api.set_auth_jwt(jwt)\nprint(virt_api.get_vms())\n\nstorage_api = Storage(base_url="https://syneto-instance-ip-address/api/storage", insecure_ssl=True)\nstorage_api.set_auth_jwt(jwt)\nprint(storage_api.get_pools())\n```\n\n# Environment Variables\n\nFor conveninence, the base urls for the api endpoints are also accepted as environment variables, please see below.\n\n```\nAUTH_SERVICE=https://syneto-instance-ip-address/api/auth\nVIRTUALIZATION_SERVICE=https://syneto-instance-ip-address/api/virtualization\nSTORAGE_SERVICE=https://syneto-instance-ip-address/api/storage\nPROTECTION_SERVICE=https://syneto-instance-ip-address/api/protection\n```\n\nIf you are using self-signed SSL certificates, set the following env. so that the http request library does not perform ssl verification. \n\n```\nALLOW_INSECURE_SSL=True\n```\n',
|
|
21
21
|
'author': 'Your Name',
|
|
@@ -25,7 +25,7 @@ class Virtualization(APIClientBase):
|
|
|
25
25
|
|
|
26
26
|
def create_nas_datastore(self, server: str, mountpoint: str, hosts_syn_ids=None):
|
|
27
27
|
return self.post_request(
|
|
28
|
-
"/datastores",
|
|
28
|
+
"/vmware/datastores",
|
|
29
29
|
body={
|
|
30
30
|
"server": server,
|
|
31
31
|
"mountpoint": mountpoint,
|
|
@@ -35,6 +35,6 @@ class Virtualization(APIClientBase):
|
|
|
35
35
|
|
|
36
36
|
def delete_nas_datastore(self, syn_id: str = None, mountpoint: str = None):
|
|
37
37
|
return self.delete_request(
|
|
38
|
-
"/datastores",
|
|
38
|
+
"/vmware/datastores",
|
|
39
39
|
query_args={"datastore_syn_id": syn_id, "datastore_mountpoint": mountpoint},
|
|
40
40
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|