datacrunch 1.6.1__py3-none-any.whl → 1.7.0__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.
datacrunch/__version__.py CHANGED
@@ -1 +1 @@
1
- VERSION = '1.6.1'
1
+ VERSION = '1.7.0'
datacrunch/constants.py CHANGED
@@ -13,7 +13,7 @@ class VolumeActions:
13
13
  ATTACH = 'attach'
14
14
  DETACH = 'detach'
15
15
  RENAME = 'rename'
16
- INCREASE_SIZE = 'increase-size'
16
+ INCREASE_SIZE = 'resize'
17
17
  DELETE = 'delete'
18
18
  CLONE = 'clone'
19
19
 
@@ -179,7 +179,21 @@ class Volume:
179
179
  :return: Volume
180
180
  :rtype: Volume
181
181
  """
182
- return cls(**volume_dict)
182
+
183
+ return cls(
184
+ id = volume_dict['id'],
185
+ status = volume_dict['status'],
186
+ name = volume_dict['name'],
187
+ size = volume_dict['size'],
188
+ type = volume_dict['type'],
189
+ is_os_volume = volume_dict['is_os_volume'],
190
+ created_at = volume_dict['created_at'],
191
+ target = volume_dict['target'],
192
+ location = volume_dict['location'],
193
+ instance_id = volume_dict['instance_id'],
194
+ ssh_key_ids = volume_dict['ssh_key_ids'],
195
+ deleted_at = volume_dict.get('deleted_at'),
196
+ )
183
197
 
184
198
  def __str__(self) -> str:
185
199
  """Returns a string of the json representation of the volume
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: datacrunch
3
- Version: 1.6.1
3
+ Version: 1.7.0
4
4
  Summary: Official Python SDK for DataCrunch Public API
5
5
  Home-page: https://github.com/DataCrunch-io
6
6
  Author: DataCrunch Oy
@@ -20,13 +20,13 @@ Classifier: Natural Language :: English
20
20
  Requires-Python: >=3.6
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
- Requires-Dist: requests <3,>=2.25.1
23
+ Requires-Dist: requests<3,>=2.25.1
24
24
  Provides-Extra: dev
25
25
  Provides-Extra: test
26
- Requires-Dist: pytest <7,>=6.2.1 ; extra == 'test'
27
- Requires-Dist: pytest-cov <3,>=2.10.1 ; extra == 'test'
28
- Requires-Dist: pytest-responses <1,>=0.4.0 ; extra == 'test'
29
- Requires-Dist: responses <1,>=0.12.1 ; extra == 'test'
26
+ Requires-Dist: pytest<7,>=6.2.1; extra == "test"
27
+ Requires-Dist: pytest-cov<3,>=2.10.1; extra == "test"
28
+ Requires-Dist: pytest-responses<1,>=0.4.0; extra == "test"
29
+ Requires-Dist: responses<1,>=0.12.1; extra == "test"
30
30
 
31
31
  # DataCrunch Python SDK
32
32
 
@@ -1,6 +1,6 @@
1
1
  datacrunch/__init__.py,sha256=OG-5Avmuq3NXyBs_66GMwyzscUi0c-T6vWW5sRIfnZg,51
2
- datacrunch/__version__.py,sha256=oDluLC_9mfrig_c5jmX2Gi7Ne_JiuThPYb_X-whcYso,18
3
- datacrunch/constants.py,sha256=QxV-xp0fa8Q52idsEknwuexYnXTN9wNlzAjs3mG9ICE,2361
2
+ datacrunch/__version__.py,sha256=QQ5zfyEqpDHVIxQknvlXhMcoyjCpps5a0drNyuuGZO8,18
3
+ datacrunch/constants.py,sha256=uBtS1kTe6ip5oWzA4SKAVftdapkKwUU45GdLYOuBzAA,2354
4
4
  datacrunch/datacrunch.py,sha256=dFSaeh1_xrfAc4lOqu1vGxxUtRpn7BdAbnW2mHKAHgU,2898
5
5
  datacrunch/exceptions.py,sha256=uOP_YU2HEUi_mcMxQ9WYrIjqWUuUrwdube-RdL1C4Ps,781
6
6
  datacrunch/helpers.py,sha256=Eq5htNxpJUCJG9D6QxbnWwch3ppmi2lfi-rFCGXf3fs,634
@@ -25,7 +25,7 @@ datacrunch/startup_scripts/startup_scripts.py,sha256=EnWiuT48uN_soVHpbnDMUQ9kab2
25
25
  datacrunch/volume_types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
26
  datacrunch/volume_types/volume_types.py,sha256=CNJ8kfd_nxmF99x-UAJeku-uN4Gdh-yg15Aa8WGLgWU,1828
27
27
  datacrunch/volumes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
- datacrunch/volumes/volumes.py,sha256=X6vxwp05QHS0iFZbLjYV78NubHvsUiZdoCavpjnMP60,11347
28
+ datacrunch/volumes/volumes.py,sha256=aAH4UIVG-7NehjHu-a_4MGSdZ1jmeApV-kKh-X6TB-s,11908
29
29
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
30
  tests/integration_tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
31
  tests/integration_tests/conftest.py,sha256=PWf6K1G3NoddebmDIy_Pk02dHQrEKfrNxpWwqE8Eqrk,546
@@ -56,8 +56,8 @@ tests/unit_tests/volume_types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
56
56
  tests/unit_tests/volume_types/test_volume_types.py,sha256=vGuC3dWjhQLD8bTYgw_we3dZ6vlUKRmKZbb9yCfhe0w,1386
57
57
  tests/unit_tests/volumes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
58
  tests/unit_tests/volumes/test_volumes.py,sha256=p53eSIHddWKL7U9oLLTnxo849LrJSoi6A5lpWF6ydHs,20672
59
- datacrunch-1.6.1.dist-info/LICENSE,sha256=LkdhbR2MArjDfV8M0dySL5mG_kfzxF2ntMgbJvWGyUQ,1069
60
- datacrunch-1.6.1.dist-info/METADATA,sha256=NVDY7dB3iaiCzSmddGF0S_3AqDiEfpRp-9-E10ypdbI,5941
61
- datacrunch-1.6.1.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
62
- datacrunch-1.6.1.dist-info/top_level.txt,sha256=FvH4EZJkbUxNm-aKx0RjmWwnduAMpfRT13Fo123i7yE,17
63
- datacrunch-1.6.1.dist-info/RECORD,,
59
+ datacrunch-1.7.0.dist-info/LICENSE,sha256=LkdhbR2MArjDfV8M0dySL5mG_kfzxF2ntMgbJvWGyUQ,1069
60
+ datacrunch-1.7.0.dist-info/METADATA,sha256=P9QVlSJlKOssEJARerj90R54NGe-B64LUXM985uT7wg,5932
61
+ datacrunch-1.7.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
62
+ datacrunch-1.7.0.dist-info/top_level.txt,sha256=FvH4EZJkbUxNm-aKx0RjmWwnduAMpfRT13Fo123i7yE,17
63
+ datacrunch-1.7.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: setuptools (75.6.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5