Skip to content

Commit d67bed2

Browse files
author
BitsAdmin
committed
Merge branch 'livesaas-Python-2023-08-01-online-1336-2025_06_27_15_30_29' into 'integration_2025-07-03_982885029122'
feat: [development task] livesaas-1336-Python (1417579) See merge request iaasng/volcengine-python-sdk!696
2 parents 5be607c + c9dc260 commit d67bed2

File tree

581 files changed

+129683
-0
lines changed

Some content is hidden

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

581 files changed

+129683
-0
lines changed

volcenginesdklivesaas20230801/__init__.py

Lines changed: 598 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from __future__ import absolute_import
2+
3+
# flake8: noqa
4+
5+
# import apis into api package
6+
from volcenginesdklivesaas20230801.api.livesaas20230801_api import LIVESAAS20230801Api

volcenginesdklivesaas20230801/api/livesaas20230801_api.py

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

volcenginesdklivesaas20230801/models/__init__.py

Lines changed: 594 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 253 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,253 @@
1+
# coding: utf-8
2+
3+
"""
4+
livesaas20230801
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 ActivityCouponForCreateActivityCouponsInput(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+
'allow_close_icon': 'bool',
37+
'count': 'int',
38+
'coupon_id': 'int',
39+
'cut_off_time': 'int',
40+
'duration': 'int',
41+
'rule': 'int'
42+
}
43+
44+
attribute_map = {
45+
'allow_close_icon': 'AllowCloseIcon',
46+
'count': 'Count',
47+
'coupon_id': 'CouponId',
48+
'cut_off_time': 'CutOffTime',
49+
'duration': 'Duration',
50+
'rule': 'Rule'
51+
}
52+
53+
def __init__(self, allow_close_icon=None, count=None, coupon_id=None, cut_off_time=None, duration=None, rule=None, _configuration=None): # noqa: E501
54+
"""ActivityCouponForCreateActivityCouponsInput - a model defined in Swagger""" # noqa: E501
55+
if _configuration is None:
56+
_configuration = Configuration()
57+
self._configuration = _configuration
58+
59+
self._allow_close_icon = None
60+
self._count = None
61+
self._coupon_id = None
62+
self._cut_off_time = None
63+
self._duration = None
64+
self._rule = None
65+
self.discriminator = None
66+
67+
if allow_close_icon is not None:
68+
self.allow_close_icon = allow_close_icon
69+
if count is not None:
70+
self.count = count
71+
if coupon_id is not None:
72+
self.coupon_id = coupon_id
73+
if cut_off_time is not None:
74+
self.cut_off_time = cut_off_time
75+
if duration is not None:
76+
self.duration = duration
77+
if rule is not None:
78+
self.rule = rule
79+
80+
@property
81+
def allow_close_icon(self):
82+
"""Gets the allow_close_icon of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
83+
84+
85+
:return: The allow_close_icon of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
86+
:rtype: bool
87+
"""
88+
return self._allow_close_icon
89+
90+
@allow_close_icon.setter
91+
def allow_close_icon(self, allow_close_icon):
92+
"""Sets the allow_close_icon of this ActivityCouponForCreateActivityCouponsInput.
93+
94+
95+
:param allow_close_icon: The allow_close_icon of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
96+
:type: bool
97+
"""
98+
99+
self._allow_close_icon = allow_close_icon
100+
101+
@property
102+
def count(self):
103+
"""Gets the count of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
104+
105+
106+
:return: The count of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
107+
:rtype: int
108+
"""
109+
return self._count
110+
111+
@count.setter
112+
def count(self, count):
113+
"""Sets the count of this ActivityCouponForCreateActivityCouponsInput.
114+
115+
116+
:param count: The count of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
117+
:type: int
118+
"""
119+
120+
self._count = count
121+
122+
@property
123+
def coupon_id(self):
124+
"""Gets the coupon_id of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
125+
126+
127+
:return: The coupon_id of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
128+
:rtype: int
129+
"""
130+
return self._coupon_id
131+
132+
@coupon_id.setter
133+
def coupon_id(self, coupon_id):
134+
"""Sets the coupon_id of this ActivityCouponForCreateActivityCouponsInput.
135+
136+
137+
:param coupon_id: The coupon_id of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
138+
:type: int
139+
"""
140+
141+
self._coupon_id = coupon_id
142+
143+
@property
144+
def cut_off_time(self):
145+
"""Gets the cut_off_time of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
146+
147+
148+
:return: The cut_off_time of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
149+
:rtype: int
150+
"""
151+
return self._cut_off_time
152+
153+
@cut_off_time.setter
154+
def cut_off_time(self, cut_off_time):
155+
"""Sets the cut_off_time of this ActivityCouponForCreateActivityCouponsInput.
156+
157+
158+
:param cut_off_time: The cut_off_time of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
159+
:type: int
160+
"""
161+
162+
self._cut_off_time = cut_off_time
163+
164+
@property
165+
def duration(self):
166+
"""Gets the duration of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
167+
168+
169+
:return: The duration of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
170+
:rtype: int
171+
"""
172+
return self._duration
173+
174+
@duration.setter
175+
def duration(self, duration):
176+
"""Sets the duration of this ActivityCouponForCreateActivityCouponsInput.
177+
178+
179+
:param duration: The duration of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
180+
:type: int
181+
"""
182+
183+
self._duration = duration
184+
185+
@property
186+
def rule(self):
187+
"""Gets the rule of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
188+
189+
190+
:return: The rule of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
191+
:rtype: int
192+
"""
193+
return self._rule
194+
195+
@rule.setter
196+
def rule(self, rule):
197+
"""Sets the rule of this ActivityCouponForCreateActivityCouponsInput.
198+
199+
200+
:param rule: The rule of this ActivityCouponForCreateActivityCouponsInput. # noqa: E501
201+
:type: int
202+
"""
203+
204+
self._rule = rule
205+
206+
def to_dict(self):
207+
"""Returns the model properties as a dict"""
208+
result = {}
209+
210+
for attr, _ in six.iteritems(self.swagger_types):
211+
value = getattr(self, attr)
212+
if isinstance(value, list):
213+
result[attr] = list(map(
214+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
215+
value
216+
))
217+
elif hasattr(value, "to_dict"):
218+
result[attr] = value.to_dict()
219+
elif isinstance(value, dict):
220+
result[attr] = dict(map(
221+
lambda item: (item[0], item[1].to_dict())
222+
if hasattr(item[1], "to_dict") else item,
223+
value.items()
224+
))
225+
else:
226+
result[attr] = value
227+
if issubclass(ActivityCouponForCreateActivityCouponsInput, dict):
228+
for key, value in self.items():
229+
result[key] = value
230+
231+
return result
232+
233+
def to_str(self):
234+
"""Returns the string representation of the model"""
235+
return pprint.pformat(self.to_dict())
236+
237+
def __repr__(self):
238+
"""For `print` and `pprint`"""
239+
return self.to_str()
240+
241+
def __eq__(self, other):
242+
"""Returns true if both objects are equal"""
243+
if not isinstance(other, ActivityCouponForCreateActivityCouponsInput):
244+
return False
245+
246+
return self.to_dict() == other.to_dict()
247+
248+
def __ne__(self, other):
249+
"""Returns true if both objects are not equal"""
250+
if not isinstance(other, ActivityCouponForCreateActivityCouponsInput):
251+
return True
252+
253+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)