Skip to content

Commit bb4cd1e

Browse files
author
BitsAdmin
committed
Merge branch 'vke-Python-2022-05-12-online-561-2024_06_25_10_16_11' into 'integration_2024-06-27_307512335362'
feat: [development task] vke-561-Python (706613) See merge request iaasng/volcengine-python-sdk!333
2 parents 902b452 + b9070a4 commit bb4cd1e

5 files changed

+99
-7
lines changed

volcenginesdkvke/models/data_volume_for_create_node_pool_input.py

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,35 +33,68 @@ class DataVolumeForCreateNodePoolInput(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'file_system': 'str',
3637
'mount_point': 'str',
3738
'size': 'int',
3839
'type': 'str'
3940
}
4041

4142
attribute_map = {
43+
'file_system': 'FileSystem',
4244
'mount_point': 'MountPoint',
4345
'size': 'Size',
4446
'type': 'Type'
4547
}
4648

47-
def __init__(self, mount_point=None, size=None, type=None, _configuration=None): # noqa: E501
49+
def __init__(self, file_system=None, mount_point=None, size=None, type=None, _configuration=None): # noqa: E501
4850
"""DataVolumeForCreateNodePoolInput - a model defined in Swagger""" # noqa: E501
4951
if _configuration is None:
5052
_configuration = Configuration()
5153
self._configuration = _configuration
5254

55+
self._file_system = None
5356
self._mount_point = None
5457
self._size = None
5558
self._type = None
5659
self.discriminator = None
5760

61+
if file_system is not None:
62+
self.file_system = file_system
5863
if mount_point is not None:
5964
self.mount_point = mount_point
6065
if size is not None:
6166
self.size = size
6267
if type is not None:
6368
self.type = type
6469

70+
@property
71+
def file_system(self):
72+
"""Gets the file_system of this DataVolumeForCreateNodePoolInput. # noqa: E501
73+
74+
75+
:return: The file_system of this DataVolumeForCreateNodePoolInput. # noqa: E501
76+
:rtype: str
77+
"""
78+
return self._file_system
79+
80+
@file_system.setter
81+
def file_system(self, file_system):
82+
"""Sets the file_system of this DataVolumeForCreateNodePoolInput.
83+
84+
85+
:param file_system: The file_system of this DataVolumeForCreateNodePoolInput. # noqa: E501
86+
:type: str
87+
"""
88+
allowed_values = ["Ext4", "Xfs"] # noqa: E501
89+
if (self._configuration.client_side_validation and
90+
file_system not in allowed_values):
91+
raise ValueError(
92+
"Invalid value for `file_system` ({0}), must be one of {1}" # noqa: E501
93+
.format(file_system, allowed_values)
94+
)
95+
96+
self._file_system = file_system
97+
6598
@property
6699
def mount_point(self):
67100
"""Gets the mount_point of this DataVolumeForCreateNodePoolInput. # noqa: E501
@@ -122,7 +155,7 @@ def type(self, type):
122155
:param type: The type of this DataVolumeForCreateNodePoolInput. # noqa: E501
123156
:type: str
124157
"""
125-
allowed_values = ["ESSD_PL0", "ESSD_FlexPL", "ESSD_PL1", "ESSD", "PTSSD"] # noqa: E501
158+
allowed_values = ["ESSD_PL0", "ESSD_FlexPL"] # noqa: E501
126159
if (self._configuration.client_side_validation and
127160
type not in allowed_values):
128161
raise ValueError(

volcenginesdkvke/models/data_volume_for_list_node_pools_output.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,35 +33,61 @@ class DataVolumeForListNodePoolsOutput(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'file_system': 'str',
3637
'mount_point': 'str',
3738
'size': 'int',
3839
'type': 'str'
3940
}
4041

4142
attribute_map = {
43+
'file_system': 'FileSystem',
4244
'mount_point': 'MountPoint',
4345
'size': 'Size',
4446
'type': 'Type'
4547
}
4648

47-
def __init__(self, mount_point=None, size=None, type=None, _configuration=None): # noqa: E501
49+
def __init__(self, file_system=None, mount_point=None, size=None, type=None, _configuration=None): # noqa: E501
4850
"""DataVolumeForListNodePoolsOutput - a model defined in Swagger""" # noqa: E501
4951
if _configuration is None:
5052
_configuration = Configuration()
5153
self._configuration = _configuration
5254

55+
self._file_system = None
5356
self._mount_point = None
5457
self._size = None
5558
self._type = None
5659
self.discriminator = None
5760

61+
if file_system is not None:
62+
self.file_system = file_system
5863
if mount_point is not None:
5964
self.mount_point = mount_point
6065
if size is not None:
6166
self.size = size
6267
if type is not None:
6368
self.type = type
6469

70+
@property
71+
def file_system(self):
72+
"""Gets the file_system of this DataVolumeForListNodePoolsOutput. # noqa: E501
73+
74+
75+
:return: The file_system of this DataVolumeForListNodePoolsOutput. # noqa: E501
76+
:rtype: str
77+
"""
78+
return self._file_system
79+
80+
@file_system.setter
81+
def file_system(self, file_system):
82+
"""Sets the file_system of this DataVolumeForListNodePoolsOutput.
83+
84+
85+
:param file_system: The file_system of this DataVolumeForListNodePoolsOutput. # noqa: E501
86+
:type: str
87+
"""
88+
89+
self._file_system = file_system
90+
6591
@property
6692
def mount_point(self):
6793
"""Gets the mount_point of this DataVolumeForListNodePoolsOutput. # noqa: E501

volcenginesdkvke/models/data_volume_for_update_node_pool_config_input.py

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,35 +33,68 @@ class DataVolumeForUpdateNodePoolConfigInput(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36+
'file_system': 'str',
3637
'mount_point': 'str',
3738
'size': 'int',
3839
'type': 'str'
3940
}
4041

4142
attribute_map = {
43+
'file_system': 'FileSystem',
4244
'mount_point': 'MountPoint',
4345
'size': 'Size',
4446
'type': 'Type'
4547
}
4648

47-
def __init__(self, mount_point=None, size=None, type=None, _configuration=None): # noqa: E501
49+
def __init__(self, file_system=None, mount_point=None, size=None, type=None, _configuration=None): # noqa: E501
4850
"""DataVolumeForUpdateNodePoolConfigInput - a model defined in Swagger""" # noqa: E501
4951
if _configuration is None:
5052
_configuration = Configuration()
5153
self._configuration = _configuration
5254

55+
self._file_system = None
5356
self._mount_point = None
5457
self._size = None
5558
self._type = None
5659
self.discriminator = None
5760

61+
if file_system is not None:
62+
self.file_system = file_system
5863
if mount_point is not None:
5964
self.mount_point = mount_point
6065
if size is not None:
6166
self.size = size
6267
if type is not None:
6368
self.type = type
6469

70+
@property
71+
def file_system(self):
72+
"""Gets the file_system of this DataVolumeForUpdateNodePoolConfigInput. # noqa: E501
73+
74+
75+
:return: The file_system of this DataVolumeForUpdateNodePoolConfigInput. # noqa: E501
76+
:rtype: str
77+
"""
78+
return self._file_system
79+
80+
@file_system.setter
81+
def file_system(self, file_system):
82+
"""Sets the file_system of this DataVolumeForUpdateNodePoolConfigInput.
83+
84+
85+
:param file_system: The file_system of this DataVolumeForUpdateNodePoolConfigInput. # noqa: E501
86+
:type: str
87+
"""
88+
allowed_values = ["Ext4", "Xfs"] # noqa: E501
89+
if (self._configuration.client_side_validation and
90+
file_system not in allowed_values):
91+
raise ValueError(
92+
"Invalid value for `file_system` ({0}), must be one of {1}" # noqa: E501
93+
.format(file_system, allowed_values)
94+
)
95+
96+
self._file_system = file_system
97+
6598
@property
6699
def mount_point(self):
67100
"""Gets the mount_point of this DataVolumeForUpdateNodePoolConfigInput. # noqa: E501
@@ -122,7 +155,7 @@ def type(self, type):
122155
:param type: The type of this DataVolumeForUpdateNodePoolConfigInput. # noqa: E501
123156
:type: str
124157
"""
125-
allowed_values = ["ESSD_PL0", "ESSD_FlexPL", "ESSD_PL1", "ESSD", "PTSSD"] # noqa: E501
158+
allowed_values = ["ESSD_PL0", "ESSD_FlexPL"] # noqa: E501
126159
if (self._configuration.client_side_validation and
127160
type not in allowed_values):
128161
raise ValueError(

volcenginesdkvke/models/system_volume_for_create_node_pool_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def type(self, type):
9696
:param type: The type of this SystemVolumeForCreateNodePoolInput. # noqa: E501
9797
:type: str
9898
"""
99-
allowed_values = ["ESSD_PL0", "ESSD_FlexPL", "ESSD_PL1", "ESSD", "PTSSD"] # noqa: E501
99+
allowed_values = ["ESSD_PL0", "ESSD_FlexPL"] # noqa: E501
100100
if (self._configuration.client_side_validation and
101101
type not in allowed_values):
102102
raise ValueError(

volcenginesdkvke/models/system_volume_for_update_node_pool_config_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def type(self, type):
9696
:param type: The type of this SystemVolumeForUpdateNodePoolConfigInput. # noqa: E501
9797
:type: str
9898
"""
99-
allowed_values = ["ESSD_PL0", "ESSD_FlexPL", "ESSD_PL1", "ESSD", "PTSSD"] # noqa: E501
99+
allowed_values = ["ESSD_PL0", "ESSD_FlexPL"] # noqa: E501
100100
if (self._configuration.client_side_validation and
101101
type not in allowed_values):
102102
raise ValueError(

0 commit comments

Comments
 (0)