syneto_api 0.2.35__tar.gz → 0.2.37__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.35 → syneto_api-0.2.37}/PKG-INFO +1 -1
- {syneto_api-0.2.35 → syneto_api-0.2.37}/pyproject.toml +1 -1
- {syneto_api-0.2.35 → syneto_api-0.2.37}/setup.py +1 -1
- {syneto_api-0.2.35 → syneto_api-0.2.37}/src/syneto_api/api_client.py +1 -1
- {syneto_api-0.2.35 → syneto_api-0.2.37}/src/syneto_api/central_api.py +9 -6
- {syneto_api-0.2.35 → syneto_api-0.2.37}/README.md +0 -0
- {syneto_api-0.2.35 → syneto_api-0.2.37}/src/syneto_api/__init__.py +0 -0
- {syneto_api-0.2.35 → syneto_api-0.2.37}/src/syneto_api/auth_api.py +0 -0
- {syneto_api-0.2.35 → syneto_api-0.2.37}/src/syneto_api/jobs_api.py +0 -0
- {syneto_api-0.2.35 → syneto_api-0.2.37}/src/syneto_api/keyring.py +0 -0
- {syneto_api-0.2.35 → syneto_api-0.2.37}/src/syneto_api/protection_api.py +0 -0
- {syneto_api-0.2.35 → syneto_api-0.2.37}/src/syneto_api/settings.py +0 -0
- {syneto_api-0.2.35 → syneto_api-0.2.37}/src/syneto_api/storage_api.py +0 -0
- {syneto_api-0.2.35 → syneto_api-0.2.37}/src/syneto_api/virt_api.py +0 -0
|
@@ -20,7 +20,7 @@ install_requires = \
|
|
|
20
20
|
|
|
21
21
|
setup_kwargs = {
|
|
22
22
|
'name': 'syneto-api',
|
|
23
|
-
'version': '0.2.
|
|
23
|
+
'version': '0.2.37',
|
|
24
24
|
'description': 'Syneto Client API library',
|
|
25
25
|
'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(url_base="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(url_base="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(url_base="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',
|
|
26
26
|
'author': 'Your Name',
|
|
@@ -17,8 +17,8 @@ class Central(APIClientBase):
|
|
|
17
17
|
}
|
|
18
18
|
return self.post_request("/licensing/activate", body=body)
|
|
19
19
|
|
|
20
|
-
def
|
|
21
|
-
return self.post_request("/
|
|
20
|
+
def sync(self) -> Any:
|
|
21
|
+
return self.post_request("/sync")
|
|
22
22
|
|
|
23
23
|
def is_monitoring_purchased(self) -> Any:
|
|
24
24
|
return self.get_request("/monitoring/is-purchased")
|
|
@@ -26,9 +26,6 @@ class Central(APIClientBase):
|
|
|
26
26
|
def is_monitoring_enabled(self) -> Any:
|
|
27
27
|
return self.get_request("/monitoring/is-enabled")
|
|
28
28
|
|
|
29
|
-
def get_monitoring_endpoints(self) -> Any:
|
|
30
|
-
return self.get_request("/monitoring/endpoints")
|
|
31
|
-
|
|
32
29
|
def enable_monitoring(self) -> Any:
|
|
33
30
|
return self.post_request("/monitoring/enable")
|
|
34
31
|
|
|
@@ -39,4 +36,10 @@ class Central(APIClientBase):
|
|
|
39
36
|
body: Dict = {
|
|
40
37
|
"exporters": exporters,
|
|
41
38
|
}
|
|
42
|
-
return self.post_request("/monitoring/configure", body=body)
|
|
39
|
+
return self.post_request("/monitoring/configure", body=body)
|
|
40
|
+
|
|
41
|
+
def get_external_services(self) -> Any:
|
|
42
|
+
return self.get_request("/external-services")
|
|
43
|
+
|
|
44
|
+
def get_certificates(self) -> Any:
|
|
45
|
+
return self.get_request("/certificates")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|