Skip to content

Commit 5e788e8

Browse files
committed
v3.0.3
1 parent 121dc6f commit 5e788e8

File tree

7 files changed

+63
-6
lines changed

7 files changed

+63
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
- API version: 2
44
- Python 2.7 and 3.4+
5-
- Latest build: 3.0.2
5+
- Latest build: 3.0.3
66

77
## Installation & Usage
88

docs/Volume.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ Name | Type | Description | Notes
77
**id** | **int** | | [optional] [readonly]
88
**name** | **str** | | [optional]
99
**path** | **str** | | [optional] [readonly]
10+
**nodes** | **list[int]** | |
1011
**display_name** | **str** | | [optional]
1112
**visual_tag** | **str** | | [optional]
1213
**is_default** | **bool** | | [optional]
1314
**use_for_homes** | **bool** | | [optional]
1415
**use_for_workspaces** | **bool** | | [optional]
1516
**type** | **str** | | [optional]
1617
**snm_enabled** | **bool** | | [optional]
18+
**snfs_name** | **str** | | [optional]
1719
**simulated_quotas** | **bool** | | [optional]
1820
**fs_properties** | [**FSProperties**](FSProperties.md) | | [optional]
1921
**backend** | [**Backend**](Backend.md) | | [optional]

elements_sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from __future__ import absolute_import
1414

15-
__version__ = "3.0.2"
15+
__version__ = "3.0.3"
1616

1717
# import apis into sdk package
1818
from elements_sdk.api.ai_api import AIApi

elements_sdk/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7676
self.default_headers[header_name] = header_value
7777
self.cookie = cookie
7878
# Set default User-Agent.
79-
self.user_agent = 'ELEMENTS-SDK/3.0.2/python'
79+
self.user_agent = 'ELEMENTS-SDK/3.0.3/python'
8080
self.client_side_validation = configuration.client_side_validation
8181

8282
def __enter__(self):

elements_sdk/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def to_debug_report(self):
345345
"OS: {env}\n"\
346346
"Python Version: {pyversion}\n"\
347347
"Version of the API: 2\n"\
348-
"SDK Package Version: 3.0.2".\
348+
"SDK Package Version: 3.0.3".\
349349
format(env=sys.platform, pyversion=sys.version)
350350

351351
def get_host_settings(self):

elements_sdk/models/volume.py

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ class Volume(object):
3434
'id': 'int',
3535
'name': 'str',
3636
'path': 'str',
37+
'nodes': 'list[int]',
3738
'display_name': 'str',
3839
'visual_tag': 'str',
3940
'is_default': 'bool',
4041
'use_for_homes': 'bool',
4142
'use_for_workspaces': 'bool',
4243
'type': 'str',
4344
'snm_enabled': 'bool',
45+
'snfs_name': 'str',
4446
'simulated_quotas': 'bool',
4547
'fs_properties': 'FSProperties',
4648
'backend': 'Backend'
@@ -50,19 +52,21 @@ class Volume(object):
5052
'id': 'id',
5153
'name': 'name',
5254
'path': 'path',
55+
'nodes': 'nodes',
5356
'display_name': 'display_name',
5457
'visual_tag': 'visual_tag',
5558
'is_default': 'is_default',
5659
'use_for_homes': 'use_for_homes',
5760
'use_for_workspaces': 'use_for_workspaces',
5861
'type': 'type',
5962
'snm_enabled': 'snm_enabled',
63+
'snfs_name': 'snfs_name',
6064
'simulated_quotas': 'simulated_quotas',
6165
'fs_properties': 'fs_properties',
6266
'backend': 'backend'
6367
}
6468

65-
def __init__(self, id=None, name=None, path=None, display_name=None, visual_tag=None, is_default=None, use_for_homes=None, use_for_workspaces=None, type=None, snm_enabled=None, simulated_quotas=None, fs_properties=None, backend=None, local_vars_configuration=None): # noqa: E501
69+
def __init__(self, id=None, name=None, path=None, nodes=None, display_name=None, visual_tag=None, is_default=None, use_for_homes=None, use_for_workspaces=None, type=None, snm_enabled=None, snfs_name=None, simulated_quotas=None, fs_properties=None, backend=None, local_vars_configuration=None): # noqa: E501
6670
"""Volume - a model defined in OpenAPI""" # noqa: E501
6771
if local_vars_configuration is None:
6872
local_vars_configuration = Configuration()
@@ -71,13 +75,15 @@ def __init__(self, id=None, name=None, path=None, display_name=None, visual_tag=
7175
self._id = None
7276
self._name = None
7377
self._path = None
78+
self._nodes = None
7479
self._display_name = None
7580
self._visual_tag = None
7681
self._is_default = None
7782
self._use_for_homes = None
7883
self._use_for_workspaces = None
7984
self._type = None
8085
self._snm_enabled = None
86+
self._snfs_name = None
8187
self._simulated_quotas = None
8288
self._fs_properties = None
8389
self._backend = None
@@ -89,6 +95,7 @@ def __init__(self, id=None, name=None, path=None, display_name=None, visual_tag=
8995
self.name = name
9096
if path is not None:
9197
self.path = path
98+
self.nodes = nodes
9299
if display_name is not None:
93100
self.display_name = display_name
94101
self.visual_tag = visual_tag
@@ -102,6 +109,7 @@ def __init__(self, id=None, name=None, path=None, display_name=None, visual_tag=
102109
self.type = type
103110
if snm_enabled is not None:
104111
self.snm_enabled = snm_enabled
112+
self.snfs_name = snfs_name
105113
if simulated_quotas is not None:
106114
self.simulated_quotas = simulated_quotas
107115
if fs_properties is not None:
@@ -178,6 +186,29 @@ def path(self, path):
178186

179187
self._path = path
180188

189+
@property
190+
def nodes(self):
191+
"""Gets the nodes of this Volume. # noqa: E501
192+
193+
194+
:return: The nodes of this Volume. # noqa: E501
195+
:rtype: list[int]
196+
"""
197+
return self._nodes
198+
199+
@nodes.setter
200+
def nodes(self, nodes):
201+
"""Sets the nodes of this Volume.
202+
203+
204+
:param nodes: The nodes of this Volume. # noqa: E501
205+
:type: list[int]
206+
"""
207+
if self.local_vars_configuration.client_side_validation and nodes is None: # noqa: E501
208+
raise ValueError("Invalid value for `nodes`, must not be `None`") # noqa: E501
209+
210+
self._nodes = nodes
211+
181212
@property
182213
def display_name(self):
183214
"""Gets the display_name of this Volume. # noqa: E501
@@ -340,6 +371,30 @@ def snm_enabled(self, snm_enabled):
340371

341372
self._snm_enabled = snm_enabled
342373

374+
@property
375+
def snfs_name(self):
376+
"""Gets the snfs_name of this Volume. # noqa: E501
377+
378+
379+
:return: The snfs_name of this Volume. # noqa: E501
380+
:rtype: str
381+
"""
382+
return self._snfs_name
383+
384+
@snfs_name.setter
385+
def snfs_name(self, snfs_name):
386+
"""Sets the snfs_name of this Volume.
387+
388+
389+
:param snfs_name: The snfs_name of this Volume. # noqa: E501
390+
:type: str
391+
"""
392+
if (self.local_vars_configuration.client_side_validation and
393+
snfs_name is not None and len(snfs_name) > 255):
394+
raise ValueError("Invalid value for `snfs_name`, length must be less than or equal to `255`") # noqa: E501
395+
396+
self._snfs_name = snfs_name
397+
343398
@property
344399
def simulated_quotas(self):
345400
"""Gets the simulated_quotas of this Volume. # noqa: E501

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from setuptools import setup, find_packages # noqa: H301
1313

1414
NAME = "elements-sdk"
15-
VERSION = "3.0.2"
15+
VERSION = "3.0.3"
1616
# To install the library, run the following
1717
#
1818
# python setup.py install

0 commit comments

Comments
 (0)