Skip to content

Commit 8b9bfa1

Browse files
committed
v3.0.4
1 parent 5e788e8 commit 8b9bfa1

File tree

7 files changed

+8
-9
lines changed

7 files changed

+8
-9
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.3
5+
- Latest build: 3.0.4
66

77
## Installation & Usage
88

docs/Share.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**sharing_nfs_permissions** | **object** | | [optional]
99
**volume** | [**Volume**](Volume.md) | |
1010
**name** | **str** | |
11-
**path** | **str** | |
11+
**path** | **str** | | [optional]
1212
**share_smb** | **bool** | | [optional]
1313
**share_nfs** | **bool** | | [optional]
1414
**share_afp** | **bool** | | [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.3"
15+
__version__ = "3.0.4"
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.3/python'
79+
self.user_agent = 'ELEMENTS-SDK/3.0.4/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.3".\
348+
"SDK Package Version: 3.0.4".\
349349
format(env=sys.platform, pyversion=sys.version)
350350

351351
def get_host_settings(self):

elements_sdk/models/share.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ def __init__(self, id=None, sharing_nfs_permissions=None, volume=None, name=None
9595
self.sharing_nfs_permissions = sharing_nfs_permissions
9696
self.volume = volume
9797
self.name = name
98-
self.path = path
98+
if path is not None:
99+
self.path = path
99100
if share_smb is not None:
100101
self.share_smb = share_smb
101102
if share_nfs is not None:
@@ -227,8 +228,6 @@ def path(self, path):
227228
:param path: The path of this Share. # noqa: E501
228229
:type: str
229230
"""
230-
if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501
231-
raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501
232231
if (self.local_vars_configuration.client_side_validation and
233232
path is not None and len(path) > 255):
234233
raise ValueError("Invalid value for `path`, length must be less than or equal to `255`") # 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.3"
15+
VERSION = "3.0.4"
1616
# To install the library, run the following
1717
#
1818
# python setup.py install

0 commit comments

Comments
 (0)