Skip to content

Commit

Permalink
bugfix: update unique_logical_size from long to double
Browse files Browse the repository at this point in the history
  • Loading branch information
shenwen.yin authored and Sczlog committed May 30, 2024
1 parent 071939b commit 88554a1
Show file tree
Hide file tree
Showing 16 changed files with 153 additions and 145 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ Python 环境下的 Cloudtower SDK,适用于 2.7 与 3.4 以上版本。
- ### whl

```shell
pip install cloudtower_sdk-2.15.0-py2.py3-none-any.whl
pip install cloudtower_sdk-2.15.1-py2.py3-none-any.whl
```

- ### tar.gz

```shell
tar xvzf cloudtower-sdk-2.15.0.tar.gz
cd cloudtower-sdk-2.15.0
tar xvzf cloudtower-sdk-2.15.1.tar.gz
cd cloudtower-sdk-2.15.1
python setup.py install
```

Expand Down
8 changes: 8 additions & 0 deletions RELEASENOTE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# RELEASE NOTE

## release 日期 2024-05-30

v2.15.1 release (tower version 4.1.0)

### bugfix

- [Vm], [VmVolume], [IscsiLun], [NvmfNameSpace], [NfsInode]: 更新 `unique_logical_size` 类型为 `double`

## release 日期 2024-05-11

v2.15.0 release (tower version 4.1.0)
Expand Down
2 changes: 1 addition & 1 deletion cloudtower/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# flake8: noqa
from __future__ import absolute_import

__version__ = "2.15.0"
__version__ = "2.15.1"

# import apis into sdk package
from cloudtower.api.alert_api import AlertApi
Expand Down
4 changes: 2 additions & 2 deletions cloudtower/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
cloudtower operation API and SDK # noqa: E501
The version of the OpenAPI document: 2.15.0
The version of the OpenAPI document: 2.15.1
Contact: info@smartx.com
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -79,7 +79,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/2.15.0/python'
self.user_agent = 'OpenAPI-Generator/2.15.1/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
4 changes: 2 additions & 2 deletions cloudtower/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 2.15.0\n"\
"SDK Package Version: 2.15.0".\
"Version of the API: 2.15.1\n"\
"SDK Package Version: 2.15.1".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
6 changes: 3 additions & 3 deletions cloudtower/models/iscsi_lun.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class IscsiLun(object):
'stripe_num': 'int',
'stripe_size': 'int',
'thin_provision': 'bool',
'unique_logical_size': 'int',
'unique_logical_size': 'float',
'unique_size': 'int',
'zbs_volume_id': 'str'
}
Expand Down Expand Up @@ -1056,7 +1056,7 @@ def unique_logical_size(self):
:return: The unique_logical_size of this IscsiLun. # noqa: E501
:rtype: int
:rtype: float
"""
return self._unique_logical_size

Expand All @@ -1066,7 +1066,7 @@ def unique_logical_size(self, unique_logical_size):
:param unique_logical_size: The unique_logical_size of this IscsiLun. # noqa: E501
:type unique_logical_size: int
:type unique_logical_size: float
"""

self._unique_logical_size = unique_logical_size
Expand Down
48 changes: 24 additions & 24 deletions cloudtower/models/iscsi_lun_where_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,14 +311,14 @@ class IscsiLunWhereInput(object):
'stripe_size_not_in': 'list[int]',
'thin_provision': 'bool',
'thin_provision_not': 'bool',
'unique_logical_size': 'int',
'unique_logical_size_gt': 'int',
'unique_logical_size_gte': 'int',
'unique_logical_size_in': 'list[int]',
'unique_logical_size_lt': 'int',
'unique_logical_size_lte': 'int',
'unique_logical_size_not': 'int',
'unique_logical_size_not_in': 'list[int]',
'unique_logical_size': 'float',
'unique_logical_size_gt': 'float',
'unique_logical_size_gte': 'float',
'unique_logical_size_in': 'list[float]',
'unique_logical_size_lt': 'float',
'unique_logical_size_lte': 'float',
'unique_logical_size_not': 'float',
'unique_logical_size_not_in': 'list[float]',
'unique_size': 'int',
'unique_size_gt': 'int',
'unique_size_gte': 'int',
Expand Down Expand Up @@ -7313,7 +7313,7 @@ def unique_logical_size(self):
:return: The unique_logical_size of this IscsiLunWhereInput. # noqa: E501
:rtype: int
:rtype: float
"""
return self._unique_logical_size

Expand All @@ -7323,7 +7323,7 @@ def unique_logical_size(self, unique_logical_size):
:param unique_logical_size: The unique_logical_size of this IscsiLunWhereInput. # noqa: E501
:type unique_logical_size: int
:type unique_logical_size: float
"""

self._unique_logical_size = unique_logical_size
Expand All @@ -7334,7 +7334,7 @@ def unique_logical_size_gt(self):
:return: The unique_logical_size_gt of this IscsiLunWhereInput. # noqa: E501
:rtype: int
:rtype: float
"""
return self._unique_logical_size_gt

Expand All @@ -7344,7 +7344,7 @@ def unique_logical_size_gt(self, unique_logical_size_gt):
:param unique_logical_size_gt: The unique_logical_size_gt of this IscsiLunWhereInput. # noqa: E501
:type unique_logical_size_gt: int
:type unique_logical_size_gt: float
"""

self._unique_logical_size_gt = unique_logical_size_gt
Expand All @@ -7355,7 +7355,7 @@ def unique_logical_size_gte(self):
:return: The unique_logical_size_gte of this IscsiLunWhereInput. # noqa: E501
:rtype: int
:rtype: float
"""
return self._unique_logical_size_gte

Expand All @@ -7365,7 +7365,7 @@ def unique_logical_size_gte(self, unique_logical_size_gte):
:param unique_logical_size_gte: The unique_logical_size_gte of this IscsiLunWhereInput. # noqa: E501
:type unique_logical_size_gte: int
:type unique_logical_size_gte: float
"""

self._unique_logical_size_gte = unique_logical_size_gte
Expand All @@ -7376,7 +7376,7 @@ def unique_logical_size_in(self):
:return: The unique_logical_size_in of this IscsiLunWhereInput. # noqa: E501
:rtype: list[int]
:rtype: list[float]
"""
return self._unique_logical_size_in

Expand All @@ -7386,7 +7386,7 @@ def unique_logical_size_in(self, unique_logical_size_in):
:param unique_logical_size_in: The unique_logical_size_in of this IscsiLunWhereInput. # noqa: E501
:type unique_logical_size_in: list[int]
:type unique_logical_size_in: list[float]
"""

self._unique_logical_size_in = unique_logical_size_in
Expand All @@ -7397,7 +7397,7 @@ def unique_logical_size_lt(self):
:return: The unique_logical_size_lt of this IscsiLunWhereInput. # noqa: E501
:rtype: int
:rtype: float
"""
return self._unique_logical_size_lt

Expand All @@ -7407,7 +7407,7 @@ def unique_logical_size_lt(self, unique_logical_size_lt):
:param unique_logical_size_lt: The unique_logical_size_lt of this IscsiLunWhereInput. # noqa: E501
:type unique_logical_size_lt: int
:type unique_logical_size_lt: float
"""

self._unique_logical_size_lt = unique_logical_size_lt
Expand All @@ -7418,7 +7418,7 @@ def unique_logical_size_lte(self):
:return: The unique_logical_size_lte of this IscsiLunWhereInput. # noqa: E501
:rtype: int
:rtype: float
"""
return self._unique_logical_size_lte

Expand All @@ -7428,7 +7428,7 @@ def unique_logical_size_lte(self, unique_logical_size_lte):
:param unique_logical_size_lte: The unique_logical_size_lte of this IscsiLunWhereInput. # noqa: E501
:type unique_logical_size_lte: int
:type unique_logical_size_lte: float
"""

self._unique_logical_size_lte = unique_logical_size_lte
Expand All @@ -7439,7 +7439,7 @@ def unique_logical_size_not(self):
:return: The unique_logical_size_not of this IscsiLunWhereInput. # noqa: E501
:rtype: int
:rtype: float
"""
return self._unique_logical_size_not

Expand All @@ -7449,7 +7449,7 @@ def unique_logical_size_not(self, unique_logical_size_not):
:param unique_logical_size_not: The unique_logical_size_not of this IscsiLunWhereInput. # noqa: E501
:type unique_logical_size_not: int
:type unique_logical_size_not: float
"""

self._unique_logical_size_not = unique_logical_size_not
Expand All @@ -7460,7 +7460,7 @@ def unique_logical_size_not_in(self):
:return: The unique_logical_size_not_in of this IscsiLunWhereInput. # noqa: E501
:rtype: list[int]
:rtype: list[float]
"""
return self._unique_logical_size_not_in

Expand All @@ -7470,7 +7470,7 @@ def unique_logical_size_not_in(self, unique_logical_size_not_in):
:param unique_logical_size_not_in: The unique_logical_size_not_in of this IscsiLunWhereInput. # noqa: E501
:type unique_logical_size_not_in: list[int]
:type unique_logical_size_not_in: list[float]
"""

self._unique_logical_size_not_in = unique_logical_size_not_in
Expand Down
6 changes: 3 additions & 3 deletions cloudtower/models/nfs_inode.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class NfsInode(object):
'parent_id': 'str',
'shared_size': 'int',
'snapshot_num': 'int',
'unique_logical_size': 'int',
'unique_logical_size': 'float',
'unique_size': 'int'
}

Expand Down Expand Up @@ -382,7 +382,7 @@ def unique_logical_size(self):
:return: The unique_logical_size of this NfsInode. # noqa: E501
:rtype: int
:rtype: float
"""
return self._unique_logical_size

Expand All @@ -392,7 +392,7 @@ def unique_logical_size(self, unique_logical_size):
:param unique_logical_size: The unique_logical_size of this NfsInode. # noqa: E501
:type unique_logical_size: int
:type unique_logical_size: float
"""

self._unique_logical_size = unique_logical_size
Expand Down
Loading

0 comments on commit 88554a1

Please sign in to comment.