Skip to content

Commit

Permalink
bugfix: fix invalid VmVolumeElfSotargePolicyType enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Sczlog committed Jan 9, 2024
1 parent 0870d0d commit c206e94
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 19 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.14.0-py2.py3-none-any.whl
pip install cloudtower_sdk-2.14.1-py2.py3-none-any.whl
```

- ### tar.gz

```shell
tar xvzf cloudtower-sdk-2.14.0.tar.gz
cd cloudtower-sdk-2.14.0
tar xvzf cloudtower-sdk-2.14.1.tar.gz
cd cloudtower-sdk-2.14.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-01-09

v2.14.1 release (tower version 4.0.0)

### bugfix

- [VmVolumeElfStoragePolicyType]\: 修复错误的枚举类型

## release 日期 2024-01-04

v2.14.0 release (tower version 4.0.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.14.0"
__version__ = "2.14.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.14.0
The version of the OpenAPI document: 2.14.1
Contact: [email protected]
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.14.0/python'
self.user_agent = 'OpenAPI-Generator/2.14.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.14.0\n"\
"SDK Package Version: 2.14.0".\
"Version of the API: 2.14.1\n"\
"SDK Package Version: 2.14.1".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion cloudtower/models/vm_volume_elf_storage_policy_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class VmVolumeElfStoragePolicyType(object):
_3_THICK_PROVISION = "REPLICA_3_THICK_PROVISION"
_3_THIN_PROVISION = "REPLICA_3_THIN_PROVISION"

allowable_values = [ELF_CP_REPLICA_2_THICK_PROVISION, ELF_CP_REPLICA_2_THIN_PROVISION, ELF_CP_REPLICA_3_THICK_PROVISION, ELF_CP_REPLICA_3_THIN_PROVISION, REPLICA_1_THICK_PROVISION, REPLICA_1_THIN_PROVISION, REPLICA_2_THICK_PROVISION, REPLICA_2_THIN_PROVISION, REPLICA_3_THICK_PROVISION, REPLICA_3_THIN_PROVISION] # noqa: E501
allowable_values = [ELF_CP_REPLICA_2_THICK_PROVISION, ELF_CP_REPLICA_2_THIN_PROVISION, ELF_CP_REPLICA_3_THICK_PROVISION, ELF_CP_REPLICA_3_THIN_PROVISION, _1_THICK_PROVISION, _1_THIN_PROVISION, _2_THICK_PROVISION, _2_THIN_PROVISION, _3_THICK_PROVISION, _3_THIN_PROVISION] # noqa: E501

"""
Attributes:
Expand Down
20 changes: 10 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# coding: utf-8

"""
CloudTower APIs
cloudtower operation API and SDK # noqa: E501
The version of the OpenAPI document: 2.14.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
"""
CloudTower APIs
cloudtower operation API and SDK # noqa: E501
The version of the OpenAPI document: 2.14.1
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""


import pathlib
from setuptools import setup, find_packages # noqa: H301

NAME = "cloudtower-sdk"
VERSION = "2.14.0"
VERSION = "2.14.1"
# To install the library, run the following
#
# python setup.py install
Expand Down

0 comments on commit c206e94

Please sign in to comment.