Skip to content

Commit 10d2bbb

Browse files
author
BitsAdmin
committed
Merge branch 'storage_ebs-Python-2020-04-01-online-706-2024_10_24_14_52_15' into 'integration_2024-11-07_569663187970'
feat: [development task] storage_ebs-706-Python (839199) See merge request iaasng/volcengine-python-sdk!419
2 parents 7de4ca1 + e00deb1 commit 10d2bbb

File tree

6 files changed

+558
-1
lines changed

6 files changed

+558
-1
lines changed

volcenginesdkstorageebs/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from volcenginesdkstorageebs.models.attach_volume_request import AttachVolumeRequest
2525
from volcenginesdkstorageebs.models.attach_volume_response import AttachVolumeResponse
2626
from volcenginesdkstorageebs.models.auto_snapshot_policy_for_describe_auto_snapshot_policy_output import AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput
27+
from volcenginesdkstorageebs.models.baseline_performance_for_describe_volumes_output import BaselinePerformanceForDescribeVolumesOutput
2728
from volcenginesdkstorageebs.models.cancel_auto_snapshot_policy_request import CancelAutoSnapshotPolicyRequest
2829
from volcenginesdkstorageebs.models.cancel_auto_snapshot_policy_response import CancelAutoSnapshotPolicyResponse
2930
from volcenginesdkstorageebs.models.check_user_rsc_permit_request import CheckUserRscPermitRequest
@@ -69,6 +70,7 @@
6970
from volcenginesdkstorageebs.models.error_for_create_tags_output import ErrorForCreateTagsOutput
7071
from volcenginesdkstorageebs.models.extend_volume_request import ExtendVolumeRequest
7172
from volcenginesdkstorageebs.models.extend_volume_response import ExtendVolumeResponse
73+
from volcenginesdkstorageebs.models.extra_performance_for_describe_volumes_output import ExtraPerformanceForDescribeVolumesOutput
7274
from volcenginesdkstorageebs.models.extra_performance_type_for_describe_volume_type_output import ExtraPerformanceTypeForDescribeVolumeTypeOutput
7375
from volcenginesdkstorageebs.models.filter_for_describe_snapshots_input import FilterForDescribeSnapshotsInput
7476
from volcenginesdkstorageebs.models.modify_auto_snapshot_policy_request import ModifyAutoSnapshotPolicyRequest
@@ -107,5 +109,6 @@
107109
from volcenginesdkstorageebs.models.tag_for_describe_snapshots_output import TagForDescribeSnapshotsOutput
108110
from volcenginesdkstorageebs.models.tag_for_describe_volumes_output import TagForDescribeVolumesOutput
109111
from volcenginesdkstorageebs.models.tag_resource_for_describe_tags_output import TagResourceForDescribeTagsOutput
112+
from volcenginesdkstorageebs.models.total_performance_for_describe_volumes_output import TotalPerformanceForDescribeVolumesOutput
110113
from volcenginesdkstorageebs.models.volume_for_describe_volumes_output import VolumeForDescribeVolumesOutput
111114
from volcenginesdkstorageebs.models.volume_type_for_describe_volume_type_output import VolumeTypeForDescribeVolumeTypeOutput

volcenginesdkstorageebs/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from volcenginesdkstorageebs.models.attach_volume_request import AttachVolumeRequest
2121
from volcenginesdkstorageebs.models.attach_volume_response import AttachVolumeResponse
2222
from volcenginesdkstorageebs.models.auto_snapshot_policy_for_describe_auto_snapshot_policy_output import AutoSnapshotPolicyForDescribeAutoSnapshotPolicyOutput
23+
from volcenginesdkstorageebs.models.baseline_performance_for_describe_volumes_output import BaselinePerformanceForDescribeVolumesOutput
2324
from volcenginesdkstorageebs.models.cancel_auto_snapshot_policy_request import CancelAutoSnapshotPolicyRequest
2425
from volcenginesdkstorageebs.models.cancel_auto_snapshot_policy_response import CancelAutoSnapshotPolicyResponse
2526
from volcenginesdkstorageebs.models.check_user_rsc_permit_request import CheckUserRscPermitRequest
@@ -65,6 +66,7 @@
6566
from volcenginesdkstorageebs.models.error_for_create_tags_output import ErrorForCreateTagsOutput
6667
from volcenginesdkstorageebs.models.extend_volume_request import ExtendVolumeRequest
6768
from volcenginesdkstorageebs.models.extend_volume_response import ExtendVolumeResponse
69+
from volcenginesdkstorageebs.models.extra_performance_for_describe_volumes_output import ExtraPerformanceForDescribeVolumesOutput
6870
from volcenginesdkstorageebs.models.extra_performance_type_for_describe_volume_type_output import ExtraPerformanceTypeForDescribeVolumeTypeOutput
6971
from volcenginesdkstorageebs.models.filter_for_describe_snapshots_input import FilterForDescribeSnapshotsInput
7072
from volcenginesdkstorageebs.models.modify_auto_snapshot_policy_request import ModifyAutoSnapshotPolicyRequest
@@ -103,5 +105,6 @@
103105
from volcenginesdkstorageebs.models.tag_for_describe_snapshots_output import TagForDescribeSnapshotsOutput
104106
from volcenginesdkstorageebs.models.tag_for_describe_volumes_output import TagForDescribeVolumesOutput
105107
from volcenginesdkstorageebs.models.tag_resource_for_describe_tags_output import TagResourceForDescribeTagsOutput
108+
from volcenginesdkstorageebs.models.total_performance_for_describe_volumes_output import TotalPerformanceForDescribeVolumesOutput
106109
from volcenginesdkstorageebs.models.volume_for_describe_volumes_output import VolumeForDescribeVolumesOutput
107110
from volcenginesdkstorageebs.models.volume_type_for_describe_volume_type_output import VolumeTypeForDescribeVolumeTypeOutput
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
# coding: utf-8
2+
3+
"""
4+
storage_ebs
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7+
8+
OpenAPI spec version: common-version
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
import pprint
15+
import re # noqa: F401
16+
17+
import six
18+
19+
from volcenginesdkcore.configuration import Configuration
20+
21+
22+
class BaselinePerformanceForDescribeVolumesOutput(object):
23+
"""NOTE: This class is auto generated by the swagger code generator program.
24+
25+
Do not edit the class manually.
26+
"""
27+
28+
"""
29+
Attributes:
30+
swagger_types (dict): The key is attribute name
31+
and the value is attribute type.
32+
attribute_map (dict): The key is attribute name
33+
and the value is json key in definition.
34+
"""
35+
swagger_types = {
36+
'iops': 'int',
37+
'throughput': 'int'
38+
}
39+
40+
attribute_map = {
41+
'iops': 'IOPS',
42+
'throughput': 'Throughput'
43+
}
44+
45+
def __init__(self, iops=None, throughput=None, _configuration=None): # noqa: E501
46+
"""BaselinePerformanceForDescribeVolumesOutput - a model defined in Swagger""" # noqa: E501
47+
if _configuration is None:
48+
_configuration = Configuration()
49+
self._configuration = _configuration
50+
51+
self._iops = None
52+
self._throughput = None
53+
self.discriminator = None
54+
55+
if iops is not None:
56+
self.iops = iops
57+
if throughput is not None:
58+
self.throughput = throughput
59+
60+
@property
61+
def iops(self):
62+
"""Gets the iops of this BaselinePerformanceForDescribeVolumesOutput. # noqa: E501
63+
64+
65+
:return: The iops of this BaselinePerformanceForDescribeVolumesOutput. # noqa: E501
66+
:rtype: int
67+
"""
68+
return self._iops
69+
70+
@iops.setter
71+
def iops(self, iops):
72+
"""Sets the iops of this BaselinePerformanceForDescribeVolumesOutput.
73+
74+
75+
:param iops: The iops of this BaselinePerformanceForDescribeVolumesOutput. # noqa: E501
76+
:type: int
77+
"""
78+
79+
self._iops = iops
80+
81+
@property
82+
def throughput(self):
83+
"""Gets the throughput of this BaselinePerformanceForDescribeVolumesOutput. # noqa: E501
84+
85+
86+
:return: The throughput of this BaselinePerformanceForDescribeVolumesOutput. # noqa: E501
87+
:rtype: int
88+
"""
89+
return self._throughput
90+
91+
@throughput.setter
92+
def throughput(self, throughput):
93+
"""Sets the throughput of this BaselinePerformanceForDescribeVolumesOutput.
94+
95+
96+
:param throughput: The throughput of this BaselinePerformanceForDescribeVolumesOutput. # noqa: E501
97+
:type: int
98+
"""
99+
100+
self._throughput = throughput
101+
102+
def to_dict(self):
103+
"""Returns the model properties as a dict"""
104+
result = {}
105+
106+
for attr, _ in six.iteritems(self.swagger_types):
107+
value = getattr(self, attr)
108+
if isinstance(value, list):
109+
result[attr] = list(map(
110+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
111+
value
112+
))
113+
elif hasattr(value, "to_dict"):
114+
result[attr] = value.to_dict()
115+
elif isinstance(value, dict):
116+
result[attr] = dict(map(
117+
lambda item: (item[0], item[1].to_dict())
118+
if hasattr(item[1], "to_dict") else item,
119+
value.items()
120+
))
121+
else:
122+
result[attr] = value
123+
if issubclass(BaselinePerformanceForDescribeVolumesOutput, dict):
124+
for key, value in self.items():
125+
result[key] = value
126+
127+
return result
128+
129+
def to_str(self):
130+
"""Returns the string representation of the model"""
131+
return pprint.pformat(self.to_dict())
132+
133+
def __repr__(self):
134+
"""For `print` and `pprint`"""
135+
return self.to_str()
136+
137+
def __eq__(self, other):
138+
"""Returns true if both objects are equal"""
139+
if not isinstance(other, BaselinePerformanceForDescribeVolumesOutput):
140+
return False
141+
142+
return self.to_dict() == other.to_dict()
143+
144+
def __ne__(self, other):
145+
"""Returns true if both objects are not equal"""
146+
if not isinstance(other, BaselinePerformanceForDescribeVolumesOutput):
147+
return True
148+
149+
return self.to_dict() != other.to_dict()
Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
# coding: utf-8
2+
3+
"""
4+
storage_ebs
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7+
8+
OpenAPI spec version: common-version
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
import pprint
15+
import re # noqa: F401
16+
17+
import six
18+
19+
from volcenginesdkcore.configuration import Configuration
20+
21+
22+
class ExtraPerformanceForDescribeVolumesOutput(object):
23+
"""NOTE: This class is auto generated by the swagger code generator program.
24+
25+
Do not edit the class manually.
26+
"""
27+
28+
"""
29+
Attributes:
30+
swagger_types (dict): The key is attribute name
31+
and the value is attribute type.
32+
attribute_map (dict): The key is attribute name
33+
and the value is json key in definition.
34+
"""
35+
swagger_types = {
36+
'extra_performance_type_id': 'str',
37+
'iops': 'int',
38+
'throughput': 'int'
39+
}
40+
41+
attribute_map = {
42+
'extra_performance_type_id': 'ExtraPerformanceTypeId',
43+
'iops': 'IOPS',
44+
'throughput': 'Throughput'
45+
}
46+
47+
def __init__(self, extra_performance_type_id=None, iops=None, throughput=None, _configuration=None): # noqa: E501
48+
"""ExtraPerformanceForDescribeVolumesOutput - a model defined in Swagger""" # noqa: E501
49+
if _configuration is None:
50+
_configuration = Configuration()
51+
self._configuration = _configuration
52+
53+
self._extra_performance_type_id = None
54+
self._iops = None
55+
self._throughput = None
56+
self.discriminator = None
57+
58+
if extra_performance_type_id is not None:
59+
self.extra_performance_type_id = extra_performance_type_id
60+
if iops is not None:
61+
self.iops = iops
62+
if throughput is not None:
63+
self.throughput = throughput
64+
65+
@property
66+
def extra_performance_type_id(self):
67+
"""Gets the extra_performance_type_id of this ExtraPerformanceForDescribeVolumesOutput. # noqa: E501
68+
69+
70+
:return: The extra_performance_type_id of this ExtraPerformanceForDescribeVolumesOutput. # noqa: E501
71+
:rtype: str
72+
"""
73+
return self._extra_performance_type_id
74+
75+
@extra_performance_type_id.setter
76+
def extra_performance_type_id(self, extra_performance_type_id):
77+
"""Sets the extra_performance_type_id of this ExtraPerformanceForDescribeVolumesOutput.
78+
79+
80+
:param extra_performance_type_id: The extra_performance_type_id of this ExtraPerformanceForDescribeVolumesOutput. # noqa: E501
81+
:type: str
82+
"""
83+
84+
self._extra_performance_type_id = extra_performance_type_id
85+
86+
@property
87+
def iops(self):
88+
"""Gets the iops of this ExtraPerformanceForDescribeVolumesOutput. # noqa: E501
89+
90+
91+
:return: The iops of this ExtraPerformanceForDescribeVolumesOutput. # noqa: E501
92+
:rtype: int
93+
"""
94+
return self._iops
95+
96+
@iops.setter
97+
def iops(self, iops):
98+
"""Sets the iops of this ExtraPerformanceForDescribeVolumesOutput.
99+
100+
101+
:param iops: The iops of this ExtraPerformanceForDescribeVolumesOutput. # noqa: E501
102+
:type: int
103+
"""
104+
105+
self._iops = iops
106+
107+
@property
108+
def throughput(self):
109+
"""Gets the throughput of this ExtraPerformanceForDescribeVolumesOutput. # noqa: E501
110+
111+
112+
:return: The throughput of this ExtraPerformanceForDescribeVolumesOutput. # noqa: E501
113+
:rtype: int
114+
"""
115+
return self._throughput
116+
117+
@throughput.setter
118+
def throughput(self, throughput):
119+
"""Sets the throughput of this ExtraPerformanceForDescribeVolumesOutput.
120+
121+
122+
:param throughput: The throughput of this ExtraPerformanceForDescribeVolumesOutput. # noqa: E501
123+
:type: int
124+
"""
125+
126+
self._throughput = throughput
127+
128+
def to_dict(self):
129+
"""Returns the model properties as a dict"""
130+
result = {}
131+
132+
for attr, _ in six.iteritems(self.swagger_types):
133+
value = getattr(self, attr)
134+
if isinstance(value, list):
135+
result[attr] = list(map(
136+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
137+
value
138+
))
139+
elif hasattr(value, "to_dict"):
140+
result[attr] = value.to_dict()
141+
elif isinstance(value, dict):
142+
result[attr] = dict(map(
143+
lambda item: (item[0], item[1].to_dict())
144+
if hasattr(item[1], "to_dict") else item,
145+
value.items()
146+
))
147+
else:
148+
result[attr] = value
149+
if issubclass(ExtraPerformanceForDescribeVolumesOutput, dict):
150+
for key, value in self.items():
151+
result[key] = value
152+
153+
return result
154+
155+
def to_str(self):
156+
"""Returns the string representation of the model"""
157+
return pprint.pformat(self.to_dict())
158+
159+
def __repr__(self):
160+
"""For `print` and `pprint`"""
161+
return self.to_str()
162+
163+
def __eq__(self, other):
164+
"""Returns true if both objects are equal"""
165+
if not isinstance(other, ExtraPerformanceForDescribeVolumesOutput):
166+
return False
167+
168+
return self.to_dict() == other.to_dict()
169+
170+
def __ne__(self, other):
171+
"""Returns true if both objects are not equal"""
172+
if not isinstance(other, ExtraPerformanceForDescribeVolumesOutput):
173+
return True
174+
175+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)