byteplus-python-sdk-v2 3.0.53__py2.py3-none-any.whl → 3.0.54__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.54.dist-info}/METADATA +1 -1
- {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.54.dist-info}/RECORD +38 -27
- {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.54.dist-info}/top_level.txt +1 -0
- byteplussdkclawsentry/__init__.py +24 -0
- byteplussdkclawsentry/api/__init__.py +6 -0
- byteplussdkclawsentry/api/clawsentry_api.py +131 -0
- byteplussdkclawsentry/models/__init__.py +20 -0
- byteplussdkclawsentry/models/base_for_create_claw_input.py +126 -0
- byteplussdkclawsentry/models/create_claw_request.py +251 -0
- byteplussdkclawsentry/models/create_claw_response.py +279 -0
- byteplussdkcore/api_client.py +1 -1
- byteplussdkcore/configuration.py +1 -1
- byteplussdkcore/endpoint/providers/default_provider.py +7 -0
- byteplussdkcore/endpoint/providers/standard_provider.py +1 -0
- byteplussdkcpaas/__init__.py +4 -0
- byteplussdkcpaas/models/__init__.py +4 -0
- byteplussdkcpaas/models/create_template_v2_request.py +27 -1
- byteplussdkcpaas/models/data_for_get_template_v2_output.py +79 -1
- byteplussdkcpaas/models/element_style_for_create_template_v2_input.py +497 -3
- byteplussdkcpaas/models/element_style_for_get_template_v2_output.py +497 -3
- byteplussdkcpaas/models/extend_attrs_for_create_template_v2_input.py +79 -1
- byteplussdkcpaas/models/extend_attrs_for_get_template_v2_output.py +79 -1
- byteplussdkcpaas/models/item_for_create_template_v2_input.py +149 -0
- byteplussdkcpaas/models/item_for_get_template_v2_output.py +149 -0
- byteplussdkcpaas/models/page_dto_list_for_create_template_v2_input.py +29 -3
- byteplussdkcpaas/models/page_dto_list_for_get_template_v2_output.py +29 -3
- byteplussdkcpaas/models/page_element_dto_list_for_create_template_v2_input.py +29 -3
- byteplussdkcpaas/models/page_element_dto_list_for_get_template_v2_output.py +29 -3
- byteplussdkcpaas/models/template_button_list_for_create_template_v2_input.py +227 -0
- byteplussdkcpaas/models/template_button_list_for_get_template_v2_output.py +227 -0
- byteplussdkcpaas/models/template_list_for_create_template_v2_input.py +235 -1
- byteplussdkcpaas/models/template_list_for_get_template_v2_output.py +235 -1
- byteplussdkcpaas/models/template_status_for_list_template_v2_output.py +79 -1
- byteplussdkcpaas/models/variables_dto_list_for_create_template_v2_input.py +27 -1
- byteplussdkcpaas/models/variables_dto_list_for_get_template_v2_output.py +27 -1
- {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.54.dist-info}/WHEEL +0 -0
- {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.54.dist-info}/licenses/LICENSE.txt +0 -0
- {byteplus_python_sdk_v2-3.0.53.dist-info → byteplus_python_sdk_v2-3.0.54.dist-info}/licenses/NOTICE.md +0 -0
|
@@ -34,7 +34,10 @@ class ExtendAttrsForCreateTemplateV2Input(object):
|
|
|
34
34
|
"""
|
|
35
35
|
swagger_types = {
|
|
36
36
|
'coupon_code': 'str',
|
|
37
|
+
'create_from': 'str',
|
|
37
38
|
'phone_number': 'str',
|
|
39
|
+
'phone_type': 'str',
|
|
40
|
+
'terminal_open_type': 'str',
|
|
38
41
|
'variable': 'str',
|
|
39
42
|
'website_url': 'str',
|
|
40
43
|
'website_url_type': 'str'
|
|
@@ -42,20 +45,26 @@ class ExtendAttrsForCreateTemplateV2Input(object):
|
|
|
42
45
|
|
|
43
46
|
attribute_map = {
|
|
44
47
|
'coupon_code': 'CouponCode',
|
|
48
|
+
'create_from': 'CreateFrom',
|
|
45
49
|
'phone_number': 'PhoneNumber',
|
|
50
|
+
'phone_type': 'PhoneType',
|
|
51
|
+
'terminal_open_type': 'TerminalOpenType',
|
|
46
52
|
'variable': 'Variable',
|
|
47
53
|
'website_url': 'WebsiteUrl',
|
|
48
54
|
'website_url_type': 'WebsiteUrlType'
|
|
49
55
|
}
|
|
50
56
|
|
|
51
|
-
def __init__(self, coupon_code=None, phone_number=None, variable=None, website_url=None, website_url_type=None, _configuration=None): # noqa: E501
|
|
57
|
+
def __init__(self, coupon_code=None, create_from=None, phone_number=None, phone_type=None, terminal_open_type=None, variable=None, website_url=None, website_url_type=None, _configuration=None): # noqa: E501
|
|
52
58
|
"""ExtendAttrsForCreateTemplateV2Input - a model defined in Swagger""" # noqa: E501
|
|
53
59
|
if _configuration is None:
|
|
54
60
|
_configuration = Configuration()
|
|
55
61
|
self._configuration = _configuration
|
|
56
62
|
|
|
57
63
|
self._coupon_code = None
|
|
64
|
+
self._create_from = None
|
|
58
65
|
self._phone_number = None
|
|
66
|
+
self._phone_type = None
|
|
67
|
+
self._terminal_open_type = None
|
|
59
68
|
self._variable = None
|
|
60
69
|
self._website_url = None
|
|
61
70
|
self._website_url_type = None
|
|
@@ -63,8 +72,14 @@ class ExtendAttrsForCreateTemplateV2Input(object):
|
|
|
63
72
|
|
|
64
73
|
if coupon_code is not None:
|
|
65
74
|
self.coupon_code = coupon_code
|
|
75
|
+
if create_from is not None:
|
|
76
|
+
self.create_from = create_from
|
|
66
77
|
if phone_number is not None:
|
|
67
78
|
self.phone_number = phone_number
|
|
79
|
+
if phone_type is not None:
|
|
80
|
+
self.phone_type = phone_type
|
|
81
|
+
if terminal_open_type is not None:
|
|
82
|
+
self.terminal_open_type = terminal_open_type
|
|
68
83
|
if variable is not None:
|
|
69
84
|
self.variable = variable
|
|
70
85
|
if website_url is not None:
|
|
@@ -93,6 +108,27 @@ class ExtendAttrsForCreateTemplateV2Input(object):
|
|
|
93
108
|
|
|
94
109
|
self._coupon_code = coupon_code
|
|
95
110
|
|
|
111
|
+
@property
|
|
112
|
+
def create_from(self):
|
|
113
|
+
"""Gets the create_from of this ExtendAttrsForCreateTemplateV2Input. # noqa: E501
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
:return: The create_from of this ExtendAttrsForCreateTemplateV2Input. # noqa: E501
|
|
117
|
+
:rtype: str
|
|
118
|
+
"""
|
|
119
|
+
return self._create_from
|
|
120
|
+
|
|
121
|
+
@create_from.setter
|
|
122
|
+
def create_from(self, create_from):
|
|
123
|
+
"""Sets the create_from of this ExtendAttrsForCreateTemplateV2Input.
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
:param create_from: The create_from of this ExtendAttrsForCreateTemplateV2Input. # noqa: E501
|
|
127
|
+
:type: str
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
self._create_from = create_from
|
|
131
|
+
|
|
96
132
|
@property
|
|
97
133
|
def phone_number(self):
|
|
98
134
|
"""Gets the phone_number of this ExtendAttrsForCreateTemplateV2Input. # noqa: E501
|
|
@@ -114,6 +150,48 @@ class ExtendAttrsForCreateTemplateV2Input(object):
|
|
|
114
150
|
|
|
115
151
|
self._phone_number = phone_number
|
|
116
152
|
|
|
153
|
+
@property
|
|
154
|
+
def phone_type(self):
|
|
155
|
+
"""Gets the phone_type of this ExtendAttrsForCreateTemplateV2Input. # noqa: E501
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
:return: The phone_type of this ExtendAttrsForCreateTemplateV2Input. # noqa: E501
|
|
159
|
+
:rtype: str
|
|
160
|
+
"""
|
|
161
|
+
return self._phone_type
|
|
162
|
+
|
|
163
|
+
@phone_type.setter
|
|
164
|
+
def phone_type(self, phone_type):
|
|
165
|
+
"""Sets the phone_type of this ExtendAttrsForCreateTemplateV2Input.
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
:param phone_type: The phone_type of this ExtendAttrsForCreateTemplateV2Input. # noqa: E501
|
|
169
|
+
:type: str
|
|
170
|
+
"""
|
|
171
|
+
|
|
172
|
+
self._phone_type = phone_type
|
|
173
|
+
|
|
174
|
+
@property
|
|
175
|
+
def terminal_open_type(self):
|
|
176
|
+
"""Gets the terminal_open_type of this ExtendAttrsForCreateTemplateV2Input. # noqa: E501
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
:return: The terminal_open_type of this ExtendAttrsForCreateTemplateV2Input. # noqa: E501
|
|
180
|
+
:rtype: str
|
|
181
|
+
"""
|
|
182
|
+
return self._terminal_open_type
|
|
183
|
+
|
|
184
|
+
@terminal_open_type.setter
|
|
185
|
+
def terminal_open_type(self, terminal_open_type):
|
|
186
|
+
"""Sets the terminal_open_type of this ExtendAttrsForCreateTemplateV2Input.
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
:param terminal_open_type: The terminal_open_type of this ExtendAttrsForCreateTemplateV2Input. # noqa: E501
|
|
190
|
+
:type: str
|
|
191
|
+
"""
|
|
192
|
+
|
|
193
|
+
self._terminal_open_type = terminal_open_type
|
|
194
|
+
|
|
117
195
|
@property
|
|
118
196
|
def variable(self):
|
|
119
197
|
"""Gets the variable of this ExtendAttrsForCreateTemplateV2Input. # noqa: E501
|
|
@@ -34,7 +34,10 @@ class ExtendAttrsForGetTemplateV2Output(object):
|
|
|
34
34
|
"""
|
|
35
35
|
swagger_types = {
|
|
36
36
|
'coupon_code': 'str',
|
|
37
|
+
'create_from': 'str',
|
|
37
38
|
'phone_number': 'str',
|
|
39
|
+
'phone_type': 'str',
|
|
40
|
+
'terminal_open_type': 'str',
|
|
38
41
|
'variable': 'str',
|
|
39
42
|
'website_url': 'str',
|
|
40
43
|
'website_url_type': 'str'
|
|
@@ -42,20 +45,26 @@ class ExtendAttrsForGetTemplateV2Output(object):
|
|
|
42
45
|
|
|
43
46
|
attribute_map = {
|
|
44
47
|
'coupon_code': 'CouponCode',
|
|
48
|
+
'create_from': 'CreateFrom',
|
|
45
49
|
'phone_number': 'PhoneNumber',
|
|
50
|
+
'phone_type': 'PhoneType',
|
|
51
|
+
'terminal_open_type': 'TerminalOpenType',
|
|
46
52
|
'variable': 'Variable',
|
|
47
53
|
'website_url': 'WebsiteUrl',
|
|
48
54
|
'website_url_type': 'WebsiteUrlType'
|
|
49
55
|
}
|
|
50
56
|
|
|
51
|
-
def __init__(self, coupon_code=None, phone_number=None, variable=None, website_url=None, website_url_type=None, _configuration=None): # noqa: E501
|
|
57
|
+
def __init__(self, coupon_code=None, create_from=None, phone_number=None, phone_type=None, terminal_open_type=None, variable=None, website_url=None, website_url_type=None, _configuration=None): # noqa: E501
|
|
52
58
|
"""ExtendAttrsForGetTemplateV2Output - a model defined in Swagger""" # noqa: E501
|
|
53
59
|
if _configuration is None:
|
|
54
60
|
_configuration = Configuration()
|
|
55
61
|
self._configuration = _configuration
|
|
56
62
|
|
|
57
63
|
self._coupon_code = None
|
|
64
|
+
self._create_from = None
|
|
58
65
|
self._phone_number = None
|
|
66
|
+
self._phone_type = None
|
|
67
|
+
self._terminal_open_type = None
|
|
59
68
|
self._variable = None
|
|
60
69
|
self._website_url = None
|
|
61
70
|
self._website_url_type = None
|
|
@@ -63,8 +72,14 @@ class ExtendAttrsForGetTemplateV2Output(object):
|
|
|
63
72
|
|
|
64
73
|
if coupon_code is not None:
|
|
65
74
|
self.coupon_code = coupon_code
|
|
75
|
+
if create_from is not None:
|
|
76
|
+
self.create_from = create_from
|
|
66
77
|
if phone_number is not None:
|
|
67
78
|
self.phone_number = phone_number
|
|
79
|
+
if phone_type is not None:
|
|
80
|
+
self.phone_type = phone_type
|
|
81
|
+
if terminal_open_type is not None:
|
|
82
|
+
self.terminal_open_type = terminal_open_type
|
|
68
83
|
if variable is not None:
|
|
69
84
|
self.variable = variable
|
|
70
85
|
if website_url is not None:
|
|
@@ -93,6 +108,27 @@ class ExtendAttrsForGetTemplateV2Output(object):
|
|
|
93
108
|
|
|
94
109
|
self._coupon_code = coupon_code
|
|
95
110
|
|
|
111
|
+
@property
|
|
112
|
+
def create_from(self):
|
|
113
|
+
"""Gets the create_from of this ExtendAttrsForGetTemplateV2Output. # noqa: E501
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
:return: The create_from of this ExtendAttrsForGetTemplateV2Output. # noqa: E501
|
|
117
|
+
:rtype: str
|
|
118
|
+
"""
|
|
119
|
+
return self._create_from
|
|
120
|
+
|
|
121
|
+
@create_from.setter
|
|
122
|
+
def create_from(self, create_from):
|
|
123
|
+
"""Sets the create_from of this ExtendAttrsForGetTemplateV2Output.
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
:param create_from: The create_from of this ExtendAttrsForGetTemplateV2Output. # noqa: E501
|
|
127
|
+
:type: str
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
self._create_from = create_from
|
|
131
|
+
|
|
96
132
|
@property
|
|
97
133
|
def phone_number(self):
|
|
98
134
|
"""Gets the phone_number of this ExtendAttrsForGetTemplateV2Output. # noqa: E501
|
|
@@ -114,6 +150,48 @@ class ExtendAttrsForGetTemplateV2Output(object):
|
|
|
114
150
|
|
|
115
151
|
self._phone_number = phone_number
|
|
116
152
|
|
|
153
|
+
@property
|
|
154
|
+
def phone_type(self):
|
|
155
|
+
"""Gets the phone_type of this ExtendAttrsForGetTemplateV2Output. # noqa: E501
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
:return: The phone_type of this ExtendAttrsForGetTemplateV2Output. # noqa: E501
|
|
159
|
+
:rtype: str
|
|
160
|
+
"""
|
|
161
|
+
return self._phone_type
|
|
162
|
+
|
|
163
|
+
@phone_type.setter
|
|
164
|
+
def phone_type(self, phone_type):
|
|
165
|
+
"""Sets the phone_type of this ExtendAttrsForGetTemplateV2Output.
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
:param phone_type: The phone_type of this ExtendAttrsForGetTemplateV2Output. # noqa: E501
|
|
169
|
+
:type: str
|
|
170
|
+
"""
|
|
171
|
+
|
|
172
|
+
self._phone_type = phone_type
|
|
173
|
+
|
|
174
|
+
@property
|
|
175
|
+
def terminal_open_type(self):
|
|
176
|
+
"""Gets the terminal_open_type of this ExtendAttrsForGetTemplateV2Output. # noqa: E501
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
:return: The terminal_open_type of this ExtendAttrsForGetTemplateV2Output. # noqa: E501
|
|
180
|
+
:rtype: str
|
|
181
|
+
"""
|
|
182
|
+
return self._terminal_open_type
|
|
183
|
+
|
|
184
|
+
@terminal_open_type.setter
|
|
185
|
+
def terminal_open_type(self, terminal_open_type):
|
|
186
|
+
"""Sets the terminal_open_type of this ExtendAttrsForGetTemplateV2Output.
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
:param terminal_open_type: The terminal_open_type of this ExtendAttrsForGetTemplateV2Output. # noqa: E501
|
|
190
|
+
:type: str
|
|
191
|
+
"""
|
|
192
|
+
|
|
193
|
+
self._terminal_open_type = terminal_open_type
|
|
194
|
+
|
|
117
195
|
@property
|
|
118
196
|
def variable(self):
|
|
119
197
|
"""Gets the variable of this ExtendAttrsForGetTemplateV2Output. # noqa: E501
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
cpaas
|
|
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 byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ItemForCreateTemplateV2Input(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
|
+
'param_left': 'str',
|
|
37
|
+
'param_right': 'str'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'param_left': 'ParamLeft',
|
|
42
|
+
'param_right': 'ParamRight'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, param_left=None, param_right=None, _configuration=None): # noqa: E501
|
|
46
|
+
"""ItemForCreateTemplateV2Input - a model defined in Swagger""" # noqa: E501
|
|
47
|
+
if _configuration is None:
|
|
48
|
+
_configuration = Configuration()
|
|
49
|
+
self._configuration = _configuration
|
|
50
|
+
|
|
51
|
+
self._param_left = None
|
|
52
|
+
self._param_right = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
if param_left is not None:
|
|
56
|
+
self.param_left = param_left
|
|
57
|
+
if param_right is not None:
|
|
58
|
+
self.param_right = param_right
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def param_left(self):
|
|
62
|
+
"""Gets the param_left of this ItemForCreateTemplateV2Input. # noqa: E501
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:return: The param_left of this ItemForCreateTemplateV2Input. # noqa: E501
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._param_left
|
|
69
|
+
|
|
70
|
+
@param_left.setter
|
|
71
|
+
def param_left(self, param_left):
|
|
72
|
+
"""Sets the param_left of this ItemForCreateTemplateV2Input.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:param param_left: The param_left of this ItemForCreateTemplateV2Input. # noqa: E501
|
|
76
|
+
:type: str
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
self._param_left = param_left
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def param_right(self):
|
|
83
|
+
"""Gets the param_right of this ItemForCreateTemplateV2Input. # noqa: E501
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:return: The param_right of this ItemForCreateTemplateV2Input. # noqa: E501
|
|
87
|
+
:rtype: str
|
|
88
|
+
"""
|
|
89
|
+
return self._param_right
|
|
90
|
+
|
|
91
|
+
@param_right.setter
|
|
92
|
+
def param_right(self, param_right):
|
|
93
|
+
"""Sets the param_right of this ItemForCreateTemplateV2Input.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:param param_right: The param_right of this ItemForCreateTemplateV2Input. # noqa: E501
|
|
97
|
+
:type: str
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
self._param_right = param_right
|
|
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(ItemForCreateTemplateV2Input, 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, ItemForCreateTemplateV2Input):
|
|
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, ItemForCreateTemplateV2Input):
|
|
147
|
+
return True
|
|
148
|
+
|
|
149
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
cpaas
|
|
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 byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ItemForGetTemplateV2Output(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
|
+
'param_left': 'str',
|
|
37
|
+
'param_right': 'str'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'param_left': 'ParamLeft',
|
|
42
|
+
'param_right': 'ParamRight'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, param_left=None, param_right=None, _configuration=None): # noqa: E501
|
|
46
|
+
"""ItemForGetTemplateV2Output - a model defined in Swagger""" # noqa: E501
|
|
47
|
+
if _configuration is None:
|
|
48
|
+
_configuration = Configuration()
|
|
49
|
+
self._configuration = _configuration
|
|
50
|
+
|
|
51
|
+
self._param_left = None
|
|
52
|
+
self._param_right = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
if param_left is not None:
|
|
56
|
+
self.param_left = param_left
|
|
57
|
+
if param_right is not None:
|
|
58
|
+
self.param_right = param_right
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def param_left(self):
|
|
62
|
+
"""Gets the param_left of this ItemForGetTemplateV2Output. # noqa: E501
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:return: The param_left of this ItemForGetTemplateV2Output. # noqa: E501
|
|
66
|
+
:rtype: str
|
|
67
|
+
"""
|
|
68
|
+
return self._param_left
|
|
69
|
+
|
|
70
|
+
@param_left.setter
|
|
71
|
+
def param_left(self, param_left):
|
|
72
|
+
"""Sets the param_left of this ItemForGetTemplateV2Output.
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:param param_left: The param_left of this ItemForGetTemplateV2Output. # noqa: E501
|
|
76
|
+
:type: str
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
self._param_left = param_left
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def param_right(self):
|
|
83
|
+
"""Gets the param_right of this ItemForGetTemplateV2Output. # noqa: E501
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
:return: The param_right of this ItemForGetTemplateV2Output. # noqa: E501
|
|
87
|
+
:rtype: str
|
|
88
|
+
"""
|
|
89
|
+
return self._param_right
|
|
90
|
+
|
|
91
|
+
@param_right.setter
|
|
92
|
+
def param_right(self, param_right):
|
|
93
|
+
"""Sets the param_right of this ItemForGetTemplateV2Output.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:param param_right: The param_right of this ItemForGetTemplateV2Output. # noqa: E501
|
|
97
|
+
:type: str
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
self._param_right = param_right
|
|
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(ItemForGetTemplateV2Output, 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, ItemForGetTemplateV2Output):
|
|
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, ItemForGetTemplateV2Output):
|
|
147
|
+
return True
|
|
148
|
+
|
|
149
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -35,16 +35,18 @@ class PageDTOListForCreateTemplateV2Input(object):
|
|
|
35
35
|
swagger_types = {
|
|
36
36
|
'page_element_dto_list': 'list[PageElementDTOListForCreateTemplateV2Input]',
|
|
37
37
|
'page_link_list': 'list[PageLinkListForCreateTemplateV2Input]',
|
|
38
|
-
'page_name': 'str'
|
|
38
|
+
'page_name': 'str',
|
|
39
|
+
'page_type': 'str'
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
attribute_map = {
|
|
42
43
|
'page_element_dto_list': 'PageElementDTOList',
|
|
43
44
|
'page_link_list': 'PageLinkList',
|
|
44
|
-
'page_name': 'PageName'
|
|
45
|
+
'page_name': 'PageName',
|
|
46
|
+
'page_type': 'PageType'
|
|
45
47
|
}
|
|
46
48
|
|
|
47
|
-
def __init__(self, page_element_dto_list=None, page_link_list=None, page_name=None, _configuration=None): # noqa: E501
|
|
49
|
+
def __init__(self, page_element_dto_list=None, page_link_list=None, page_name=None, page_type=None, _configuration=None): # noqa: E501
|
|
48
50
|
"""PageDTOListForCreateTemplateV2Input - a model defined in Swagger""" # noqa: E501
|
|
49
51
|
if _configuration is None:
|
|
50
52
|
_configuration = Configuration()
|
|
@@ -53,6 +55,7 @@ class PageDTOListForCreateTemplateV2Input(object):
|
|
|
53
55
|
self._page_element_dto_list = None
|
|
54
56
|
self._page_link_list = None
|
|
55
57
|
self._page_name = None
|
|
58
|
+
self._page_type = None
|
|
56
59
|
self.discriminator = None
|
|
57
60
|
|
|
58
61
|
if page_element_dto_list is not None:
|
|
@@ -61,6 +64,8 @@ class PageDTOListForCreateTemplateV2Input(object):
|
|
|
61
64
|
self.page_link_list = page_link_list
|
|
62
65
|
if page_name is not None:
|
|
63
66
|
self.page_name = page_name
|
|
67
|
+
if page_type is not None:
|
|
68
|
+
self.page_type = page_type
|
|
64
69
|
|
|
65
70
|
@property
|
|
66
71
|
def page_element_dto_list(self):
|
|
@@ -125,6 +130,27 @@ class PageDTOListForCreateTemplateV2Input(object):
|
|
|
125
130
|
|
|
126
131
|
self._page_name = page_name
|
|
127
132
|
|
|
133
|
+
@property
|
|
134
|
+
def page_type(self):
|
|
135
|
+
"""Gets the page_type of this PageDTOListForCreateTemplateV2Input. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The page_type of this PageDTOListForCreateTemplateV2Input. # noqa: E501
|
|
139
|
+
:rtype: str
|
|
140
|
+
"""
|
|
141
|
+
return self._page_type
|
|
142
|
+
|
|
143
|
+
@page_type.setter
|
|
144
|
+
def page_type(self, page_type):
|
|
145
|
+
"""Sets the page_type of this PageDTOListForCreateTemplateV2Input.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param page_type: The page_type of this PageDTOListForCreateTemplateV2Input. # noqa: E501
|
|
149
|
+
:type: str
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._page_type = page_type
|
|
153
|
+
|
|
128
154
|
def to_dict(self):
|
|
129
155
|
"""Returns the model properties as a dict"""
|
|
130
156
|
result = {}
|
|
@@ -35,16 +35,18 @@ class PageDTOListForGetTemplateV2Output(object):
|
|
|
35
35
|
swagger_types = {
|
|
36
36
|
'page_element_dto_list': 'list[PageElementDTOListForGetTemplateV2Output]',
|
|
37
37
|
'page_link_list': 'list[PageLinkListForGetTemplateV2Output]',
|
|
38
|
-
'page_name': 'str'
|
|
38
|
+
'page_name': 'str',
|
|
39
|
+
'page_type': 'str'
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
attribute_map = {
|
|
42
43
|
'page_element_dto_list': 'PageElementDTOList',
|
|
43
44
|
'page_link_list': 'PageLinkList',
|
|
44
|
-
'page_name': 'PageName'
|
|
45
|
+
'page_name': 'PageName',
|
|
46
|
+
'page_type': 'PageType'
|
|
45
47
|
}
|
|
46
48
|
|
|
47
|
-
def __init__(self, page_element_dto_list=None, page_link_list=None, page_name=None, _configuration=None): # noqa: E501
|
|
49
|
+
def __init__(self, page_element_dto_list=None, page_link_list=None, page_name=None, page_type=None, _configuration=None): # noqa: E501
|
|
48
50
|
"""PageDTOListForGetTemplateV2Output - a model defined in Swagger""" # noqa: E501
|
|
49
51
|
if _configuration is None:
|
|
50
52
|
_configuration = Configuration()
|
|
@@ -53,6 +55,7 @@ class PageDTOListForGetTemplateV2Output(object):
|
|
|
53
55
|
self._page_element_dto_list = None
|
|
54
56
|
self._page_link_list = None
|
|
55
57
|
self._page_name = None
|
|
58
|
+
self._page_type = None
|
|
56
59
|
self.discriminator = None
|
|
57
60
|
|
|
58
61
|
if page_element_dto_list is not None:
|
|
@@ -61,6 +64,8 @@ class PageDTOListForGetTemplateV2Output(object):
|
|
|
61
64
|
self.page_link_list = page_link_list
|
|
62
65
|
if page_name is not None:
|
|
63
66
|
self.page_name = page_name
|
|
67
|
+
if page_type is not None:
|
|
68
|
+
self.page_type = page_type
|
|
64
69
|
|
|
65
70
|
@property
|
|
66
71
|
def page_element_dto_list(self):
|
|
@@ -125,6 +130,27 @@ class PageDTOListForGetTemplateV2Output(object):
|
|
|
125
130
|
|
|
126
131
|
self._page_name = page_name
|
|
127
132
|
|
|
133
|
+
@property
|
|
134
|
+
def page_type(self):
|
|
135
|
+
"""Gets the page_type of this PageDTOListForGetTemplateV2Output. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The page_type of this PageDTOListForGetTemplateV2Output. # noqa: E501
|
|
139
|
+
:rtype: str
|
|
140
|
+
"""
|
|
141
|
+
return self._page_type
|
|
142
|
+
|
|
143
|
+
@page_type.setter
|
|
144
|
+
def page_type(self, page_type):
|
|
145
|
+
"""Sets the page_type of this PageDTOListForGetTemplateV2Output.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param page_type: The page_type of this PageDTOListForGetTemplateV2Output. # noqa: E501
|
|
149
|
+
:type: str
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._page_type = page_type
|
|
153
|
+
|
|
128
154
|
def to_dict(self):
|
|
129
155
|
"""Returns the model properties as a dict"""
|
|
130
156
|
result = {}
|