cloudcix 5.0.6__tar.gz → 5.0.8__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.
- {cloudcix-5.0.6/cloudcix.egg-info → cloudcix-5.0.8}/PKG-INFO +1 -1
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/__init__.py +1 -1
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/compute.py +2 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/client.py +3 -1
- {cloudcix-5.0.6 → cloudcix-5.0.8/cloudcix.egg-info}/PKG-INFO +1 -1
- {cloudcix-5.0.6 → cloudcix-5.0.8}/pyproject.toml +1 -1
- {cloudcix-5.0.6 → cloudcix-5.0.8}/setup.cfg +1 -1
- {cloudcix-5.0.6 → cloudcix-5.0.8}/LICENSE +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/MANIFEST.in +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/README.rst +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/__init__.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/app_manager.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/asset.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/circuit.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/contact.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/contacts.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/dcim.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/documentation.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/financial.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/helpdesk.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/iaas.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/membership.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/otp.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/pat.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/plot.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/reporting.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/repository.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/scheduler.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/scm.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/security.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/support.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/training.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/api/vault.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/auth.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/conf.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/exceptions.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/lock.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/lock_backend.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/rcc/__init__.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/rcc/channel_codes.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/rcc/http.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/rcc/lsh.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/rcc/pylxd_api.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/rcc/response.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/rcc/ssh.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix/utils.py +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix.egg-info/SOURCES.txt +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix.egg-info/dependency_links.txt +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix.egg-info/requires.txt +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/cloudcix.egg-info/top_level.txt +0 -0
- {cloudcix-5.0.6 → cloudcix-5.0.8}/requirements.txt +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""CloudCIX API Module autodoc test"""
|
|
2
|
-
__version__ = '5.0.
|
|
2
|
+
__version__ = '5.0.8'
|
|
@@ -23,6 +23,7 @@ class Compute:
|
|
|
23
23
|
hpc_job = Client(_application_name, 'hpc_job/')
|
|
24
24
|
ip_address = Client(_application_name, 'ip_address/')
|
|
25
25
|
ip_address_group = Client(_application_name, 'ip_address_group/') # Deprecate in 5.1
|
|
26
|
+
metrics = Client(_application_name, 'metrics/')
|
|
26
27
|
network_firewalls = Client(_application_name, 'network/firewalls/')
|
|
27
28
|
network_ip_groups = Client(_application_name, 'network/ip_groups/')
|
|
28
29
|
network_rebuild = Client(_application_name, 'network/rebuild/')
|
|
@@ -36,4 +37,5 @@ class Compute:
|
|
|
36
37
|
run_robot = Client(_application_name, 'run_robot/')
|
|
37
38
|
storage_volumes = Client(_application_name, 'storage/volumes/')
|
|
38
39
|
subnet = Client(_application_name, 'subnet/')
|
|
40
|
+
subnet_space = Client(_application_name, 'subnet_space/{allocation_id}/')
|
|
39
41
|
vm_phantom = Client(_application_name, 'vm_phantom/')
|
|
@@ -72,6 +72,8 @@ class Client:
|
|
|
72
72
|
self.version = version
|
|
73
73
|
self.headers = {'content-type': 'application/json'}
|
|
74
74
|
self.base_url = self._determine_url_for_version()
|
|
75
|
+
self._session = requests.Session()
|
|
76
|
+
self._session.verify = True
|
|
75
77
|
|
|
76
78
|
def __repr__(self):
|
|
77
79
|
"""
|
|
@@ -173,7 +175,7 @@ class Client:
|
|
|
173
175
|
kwargs['data'] = json.dumps(data, cls=cloudcix.utils.JSONEncoder)
|
|
174
176
|
# Send Request
|
|
175
177
|
url = self.prepare_url(pk, client_kwargs)
|
|
176
|
-
response = getattr(
|
|
178
|
+
response = getattr(self._session, method)(url, **kwargs)
|
|
177
179
|
|
|
178
180
|
def _dump():
|
|
179
181
|
# Wrapper to provide custom response.json() decoding function
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|