Skip to content

Commit c84dfd5

Browse files
author
BitsAdmin
committed
Merge branch 'ml_platform-Python-2024-07-01-online-1299-2025_06_18_14_32_37' into 'integration_2025-06-26_968729939458'
feat: [development task] ml_platform-1299-Python (1390210) See merge request iaasng/volcengine-python-sdk!688
2 parents a1d5915 + f245701 commit c84dfd5

File tree

68 files changed

+9933
-69
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+9933
-69
lines changed

volcenginesdkmlplatform20240701/__init__.py

Lines changed: 43 additions & 0 deletions
Large diffs are not rendered by default.

volcenginesdkmlplatform20240701/api/ml_platform20240701_api.py

Lines changed: 692 additions & 13 deletions
Large diffs are not rendered by default.

volcenginesdkmlplatform20240701/models/__init__.py

Lines changed: 43 additions & 0 deletions
Large diffs are not rendered by default.
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+
ml_platform20240701
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 AllocatedComputeResourceForListResourceReservationRecordsOutput(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+
'count': 'int',
37+
'instance_type_id': 'str',
38+
'zone_ids': 'list[str]'
39+
}
40+
41+
attribute_map = {
42+
'count': 'Count',
43+
'instance_type_id': 'InstanceTypeId',
44+
'zone_ids': 'ZoneIds'
45+
}
46+
47+
def __init__(self, count=None, instance_type_id=None, zone_ids=None, _configuration=None): # noqa: E501
48+
"""AllocatedComputeResourceForListResourceReservationRecordsOutput - a model defined in Swagger""" # noqa: E501
49+
if _configuration is None:
50+
_configuration = Configuration()
51+
self._configuration = _configuration
52+
53+
self._count = None
54+
self._instance_type_id = None
55+
self._zone_ids = None
56+
self.discriminator = None
57+
58+
if count is not None:
59+
self.count = count
60+
if instance_type_id is not None:
61+
self.instance_type_id = instance_type_id
62+
if zone_ids is not None:
63+
self.zone_ids = zone_ids
64+
65+
@property
66+
def count(self):
67+
"""Gets the count of this AllocatedComputeResourceForListResourceReservationRecordsOutput. # noqa: E501
68+
69+
70+
:return: The count of this AllocatedComputeResourceForListResourceReservationRecordsOutput. # noqa: E501
71+
:rtype: int
72+
"""
73+
return self._count
74+
75+
@count.setter
76+
def count(self, count):
77+
"""Sets the count of this AllocatedComputeResourceForListResourceReservationRecordsOutput.
78+
79+
80+
:param count: The count of this AllocatedComputeResourceForListResourceReservationRecordsOutput. # noqa: E501
81+
:type: int
82+
"""
83+
84+
self._count = count
85+
86+
@property
87+
def instance_type_id(self):
88+
"""Gets the instance_type_id of this AllocatedComputeResourceForListResourceReservationRecordsOutput. # noqa: E501
89+
90+
91+
:return: The instance_type_id of this AllocatedComputeResourceForListResourceReservationRecordsOutput. # noqa: E501
92+
:rtype: str
93+
"""
94+
return self._instance_type_id
95+
96+
@instance_type_id.setter
97+
def instance_type_id(self, instance_type_id):
98+
"""Sets the instance_type_id of this AllocatedComputeResourceForListResourceReservationRecordsOutput.
99+
100+
101+
:param instance_type_id: The instance_type_id of this AllocatedComputeResourceForListResourceReservationRecordsOutput. # noqa: E501
102+
:type: str
103+
"""
104+
105+
self._instance_type_id = instance_type_id
106+
107+
@property
108+
def zone_ids(self):
109+
"""Gets the zone_ids of this AllocatedComputeResourceForListResourceReservationRecordsOutput. # noqa: E501
110+
111+
112+
:return: The zone_ids of this AllocatedComputeResourceForListResourceReservationRecordsOutput. # noqa: E501
113+
:rtype: list[str]
114+
"""
115+
return self._zone_ids
116+
117+
@zone_ids.setter
118+
def zone_ids(self, zone_ids):
119+
"""Sets the zone_ids of this AllocatedComputeResourceForListResourceReservationRecordsOutput.
120+
121+
122+
:param zone_ids: The zone_ids of this AllocatedComputeResourceForListResourceReservationRecordsOutput. # noqa: E501
123+
:type: list[str]
124+
"""
125+
126+
self._zone_ids = zone_ids
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(AllocatedComputeResourceForListResourceReservationRecordsOutput, 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, AllocatedComputeResourceForListResourceReservationRecordsOutput):
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, AllocatedComputeResourceForListResourceReservationRecordsOutput):
173+
return True
174+
175+
return self.to_dict() != other.to_dict()
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
# coding: utf-8
2+
3+
"""
4+
ml_platform20240701
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 CancelResourceReservationPlanRequest(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+
'dry_run': 'bool',
37+
'id': 'str'
38+
}
39+
40+
attribute_map = {
41+
'dry_run': 'DryRun',
42+
'id': 'Id'
43+
}
44+
45+
def __init__(self, dry_run=None, id=None, _configuration=None): # noqa: E501
46+
"""CancelResourceReservationPlanRequest - a model defined in Swagger""" # noqa: E501
47+
if _configuration is None:
48+
_configuration = Configuration()
49+
self._configuration = _configuration
50+
51+
self._dry_run = None
52+
self._id = None
53+
self.discriminator = None
54+
55+
if dry_run is not None:
56+
self.dry_run = dry_run
57+
self.id = id
58+
59+
@property
60+
def dry_run(self):
61+
"""Gets the dry_run of this CancelResourceReservationPlanRequest. # noqa: E501
62+
63+
64+
:return: The dry_run of this CancelResourceReservationPlanRequest. # noqa: E501
65+
:rtype: bool
66+
"""
67+
return self._dry_run
68+
69+
@dry_run.setter
70+
def dry_run(self, dry_run):
71+
"""Sets the dry_run of this CancelResourceReservationPlanRequest.
72+
73+
74+
:param dry_run: The dry_run of this CancelResourceReservationPlanRequest. # noqa: E501
75+
:type: bool
76+
"""
77+
78+
self._dry_run = dry_run
79+
80+
@property
81+
def id(self):
82+
"""Gets the id of this CancelResourceReservationPlanRequest. # noqa: E501
83+
84+
85+
:return: The id of this CancelResourceReservationPlanRequest. # noqa: E501
86+
:rtype: str
87+
"""
88+
return self._id
89+
90+
@id.setter
91+
def id(self, id):
92+
"""Sets the id of this CancelResourceReservationPlanRequest.
93+
94+
95+
:param id: The id of this CancelResourceReservationPlanRequest. # noqa: E501
96+
:type: str
97+
"""
98+
if self._configuration.client_side_validation and id is None:
99+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
100+
101+
self._id = id
102+
103+
def to_dict(self):
104+
"""Returns the model properties as a dict"""
105+
result = {}
106+
107+
for attr, _ in six.iteritems(self.swagger_types):
108+
value = getattr(self, attr)
109+
if isinstance(value, list):
110+
result[attr] = list(map(
111+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
112+
value
113+
))
114+
elif hasattr(value, "to_dict"):
115+
result[attr] = value.to_dict()
116+
elif isinstance(value, dict):
117+
result[attr] = dict(map(
118+
lambda item: (item[0], item[1].to_dict())
119+
if hasattr(item[1], "to_dict") else item,
120+
value.items()
121+
))
122+
else:
123+
result[attr] = value
124+
if issubclass(CancelResourceReservationPlanRequest, dict):
125+
for key, value in self.items():
126+
result[key] = value
127+
128+
return result
129+
130+
def to_str(self):
131+
"""Returns the string representation of the model"""
132+
return pprint.pformat(self.to_dict())
133+
134+
def __repr__(self):
135+
"""For `print` and `pprint`"""
136+
return self.to_str()
137+
138+
def __eq__(self, other):
139+
"""Returns true if both objects are equal"""
140+
if not isinstance(other, CancelResourceReservationPlanRequest):
141+
return False
142+
143+
return self.to_dict() == other.to_dict()
144+
145+
def __ne__(self, other):
146+
"""Returns true if both objects are not equal"""
147+
if not isinstance(other, CancelResourceReservationPlanRequest):
148+
return True
149+
150+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)