huaweicloudsdkoctopus 3.1.153__py2.py3-none-any.whl → 3.1.155__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 +14 -1
- huaweicloudsdkoctopus/v2/model/__init__.py +14 -1
- huaweicloudsdkoctopus/v2/model/batch_create_request.py +198 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batches_request.py +111 -0
- huaweicloudsdkoctopus/v2/model/create_sim_batches_response.py +619 -0
- huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_response.py +9 -5
- huaweicloudsdkoctopus/v2/model/list_sim_simulations_request.py +401 -0
- huaweicloudsdkoctopus/v2/model/list_sim_simulations_response.py +189 -0
- huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_request.py +3 -3
- huaweicloudsdkoctopus/v2/model/map_create_req_srlz.py +31 -3
- huaweicloudsdkoctopus/v2/model/scenario_create_req_srlz.py +9 -5
- huaweicloudsdkoctopus/v2/model/scenario_list_srlz.py +9 -5
- huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_request.py +142 -0
- huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_response.py +290 -0
- huaweicloudsdkoctopus/v2/model/simulation_eva_result_metric_srlz.py +260 -0
- huaweicloudsdkoctopus/v2/model/simulation_eva_result_srlz.py +231 -0
- huaweicloudsdkoctopus/v2/model/simulation_evaluation_metric_srlz.py +289 -0
- huaweicloudsdkoctopus/v2/model/simulation_evaluation_srlz.py +231 -0
- huaweicloudsdkoctopus/v2/model/simulation_file_path_srlz.py +347 -0
- huaweicloudsdkoctopus/v2/model/simulation_srlz.py +708 -0
- huaweicloudsdkoctopus/v2/model/{simulator_enum.py → status15e_enum.py} +16 -5
- huaweicloudsdkoctopus/v2/octopus_async_client.py +217 -0
- huaweicloudsdkoctopus/v2/octopus_client.py +217 -0
- {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/METADATA +2 -2
- {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/RECORD +28 -15
- {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/LICENSE +0 -0
- {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/WHEEL +0 -0
- {huaweicloudsdkoctopus-3.1.153.dist-info → huaweicloudsdkoctopus-3.1.155.dist-info}/top_level.txt +0 -0
@@ -5,6 +5,9 @@ from __future__ import absolute_import
|
|
5
5
|
from huaweicloudsdkoctopus.v2.octopus_client import OctopusClient
|
6
6
|
from huaweicloudsdkoctopus.v2.octopus_async_client import OctopusAsyncClient
|
7
7
|
|
8
|
+
from huaweicloudsdkoctopus.v2.model.batch_create_request import BatchCreateRequest
|
9
|
+
from huaweicloudsdkoctopus.v2.model.create_sim_batches_request import CreateSimBatchesRequest
|
10
|
+
from huaweicloudsdkoctopus.v2.model.create_sim_batches_response import CreateSimBatchesResponse
|
8
11
|
from huaweicloudsdkoctopus.v2.model.create_sim_sm_maps_request import CreateSimSmMapsRequest
|
9
12
|
from huaweicloudsdkoctopus.v2.model.create_sim_sm_maps_response import CreateSimSmMapsResponse
|
10
13
|
from huaweicloudsdkoctopus.v2.model.create_sim_sm_scenarios_files_request import CreateSimSmScenariosFilesRequest
|
@@ -16,6 +19,8 @@ from huaweicloudsdkoctopus.v2.model.file_create_req_srlz import FileCreateReqSrl
|
|
16
19
|
from huaweicloudsdkoctopus.v2.model.file_create_srlz import FileCreateSrlz
|
17
20
|
from huaweicloudsdkoctopus.v2.model.file_nested_create_req_srlz import FileNestedCreateReqSrlz
|
18
21
|
from huaweicloudsdkoctopus.v2.model.label_brief_srlz import LabelBriefSrlz
|
22
|
+
from huaweicloudsdkoctopus.v2.model.list_sim_simulations_request import ListSimSimulationsRequest
|
23
|
+
from huaweicloudsdkoctopus.v2.model.list_sim_simulations_response import ListSimSimulationsResponse
|
19
24
|
from huaweicloudsdkoctopus.v2.model.list_sim_sm_scenarios_request import ListSimSmScenariosRequest
|
20
25
|
from huaweicloudsdkoctopus.v2.model.list_sim_sm_scenarios_response import ListSimSmScenariosResponse
|
21
26
|
from huaweicloudsdkoctopus.v2.model.map_create_req_srlz import MapCreateReqSrlz
|
@@ -29,7 +34,15 @@ from huaweicloudsdkoctopus.v2.model.scenario_create_req_srlz import ScenarioCrea
|
|
29
34
|
from huaweicloudsdkoctopus.v2.model.scenario_list_srlz import ScenarioListSrlz
|
30
35
|
from huaweicloudsdkoctopus.v2.model.scenario_status_enum import ScenarioStatusEnum
|
31
36
|
from huaweicloudsdkoctopus.v2.model.scenario_version_enum import ScenarioVersionEnum
|
32
|
-
from huaweicloudsdkoctopus.v2.model.
|
37
|
+
from huaweicloudsdkoctopus.v2.model.show_sim_simulations_files_request import ShowSimSimulationsFilesRequest
|
38
|
+
from huaweicloudsdkoctopus.v2.model.show_sim_simulations_files_response import ShowSimSimulationsFilesResponse
|
39
|
+
from huaweicloudsdkoctopus.v2.model.simulation_eva_result_metric_srlz import SimulationEvaResultMetricSrlz
|
40
|
+
from huaweicloudsdkoctopus.v2.model.simulation_eva_result_srlz import SimulationEvaResultSrlz
|
41
|
+
from huaweicloudsdkoctopus.v2.model.simulation_evaluation_metric_srlz import SimulationEvaluationMetricSrlz
|
42
|
+
from huaweicloudsdkoctopus.v2.model.simulation_evaluation_srlz import SimulationEvaluationSrlz
|
43
|
+
from huaweicloudsdkoctopus.v2.model.simulation_file_path_srlz import SimulationFilePathSrlz
|
44
|
+
from huaweicloudsdkoctopus.v2.model.simulation_srlz import SimulationSrlz
|
45
|
+
from huaweicloudsdkoctopus.v2.model.status15e_enum import Status15eEnum
|
33
46
|
from huaweicloudsdkoctopus.v2.model.update_sim_sm_maps_files_request import UpdateSimSmMapsFilesRequest
|
34
47
|
from huaweicloudsdkoctopus.v2.model.update_sim_sm_maps_files_response import UpdateSimSmMapsFilesResponse
|
35
48
|
from huaweicloudsdkoctopus.v2.model.update_sim_sm_scenarios_files_request import UpdateSimSmScenariosFilesRequest
|
@@ -3,6 +3,9 @@
|
|
3
3
|
from __future__ import absolute_import
|
4
4
|
|
5
5
|
# import models into model package
|
6
|
+
from huaweicloudsdkoctopus.v2.model.batch_create_request import BatchCreateRequest
|
7
|
+
from huaweicloudsdkoctopus.v2.model.create_sim_batches_request import CreateSimBatchesRequest
|
8
|
+
from huaweicloudsdkoctopus.v2.model.create_sim_batches_response import CreateSimBatchesResponse
|
6
9
|
from huaweicloudsdkoctopus.v2.model.create_sim_sm_maps_request import CreateSimSmMapsRequest
|
7
10
|
from huaweicloudsdkoctopus.v2.model.create_sim_sm_maps_response import CreateSimSmMapsResponse
|
8
11
|
from huaweicloudsdkoctopus.v2.model.create_sim_sm_scenarios_files_request import CreateSimSmScenariosFilesRequest
|
@@ -14,6 +17,8 @@ from huaweicloudsdkoctopus.v2.model.file_create_req_srlz import FileCreateReqSrl
|
|
14
17
|
from huaweicloudsdkoctopus.v2.model.file_create_srlz import FileCreateSrlz
|
15
18
|
from huaweicloudsdkoctopus.v2.model.file_nested_create_req_srlz import FileNestedCreateReqSrlz
|
16
19
|
from huaweicloudsdkoctopus.v2.model.label_brief_srlz import LabelBriefSrlz
|
20
|
+
from huaweicloudsdkoctopus.v2.model.list_sim_simulations_request import ListSimSimulationsRequest
|
21
|
+
from huaweicloudsdkoctopus.v2.model.list_sim_simulations_response import ListSimSimulationsResponse
|
17
22
|
from huaweicloudsdkoctopus.v2.model.list_sim_sm_scenarios_request import ListSimSmScenariosRequest
|
18
23
|
from huaweicloudsdkoctopus.v2.model.list_sim_sm_scenarios_response import ListSimSmScenariosResponse
|
19
24
|
from huaweicloudsdkoctopus.v2.model.map_create_req_srlz import MapCreateReqSrlz
|
@@ -27,7 +32,15 @@ from huaweicloudsdkoctopus.v2.model.scenario_create_req_srlz import ScenarioCrea
|
|
27
32
|
from huaweicloudsdkoctopus.v2.model.scenario_list_srlz import ScenarioListSrlz
|
28
33
|
from huaweicloudsdkoctopus.v2.model.scenario_status_enum import ScenarioStatusEnum
|
29
34
|
from huaweicloudsdkoctopus.v2.model.scenario_version_enum import ScenarioVersionEnum
|
30
|
-
from huaweicloudsdkoctopus.v2.model.
|
35
|
+
from huaweicloudsdkoctopus.v2.model.show_sim_simulations_files_request import ShowSimSimulationsFilesRequest
|
36
|
+
from huaweicloudsdkoctopus.v2.model.show_sim_simulations_files_response import ShowSimSimulationsFilesResponse
|
37
|
+
from huaweicloudsdkoctopus.v2.model.simulation_eva_result_metric_srlz import SimulationEvaResultMetricSrlz
|
38
|
+
from huaweicloudsdkoctopus.v2.model.simulation_eva_result_srlz import SimulationEvaResultSrlz
|
39
|
+
from huaweicloudsdkoctopus.v2.model.simulation_evaluation_metric_srlz import SimulationEvaluationMetricSrlz
|
40
|
+
from huaweicloudsdkoctopus.v2.model.simulation_evaluation_srlz import SimulationEvaluationSrlz
|
41
|
+
from huaweicloudsdkoctopus.v2.model.simulation_file_path_srlz import SimulationFilePathSrlz
|
42
|
+
from huaweicloudsdkoctopus.v2.model.simulation_srlz import SimulationSrlz
|
43
|
+
from huaweicloudsdkoctopus.v2.model.status15e_enum import Status15eEnum
|
31
44
|
from huaweicloudsdkoctopus.v2.model.update_sim_sm_maps_files_request import UpdateSimSmMapsFilesRequest
|
32
45
|
from huaweicloudsdkoctopus.v2.model.update_sim_sm_maps_files_response import UpdateSimSmMapsFilesResponse
|
33
46
|
from huaweicloudsdkoctopus.v2.model.update_sim_sm_scenarios_files_request import UpdateSimSmScenariosFilesRequest
|
@@ -0,0 +1,198 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class BatchCreateRequest:
|
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
|
+
'name': 'str',
|
21
|
+
'description': 'str',
|
22
|
+
'algorithm_image': 'str',
|
23
|
+
'batch_config': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'name': 'name',
|
28
|
+
'description': 'description',
|
29
|
+
'algorithm_image': 'algorithm_image',
|
30
|
+
'batch_config': 'batch_config'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, name=None, description=None, algorithm_image=None, batch_config=None):
|
34
|
+
r"""BatchCreateRequest
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param name: 名称
|
39
|
+
:type name: str
|
40
|
+
:param description: 文本描述
|
41
|
+
:type description: str
|
42
|
+
:param algorithm_image: 关联算法镜像,如果任务配置了算法,该字段必填
|
43
|
+
:type algorithm_image: str
|
44
|
+
:param batch_config: 关联batch配置
|
45
|
+
:type batch_config: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._name = None
|
51
|
+
self._description = None
|
52
|
+
self._algorithm_image = None
|
53
|
+
self._batch_config = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
self.name = name
|
57
|
+
self.description = description
|
58
|
+
self.algorithm_image = algorithm_image
|
59
|
+
self.batch_config = batch_config
|
60
|
+
|
61
|
+
@property
|
62
|
+
def name(self):
|
63
|
+
r"""Gets the name of this BatchCreateRequest.
|
64
|
+
|
65
|
+
名称
|
66
|
+
|
67
|
+
:return: The name of this BatchCreateRequest.
|
68
|
+
:rtype: str
|
69
|
+
"""
|
70
|
+
return self._name
|
71
|
+
|
72
|
+
@name.setter
|
73
|
+
def name(self, name):
|
74
|
+
r"""Sets the name of this BatchCreateRequest.
|
75
|
+
|
76
|
+
名称
|
77
|
+
|
78
|
+
:param name: The name of this BatchCreateRequest.
|
79
|
+
:type name: str
|
80
|
+
"""
|
81
|
+
self._name = name
|
82
|
+
|
83
|
+
@property
|
84
|
+
def description(self):
|
85
|
+
r"""Gets the description of this BatchCreateRequest.
|
86
|
+
|
87
|
+
文本描述
|
88
|
+
|
89
|
+
:return: The description of this BatchCreateRequest.
|
90
|
+
:rtype: str
|
91
|
+
"""
|
92
|
+
return self._description
|
93
|
+
|
94
|
+
@description.setter
|
95
|
+
def description(self, description):
|
96
|
+
r"""Sets the description of this BatchCreateRequest.
|
97
|
+
|
98
|
+
文本描述
|
99
|
+
|
100
|
+
:param description: The description of this BatchCreateRequest.
|
101
|
+
:type description: str
|
102
|
+
"""
|
103
|
+
self._description = description
|
104
|
+
|
105
|
+
@property
|
106
|
+
def algorithm_image(self):
|
107
|
+
r"""Gets the algorithm_image of this BatchCreateRequest.
|
108
|
+
|
109
|
+
关联算法镜像,如果任务配置了算法,该字段必填
|
110
|
+
|
111
|
+
:return: The algorithm_image of this BatchCreateRequest.
|
112
|
+
:rtype: str
|
113
|
+
"""
|
114
|
+
return self._algorithm_image
|
115
|
+
|
116
|
+
@algorithm_image.setter
|
117
|
+
def algorithm_image(self, algorithm_image):
|
118
|
+
r"""Sets the algorithm_image of this BatchCreateRequest.
|
119
|
+
|
120
|
+
关联算法镜像,如果任务配置了算法,该字段必填
|
121
|
+
|
122
|
+
:param algorithm_image: The algorithm_image of this BatchCreateRequest.
|
123
|
+
:type algorithm_image: str
|
124
|
+
"""
|
125
|
+
self._algorithm_image = algorithm_image
|
126
|
+
|
127
|
+
@property
|
128
|
+
def batch_config(self):
|
129
|
+
r"""Gets the batch_config of this BatchCreateRequest.
|
130
|
+
|
131
|
+
关联batch配置
|
132
|
+
|
133
|
+
:return: The batch_config of this BatchCreateRequest.
|
134
|
+
:rtype: str
|
135
|
+
"""
|
136
|
+
return self._batch_config
|
137
|
+
|
138
|
+
@batch_config.setter
|
139
|
+
def batch_config(self, batch_config):
|
140
|
+
r"""Sets the batch_config of this BatchCreateRequest.
|
141
|
+
|
142
|
+
关联batch配置
|
143
|
+
|
144
|
+
:param batch_config: The batch_config of this BatchCreateRequest.
|
145
|
+
:type batch_config: str
|
146
|
+
"""
|
147
|
+
self._batch_config = batch_config
|
148
|
+
|
149
|
+
def to_dict(self):
|
150
|
+
"""Returns the model properties as a dict"""
|
151
|
+
result = {}
|
152
|
+
|
153
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
154
|
+
value = getattr(self, attr)
|
155
|
+
if isinstance(value, list):
|
156
|
+
result[attr] = list(map(
|
157
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
158
|
+
value
|
159
|
+
))
|
160
|
+
elif hasattr(value, "to_dict"):
|
161
|
+
result[attr] = value.to_dict()
|
162
|
+
elif isinstance(value, dict):
|
163
|
+
result[attr] = dict(map(
|
164
|
+
lambda item: (item[0], item[1].to_dict())
|
165
|
+
if hasattr(item[1], "to_dict") else item,
|
166
|
+
value.items()
|
167
|
+
))
|
168
|
+
else:
|
169
|
+
if attr in self.sensitive_list:
|
170
|
+
result[attr] = "****"
|
171
|
+
else:
|
172
|
+
result[attr] = value
|
173
|
+
|
174
|
+
return result
|
175
|
+
|
176
|
+
def to_str(self):
|
177
|
+
"""Returns the string representation of the model"""
|
178
|
+
import simplejson as json
|
179
|
+
if six.PY2:
|
180
|
+
import sys
|
181
|
+
reload(sys)
|
182
|
+
sys.setdefaultencoding("utf-8")
|
183
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
184
|
+
|
185
|
+
def __repr__(self):
|
186
|
+
"""For `print`"""
|
187
|
+
return self.to_str()
|
188
|
+
|
189
|
+
def __eq__(self, other):
|
190
|
+
"""Returns true if both objects are equal"""
|
191
|
+
if not isinstance(other, BatchCreateRequest):
|
192
|
+
return False
|
193
|
+
|
194
|
+
return self.__dict__ == other.__dict__
|
195
|
+
|
196
|
+
def __ne__(self, other):
|
197
|
+
"""Returns true if both objects are not equal"""
|
198
|
+
return not self == other
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateSimBatchesRequest:
|
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
|
+
'body': 'BatchCreateRequest'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
r"""CreateSimBatchesRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the CreateSimBatchesRequest
|
33
|
+
:type body: :class:`huaweicloudsdkoctopus.v2.BatchCreateRequest`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
r"""Gets the body of this CreateSimBatchesRequest.
|
47
|
+
|
48
|
+
:return: The body of this CreateSimBatchesRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkoctopus.v2.BatchCreateRequest`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
r"""Sets the body of this CreateSimBatchesRequest.
|
56
|
+
|
57
|
+
:param body: The body of this CreateSimBatchesRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkoctopus.v2.BatchCreateRequest`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, CreateSimBatchesRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
return not self == other
|