huaweicloudsdkoctopus 3.1.155__py2.py3-none-any.whl → 3.1.156__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.
- huaweicloudsdkoctopus/v2/__init__.py +72 -0
- huaweicloudsdkoctopus/v2/model/__init__.py +72 -0
- huaweicloudsdkoctopus/v2/model/alg_image_create_srlz.py +350 -0
- huaweicloudsdkoctopus/v2/model/alg_image_list_srlz.py +266 -0
- huaweicloudsdkoctopus/v2/model/algorithm_create_srlz.py +399 -0
- huaweicloudsdkoctopus/v2/model/algorithm_list_srlz.py +266 -0
- huaweicloudsdkoctopus/v2/model/batch_config_abc_info_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/batch_config_evaluation_info_srlz.py +142 -0
- huaweicloudsdkoctopus/v2/model/batch_config_image_info_srlz.py +198 -0
- huaweicloudsdkoctopus/v2/model/batch_config_msg_notify_srlz.py +115 -0
- huaweicloudsdkoctopus/v2/model/batch_config_scenario_srlz.py +173 -0
- huaweicloudsdkoctopus/v2/model/batch_config_srlz.py +806 -0
- huaweicloudsdkoctopus/v2/model/batch_srlz.py +604 -0
- huaweicloudsdkoctopus/v2/model/build_create_srlz.py +115 -0
- huaweicloudsdkoctopus/v2/model/build_update_srlz.py +143 -0
- huaweicloudsdkoctopus/v2/model/category_f62_enum.py +89 -0
- huaweicloudsdkoctopus/v2/model/compilation_create_srlz.py +255 -0
- huaweicloudsdkoctopus/v2/model/compilation_update_srlz.py +311 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_response.py +361 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithms_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_algorithms_response.py +404 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_response.py +819 -0
- huaweicloudsdkoctopus/v2/model/create_sim_extensions_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_extensions_response.py +314 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batches_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_batches_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_extensions_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/delete_sim_extensions_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/extension_srlz.py +353 -0
- huaweicloudsdkoctopus/v2/model/extensions_create_srlz.py +306 -0
- huaweicloudsdkoctopus/v2/model/extensions_list_srlz.py +291 -0
- huaweicloudsdkoctopus/v2/model/file_nested_srlz.py +279 -0
- huaweicloudsdkoctopus/v2/model/file_retrieve_srlz.py +310 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_request.py +339 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithms_request.py +281 -0
- huaweicloudsdkoctopus/v2/model/list_sim_algorithms_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_request.py +625 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batches_request.py +426 -0
- huaweicloudsdkoctopus/v2/model/list_sim_batches_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/list_sim_extensions_request.py +202 -0
- huaweicloudsdkoctopus/v2/model/list_sim_extensions_response.py +185 -0
- huaweicloudsdkoctopus/v2/model/patched_alg_image_update_srlz.py +302 -0
- huaweicloudsdkoctopus/v2/model/patched_algorithm_update_srlz.py +796 -0
- huaweicloudsdkoctopus/v2/model/record_mode_enum.py +88 -0
- huaweicloudsdkoctopus/v2/model/run_image_status_enum.py +91 -0
- huaweicloudsdkoctopus/v2/model/run_srlz.py +254 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_response.py +361 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_algorithm_response.py +377 -0
- huaweicloudsdkoctopus/v2/model/show_sim_batch_config_request.py +114 -0
- huaweicloudsdkoctopus/v2/model/show_sim_batch_config_response.py +819 -0
- huaweicloudsdkoctopus/v2/model/show_sim_extension_request.py +110 -0
- huaweicloudsdkoctopus/v2/model/show_sim_extension_response.py +353 -0
- huaweicloudsdkoctopus/v2/model/status6a7_enum.py +106 -0
- huaweicloudsdkoctopus/v2/model/type87e_enum.py +88 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_response.py +303 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithms_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_algorithms_response.py +431 -0
- huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_request.py +138 -0
- huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_response.py +85 -0
- huaweicloudsdkoctopus/v2/model/update_sim_extensions_request.py +139 -0
- huaweicloudsdkoctopus/v2/model/update_sim_extensions_response.py +356 -0
- huaweicloudsdkoctopus/v2/octopus_async_client.py +1679 -150
- huaweicloudsdkoctopus/v2/octopus_client.py +1679 -150
- {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.156.dist-info}/METADATA +2 -2
- huaweicloudsdkoctopus-3.1.156.dist-info/RECORD +126 -0
- huaweicloudsdkoctopus-3.1.155.dist-info/RECORD +0 -54
- {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.156.dist-info}/LICENSE +0 -0
- {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.156.dist-info}/WHEEL +0 -0
- {huaweicloudsdkoctopus-3.1.155.dist-info → huaweicloudsdkoctopus-3.1.156.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,185 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ListSimBatchConfigsResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'count': 'int',
|
22
|
+
'next': 'str',
|
23
|
+
'previous': 'str',
|
24
|
+
'results': 'list[BatchConfigSrlz]'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'count': 'count',
|
29
|
+
'next': 'next',
|
30
|
+
'previous': 'previous',
|
31
|
+
'results': 'results'
|
32
|
+
}
|
33
|
+
|
34
|
+
def __init__(self, count=None, next=None, previous=None, results=None):
|
35
|
+
r"""ListSimBatchConfigsResponse
|
36
|
+
|
37
|
+
The model defined in huaweicloud sdk
|
38
|
+
|
39
|
+
:param count:
|
40
|
+
:type count: int
|
41
|
+
:param next:
|
42
|
+
:type next: str
|
43
|
+
:param previous:
|
44
|
+
:type previous: str
|
45
|
+
:param results:
|
46
|
+
:type results: list[:class:`huaweicloudsdkoctopus.v2.BatchConfigSrlz`]
|
47
|
+
"""
|
48
|
+
|
49
|
+
super(ListSimBatchConfigsResponse, self).__init__()
|
50
|
+
|
51
|
+
self._count = None
|
52
|
+
self._next = None
|
53
|
+
self._previous = None
|
54
|
+
self._results = None
|
55
|
+
self.discriminator = None
|
56
|
+
|
57
|
+
if count is not None:
|
58
|
+
self.count = count
|
59
|
+
self.next = next
|
60
|
+
self.previous = previous
|
61
|
+
if results is not None:
|
62
|
+
self.results = results
|
63
|
+
|
64
|
+
@property
|
65
|
+
def count(self):
|
66
|
+
r"""Gets the count of this ListSimBatchConfigsResponse.
|
67
|
+
|
68
|
+
:return: The count of this ListSimBatchConfigsResponse.
|
69
|
+
:rtype: int
|
70
|
+
"""
|
71
|
+
return self._count
|
72
|
+
|
73
|
+
@count.setter
|
74
|
+
def count(self, count):
|
75
|
+
r"""Sets the count of this ListSimBatchConfigsResponse.
|
76
|
+
|
77
|
+
:param count: The count of this ListSimBatchConfigsResponse.
|
78
|
+
:type count: int
|
79
|
+
"""
|
80
|
+
self._count = count
|
81
|
+
|
82
|
+
@property
|
83
|
+
def next(self):
|
84
|
+
r"""Gets the next of this ListSimBatchConfigsResponse.
|
85
|
+
|
86
|
+
:return: The next of this ListSimBatchConfigsResponse.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._next
|
90
|
+
|
91
|
+
@next.setter
|
92
|
+
def next(self, next):
|
93
|
+
r"""Sets the next of this ListSimBatchConfigsResponse.
|
94
|
+
|
95
|
+
:param next: The next of this ListSimBatchConfigsResponse.
|
96
|
+
:type next: str
|
97
|
+
"""
|
98
|
+
self._next = next
|
99
|
+
|
100
|
+
@property
|
101
|
+
def previous(self):
|
102
|
+
r"""Gets the previous of this ListSimBatchConfigsResponse.
|
103
|
+
|
104
|
+
:return: The previous of this ListSimBatchConfigsResponse.
|
105
|
+
:rtype: str
|
106
|
+
"""
|
107
|
+
return self._previous
|
108
|
+
|
109
|
+
@previous.setter
|
110
|
+
def previous(self, previous):
|
111
|
+
r"""Sets the previous of this ListSimBatchConfigsResponse.
|
112
|
+
|
113
|
+
:param previous: The previous of this ListSimBatchConfigsResponse.
|
114
|
+
:type previous: str
|
115
|
+
"""
|
116
|
+
self._previous = previous
|
117
|
+
|
118
|
+
@property
|
119
|
+
def results(self):
|
120
|
+
r"""Gets the results of this ListSimBatchConfigsResponse.
|
121
|
+
|
122
|
+
:return: The results of this ListSimBatchConfigsResponse.
|
123
|
+
:rtype: list[:class:`huaweicloudsdkoctopus.v2.BatchConfigSrlz`]
|
124
|
+
"""
|
125
|
+
return self._results
|
126
|
+
|
127
|
+
@results.setter
|
128
|
+
def results(self, results):
|
129
|
+
r"""Sets the results of this ListSimBatchConfigsResponse.
|
130
|
+
|
131
|
+
:param results: The results of this ListSimBatchConfigsResponse.
|
132
|
+
:type results: list[:class:`huaweicloudsdkoctopus.v2.BatchConfigSrlz`]
|
133
|
+
"""
|
134
|
+
self._results = results
|
135
|
+
|
136
|
+
def to_dict(self):
|
137
|
+
"""Returns the model properties as a dict"""
|
138
|
+
result = {}
|
139
|
+
|
140
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
141
|
+
value = getattr(self, attr)
|
142
|
+
if isinstance(value, list):
|
143
|
+
result[attr] = list(map(
|
144
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
145
|
+
value
|
146
|
+
))
|
147
|
+
elif hasattr(value, "to_dict"):
|
148
|
+
result[attr] = value.to_dict()
|
149
|
+
elif isinstance(value, dict):
|
150
|
+
result[attr] = dict(map(
|
151
|
+
lambda item: (item[0], item[1].to_dict())
|
152
|
+
if hasattr(item[1], "to_dict") else item,
|
153
|
+
value.items()
|
154
|
+
))
|
155
|
+
else:
|
156
|
+
if attr in self.sensitive_list:
|
157
|
+
result[attr] = "****"
|
158
|
+
else:
|
159
|
+
result[attr] = value
|
160
|
+
|
161
|
+
return result
|
162
|
+
|
163
|
+
def to_str(self):
|
164
|
+
"""Returns the string representation of the model"""
|
165
|
+
import simplejson as json
|
166
|
+
if six.PY2:
|
167
|
+
import sys
|
168
|
+
reload(sys)
|
169
|
+
sys.setdefaultencoding("utf-8")
|
170
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
171
|
+
|
172
|
+
def __repr__(self):
|
173
|
+
"""For `print`"""
|
174
|
+
return self.to_str()
|
175
|
+
|
176
|
+
def __eq__(self, other):
|
177
|
+
"""Returns true if both objects are equal"""
|
178
|
+
if not isinstance(other, ListSimBatchConfigsResponse):
|
179
|
+
return False
|
180
|
+
|
181
|
+
return self.__dict__ == other.__dict__
|
182
|
+
|
183
|
+
def __ne__(self, other):
|
184
|
+
"""Returns true if both objects are not equal"""
|
185
|
+
return not self == other
|
@@ -0,0 +1,426 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListSimBatchesRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'algorithm_image_version': 'str',
|
21
|
+
'algorithm_name': 'str',
|
22
|
+
'batch_config_id': 'int',
|
23
|
+
'description': 'str',
|
24
|
+
'generalization_id': 'int',
|
25
|
+
'id': 'int',
|
26
|
+
'limit': 'int',
|
27
|
+
'name': 'str',
|
28
|
+
'offset': 'int',
|
29
|
+
'ordering': 'str',
|
30
|
+
'search': 'str',
|
31
|
+
'status': 'int'
|
32
|
+
}
|
33
|
+
|
34
|
+
attribute_map = {
|
35
|
+
'algorithm_image_version': 'algorithm_image_version',
|
36
|
+
'algorithm_name': 'algorithm_name',
|
37
|
+
'batch_config_id': 'batch_config_id',
|
38
|
+
'description': 'description',
|
39
|
+
'generalization_id': 'generalization_id',
|
40
|
+
'id': 'id',
|
41
|
+
'limit': 'limit',
|
42
|
+
'name': 'name',
|
43
|
+
'offset': 'offset',
|
44
|
+
'ordering': 'ordering',
|
45
|
+
'search': 'search',
|
46
|
+
'status': 'status'
|
47
|
+
}
|
48
|
+
|
49
|
+
def __init__(self, algorithm_image_version=None, algorithm_name=None, batch_config_id=None, description=None, generalization_id=None, id=None, limit=None, name=None, offset=None, ordering=None, search=None, status=None):
|
50
|
+
r"""ListSimBatchesRequest
|
51
|
+
|
52
|
+
The model defined in huaweicloud sdk
|
53
|
+
|
54
|
+
:param algorithm_image_version: 算法镜像版本
|
55
|
+
:type algorithm_image_version: str
|
56
|
+
:param algorithm_name: 算法名称
|
57
|
+
:type algorithm_name: str
|
58
|
+
:param batch_config_id: 关联batch配置
|
59
|
+
:type batch_config_id: int
|
60
|
+
:param description: 描述
|
61
|
+
:type description: str
|
62
|
+
:param generalization_id: 泛化任务id
|
63
|
+
:type generalization_id: int
|
64
|
+
:param id:
|
65
|
+
:type id: int
|
66
|
+
:param limit: Number of results to return per page.
|
67
|
+
:type limit: int
|
68
|
+
:param name:
|
69
|
+
:type name: str
|
70
|
+
:param offset: The initial index from which to return the results.
|
71
|
+
:type offset: int
|
72
|
+
:param ordering: Which field to use when ordering the results.
|
73
|
+
:type ordering: str
|
74
|
+
:param search: A search term.
|
75
|
+
:type search: str
|
76
|
+
:param status: 任务状态
|
77
|
+
:type status: int
|
78
|
+
"""
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
self._algorithm_image_version = None
|
83
|
+
self._algorithm_name = None
|
84
|
+
self._batch_config_id = None
|
85
|
+
self._description = None
|
86
|
+
self._generalization_id = None
|
87
|
+
self._id = None
|
88
|
+
self._limit = None
|
89
|
+
self._name = None
|
90
|
+
self._offset = None
|
91
|
+
self._ordering = None
|
92
|
+
self._search = None
|
93
|
+
self._status = None
|
94
|
+
self.discriminator = None
|
95
|
+
|
96
|
+
if algorithm_image_version is not None:
|
97
|
+
self.algorithm_image_version = algorithm_image_version
|
98
|
+
if algorithm_name is not None:
|
99
|
+
self.algorithm_name = algorithm_name
|
100
|
+
if batch_config_id is not None:
|
101
|
+
self.batch_config_id = batch_config_id
|
102
|
+
if description is not None:
|
103
|
+
self.description = description
|
104
|
+
if generalization_id is not None:
|
105
|
+
self.generalization_id = generalization_id
|
106
|
+
if id is not None:
|
107
|
+
self.id = id
|
108
|
+
if limit is not None:
|
109
|
+
self.limit = limit
|
110
|
+
if name is not None:
|
111
|
+
self.name = name
|
112
|
+
if offset is not None:
|
113
|
+
self.offset = offset
|
114
|
+
if ordering is not None:
|
115
|
+
self.ordering = ordering
|
116
|
+
if search is not None:
|
117
|
+
self.search = search
|
118
|
+
if status is not None:
|
119
|
+
self.status = status
|
120
|
+
|
121
|
+
@property
|
122
|
+
def algorithm_image_version(self):
|
123
|
+
r"""Gets the algorithm_image_version of this ListSimBatchesRequest.
|
124
|
+
|
125
|
+
算法镜像版本
|
126
|
+
|
127
|
+
:return: The algorithm_image_version of this ListSimBatchesRequest.
|
128
|
+
:rtype: str
|
129
|
+
"""
|
130
|
+
return self._algorithm_image_version
|
131
|
+
|
132
|
+
@algorithm_image_version.setter
|
133
|
+
def algorithm_image_version(self, algorithm_image_version):
|
134
|
+
r"""Sets the algorithm_image_version of this ListSimBatchesRequest.
|
135
|
+
|
136
|
+
算法镜像版本
|
137
|
+
|
138
|
+
:param algorithm_image_version: The algorithm_image_version of this ListSimBatchesRequest.
|
139
|
+
:type algorithm_image_version: str
|
140
|
+
"""
|
141
|
+
self._algorithm_image_version = algorithm_image_version
|
142
|
+
|
143
|
+
@property
|
144
|
+
def algorithm_name(self):
|
145
|
+
r"""Gets the algorithm_name of this ListSimBatchesRequest.
|
146
|
+
|
147
|
+
算法名称
|
148
|
+
|
149
|
+
:return: The algorithm_name of this ListSimBatchesRequest.
|
150
|
+
:rtype: str
|
151
|
+
"""
|
152
|
+
return self._algorithm_name
|
153
|
+
|
154
|
+
@algorithm_name.setter
|
155
|
+
def algorithm_name(self, algorithm_name):
|
156
|
+
r"""Sets the algorithm_name of this ListSimBatchesRequest.
|
157
|
+
|
158
|
+
算法名称
|
159
|
+
|
160
|
+
:param algorithm_name: The algorithm_name of this ListSimBatchesRequest.
|
161
|
+
:type algorithm_name: str
|
162
|
+
"""
|
163
|
+
self._algorithm_name = algorithm_name
|
164
|
+
|
165
|
+
@property
|
166
|
+
def batch_config_id(self):
|
167
|
+
r"""Gets the batch_config_id of this ListSimBatchesRequest.
|
168
|
+
|
169
|
+
关联batch配置
|
170
|
+
|
171
|
+
:return: The batch_config_id of this ListSimBatchesRequest.
|
172
|
+
:rtype: int
|
173
|
+
"""
|
174
|
+
return self._batch_config_id
|
175
|
+
|
176
|
+
@batch_config_id.setter
|
177
|
+
def batch_config_id(self, batch_config_id):
|
178
|
+
r"""Sets the batch_config_id of this ListSimBatchesRequest.
|
179
|
+
|
180
|
+
关联batch配置
|
181
|
+
|
182
|
+
:param batch_config_id: The batch_config_id of this ListSimBatchesRequest.
|
183
|
+
:type batch_config_id: int
|
184
|
+
"""
|
185
|
+
self._batch_config_id = batch_config_id
|
186
|
+
|
187
|
+
@property
|
188
|
+
def description(self):
|
189
|
+
r"""Gets the description of this ListSimBatchesRequest.
|
190
|
+
|
191
|
+
描述
|
192
|
+
|
193
|
+
:return: The description of this ListSimBatchesRequest.
|
194
|
+
:rtype: str
|
195
|
+
"""
|
196
|
+
return self._description
|
197
|
+
|
198
|
+
@description.setter
|
199
|
+
def description(self, description):
|
200
|
+
r"""Sets the description of this ListSimBatchesRequest.
|
201
|
+
|
202
|
+
描述
|
203
|
+
|
204
|
+
:param description: The description of this ListSimBatchesRequest.
|
205
|
+
:type description: str
|
206
|
+
"""
|
207
|
+
self._description = description
|
208
|
+
|
209
|
+
@property
|
210
|
+
def generalization_id(self):
|
211
|
+
r"""Gets the generalization_id of this ListSimBatchesRequest.
|
212
|
+
|
213
|
+
泛化任务id
|
214
|
+
|
215
|
+
:return: The generalization_id of this ListSimBatchesRequest.
|
216
|
+
:rtype: int
|
217
|
+
"""
|
218
|
+
return self._generalization_id
|
219
|
+
|
220
|
+
@generalization_id.setter
|
221
|
+
def generalization_id(self, generalization_id):
|
222
|
+
r"""Sets the generalization_id of this ListSimBatchesRequest.
|
223
|
+
|
224
|
+
泛化任务id
|
225
|
+
|
226
|
+
:param generalization_id: The generalization_id of this ListSimBatchesRequest.
|
227
|
+
:type generalization_id: int
|
228
|
+
"""
|
229
|
+
self._generalization_id = generalization_id
|
230
|
+
|
231
|
+
@property
|
232
|
+
def id(self):
|
233
|
+
r"""Gets the id of this ListSimBatchesRequest.
|
234
|
+
|
235
|
+
:return: The id of this ListSimBatchesRequest.
|
236
|
+
:rtype: int
|
237
|
+
"""
|
238
|
+
return self._id
|
239
|
+
|
240
|
+
@id.setter
|
241
|
+
def id(self, id):
|
242
|
+
r"""Sets the id of this ListSimBatchesRequest.
|
243
|
+
|
244
|
+
:param id: The id of this ListSimBatchesRequest.
|
245
|
+
:type id: int
|
246
|
+
"""
|
247
|
+
self._id = id
|
248
|
+
|
249
|
+
@property
|
250
|
+
def limit(self):
|
251
|
+
r"""Gets the limit of this ListSimBatchesRequest.
|
252
|
+
|
253
|
+
Number of results to return per page.
|
254
|
+
|
255
|
+
:return: The limit of this ListSimBatchesRequest.
|
256
|
+
:rtype: int
|
257
|
+
"""
|
258
|
+
return self._limit
|
259
|
+
|
260
|
+
@limit.setter
|
261
|
+
def limit(self, limit):
|
262
|
+
r"""Sets the limit of this ListSimBatchesRequest.
|
263
|
+
|
264
|
+
Number of results to return per page.
|
265
|
+
|
266
|
+
:param limit: The limit of this ListSimBatchesRequest.
|
267
|
+
:type limit: int
|
268
|
+
"""
|
269
|
+
self._limit = limit
|
270
|
+
|
271
|
+
@property
|
272
|
+
def name(self):
|
273
|
+
r"""Gets the name of this ListSimBatchesRequest.
|
274
|
+
|
275
|
+
:return: The name of this ListSimBatchesRequest.
|
276
|
+
:rtype: str
|
277
|
+
"""
|
278
|
+
return self._name
|
279
|
+
|
280
|
+
@name.setter
|
281
|
+
def name(self, name):
|
282
|
+
r"""Sets the name of this ListSimBatchesRequest.
|
283
|
+
|
284
|
+
:param name: The name of this ListSimBatchesRequest.
|
285
|
+
:type name: str
|
286
|
+
"""
|
287
|
+
self._name = name
|
288
|
+
|
289
|
+
@property
|
290
|
+
def offset(self):
|
291
|
+
r"""Gets the offset of this ListSimBatchesRequest.
|
292
|
+
|
293
|
+
The initial index from which to return the results.
|
294
|
+
|
295
|
+
:return: The offset of this ListSimBatchesRequest.
|
296
|
+
:rtype: int
|
297
|
+
"""
|
298
|
+
return self._offset
|
299
|
+
|
300
|
+
@offset.setter
|
301
|
+
def offset(self, offset):
|
302
|
+
r"""Sets the offset of this ListSimBatchesRequest.
|
303
|
+
|
304
|
+
The initial index from which to return the results.
|
305
|
+
|
306
|
+
:param offset: The offset of this ListSimBatchesRequest.
|
307
|
+
:type offset: int
|
308
|
+
"""
|
309
|
+
self._offset = offset
|
310
|
+
|
311
|
+
@property
|
312
|
+
def ordering(self):
|
313
|
+
r"""Gets the ordering of this ListSimBatchesRequest.
|
314
|
+
|
315
|
+
Which field to use when ordering the results.
|
316
|
+
|
317
|
+
:return: The ordering of this ListSimBatchesRequest.
|
318
|
+
:rtype: str
|
319
|
+
"""
|
320
|
+
return self._ordering
|
321
|
+
|
322
|
+
@ordering.setter
|
323
|
+
def ordering(self, ordering):
|
324
|
+
r"""Sets the ordering of this ListSimBatchesRequest.
|
325
|
+
|
326
|
+
Which field to use when ordering the results.
|
327
|
+
|
328
|
+
:param ordering: The ordering of this ListSimBatchesRequest.
|
329
|
+
:type ordering: str
|
330
|
+
"""
|
331
|
+
self._ordering = ordering
|
332
|
+
|
333
|
+
@property
|
334
|
+
def search(self):
|
335
|
+
r"""Gets the search of this ListSimBatchesRequest.
|
336
|
+
|
337
|
+
A search term.
|
338
|
+
|
339
|
+
:return: The search of this ListSimBatchesRequest.
|
340
|
+
:rtype: str
|
341
|
+
"""
|
342
|
+
return self._search
|
343
|
+
|
344
|
+
@search.setter
|
345
|
+
def search(self, search):
|
346
|
+
r"""Sets the search of this ListSimBatchesRequest.
|
347
|
+
|
348
|
+
A search term.
|
349
|
+
|
350
|
+
:param search: The search of this ListSimBatchesRequest.
|
351
|
+
:type search: str
|
352
|
+
"""
|
353
|
+
self._search = search
|
354
|
+
|
355
|
+
@property
|
356
|
+
def status(self):
|
357
|
+
r"""Gets the status of this ListSimBatchesRequest.
|
358
|
+
|
359
|
+
任务状态
|
360
|
+
|
361
|
+
:return: The status of this ListSimBatchesRequest.
|
362
|
+
:rtype: int
|
363
|
+
"""
|
364
|
+
return self._status
|
365
|
+
|
366
|
+
@status.setter
|
367
|
+
def status(self, status):
|
368
|
+
r"""Sets the status of this ListSimBatchesRequest.
|
369
|
+
|
370
|
+
任务状态
|
371
|
+
|
372
|
+
:param status: The status of this ListSimBatchesRequest.
|
373
|
+
:type status: int
|
374
|
+
"""
|
375
|
+
self._status = status
|
376
|
+
|
377
|
+
def to_dict(self):
|
378
|
+
"""Returns the model properties as a dict"""
|
379
|
+
result = {}
|
380
|
+
|
381
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
382
|
+
value = getattr(self, attr)
|
383
|
+
if isinstance(value, list):
|
384
|
+
result[attr] = list(map(
|
385
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
386
|
+
value
|
387
|
+
))
|
388
|
+
elif hasattr(value, "to_dict"):
|
389
|
+
result[attr] = value.to_dict()
|
390
|
+
elif isinstance(value, dict):
|
391
|
+
result[attr] = dict(map(
|
392
|
+
lambda item: (item[0], item[1].to_dict())
|
393
|
+
if hasattr(item[1], "to_dict") else item,
|
394
|
+
value.items()
|
395
|
+
))
|
396
|
+
else:
|
397
|
+
if attr in self.sensitive_list:
|
398
|
+
result[attr] = "****"
|
399
|
+
else:
|
400
|
+
result[attr] = value
|
401
|
+
|
402
|
+
return result
|
403
|
+
|
404
|
+
def to_str(self):
|
405
|
+
"""Returns the string representation of the model"""
|
406
|
+
import simplejson as json
|
407
|
+
if six.PY2:
|
408
|
+
import sys
|
409
|
+
reload(sys)
|
410
|
+
sys.setdefaultencoding("utf-8")
|
411
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
412
|
+
|
413
|
+
def __repr__(self):
|
414
|
+
"""For `print`"""
|
415
|
+
return self.to_str()
|
416
|
+
|
417
|
+
def __eq__(self, other):
|
418
|
+
"""Returns true if both objects are equal"""
|
419
|
+
if not isinstance(other, ListSimBatchesRequest):
|
420
|
+
return False
|
421
|
+
|
422
|
+
return self.__dict__ == other.__dict__
|
423
|
+
|
424
|
+
def __ne__(self, other):
|
425
|
+
"""Returns true if both objects are not equal"""
|
426
|
+
return not self == other
|